pub struct Transcriber {
pub revision: String,
/* private fields */
}Expand description
A loaded GigaAM model.
Fields§
§revision: Stringrnnt or ctc
Implementations§
Source§impl Transcriber
impl Transcriber
pub fn load(model: &Arc<CmfModel>) -> Result<Self, String>
Sourcepub fn has_vad(&self) -> bool
pub fn has_vad(&self) -> bool
Does the file carry the voice-activity model (recordings over 30 s)?
Sourcepub fn encode(
&self,
samples: &[f32],
pool: Option<&Pool>,
) -> Result<(Vec<f32>, usize), String>
pub fn encode( &self, samples: &[f32], pool: Option<&Pool>, ) -> Result<(Vec<f32>, usize), String>
Encoder output of one clip of at most 30 s: [T, width] rows.
Auto Trait Implementations§
impl !Freeze for Transcriber
impl !RefUnwindSafe for Transcriber
impl !UnwindSafe for Transcriber
impl Forget for Transcriber
impl Move for Transcriber
impl Send for Transcriber
impl Sync for Transcriber
impl Unpin for Transcriber
impl UnsafeUnpin for Transcriber
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