pub struct SilenceDetector {
pub threshold_db: f32,
pub min_duration_ms: u32,
pub frame_size: usize,
}Expand description
Silence detection configuration
Fields§
§threshold_db: f32Threshold in dB (default: -40.0) Frames with RMS below this threshold are considered silent
min_duration_ms: u32Minimum duration in milliseconds for silence to be merged (default: 500) Consecutive silent frames shorter than this are merged
frame_size: usizeFrame size for analysis (default: 2048)
Trait Implementations§
Source§impl Clone for SilenceDetector
impl Clone for SilenceDetector
Source§fn clone(&self) -> SilenceDetector
fn clone(&self) -> SilenceDetector
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SilenceDetector
impl Debug for SilenceDetector
Auto Trait Implementations§
impl Freeze for SilenceDetector
impl RefUnwindSafe for SilenceDetector
impl Send for SilenceDetector
impl Sync for SilenceDetector
impl Unpin for SilenceDetector
impl UnwindSafe for SilenceDetector
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)