#[repr(C)]pub struct SherpaOnnxFeatureConfig {
pub sample_rate: i32,
pub feature_dim: i32,
}
Expand description
It expects 16 kHz 16-bit single channel wave format.
Fields§
§sample_rate: i32
Sample rate of the input data. MUST match the one expected by the model. For instance, it should be 16000 for models provided by us.
feature_dim: i32
Feature dimension of the model. For instance, it should be 80 for models provided by us.
Trait Implementations§
Source§impl Clone for SherpaOnnxFeatureConfig
impl Clone for SherpaOnnxFeatureConfig
Source§fn clone(&self) -> SherpaOnnxFeatureConfig
fn clone(&self) -> SherpaOnnxFeatureConfig
Returns a copy 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 SherpaOnnxFeatureConfig
impl Debug for SherpaOnnxFeatureConfig
impl Copy for SherpaOnnxFeatureConfig
Auto Trait Implementations§
impl Freeze for SherpaOnnxFeatureConfig
impl RefUnwindSafe for SherpaOnnxFeatureConfig
impl Send for SherpaOnnxFeatureConfig
impl Sync for SherpaOnnxFeatureConfig
impl Unpin for SherpaOnnxFeatureConfig
impl UnwindSafe for SherpaOnnxFeatureConfig
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