Give each AI agent a distinct voice using Kokoro TTS — a lightweight 82M parameter model that runs locally with zero API costs. 54 voices across American, British, and other accents.
AGENT_VOICES = {
"loki": "am_fenrir", # Deep, authoritative
"archie": "bm_george", # British analytical
"sara": "af_bella", # Warm, creative
"kit": "am_echo", # Clear, technical
"liv": "af_nova", # Bright, energetic
"belle": "bf_emma", # Refined, thoughtful
}
python3 scripts/speak.py --agent loki "System check complete"
python3 scripts/speak.py --voice af_bella "Hello world" --output /tmp/greeting.wav
python3 scripts/speak.py --list-voices # Show all 54 voices
python3 scripts/speak.py --list-agents # Show configured agent profiles
Requires a Python environment with kokoro, soundfile, and espeak-ng installed. The model downloads automatically from Hugging Face on first use (~350MB).
scripts/speak.py — TTS script with agent profiles and voice selection共 2 个版本