pub struct AsyncSynthesizer { /* private fields */ }Expand description
A speech synthesizer that returns a future for every speech it renders.
Implementations§
Methods from Deref<Target = Synthesizer>§
Sourcepub fn set_output(
&self,
output: SpeechOutput,
allow_fmt_changes: bool,
) -> Result<()>
pub fn set_output( &self, output: SpeechOutput, allow_fmt_changes: bool, ) -> Result<()>
Configures the synthesizer to render its speech to the given output destination.
Sourcepub fn voice(&self) -> Result<Voice>
pub fn voice(&self) -> Result<Voice>
Returns the default voice this synthesizer will use to render speech.
Sourcepub fn set_rate<R: Into<Rate>>(&self, rate: R) -> Result<()>
pub fn set_rate<R: Into<Rate>>(&self, rate: R) -> Result<()>
Sets the default rate of speech for this synthesizer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncSynthesizer
impl RefUnwindSafe for AsyncSynthesizer
impl Send for AsyncSynthesizer
impl Sync for AsyncSynthesizer
impl Unpin for AsyncSynthesizer
impl UnwindSafe for AsyncSynthesizer
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