pub struct DetectorBuilder { /* private fields */ }Expand description
Builder for detectors that do not use a model JSON file.
Implementations§
Source§impl DetectorBuilder
impl DetectorBuilder
pub fn wake_word(self, value: impl Into<String>) -> Self
pub fn probability_cutoff(self, value: f32) -> Self
pub fn sliding_window_size(self, value: usize) -> Self
pub fn feature_step_size_ms(self, value: u32) -> Self
pub fn runtime(self, value: Runtime) -> Self
pub fn build(self) -> Result<Detector>
Auto Trait Implementations§
impl Freeze for DetectorBuilder
impl RefUnwindSafe for DetectorBuilder
impl Send for DetectorBuilder
impl Sync for DetectorBuilder
impl Unpin for DetectorBuilder
impl UnsafeUnpin for DetectorBuilder
impl UnwindSafe for DetectorBuilder
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