← Plugins

elevenlabs

Text-to-speech using ElevenLabs voices

View source

plugin-elevenlabs

A Stavrobot plugin that converts text to speech and transcribes speech to text using ElevenLabs. TTS produces an MP3 audio file that Stavrobot delivers back to you; STT transcribes an audio file you provide.

Installation

Tell Stavrobot:

Install the plugin at https://github.com/stavrobot/plugin-elevenlabs

After installation, configure your ElevenLabs API key:

Configure the elevenlabs plugin with my API key: <your-api-key>

Configuration

KeyRequiredDefaultDescription
api_keyYesYour ElevenLabs API key. Obtain one at elevenlabs.io. Free keys can only use the default voices; a paid plan is required to use library voices via the API.
default_voice_idNoJBFqnCBsd6RMkjVDRZzbElevenLabs voice ID to use when none is specified in the request.
model_idNoeleven_v3ElevenLabs model ID.
stabilityNo0.9Voice stability from 0.0 to 1.0. Higher values produce more consistent speech.
stt_model_idNoscribe_v2ElevenLabs speech-to-text model ID.

Usage

Ask Stavrobot to convert text to speech:

Read this aloud: "Hello, world!"

You can also specify a voice:

Read this in voice 21m00Tcm4TlvDq8ikWAM: "Hello, world!"

Ask Stavrobot to transcribe audio:

Transcribe this audio file: <path-or-url-to-audio>