Skip to main content

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

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
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vision_agents_plugins_elevenlabs-0.5.4.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file vision_agents_plugins_elevenlabs-0.5.4.tar.gz.

File metadata

  • Download URL: vision_agents_plugins_elevenlabs-0.5.4.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for vision_agents_plugins_elevenlabs-0.5.4.tar.gz
Algorithm Hash digest
SHA256 9514c77ff5b5cf3a9db65ea4ce3575f31d2c858bb361233a99ddd75923468c53
MD5 bbf367b6900e79e9a76dfaf3b713748a
BLAKE2b-256 4342e266b2133b58beddd4c73b59037187e41b6d3d3a21a7554b6aed07ad9e94

See more details on using hashes here.

File details

Details for the file vision_agents_plugins_elevenlabs-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: vision_agents_plugins_elevenlabs-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for vision_agents_plugins_elevenlabs-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e4f95e34913264c87e6d6efef3aa22d2ff3fc6ae2ec320e5d5053c1798289f24
MD5 58a0e7c425bd3c295be0962ad2f6cec2
BLAKE2b-256 dcc95983d36b2707b38102fb0c109bc1ccf44155400c852b7bc14b7c2b0205b7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page