pub struct AudioDomain {
pub microphones: Option<Vec<Microphone>>,
pub speakers: Option<Vec<Speaker>>,
pub sound_detection: Option<Vec<SoundDetection>>,
pub voice_output: Option<VoiceOutput>,
pub ambient_noise_db: Option<f64>,
}Expand description
Audio domain containing microphone, speaker, and sound detection information.
Fields§
§microphones: Option<Vec<Microphone>>Microphones
speakers: Option<Vec<Speaker>>Speakers
sound_detection: Option<Vec<SoundDetection>>Sound detections
voice_output: Option<VoiceOutput>Voice output
ambient_noise_db: Option<f64>Ambient noise level (dB)
Implementations§
Source§impl AudioDomain
impl AudioDomain
Sourcepub fn with_microphone(self, mic: Microphone) -> Self
pub fn with_microphone(self, mic: Microphone) -> Self
Add a microphone.
Sourcepub fn with_speaker(self, speaker: Speaker) -> Self
pub fn with_speaker(self, speaker: Speaker) -> Self
Add a speaker.
Sourcepub fn with_detection(self, detection: SoundDetection) -> Self
pub fn with_detection(self, detection: SoundDetection) -> Self
Add a sound detection.
Sourcepub fn with_ambient_noise(self, db: f64) -> Self
pub fn with_ambient_noise(self, db: f64) -> Self
Set ambient noise.
Trait Implementations§
Source§impl Clone for AudioDomain
impl Clone for AudioDomain
Source§fn clone(&self) -> AudioDomain
fn clone(&self) -> AudioDomain
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioDomain
impl Debug for AudioDomain
Source§impl Default for AudioDomain
impl Default for AudioDomain
Source§fn default() -> AudioDomain
fn default() -> AudioDomain
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AudioDomain
impl<'de> Deserialize<'de> for AudioDomain
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
Auto Trait Implementations§
impl Freeze for AudioDomain
impl RefUnwindSafe for AudioDomain
impl Send for AudioDomain
impl Sync for AudioDomain
impl Unpin for AudioDomain
impl UnwindSafe for AudioDomain
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