pocket_tts

Run offline text-to-speech with PocketTTS using zero-shot voice cloning from a reference audio file.

Source file

rust-api-examples/examples/pocket_tts.rs

How to run

The recommended way is to use the helper script(s) provided in rust-api-examples because they download or point to the required models and test files automatically when needed.

Helper script(s)

run-pocket-tts.sh

./run-pocket-tts.sh

Run it directly with Cargo

cargo run --example pocket_tts