ElevenLabs TTS and STT integration for Vision Agents
Project description
ElevenLabs Text-to-Speech Plugin
A high-quality Text-to-Speech (TTS) plugin for GetStream that uses the ElevenLabs API.
Installation
pip install getstream-plugins-elevenlabs
Usage
from getstream.plugins.elevenlabs import ElevenLabsTTS
from getstream.video.rtc.audio_track import AudioStreamTrack
# Initialize with API key from environment variable
tts = ElevenLabsTTS()
# Or specify API key directly
tts = ElevenLabsTTS(api_key="your_elevenlabs_api_key")
# Create an audio track to output speech
track = AudioStreamTrack(framerate=16000)
tts.set_output_track(track)
# Register event handlers
@tts.on("audio")
def on_audio(audio_data, user):
print(f"Received audio chunk: {len(audio_data)} bytes")
# Send text to be converted to speech
await tts.send("Hello, this is a test of the ElevenLabs text-to-speech plugin.")
Configuration Options
api_key: ElevenLabs API key (default: reads from ELEVENLABS_API_KEY environment variable)voice_id: The voice ID to use for synthesis (default: "VR6AewLTigWG4xSOukaG")model_id: The model ID to use for synthesis (default: "eleven_multilingual_v2")
Requirements
- Python 3.10+
- elevenlabs>=2.5.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vision_agents_plugins_elevenlabs-0.3.6.tar.gz.
File metadata
- Download URL: vision_agents_plugins_elevenlabs-0.3.6.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11dd10fce666034bc048b0d8f0408b971d1ab73ceccaa16cf4ea14338044a2d4
|
|
| MD5 |
366af43479b171b738913401b4277cb5
|
|
| BLAKE2b-256 |
c639d7e079bad73461dbce19ba46ffb1f76c87cf57a7d49d6f7a8f3283f40e70
|
File details
Details for the file vision_agents_plugins_elevenlabs-0.3.6-py3-none-any.whl.
File metadata
- Download URL: vision_agents_plugins_elevenlabs-0.3.6-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
35c8ffad9fe6baaf15b4f2102a023d4c316aaced10622f88613aea30581b9193
|
|
| MD5 |
4e40f67384339ee53d481d6dde309bfe
|
|
| BLAKE2b-256 |
ebe466a70c123c561f4719d41f3b3e0c5689cf08fe8adb303214093d267d05b5
|