[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Kokoro TTS Spanish](https://spiral.ai/integrations/opencode/kokoro-tts-spanish)

# How to Use Kokoro TTS Spanish in opencode

Kokoro TTS Spanish turns Spanish scripts into spoken audio for lessons, explainers, and narrated updates. It targets Latin American and European Spanish; use moderate-length passages and check pacing before publishing.

|  |  |
| --- | --- |
| Model | Kokoro TTS Spanish |
| Available through | fal |
| Category | Audio |
| Price | Each item in `prompt` adds $0.026. |
| Returns | audio |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Kokoro TTS Spanish in opencode

- Use Kokoro TTS Spanish to narrate the Spanish onboarding guide in this project. Separate editorial notes from spoken text, divide the script into moderate-length passages, and save recordings in guide order.
- Read the Spanish tutorial scripts in this repository and use Kokoro TTS Spanish to generate narration at normal speed. Create a manifest linking each recording to its source section and measured duration.
- Use Kokoro TTS Spanish to create two readings of the first Spanish lesson in this project: normal speed and slightly slower. Keep the wording identical so I can compare pacing.
- Prepare Spanish narration for the demo storyboard in this project using Kokoro TTS Spanish. Generate each scene separately, measure its audio, and flag scenes whose narration exceeds the storyboard's allotted time.
- Use Kokoro TTS Spanish to record the updated Spanish help articles in this repository. Split long explanations at section boundaries and produce a review checklist for names, technical terms, and pacing.

## How to set up Kokoro TTS Spanish 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Kokoro TTS Spanish**: One request; the result comes back by polling or a webhook.

```bash
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/spanish",
    "input": {
      "prompt": "La vida es un viaje, no un destino. Disfruta cada momento y sigue adelante con pasión.",
      "voice": "ef_dora"
    }
  }'
```

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

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Kokoro TTS Spanish tools and prices

- [Kokoro TTS (Spanish)](https://spiral.ai/tools/fal/fal-ai/kokoro/spanish) (fal): $0.026 per 1,000 characters of `prompt`. Rounded up to the next 1,000 characters, minimum 1,000.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| speed | 0.1 to 5 | 1 | Speed of the generated audio. Default is 1.0. |

## What can you do with Kokoro TTS Spanish in opencode?

Add Spanish narration to project tutorials, help content, and demo recordings. A coding agent can prepare scripts from project files, organize passages, and measure the resulting audio.

### Spanish tutorial narration

Turn a product walkthrough into Spanish narration. Generate one section at a time and measure each recording before matching it to the screen recording.

### Spoken newsletters

Offer an audio edition of a Spanish newsletter. Divide the script by topic so listeners can move between updates.

### Lesson audio

Record Spanish explanations for course modules. Compare normal and slightly slower speech on one passage before producing the remaining lessons.

### Help article recordings

Create spoken editions of Spanish help articles. Keep each troubleshooting procedure in a separate recording for easier review and replacement.

### Museum and exhibit guides

Produce Spanish narration for individual exhibits. Preview names and specialized terms before approving the complete guide.

### Recurring audio briefings

Convert an approved Spanish summary into a spoken daily or weekly briefing. Keep the sections short enough to review independently.

### Explainer voiceover drafts

Test a Spanish explainer script against a video edit. Generate a draft, measure its duration, and revise the wording before producing the final recording.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Kokoro TTS Spanish in other agents

- [Amp](https://spiral.ai/integrations/amp/kokoro-tts-spanish)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/kokoro-tts-spanish)
- [Claude](https://spiral.ai/integrations/claude-desktop/kokoro-tts-spanish)
- [Claude Code](https://spiral.ai/integrations/claude-code/kokoro-tts-spanish)
- [Cline](https://spiral.ai/integrations/cline/kokoro-tts-spanish)
- [Codex](https://spiral.ai/integrations/codex/kokoro-tts-spanish)
- [Cursor](https://spiral.ai/integrations/cursor/kokoro-tts-spanish)
- [Devin](https://spiral.ai/integrations/devin/kokoro-tts-spanish)
- [dots](https://spiral.ai/integrations/dots/kokoro-tts-spanish)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/kokoro-tts-spanish)
- [Gemini](https://spiral.ai/integrations/gemini/kokoro-tts-spanish)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/kokoro-tts-spanish)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/kokoro-tts-spanish)
- [goose](https://spiral.ai/integrations/goose/kokoro-tts-spanish)
- [Grok](https://spiral.ai/integrations/grok/kokoro-tts-spanish)
- [Grok Build](https://spiral.ai/integrations/grok-build/kokoro-tts-spanish)
- [Hermes](https://spiral.ai/integrations/hermes/kokoro-tts-spanish)
- [Instinct](https://spiral.ai/integrations/instinct/kokoro-tts-spanish)
- [Manus](https://spiral.ai/integrations/manus/kokoro-tts-spanish)
- [Muse](https://spiral.ai/integrations/muse/kokoro-tts-spanish)
- [Muse Code](https://spiral.ai/integrations/muse-code/kokoro-tts-spanish)
- [n8n](https://spiral.ai/integrations/n8n/kokoro-tts-spanish)
- [Notion](https://spiral.ai/integrations/notion/kokoro-tts-spanish)
- [OpenClaw](https://spiral.ai/integrations/openclaw/kokoro-tts-spanish)
- [Perplexity](https://spiral.ai/integrations/perplexity/kokoro-tts-spanish)
- [Raycast](https://spiral.ai/integrations/raycast/kokoro-tts-spanish)
- [VS Code](https://spiral.ai/integrations/vscode/kokoro-tts-spanish)
- [Windsurf](https://spiral.ai/integrations/windsurf/kokoro-tts-spanish)
- [Zapier](https://spiral.ai/integrations/zapier/kokoro-tts-spanish)

## More opencode guides

- [Kokoro Mandarin Chinese](https://spiral.ai/integrations/opencode/kokoro-mandarin-chinese)
- [Kotoba STT](https://spiral.ai/integrations/opencode/kotoba-stt)
- [Kokoro Japanese](https://spiral.ai/integrations/opencode/kokoro-japanese)
- [Lyria 3](https://spiral.ai/integrations/opencode/lyria-3)
- [Kokoro Italian](https://spiral.ai/integrations/opencode/kokoro-italian)
- [Lyria 3 Pro](https://spiral.ai/integrations/opencode/lyria-3-pro)

## Questions about Kokoro TTS Spanish in opencode

**Can opencode use Kokoro TTS Spanish?**

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

**How much does Kokoro TTS Spanish 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 TTS Spanish in opencode?**

No. Spiral runs Kokoro TTS Spanish 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 TTS Spanish in opencode?**

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

**Does opencode wait while Kokoro TTS Spanish runs?**

Kokoro TTS Spanish 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 TTS Spanish?**

It converts Spanish text into speech. Suggested uses include narrated tutorials, spoken newsletters, lesson audio, and voiceovers for explainers.

**Does Kokoro TTS Spanish support Spanish from Spain and Latin America?**

The Spanish endpoint is described as optimized for both Latin American and European Spanish. Preview a passage with your audience's vocabulary before recording a full script.

**How long should each passage be?**

The maker recommends roughly 100 to 200 tokens for most Kokoro voices. Treat that as a quality target, not a word count or the Spanish endpoint's maximum input length.

**Why does a long narration sound rushed?**

The maker reports rushing on passages above 400 tokens. Split the script into shorter passages or try a slower speech speed, then compare the results.

**How much text makes one minute of speech?**

The maker estimates about 1,000 characters per minute on average. Use that to draft your script, then measure the generated audio before matching it to a video.

