#[non_exhaustive]pub enum Parameter {
Rate,
Volume,
Pitch,
Range,
Punctuation,
Capitals,
WordGap,
}Expand description
Speech parameters, mirroring espeak_PARAMETER from speak_lib.h.
Pass to EspeakNg::set_parameter / EspeakNg::get_parameter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Rate
Speaking rate in words-per-minute (80–450, default 175).
C: espeakRATE
Volume
Output volume (0–200, default 100). 0 = silence.
C: espeakVOLUME
Pitch
Base pitch (0–100, default 50).
C: espeakPITCH
Range
Pitch range / intonation depth (0–100, default 50). 0 = monotone.
C: espeakRANGE
Punctuation
Punctuation announcement mode.
C: espeakPUNCTUATION
Capitals
Capital-letter announcement (0 = none, 1 = sound, 2 = spell, ≥3 = pitch raise in Hz).
C: espeakCAPITALS
WordGap
Pause between words, in units of 10 ms.
C: espeakWORDGAP
Trait Implementations§
impl Copy for Parameter
impl Eq for Parameter
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnsafeUnpin for Parameter
impl UnwindSafe for Parameter
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