Speak
speakSynthesize any text into natural speech and play it locally. Converts written content into audio using the Kokoro-82M model, supporting adjustable speed and voice selection for clear vocal output.
Instructions
Synthesize speech with Kokoro-82M and play it on the user's machine. Call this when the user wants the harness to talk, read something aloud, or hear a spoken response. Always pass clear, natural text to speak. Default voice resolution: TTS_VOICE env var, voices/default* in the package, first file in voices/, then the bundled af_heart voice from the model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| speed | No | ||
| voice | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |