text_to_speech
Converts any text into spoken audio and saves it as a WAV, M4A, or AIFF file using local Ollama speech models, fully offline. Choose a voice, strip markdown, and write straight to disk without playback.
Instructions
Convert text to speech and save it as an audio file, fully offline. Does not play it.
Args:
text: The text to turn into speech. Any length.
voice: Voice name, case-insensitive (e.g. "Zoey", "Hugh"). See list_voices.
output_path: Where to save. Relative paths are resolved against the output directory
(default ~/Desktop). If omitted, a timestamped name is used.
format: "wav" (default), "m4a" (AAC, much smaller) or "aiff". If omitted, it is taken
from output_path's extension.
model: Ollama speech model tag. Defaults to the configured model.
strip_markdown: Remove code blocks, links and markdown markers before speaking.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "text_to_speech"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | No | ||
| voice | No | ||
| format | No | ||
| output_path | No | ||
| strip_markdown | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |