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

VS Code · Audio

How to Use Kling TTS in VS Code

Kling TTS turns short English or Chinese scripts into spoken audio for explainers, lessons, and announcements. Its 1,000-character text limit makes it a practical choice for narration produced one section at a time.

Prompts to try with Kling TTS in VS Code

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

Read README.md and draft an English introduction to this project under 800 characters. Use Kling TTS to generate the approved narration with an English voice at the default speaking rate, and save the script beside the audio.

Kling TTSVS Code
Try asking
  • Use the onboarding guide in this project to write one narration script per screen, each under 900 characters. Generate the recordings with Kling TTS using the same English voice throughout, and name them in screen order.

  • Turn the latest CHANGELOG.md entry into an English spoken update under 800 characters. Use Kling TTS to make the recording and keep technical identifiers out of the narration unless users need to hear them.

  • Review the tutorial text in docs and propose sentence-boundary splits of at most 900 characters. Generate each passage with Kling TTS using one English voice and the default speaking rate.

  • Find the Chinese dialogue strings for the opening scene in this project. Generate one recording per line with Kling TTS using a Chinese voice, exclude stage directions, and preserve a mapping from string IDs to audio.

How to set up Kling TTS 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 Kling TTS

    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": "fal",
        "model": "fal-ai/kling-video/v1/tts",
        "input": {
          "text": "Hello world! Kling TTS is available on FAL!"
        }
      }'

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

Kling TTS providers and prices

Spiral runs Kling TTS through fal. Open a card for today's price, with every fee included.

falAudio
Kling TTS · Text to Speech
fal-ai/kling-video/v1/tts

Settings you can ask for

Kling TTS works from your text. Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Voice IDgenshin_vindi2, zhinen_xuesheng, AOT, ai_shatang, genshin_klee2, genshin_kirara, ai_kaiya, oversea_male1 and 36 moregenshin_vindi2

The voice ID to use for speech synthesis

Voice speed0.8 to 21

Rate of speech

Every API field of Kling TTS · Text to Speech is on its tool page: open its card above.

What can you do with Kling TTS in VS Code?

Add spoken narration to project tutorials, help content, and game prototypes with Kling TTS. A coding agent can turn project text into scripts, check the 1,000-character limit, and organize recordings by section.

Product tutorial narration

Turn each step of a product walkthrough into a separate spoken passage. Keep each script within 1,000 characters and review the audio alongside the screen recording.

English and Chinese lesson excerpts

Create separate recordings of a short lesson in English and Chinese, using a voice appropriate to each language. Review the translated scripts before generating speech.

Spoken release notes

Rewrite a product update as a brief spoken summary, then generate its narration. Focus each recording on one change and what users can do with it.

Event announcements

Create spoken reminders with the event name, date, location, and next action. Write dates and times as you want them read aloud.

Help article audio excerpts

Make an audio version of a short help article or one section of a longer guide. Remove navigation labels and other text that does not belong in the narration.

Game dialogue drafts

Generate separate recordings of short character lines for a game prototype. Keep the script for each line separate from scene directions and review the delivery before using it.

Daily audio briefings

Convert a reviewed daily summary into short spoken sections. Keep each section under 1,000 characters and retain the written summary for reference.

Questions about Kling TTS in VS Code

Can VS Code use Kling TTS?

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

How much does Kling TTS cost in VS Code?

$0.0091 per generation. 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 a fal account to use Kling TTS in VS Code?

No. Spiral runs Kling TTS on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Kling TTS in VS Code?

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

Does VS Code wait while Kling TTS runs?

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

What is Kling TTS useful for?

Use Kling TTS to turn a finished script into spoken audio. Suggested projects include tutorial narration, lesson excerpts, announcements, and short product explainers.

How much text can Kling TTS read at once?

The documented limit is 1,000 characters per request. Count characters rather than words when preparing a script.

Which languages does Kling TTS support?

Kling documents Chinese and English. Choose a voice that supports the language of your script.

How should I prepare text for Kling TTS?

Treat the text as the script to be spoken: include the narration itself and keep production notes separate. As an editing practice, spell out abbreviations and numbers when their intended reading could be unclear.

Get started

Start using Kling TTS 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