ElevenLabs S3 Package
This package combines the ElevenLabs text-to-speech functionality with AWS S3 uploading capabilities.
Installation
pip install elevenlabs_s3
Usage
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.
Metadata
Release files for elevenlabs-s3 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| elevenlabs_s3-0.3.2.tar.gz | 3.3 kB | Without provenance | Details for elevenlabs_s3-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elevenlabs_s3-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for elevenlabs_s3-0.3.2-py3-none-any.whl |
Total release size: 7.4 kB
Release files / elevenlabs_s3-0.3.2.tar.gz
| Download URL | elevenlabs_s3-0.3.2.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ef2c96ef6332896c7145aa0f338d221cc674ca4c49166071106ab62c297d46f
|
|
BLAKE2b-256 checksum How to use checksums |
27478e6b2beb18515d9eddd6bddf5c2a322e1d7660f91966bdd97f5d88bdf6ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
|
Release files / elevenlabs_s3-0.3.2-py3-none-any.whl
| Download URL | elevenlabs_s3-0.3.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4a9bd585c9c27d2db4013d9e33bb47e46a4a8dc29dec0b7d79b30e85536317c
|
|
BLAKE2b-256 checksum How to use checksums |
873611accc1b00626879fb61ac8689639a96b028d2dcf56d0b952cd9771a6acf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Linux/6.5.0-1025-azure
|
Security for elevenlabs-s3 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.