pub enum TtsMode {
RestApi {
server_url: String,
voice: Option<String>,
backend: Option<String>,
quality: Option<String>,
format: Option<String>,
sample_rate: Option<u32>,
volume: Option<f32>,
},
Command {
tts_command: String,
tts_args: Vec<String>,
},
}Expand description
TTS backend configuration
Variants§
RestApi
Use REST API for TTS with advanced neural voices
Fields
Command
Use local command-line TTS programs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TtsMode
impl RefUnwindSafe for TtsMode
impl Send for TtsMode
impl Sync for TtsMode
impl Unpin for TtsMode
impl UnwindSafe for TtsMode
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