sound_generation
Generate sound effects from text with ElevenLabs. Returns audio bytes; pass output_path to save them.
Instructions
Sound Generation Spends ElevenLabs credits. Returns audio/mpeg bytes; pass output_path to save them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loop | No | Whether to create a sound effect that loops smoothly. Only available for the 'eleven_text_to_sound_v2 model'. | |
| text | Yes | The text that will get converted into a sound effect. | |
| model_id | No | ||
| output_path | No | Where to write the returned bytes. Relative paths resolve against ELEVENLABS_OUTPUT_DIR. Omit it to get the data inline as base64 (small files only). | |
| output_format | No | Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pr | |
| duration_seconds | No | ||
| prompt_influence | No |