pub struct KokoroTts {
jobs: Option<UnboundedSender<Job>>,
worker: Mutex<Option<JoinHandle<()>>>,
}Expand description
A loaded Kokoro-82M pipeline. One render thread per engine, so a second utterance queues behind the first; the thread owns the ONNX session and the runtime the engine’s async API needs.
Kokoro renders a whole clip, so one speak answers one chunk.
Fields§
§jobs: Option<UnboundedSender<Job>>§worker: Mutex<Option<JoinHandle<()>>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for KokoroTts
impl RefUnwindSafe for KokoroTts
impl Send for KokoroTts
impl Sync for KokoroTts
impl Unpin for KokoroTts
impl UnsafeUnpin for KokoroTts
impl UnwindSafe for KokoroTts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more