pub struct Synthesizer { /* private fields */ }Expand description
Provides the common speech synthesis API shared across different kinds of synthesizers.
Implementations§
Source§impl Synthesizer
impl 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.
Auto Trait Implementations§
impl Freeze for Synthesizer
impl RefUnwindSafe for Synthesizer
impl Send for Synthesizer
impl Sync for Synthesizer
impl Unpin for Synthesizer
impl UnsafeUnpin for Synthesizer
impl UnwindSafe for Synthesizer
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