High-quality text-to-speech and speech-to-text plugin for elizaOS using ElevenLabs API
Project description
ElevenLabs Plugin for elizaOS (Python)
High-quality text-to-speech (TTS) and speech-to-text (STT) plugin for elizaOS using the ElevenLabs API.
Installation
pip install eliza-plugin-elevenlabs
Features
- Text-to-Speech (TTS): High-quality voice synthesis with multiple voice models
- Speech-to-Text (STT): Accurate transcription with Scribe v1 model
- Speaker Diarization: Identify up to 32 different speakers
- Multi-language Support: 99 languages for STT
- Audio Event Detection: Detect laughter, applause, and other audio events
- Streaming Support: Efficient memory usage with streaming audio output
Usage
from eliza_plugin_elevenlabs import elevenlabs_plugin, ElevenLabsService
# Create the service
service = ElevenLabsService(api_key="your-api-key")
# Text-to-speech
audio_stream = await service.text_to_speech("Hello, world!")
# Speech-to-text
transcript = await service.speech_to_text(audio_file)
Configuration
| Environment Variable | Description | Default |
|---|---|---|
ELEVENLABS_API_KEY |
ElevenLabs API key | Required |
ELEVENLABS_VOICE_ID |
Voice ID for TTS | EXAVITQu4vr4xnSDxMaL |
ELEVENLABS_MODEL_ID |
TTS model ID | eleven_multilingual_v2 |
ELEVENLABS_VOICE_STABILITY |
Voice stability (0-1) | 0.5 |
ELEVENLABS_VOICE_SIMILARITY_BOOST |
Similarity boost (0-1) | 0.75 |
ELEVENLABS_OUTPUT_FORMAT |
Audio output format | mp3_44100_128 |
ELEVENLABS_STT_MODEL_ID |
STT model ID | scribe_v1 |
ELEVENLABS_STT_DIARIZE |
Enable speaker diarization | false |
License
MIT
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 elizaos_plugin_elevenlabs-2.0.0a5.tar.gz.
File metadata
- Download URL: elizaos_plugin_elevenlabs-2.0.0a5.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
581cd3028a765f7fcf5184eeaa7b1f0c6dae7483e75fef052b7f90cebcff899d
|
|
| MD5 |
8325537541d2c06cbab2b261155006e9
|
|
| BLAKE2b-256 |
d175d50cb56db9b4307ff8a7d6ba0c28c4a7e2706575f7e44e56d44f636b7755
|
File details
Details for the file elizaos_plugin_elevenlabs-2.0.0a5-py3-none-any.whl.
File metadata
- Download URL: elizaos_plugin_elevenlabs-2.0.0a5-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9801a463ae84096353af5a5cc3910a1e67ad2749e589bcbba9121c037e097a9d
|
|
| MD5 |
f8a23859c66081597ea703d192de3c0e
|
|
| BLAKE2b-256 |
887312dd63cafc09190b390a1d6b64a98f1ebc93be7dbf359b2352cc032a3b64
|