Audio version — Estimated duration: 3 min 25 sec

Both tts_pipeline.py and tts_single.py share the same backend flags.

Common flags

FlagDefaultDescription
--voiceen-US-JennyNeuraledge-tts voice / Piper voice name
--modelgpt-oss-120bCerebras model (ignored when --llm local)
--localShorthand: --llm local --tts local
--online— (default)Shorthand: --llm online --tts online
--llmonlineLLM backend: online (Cerebras) / local (llama.cpp)
--ttsonlineTTS backend: online (edge-tts) / local (Piper)
--cpuForce CPU for Piper (default: GPU)
--gpuExplicitly use GPU for Piper (default)
--promptExtra instruction appended to the system prompt

Pipeline-only flags

FlagDefaultDescription
--dir.Root directory to scan for .md files

Single-file-only arguments

ArgumentDescription
filePath to the .md file (positional, required)

Precedence

--local / --online are overridden by --llm / --tts if provided.

--local          → llm=local, tts=local
--local --tts online → llm=local, tts=online

Piper voice names

Default: en_US-hfc_female-medium

Other options: en_US-lessac-medium, en_US-danny-low, etc. Auto-downloaded from Hugging Face on first use.

edge-tts voice names

Any Microsoft neural voice: en-US-JennyNeural, en-GB-SoniaNeural, en-US-AriaNeural, etc.