#[non_exhaustive]pub struct LangIdInfo {
pub sample_rate: i32,
pub n_labels: i32,
pub min_audio_ms: i32,
pub max_audio_ms: i32,
}Expand description
Static facts about a language ID model (Model::langid_info).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sample_rate: i32Input PCM rate (16000).
n_labels: i32Label indices are [0, n_labels).
min_audio_ms: i32Shorter scored audio is Error::InputTooShort.
max_audio_ms: i32Longer input is scored on its first max_audio_ms (30000).
Trait Implementations§
Source§impl Clone for LangIdInfo
impl Clone for LangIdInfo
impl Copy for LangIdInfo
Source§impl Debug for LangIdInfo
impl Debug for LangIdInfo
impl Eq for LangIdInfo
Source§impl PartialEq for LangIdInfo
impl PartialEq for LangIdInfo
impl StructuralPartialEq for LangIdInfo
Auto Trait Implementations§
impl Freeze for LangIdInfo
impl RefUnwindSafe for LangIdInfo
impl Send for LangIdInfo
impl Sync for LangIdInfo
impl Unpin for LangIdInfo
impl UnsafeUnpin for LangIdInfo
impl UnwindSafe for LangIdInfo
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