pub struct TranscriptionConfig {
pub language: Option<String>,
pub beam_size: usize,
pub word_timestamps: bool,
pub write_sidecar: bool,
pub backend: TranscriptionBackend,
pub model_path: Option<PathBuf>,
pub prompt: Option<String>,
pub hotwords: Vec<String>,
}Expand description
Configuration for the transcription pipeline.
Fields§
§language: Option<String>Language hint (ISO 639-1, e.g., “en”). None for auto-detect.
beam_size: usizeBeam size for decoding (1 = greedy, 5 = default).
word_timestamps: boolEnable word-level timestamps (more precise but slower).
write_sidecar: boolWrite .srt sidecar files after transcription for caching.
backend: TranscriptionBackendCompute backend for inference.
model_path: Option<PathBuf>Path to the .apr model file (e.g. base.apr).
When None, transcription of files without sidecars will fail with
a helpful error message.
prompt: Option<String>Initial prompt to condition the decoder on domain vocabulary. Example: “This lecture covers AWS, Kubernetes, and YAML configurations.”
hotwords: Vec<String>Hotwords to boost during decoding for domain-specific terms. Each string is a word or phrase to bias positively in the logit space.
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 (const: unstable) · 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().