Skip to main content

ElevenLabs Text-to-Speech Plugin

A high-quality Text-to-Speech (TTS) plugin for GetStream that uses the ElevenLabs API.

Installation

uv add "vision-agents[elevenlabs]"
# or directly
uv add vision-agents-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
async for chunk in tts.send_iter("Hello, this is a test of the ElevenLabs text-to-speech plugin."):
    pass

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

Metadata

Release files for vision-agents-plugins-elevenlabs 0.6.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vision-agents-plugins-elevenlabs 0.6.9
File Size Uploaded Provenance Actions
vision_agents_plugins_elevenlabs-0.6.9.tar.gz 7.0 kB Without provenance Details for vision_agents_plugins_elevenlabs-0.6.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vision-agents-plugins-elevenlabs 0.6.9
File Interpreter ABI Platform Actions
vision_agents_plugins_elevenlabs-0.6.9-py3-none-any.whl Python 3 none any Details for vision_agents_plugins_elevenlabs-0.6.9-py3-none-any.whl

Total release size: 14.7 kB

Release files / vision_agents_plugins_elevenlabs-0.6.9.tar.gz

Download URL vision_agents_plugins_elevenlabs-0.6.9.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ecd4735244489e8564c3cc49fe9805b4ba6bd66277079390608fe0152cc9e5cc
BLAKE2b-256 checksum
How to use checksums
fe093af0645aab13543f2c5ae0c0139868accda5525250bd0ad7592c49aafb93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

Release files / vision_agents_plugins_elevenlabs-0.6.9-py3-none-any.whl

Download URL vision_agents_plugins_elevenlabs-0.6.9-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
659b6054e99dce472c3fcdab0bb277af12510fa574a0df89372878bc2c41c9e0
BLAKE2b-256 checksum
How to use checksums
d067f1c9a913269895e7d5afe2570a10a80403a838b78e6ff55446f33bf53c4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","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}

Security for vision-agents-plugins-elevenlabs 0.6.9

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.

Release history Release notifications | RSS feed

This release

0.6.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page