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

VS Code · AudioReleased 2023-08-22

How to Use Eleven Multilingual v2 in VS Code

Eleven Multilingual v2 turns written scripts into speech for audiobooks, explainers, and other narration. Its strengths are consistent delivery over long passages and support for 29 languages, with up to 10,000 characters per generation.

Prompts to try with Eleven Multilingual v2 in VS Code

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

Use Eleven Multilingual v2 to narrate a beginner walkthrough based on this project's README. Draft a script under 4,000 characters, expand technical abbreviations for speech, and generate it at normal speed.

Eleven Multilingual v2VS Code
Try asking
  • Turn this project's latest changelog into a spoken release summary with Eleven Multilingual v2. Keep it under 2,000 characters, explain changes in user terms, and exclude commit hashes and Markdown syntax.

  • Use Eleven Multilingual v2 to generate narration from the approved Spanish tutorial script in this project. Choose a native Spanish voice and keep each generation below 10,000 characters.

  • Prepare the project's onboarding guide for narration with Eleven Multilingual v2. Remove code blocks, describe the essential actions in plain English, and generate separate sections under 5,000 characters each.

  • Use Eleven Multilingual v2 to make two readings of the first paragraph in this project's demo script. Keep the voice and speed fixed, compare stability at 0.4 and 0.6, and leave style exaggeration at zero.

How to set up Eleven Multilingual v2 in VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS 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 Eleven Multilingual v2

    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_multilingual_v2",
        "input": {
          "text": "<text>",
          "voice_id": "<voice_id>"
        }
      }'

Then paste one of the prompts above: VS Code finds Eleven Multilingual v2 on Spiral, shows the price and runs it.

Eleven Multilingual v2 providers and prices

Spiral runs Eleven Multilingual v2 through ElevenLabs. Open a card for today's price, with every fee included.

ElevenLabsAudio

Settings you can ask for

Eleven Multilingual v2 works from your text, next text, and previous text. Ask VS 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 Multilingual v2 Text to Speech is on its tool page: open its card above.

What can you do with Eleven Multilingual v2 in VS Code?

Create spoken tutorials, release summaries, and documentation narration from project files with Eleven Multilingual v2. Have the coding agent prepare readable scripts and divide long passages before generating audio.

Audiobook narration

Turn a finished manuscript into narrated sections. Keep the same voice throughout and split chapters into passages below 10,000 characters.

Product tutorial voiceovers

Narrate a walkthrough from an approved script. Write button labels and technical abbreviations as they should sound when spoken.

Localized training lessons

Generate separate recordings from approved English, Spanish, French, or Japanese lesson scripts. Choose a voice native to each target language.

Article audio editions

Make spoken editions of written articles for people who prefer listening. Remove navigation text and production notes before generating the narration.

Narrated weekly briefings

Turn an edited weekly summary into a spoken briefing. Expand dates and acronyms before recording and keep delivery settings consistent across editions.

Museum and walking tour narration

Create separate spoken scripts for tour stops in supported languages. Preview place names and use occasional short pauses between ideas.

Questions about Eleven Multilingual v2 in VS Code

Can VS Code use Eleven Multilingual v2?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Eleven Multilingual v2 like any built-in tool.

How much does Eleven Multilingual v2 cost in VS 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 VS Code plan is separate.

Do I need an ElevenLabs account to use Eleven Multilingual v2 in VS Code?

No. Spiral runs Eleven Multilingual v2 on its own ElevenLabs account. You sign in to Spiral once and never paste a key.

How long does it take to set up Eleven Multilingual v2 in VS Code?

About two minutes: add the hosted server, then sign in.

Does VS Code wait while Eleven Multilingual v2 runs?

Eleven Multilingual v2 runs in the background. VS Code starts the run, checks on it and gives you the audio when it's ready.

What is Eleven Multilingual v2 good at?

It suits audiobooks, voiceovers, and narration that needs consistent delivery over long passages. ElevenLabs highlights its stability on long-form generations.

How much speech can Eleven Multilingual v2 generate at once?

The limit is 10,000 characters per generation, which ElevenLabs estimates at roughly 10 minutes of audio. Actual duration depends on the script and speaking speed.

Which languages does Eleven Multilingual v2 support?

It supports 29 languages, including English, Spanish, French, German, Japanese, Chinese, Hindi, Arabic, and Portuguese. Choose a voice native to the target language when accent matters.

How do I fix an unusual name or acronym?

Try a phonetic spelling for a difficult name. Write acronyms, dates, and numbers the way you want them spoken; phoneme tags are not supported.

How do I control pauses and speaking speed?

Use break tags sparingly for pauses of up to three seconds. Adjust speaking speed for the overall pace, then listen to the result before trying a larger change.

Get started

Start using Eleven Multilingual v2 in VS Code

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

Paste this into VS Code:

Set up VS Code

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