pub struct VoiceConfig {
pub enabled: bool,
pub voice_id: VoiceId,
pub input_device: Option<String>,
}Expand description
Per-agent voice I/O configuration (D1). Default = disabled so existing profiles continue to load unchanged.
Fields§
§enabled: boolWhether TTS (Kokoro) + STT (whisper.cpp) are enabled.
voice_id: VoiceIdKokoro voice identity for TTS output. Default: af_heart.
input_device: Option<String>Optional cpal input device name for mic capture. None means the OS default input device.
Trait Implementations§
Source§impl Clone for VoiceConfig
impl Clone for VoiceConfig
Source§fn clone(&self) -> VoiceConfig
fn clone(&self) -> VoiceConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VoiceConfig
impl Debug for VoiceConfig
Source§impl Default for VoiceConfig
impl Default for VoiceConfig
Source§fn default() -> VoiceConfig
fn default() -> VoiceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VoiceConfig
impl<'de> Deserialize<'de> for VoiceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VoiceConfig
impl PartialEq for VoiceConfig
Source§fn eq(&self, other: &VoiceConfig) -> bool
fn eq(&self, other: &VoiceConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VoiceConfig
impl Serialize for VoiceConfig
impl StructuralPartialEq for VoiceConfig
Auto Trait Implementations§
impl Freeze for VoiceConfig
impl RefUnwindSafe for VoiceConfig
impl Send for VoiceConfig
impl Sync for VoiceConfig
impl Unpin for VoiceConfig
impl UnsafeUnpin for VoiceConfig
impl UnwindSafe for VoiceConfig
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