pub struct SyncSynthesizer { /* private fields */ }
Expand description
A speech synthesizer that blocks the current thread while rendering speech.
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 SyncSynthesizer
impl RefUnwindSafe for SyncSynthesizer
impl Send for SyncSynthesizer
impl Sync for SyncSynthesizer
impl Unpin for SyncSynthesizer
impl UnwindSafe for SyncSynthesizer
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