Spiral gives your agent every tool with one account. Browse the tools →

Muse Code · AudioReleased 2026-09-28

How to Use ElevenLabs v4 Text to Speech in Muse Code

Eleven v4 suits expressive narration, audiobooks, and character voiceovers. Compared with Eleven v4 Turbo, it prioritizes finished content and long-form audio over real-time conversation.

Prompts to try with ElevenLabs v4 Text to Speech in Muse Code

Copy an example into Muse Code, or ask in your own words.

Read the README and draft a 150-word spoken introduction to the project. Remove code syntax from the narration, show me the script, then generate it with Eleven v4.

ElevenLabs v4 Text to SpeechMuse Code
Try asking
  • Use the onboarding documentation to write a 250-word narrated walkthrough of the first successful task. Generate it with Eleven v4, keeping delivery measured and using sentence breaks for pacing.

  • Find the game's quest dialogue and select five lines that need different emotions. Add restrained square-bracket delivery directions and generate a separate take for each line with Eleven v4.

  • Review the narration script in this project for difficult names. Suggest IPA pronunciations between forward slashes, then use Eleven v4 to generate a short pronunciation audition before the full script.

  • Turn the latest changelog into a 180-word spoken release update. Generate it with Eleven v4 using higher stability for consistent delivery, and save the approved script beside the audio.

How to set up ElevenLabs v4 Text to Speech in Muse Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Install Muse Code
    curl -fsSL https://dev.meta.ai/install.sh | bash
  2. Ask Muse to add the server

    Start muse and ask:

    Add the Spiral MCP server at https://api.spiral.ai/mcp
  3. Sign in

    In your terminal, run:

    muse mcp login spiral

Use the Spiral skill

  1. Send Muse Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run ElevenLabs v4 Text to Speech

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "elevenlabs",
        "model": "eleven_v4",
        "input": {
          "text": "<text>",
          "voice_id": "<voice_id>"
        }
      }'

Then paste one of the prompts above: Muse Code finds ElevenLabs v4 Text to Speech on Spiral, shows the price and runs it.

ElevenLabs v4 Text to Speech providers and prices

Spiral runs ElevenLabs v4 Text to Speech through ElevenLabs. Open a card for today's price, with every fee included.

ElevenLabsAudio

Settings you can ask for

ElevenLabs v4 Text to Speech works from your text, next text, and previous text. Ask Muse Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number

If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.

Output formatalaw_8000, mp3_22050_32, mp3_24000_48, mp3_44100_128, mp3_44100_192, mp3_44100_32, mp3_44100_64, mp3_44100_96 and 20 moremp3_44100_128

Output format of the generated audio.

Use pvc as ivcon or off

Whether to use the IVC version of a professional voice. This may improve expressiveness and reduce latency.

Apply text normalizationauto, on, or offauto

This parameter controls text normalization with three modes: 'auto', 'on', and 'off'.

Optimize streaming latencya whole number

You can turn on latency optimizations at some cost of quality.

Apply language text normalizationon or offoff

This parameter controls language text normalization.

Every API field of ElevenLabs v4 Text to Speech is on its tool page: open its card above.

What can you do with ElevenLabs v4 Text to Speech in Muse Code?

Turn project documentation and scripts into narrated demos, lessons, or character recordings with Eleven v4. A coding agent can prepare spoken copy from project files and divide long scripts into passages below 10,000 characters.

Audiobook passages

Narrate fiction with changes in emotion between scenes. Split longer chapters into passages below 10,000 characters.

Game character lines

Record quest introductions, warnings, and reactions. Put delivery directions beside the lines that need them.

Animation voiceovers

Generate separate character takes for an animated scene, then review each performance against the script.

Product walkthrough narration

Turn a demonstration script into spoken instructions. Audition product names before generating the full narration.

Multilingual explainers

Narrate approved translations as separate English, Spanish, French, or Japanese recordings. Review accent and pronunciation in each language.

Audio editions of updates

Turn an approved newsletter or product update into a spoken edition, with short sections and restrained delivery.

Training narration

Create spoken lessons from approved instructional scripts. Test technical terms in a short sample before recording each lesson.

ElevenLabs v4 Text to Speech success rate and speed on Spiral

Success and speed over the last 24 hours, across every run of these tools on Spiral.

Success rate
99.9%
Fastest median run time
3.4s
Runs, last 24 hours
3,508
ToolSuccessMedian timeRuns
ElevenLabs v4 Text to Speech99.9%3.4s3,508

Questions about ElevenLabs v4 Text to Speech in Muse Code

Can Muse Code use ElevenLabs v4 Text to Speech?

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run ElevenLabs v4 Text to Speech like any built-in tool.

How much does ElevenLabs v4 Text to Speech cost in Muse Code?

$0.104 per 1,000 characters of text. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Muse Code plan is separate.

Do I need an ElevenLabs account to use ElevenLabs v4 Text to Speech in Muse Code?

No. Spiral runs ElevenLabs v4 Text to Speech on its own ElevenLabs account. You sign in to Spiral once and never paste a key.

How long does it take to set up ElevenLabs v4 Text to Speech in Muse Code?

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

Does Muse Code wait while ElevenLabs v4 Text to Speech runs?

ElevenLabs v4 Text to Speech runs in the background. Muse Code starts the run, checks on it and gives you the audio when it's ready.

What is Eleven v4 best for?

Expressive narration, audiobooks, and character voiceovers for games or animation. It is the content-focused choice compared with Eleven v4 Turbo, which targets real-time conversation.

How much text can Eleven v4 read at once?

Up to 10,000 characters per generation. ElevenLabs estimates roughly 10 minutes of audio at that length; treat that as an estimate, not a fixed runtime.

Which languages does Eleven v4 support?

More than 90, including English, Spanish, French, German, Japanese, Hindi, and Arabic. When you change the language, do not assume the reference voice's original accent will carry over.

How do I direct emotion and pauses?

Place short directions such as [curious], [whispers], or [sighs] where the delivery should change. Use ellipses and sentence structure for pacing; Eleven v4 does not support SSML.

Which voice settings matter most?

Lower stability allows more varied delivery; higher stability keeps the performance more consistent. Higher similarity holds closer to the reference voice, potentially sacrificing some naturalness.

Get started

Start using ElevenLabs v4 Text to Speech in Muse Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Muse Code:

Set up Muse Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options