ElevenLabs
Text to speech and sound effects saved as audio files, Scribe speech to text, voices, models, history and usage (paid per character/minute, cloning and deletes node only)
Beta v0.1.0 Node.js 12 actions
About
A Graphrt plugin for the ElevenLabs API. It turns text into speech and sound effects, saved as audio files. It also transcribes audio and video, and lists voices, models, generation history and subscription usage. The plugin is declarative: see definition.mjs and docs/declarative-plugins.md.
What it can do
- text_to_speech: text to speech with a voice and model (eleven_multilingual_v2 by default, or eleven_v3, eleven_flash_v2_5 and others), voice settings, seed, continuity text and output format. Saved to ELEVENLABS_OUTPUT_DIR.
- generate_sound_effect: a sound effect from a description (0.5–30 s, can loop). Saved to ELEVENLABS_OUTPUT_DIR.
- speech_to_text: Scribe transcription of an uploaded file or a source_url (exactly one, checked before any request). Returns word timestamps, diarization, audio-event tags and key terms.
- list_voices (search, filters, paginated) and get_voice.
- list_models: models, their languages, limits and cost factor.
- list_history (paginated) and get_history_audio, which downloads a past generation again at no cost.
- get_subscription: tier, characters used and character limit, when the limit resets, and voice slots.
- clone_voice (instant voice clone from one sample) and delete_voice. Both are node only.
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Text to speech
elevenlabs.text_to_speech - Generate sound effect
elevenlabs.generate_sound_effect - Speech to text
elevenlabs.speech_to_text - List voices
elevenlabs.list_voices - Get voice
elevenlabs.get_voice - List models
elevenlabs.list_models - List history
elevenlabs.list_history - Download history audio
elevenlabs.get_history_audio - Get subscription
elevenlabs.get_subscription - Clone voice
elevenlabs.clone_voice
Show all 12 actions
- Delete voice
elevenlabs.delete_voice - ElevenLabs API request
elevenlabs.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
ELEVENLABS_API_KEYRequiredAPI key, sent as the xi-api-key header -
ELEVENLABS_OUTPUT_DIRFor audio outputAbsolute directory where text_to_speech, generate_sound_effect and get_history_audio write files (created if missing). Without it those operations are refused before any request. -
ELEVENLABS_UPLOAD_DIROptionalAbsolute directory that local files for speech_to_text and clone_voice must be inside (realpath checked, regular files only, up to 100 MB). Without it only https URLs work. Any file in this directory can be sent to ElevenLabs by an agent through speech_to_text. Only point it at a folder that holds nothing else.
How to use it
In Graphrt Desktop
- Open Plugins and search for ElevenLabs.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install elevenlabs workflow.yaml
- id: speak
type: elevenlabs.text_to_speech
voice_id: JBFqnCBsd6RMkjVDRZzb
text: "{{#start.text#}}"
model_id: eleven_multilingual_v2
output_format: mp3_44100_128
voice_settings: { stability: 0.5, similarity_boost: 0.75 }
- id: transcribe
type: elevenlabs.speech_to_text
file: "{{#speak.data.path#}}" # needs ELEVENLABS_UPLOAD_DIR to contain ELEVENLABS_OUTPUT_DIR
diarize: true