Skip to main content

Crate pipecrab_tts_sherpa

Crate pipecrab_tts_sherpa 

Source
Expand description

Sherpa ONNX Kokoro text-to-speech behind pipecrab’s Synthesizer protocol.

SherpaTts owns Sherpa’s offline TTS engine on a dedicated actor thread and streams each generated sentence to the caller as it is produced, so playback of a long reply starts after its first sentence and a barge-in cancel stops the engine within one sentence. KokoroConfig names the Kokoro model files.

Structs§

KokoroConfig
Configuration for a Kokoro SherpaTts.
SherpaTts
A worker-backed Sherpa ONNX offline text-to-speech engine.

Enums§

SherpaTtsBuildError
Why a Sherpa TTS worker could not be constructed.

Traits§

Backend
The serialized synthesis operation used by the Sherpa TTS actor.

Type Aliases§

Emit
The waveform-segment consumer a Backend::generate call feeds.