tts
Generate podcast audio from script files using local Kokoro TTS
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate podcast audio from script files using local Kokoro TTS
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Evaluate quiz answer rationale and provide Socratic coaching feedback
Look up relevant research content to support coaching during quiz or teach-back sessions
Evaluate teach-back explanations and identify knowledge gaps
| name | tts |
| description | Generate podcast audio from script files using local Kokoro TTS |
Convert a podcast script markdown file into MP3 audio using the locally installed Kokoro TTS CLI.
{{SCRIPT_PATH}} -- absolute path to the podcast script markdown file{{OUTPUT_PATH}} -- absolute path for the output MP3 (should be in podcasts/audio/)Read the script at {{SCRIPT_PATH}} and parse its contents.
Identify speakers. Lines prefixed with HOST: belong to the host speaker. Lines prefixed with EXPERT: belong to the expert speaker.
Attempt two-voice generation. Split the script into two temporary text files:
host_lines.txt -- contains only the HOST dialogue (strip the HOST: prefix)expert_lines.txt -- contains only the EXPERT dialogue (strip the EXPERT: prefix)Generate audio for each voice separately.
If model files are available in the project root, pass --model and --voices flags. Otherwise let kokoro-tts use defaults:
kokoro-tts host_lines.txt host.mp3 --format mp3 --voice af_heart --speed 1.0 --lang en-us
kokoro-tts expert_lines.txt expert.mp3 --format mp3 --voice am_adam --speed 0.95 --lang en-us
Fallback: single-voice generation. If splitting by speaker is not practical (e.g., the script has no speaker prefixes, or interleaving the two audio tracks is not feasible), generate the full script as one file:
kokoro-tts script.txt output.mp3 --format mp3 --voice af_heart --speed 1.0 --lang en-us
Place the final MP3 at {{OUTPUT_PATH}}. Ensure the parent directory exists before writing.
Clean up any temporary text files created during the process.
| Speaker | Voice ID | Speed | Language |
|---|---|---|---|
| HOST | af_heart | 1.0 | en-us |
| EXPERT | am_adam | 0.95 | en-us |
kokoro-tts is not found on PATH, report the error clearly and do not attempt alternative TTS tools.