pub struct TranscriptionConfig {
pub sample_rate: usize,
pub feature_size: usize,
pub n_fft: usize,
pub win_length: usize,
pub hop_length: usize,
pub preemphasis: f32,
pub max_audio_samples: usize,
pub samples_per_encoder_frame: usize,
}Expand description
Configuration for single-chunk transcription
The defaults match the current Parakeet TDT v2 frontend. Most callers should
start with TranscriptionConfig::default() and only override fields when
they intentionally want to change frontend behavior.
Fields§
§sample_rate: usizeSample rate expected by the pipeline
feature_size: usizeFeature count for the log-mel frontend
n_fft: usizeFFT window size
win_length: usizeSTFT window length
hop_length: usizeSTFT hop length
preemphasis: f32Preemphasis coefficient
max_audio_samples: usizeMaximum supported single-chunk sample count
samples_per_encoder_frame: usizeEncoder frame size in samples
Trait Implementations§
Source§impl Clone for TranscriptionConfig
impl Clone for TranscriptionConfig
Source§fn clone(&self) -> TranscriptionConfig
fn clone(&self) -> TranscriptionConfig
Returns a duplicate 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 TranscriptionConfig
impl Debug for TranscriptionConfig
Auto Trait Implementations§
impl Freeze for TranscriptionConfig
impl RefUnwindSafe for TranscriptionConfig
impl Send for TranscriptionConfig
impl Sync for TranscriptionConfig
impl Unpin for TranscriptionConfig
impl UnsafeUnpin for TranscriptionConfig
impl UnwindSafe for TranscriptionConfig
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