voice-0.3.0 is not a library.
Visit the last successful build:
voice-0.1.4
voice
Like say, but with Kokoro. A command-line TTS tool for macOS powered by MLX.
Install
This puts the voice binary on your $PATH.
Usage
# Just talk
# Pick a voice
# Pipe text in
|
# Read from a file
# Save to WAV instead of playing
# Adjust speed
# Raw phonemes (advanced)
Options
Usage: voice [OPTIONS] [TEXT]...
Arguments:
[TEXT]... Text to speak
Options:
-f, --input-file <FILE> Read text from a file (use - for stdin)
--phonemes <IPA> Raw phoneme string (IPA)
-v, --voice <VOICE> Voice name [default: af_heart]
-o, --output <PATH> Write WAV to file instead of playing
-s, --speed <SPEED> Speech speed factor [default: 1.0]
-h, --help Print help
If no text, --phonemes, or -f is given, reads from stdin.
Voices
American: af_heart, af_bella, af_nicole, af_sarah, af_sky, am_adam, am_michael
British: bf_emma, bf_isabella, bm_george, bm_lewis
See the full list in the main README.
License
MIT