How to Use Kokoro British English in opencode
Kokoro British English turns English scripts into speech with a British accent. Use it for narrated guides and articles, splitting long scripts into passages to reduce rushed delivery.
Prompts to try with Kokoro British English in opencode
Copy an example into opencode, or ask in your own words.
Use Kokoro British English to narrate the introduction in our README. First rewrite it as spoken English, show me the script, and generate the approved version in complete passages.
Use Kokoro British English to generate narration from our product demo script. Split it at sentence boundaries and save each recording beside its corresponding script section.
Use Kokoro British English to make two readings of the onboarding script: one at normal speed and one slightly slower. Keep the text identical for comparison.
Use Kokoro British English to narrate the latest changelog entry. Expand abbreviations in the draft script and leave out commit hashes and raw links.
Use Kokoro British English to regenerate only the passages changed in our tutorial script. Preserve a mapping between script sections and audio recordings.
How to set up Kokoro British English in opencode
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- 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
- 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
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Kokoro British English
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/british-english", "input": { "prompt": "Ladies and gentlemen, welcome aboard. Please ensure your seatbelt is fastened and your tray table is stowed as we prepare for takeoff.", "voice": "bf_alice" } }'
Then paste one of the prompts above: opencode finds Kokoro British English on Spiral, shows the price and runs it.
Kokoro British English providers and prices
Spiral runs Kokoro British English through fal. Open a card for today's price, with every fee included.
$0.026 per 1,000 characters of prompt. Rounded up to the next 1,000 characters, minimum 1,000.
Settings you can ask for
Kokoro British English works from your prompt. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Voice | bf_alice, bf_emma, bf_isabella, bf_lily, bm_daniel, bm_fable, bm_george, or bm_lewis | Voice ID for the desired voice. | |
| Speed | 0.1 to 5 | 1 | Speed of the generated audio. Default is 1.0. |
Every API field of Kokoro TTS (British English) is on its tool page: open its card above.
What can you do with Kokoro British English in opencode?
Add British English narration to product demos, documentation, and training material from your project's scripts. Have the agent prepare passages and track which recordings need replacing when the text changes.
Article narration
Turn an edited English article into British English narration. Generate it passage by passage and review the transitions before assembling the recording.
Product walkthroughs
Narrate a software demonstration from an approved script. Keep each section tied to one action so revisions require replacing only the affected passage.
Training lessons
Create spoken explanations for an internal course. Test a slower reading for dense sections and listen for rushed delivery before sharing.
Recurring spoken briefings
Convert an approved daily or weekly summary into British English audio. Keep the script organized into complete paragraphs rather than isolated headline fragments.
Museum and exhibition guides
Generate narration from edited exhibit descriptions. Produce a separate recording for each stop and check names before preparing the full tour.
Narration drafts for video editing
Create a spoken draft to test a video's pacing before locking the edit. Measure the generated recording instead of relying on a character-based duration estimate.
More on Kokoro British English and opencode
Overview
Kokoro British English in other agents
Questions about Kokoro British English in opencode
Can opencode use Kokoro British English?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Kokoro British English like any built-in tool.
How much does Kokoro British English 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 British English in opencode?
No. Spiral runs Kokoro British English 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 British English in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Kokoro British English runs?
Kokoro British English 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 British English?
Use it to narrate English articles, lessons, product walkthroughs, and spoken briefings with a British accent. Prepare the script first, then generate the narration.
How should I divide a long script?
The maker recommends roughly 100 to 200 tokens per passage for most voices. Split at sentence boundaries and keep related sentences together; tokens are not the same as words.
Why do short phrases or long passages sometimes sound worse?
The maker reports weaker results below roughly 10 to 20 tokens and rushed delivery above 400 tokens. Try combining short phrases into a passage or dividing long passages before generating again.
When should I change the speaking speed?
Try a slower setting when a passage sounds rushed, especially with longer text. Also test a shorter passage so you can judge whether changing the script division solves the problem.
Can I predict the recording length from my script?
The maker estimates about one minute of audio per 1,000 input characters on average. Generate a sample before planning a recording that must fit an exact time slot.
Start using Kokoro British English in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


