Usage
Check out /examples directory for more examples.
// standard example
use fliters;
// Controlling the output stream. (i.e. playing and pausing)
use fliters;
use ;
Check out the make_waveform example to see how we go from
text -> 16-bit samples -> (time, amplitude) pairs -> wave form visualization in your terminal!
Tested on
- MacOS Sonoma 14.2
- Debian (bookworm)
Roadmap
- basic tts api
- control output stream with
play - optimize build (include only necessary c files)
- customize voice (defaults to slt right now)
- debian linux amd64 support
- jetson orin support
Installation
Linux Dependencies
On linux, rodio relies on cpal and cpal needs alsa development files to build.
You can see rodio's repo for more info.
crate
Add this to your cargo.toml:
fliters = "0.1.8"
If you install the crate, but encounter build errors, try to specify the repo as the dependency. Submit an issue in the meantime while I investigate.
fliters = { git = "https://github.com/jackycamp/flite-rs" }
Building
# clone the repository
# If you want the git submodules on first clone
# do the build
&&
# run an example