Name | elevenlabs-s3 JSON |
Version |
0.3.1
JSON |
| download |
home_page | None |
Summary | A package that combines ElevenLabs TTS and AWS S3 upload. |
upload_time | 2024-10-16 13:33:57 |
maintainer | None |
docs_url | None |
author | Andy |
requires_python | <4.0,>=3.8 |
license | None |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# ElevenLabs S3 Package
This package combines the ElevenLabs text-to-speech functionality with AWS S3 uploading capabilities.
## Installation
```bash
pip install elevenlabs_s3
```
## Usage
```python
from elevenlabs_s3 import VoiceSettings, text_to_speech
# Call the function
result = text_to_speech(
text="Hello, this is a test.",
elevenlabs_api_key="YOUR_ELEVENLABS_API_KEY",
voice_id="YOUR_VOICE_ID",
output_folder="local_files", # Specify if you want to save locally
# Specify if you want to upload to S3
aws_s3_output_folder="s3_files",
aws_s3_bucket_name="your-s3-bucket",
aws_access_key_id="YOUR_AWS_ACCESS_KEY_ID",
aws_secret_access_key="YOUR_AWS_SECRET_ACCESS_KEY",
aws_region_name="YOUR_AWS_REGION",
)
print(result)
"""
Elevenlabs ID: `I8xNqL3yp2LqoGrqUdyV`
Usage: `previous_request_ids=["I8xNqL3yp2LqoGrqUdyV"]`
{
"id": "elevenlabs-id",
"file_name": "audio_files/elevenlabs-id.mp3",
"s3_file_name": "s3_files/elevenlabs-id.mp3",
"s3_bucket_name": "test-bucket",
"s3_presigned_url": "https://test-bucket.s3.amazonaws.com/s3_files/elevenlabs-id.mp3"
}
"""
```
## Rules
- If the folder where to save the audio file is specified and AWS S3 authorization data is not specified, then save only in the folder.
- If the folder where to save the audio file and AWS S3 authorization data is specified, then save in S3 and in the folder.
- If no folder is specified where to save the audio file and AWS S3 authorization data is specified, save only to S3.
- If no folder is specified where to save the audio file and AWS S3 authorization data is not specified, save only in the default folder.
## License
This project is licensed under the MIT License.
Raw data
{
"_id": null,
"home_page": null,
"name": "elevenlabs-s3",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": null,
"author": "Andy",
"author_email": "andychert@protonmail.com",
"download_url": "https://files.pythonhosted.org/packages/9d/df/0c6390bae7c405b3e3a6688d41feedc6bbf3d636eb2114c0039c45080824/elevenlabs_s3-0.3.1.tar.gz",
"platform": null,
"description": "# ElevenLabs S3 Package\n\nThis package combines the ElevenLabs text-to-speech functionality with AWS S3 uploading capabilities.\n\n## Installation\n\n```bash\npip install elevenlabs_s3\n```\n\n## Usage\n\n```python\nfrom elevenlabs_s3 import VoiceSettings, text_to_speech\n\n# Call the function\nresult = text_to_speech(\n text=\"Hello, this is a test.\",\n elevenlabs_api_key=\"YOUR_ELEVENLABS_API_KEY\",\n voice_id=\"YOUR_VOICE_ID\",\n output_folder=\"local_files\", # Specify if you want to save locally\n # Specify if you want to upload to S3\n aws_s3_output_folder=\"s3_files\",\n aws_s3_bucket_name=\"your-s3-bucket\",\n aws_access_key_id=\"YOUR_AWS_ACCESS_KEY_ID\",\n aws_secret_access_key=\"YOUR_AWS_SECRET_ACCESS_KEY\",\n aws_region_name=\"YOUR_AWS_REGION\",\n)\n\nprint(result)\n\n\"\"\"\nElevenlabs ID: `I8xNqL3yp2LqoGrqUdyV`\nUsage: `previous_request_ids=[\"I8xNqL3yp2LqoGrqUdyV\"]`\n\n{\n \"id\": \"elevenlabs-id\",\n \"file_name\": \"audio_files/elevenlabs-id.mp3\",\n \"s3_file_name\": \"s3_files/elevenlabs-id.mp3\",\n \"s3_bucket_name\": \"test-bucket\",\n \"s3_presigned_url\": \"https://test-bucket.s3.amazonaws.com/s3_files/elevenlabs-id.mp3\"\n}\n\"\"\"\n\n```\n\n## Rules\n\n- If the folder where to save the audio file is specified and AWS S3 authorization data is not specified, then save only in the folder.\n- If the folder where to save the audio file and AWS S3 authorization data is specified, then save in S3 and in the folder.\n- If no folder is specified where to save the audio file and AWS S3 authorization data is specified, save only to S3.\n- If no folder is specified where to save the audio file and AWS S3 authorization data is not specified, save only in the default folder.\n\n## License\n\nThis project is licensed under the MIT License.\n",
"bugtrack_url": null,
"license": null,
"summary": "A package that combines ElevenLabs TTS and AWS S3 upload.",
"version": "0.3.1",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dea93d5ef10f979a00fbdad4a8e188789a743d22ff0f9bcb67d03726ccfc9734",
"md5": "55b61b9b51274a62d2fff76502336e9c",
"sha256": "133239a6f02d99a4a6192c6b6ef6743347b90e994f8eb5afd1f34f56097937d5"
},
"downloads": -1,
"filename": "elevenlabs_s3-0.3.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "55b61b9b51274a62d2fff76502336e9c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 4083,
"upload_time": "2024-10-16T13:33:56",
"upload_time_iso_8601": "2024-10-16T13:33:56.362560Z",
"url": "https://files.pythonhosted.org/packages/de/a9/3d5ef10f979a00fbdad4a8e188789a743d22ff0f9bcb67d03726ccfc9734/elevenlabs_s3-0.3.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9ddf0c6390bae7c405b3e3a6688d41feedc6bbf3d636eb2114c0039c45080824",
"md5": "0414938b3685c030e5121c2256c20128",
"sha256": "8639e5649ebce7db4ae129eff12247d09deee036013e12f2a1c469ce19335c9c"
},
"downloads": -1,
"filename": "elevenlabs_s3-0.3.1.tar.gz",
"has_sig": false,
"md5_digest": "0414938b3685c030e5121c2256c20128",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 3321,
"upload_time": "2024-10-16T13:33:57",
"upload_time_iso_8601": "2024-10-16T13:33:57.264235Z",
"url": "https://files.pythonhosted.org/packages/9d/df/0c6390bae7c405b3e3a6688d41feedc6bbf3d636eb2114c0039c45080824/elevenlabs_s3-0.3.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-16 13:33:57",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "elevenlabs-s3"
}