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

opencode · Audio

How to Use Kokoro French in opencode

Kokoro French turns French scripts into spoken audio for lessons, explainers, and narration. Start with moderate passages, since very short clips can sound weak and long passages can rush.

Prompts to try with Kokoro French in opencode

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

Use Kokoro French to narrate the French getting-started guide in this project. Adapt code blocks into brief spoken explanations and save one recording per complete section with its transcript.

Kokoro Frenchopencode
Try asking
  • Read this project's latest release notes, write a concise French overview of the changes users will notice, and generate the narration with Kokoro French. Save the script beside the audio.

  • Use Kokoro French to create narration for the tutorial in this repository. Draft the French script first, then generate each lesson section separately.

  • Turn the French product copy in this project into a spoken feature walkthrough using Kokoro French. Keep the explanation focused on the features the copy actually describes.

  • Use Kokoro French to make two readings of the French onboarding script in this project: one at the usual pace and one slightly slower. Save both with clear filenames for review.

How to set up Kokoro French in opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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 Kokoro French

    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/kokoro/french",
        "input": {
          "prompt": "La seule limite à nos réalisations de demain, ce sont nos doutes d’aujourd’hui.",
          "voice": "ff_siwis"
        }
      }'

Then paste one of the prompts above: opencode finds Kokoro French on Spiral, shows the price and runs it.

Kokoro French providers and prices

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

falAudio
Kokoro TTS (French)
fal-ai/kokoro/french

Settings you can ask for

Kokoro French works from your prompt. Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Speed0.1 to 51

Speed of the generated audio. Default is 1.0.

Every API field of Kokoro TTS (French) is on its tool page: open its card above.

What can you do with Kokoro French in opencode?

Create French narration from your project's documentation, tutorials, and release notes. Have the coding agent prepare spoken scripts and keep each recording paired with its source text.

French lesson readings

Turn a lesson's example sentences into a connected reading that students can replay alongside the transcript.

Spoken article summaries

Prepare a French summary of an article, then generate a narrated version for listeners.

Product explainer narration

Write a French explanation of one product feature and generate speech to accompany a demonstration.

Employee onboarding lessons

Convert approved French onboarding material into separate narrated lessons organized by topic.

Museum audio descriptions

Generate a French reading of an exhibit description, keeping each exhibit's script and audio together.

Daily spoken briefings

Summarize approved updates in French and generate a spoken briefing with a matching transcript.

Documentation narration

Adapt French help content into spoken explanations, with one recording for each complete procedure.

Questions about Kokoro French in opencode

Can opencode use Kokoro French?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Kokoro French like any built-in tool.

How much does Kokoro French cost in opencode?

Each item in `prompt` adds $0.026. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need a fal account to use Kokoro French in opencode?

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

How long does it take to set up Kokoro French in opencode?

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

Does opencode wait while Kokoro French runs?

Kokoro French runs in the background. opencode starts the run, checks on it and gives you the audio when it's ready.

What can I make with Kokoro French?

Use it to turn French text into speech. Suggested projects include narrated lessons, article readings, product explanations, and spoken briefings.

How much text should I generate at once?

The maker recommends roughly 100–200 tokens for most voices. Treat that as a starting point for passage length, rather than a word count or a guaranteed maximum.

Why can a very short clip sound weak?

The maker reports weaker results on very short utterances, especially below 10–20 tokens. Try generating related sentences together instead of producing each tiny phrase separately.

How can I reduce rushed narration?

Split long passages into shorter sections and try a slower speaking pace. The maker specifically flags rushing above 400 tokens.

What audio sample rate does Kokoro use?

The maker's reference implementation produces 24 kHz audio and demonstrates saving it as WAV.

Get started

Start using Kokoro French in opencode

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

Paste this into opencode:

Set up opencode

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