Skip to main content

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


Download files

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

Source Distribution

elizaos_plugin_elevenlabs-2.0.0a4.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

elizaos_plugin_elevenlabs-2.0.0a4-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file elizaos_plugin_elevenlabs-2.0.0a4.tar.gz.

File metadata

File hashes

Hashes for elizaos_plugin_elevenlabs-2.0.0a4.tar.gz
Algorithm Hash digest
SHA256 bc4ab596df2fa8ab666c4f7956f7810568b8560977cef53dc128c23a26190d99
MD5 cd09e5698babfbcffaf19fa6e18d3f7c
BLAKE2b-256 bdc0dddb5611bef2cd05daf55a5563e57058619f93efb0e9dabd5f54bf88311e

See more details on using hashes here.

File details

Details for the file elizaos_plugin_elevenlabs-2.0.0a4-py3-none-any.whl.

File metadata

File hashes

Hashes for elizaos_plugin_elevenlabs-2.0.0a4-py3-none-any.whl
Algorithm Hash digest
SHA256 14b469f087ae078cddd7b4492ce16af02bedec97ad9ce9750bfb6d15363c17da
MD5 2d1d7e52e51d2dcf8b604291bac13e2a
BLAKE2b-256 ac3e1eb64581041a0226cf6197f7a7ef9d220b055e1b4a12d6d31f0fc781c847

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