text_to_speech
Convert text or notes files into natural MP3 speech. Submit content, get a job ID, and use it to check status for the finished audio.
Instructions
Convert text to natural speech audio using Kokoro TTS. Saves an MP3 file. Runs in background — returns a job_id immediately. Call again with job_id to check status. Pass text for raw TTS, or file_path to read a notes file (strips markdown, skips metadata, embeds audio player).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Text to convert to speech. Either text or file_path is required. | |
| speed | No | Speech speed multiplier. Default: 1.0 | |
| voice | No | Voice ID. American English female: af_heart (default), af_alloy, af_aoede, af_bella, af_jessica, af_kore, af_nicole, af_nova, af_river, af_sarah, af_sky. American English male: am_adam, am_echo, am_eric, am_fenrir, am_liam, am_michael, am_onyx, am_puck. British English: bf_emma, bf_isabella, bf_lily, bm_daniel, bm_fable, bm_george, bm_lewis. Other languages: Spanish (ef_dora, em_alex), French (ff_siwis), Hindi (hf_alpha, hf_beta, hm_omega, hm_psi), Italian (if_sara, im_nicola), Japanese (jf_alpha, jf_gongitsune, jf_nezumi, jf_tebukuro, jm_kumo), Brazilian Portuguese (pf_dora, pm_alex), Mandarin Chinese (zf_xiaobei, zf_xiaoni, zf_xiaoxiao, zf_xiaoyi, zm_yunjian, zm_yunxi, zm_yunxia, zm_yunyang). | |
| job_id | No | Check status of a running TTS job. Pass the job_id returned from a previous call. | |
| file_path | No | Path to a notes file to read aloud. Strips markdown formatting, skips metadata, generates MP3, and embeds audio player in the file. | |
| output_dir | No | Directory to save the MP3 file. Default: ~/Desktop | |
| output_filename | No | Custom filename. Auto-generated if not set. |