voice-0.3.2 is not a library.
Visit the last successful build:
voice-0.1.4
voice
Like say, but with Kokoro TTS and Moonshine STT. A command-line speech tool for macOS, powered by MLX on Apple Silicon.
Install
Build from source (requires Git LFS for embedded voice/model data):
# Install git-lfs if you don't have it
# Clone and build
Note:
cargo install voiceis the package name on crates.io, but building from source is recommended — see the main README for details on why.
Usage
# Just talk (backward compatible — no subcommand needed)
# Text-to-speech with the say subcommand
|
# Speech-to-text from microphone
# Transcribe an audio file
# JSON-RPC 2.0 server on stdin/stdout
Options
Top-level
Usage: voice [OPTIONS] [COMMAND] [TEXT]...
Commands:
say Speak text aloud (default when no subcommand given)
listen Record from microphone and transcribe (speech-to-text)
transcribe Transcribe a WAV audio file
serve Run as a JSON-RPC 2.0 server on stdin/stdout
Arguments:
[TEXT]... Text to speak (shorthand for `voice say <text>`)
Options:
-q, --quiet Suppress progress output
-h, --help Print help
voice say
Usage: voice say [OPTIONS] [TEXT]...
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]
--markdown Strip markdown/MDX formatting before speaking
--sub <WORD=REPLACEMENT> Word substitution (repeatable)
--sub-file <PATH> Load substitutions from a file
voice listen
Usage: voice listen [OPTIONS]
Options:
--continuous Record and transcribe segments continuously
voice transcribe
Usage: voice transcribe <FILE>
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