pub struct EdgeTts;Expand description
A stateless Edge-TTS engine.
Construct EdgeTts (a unit struct) and call Engine::synthesize.
Each call opens its own WebSocket; there is no connection reuse.
use kothok_edge_tts::Engine;
kothok_edge_tts::init_tls();
let events = kothok_edge_tts::EdgeTts
.synthesize("Hello world.", "en-US-EmmaMultilingualNeural", "+0%", "en-US")
.await?;Trait Implementations§
Auto Trait Implementations§
impl Freeze for EdgeTts
impl RefUnwindSafe for EdgeTts
impl Send for EdgeTts
impl Sync for EdgeTts
impl Unpin for EdgeTts
impl UnsafeUnpin for EdgeTts
impl UnwindSafe for EdgeTts
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