Skip to content

ymainier/speak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

speak

A command-line text-to-speech tool powered by Kokoro. Pipe text via stdin and hear it spoken aloud.

Usage

echo "Hello, world!" | ./main.py

Options

-s, --speed SPEED    Speech speed (default: 1.0)
-l, --lang LANG      Language code (default: a)
-v, --voice VOICE    Voice name (default: first voice for language)
--list-voices        List available voices and exit

Examples

# Speak faster with a specific voice
echo "Good morning!" | ./main.py -s 1.5 -v af_bella

# Use British English
echo "Cheerio!" | ./main.py -l b

# List all available voices
./main.py --list-voices

# List voices for a specific language
./main.py -l j --list-voices

Languages

Code Language
a American English
b British English
j Japanese
z Mandarin Chinese
e Spanish
f French
h Hindi
i Italian
p Brazilian Portuguese

Requirements

  • Python 3.11+
  • uv

Dependencies (kokoro, sounddevice) are managed automatically via uv.

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages