pub struct Voice {
pub id: String,
pub name: String,
pub gender: Gender,
pub provider: String,
pub language_codes: Vec<LanguageCode>,
}Expand description
A single voice offered by an engine, unified across all providers.
Mirrors Swift’s UnifiedVoice.
Fields§
§id: StringUnique voice identifier within the engine.
name: StringHuman-readable voice name.
gender: GenderGender of the voice.
provider: StringThe engine/provider that provides this voice (e.g. "azure", "google").
language_codes: Vec<LanguageCode>Language codes supported by this voice.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Voice
impl RefUnwindSafe for Voice
impl Send for Voice
impl Sync for Voice
impl Unpin for Voice
impl UnsafeUnpin for Voice
impl UnwindSafe for Voice
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