pub struct TranscribeOptions {
pub language: Option<String>,
pub word_timestamps: bool,
pub diarize: bool,
pub initial_prompt: Option<String>,
}Expand description
Options for a TranscriptionModel::transcribe call.
Fields§
§language: Option<String>ISO 639-1 language code (e.g. "en"). None requests auto-detection.
word_timestamps: boolWhether to populate per-word timestamps on each segment.
diarize: boolWhether to populate speaker labels via diarization.
initial_prompt: Option<String>Optional initial prompt for biasing decoding (e.g. domain-specific terminology, named-entity priming). Supported by whisper.cpp et al.
Trait Implementations§
Source§impl Clone for TranscribeOptions
impl Clone for TranscribeOptions
Source§fn clone(&self) -> TranscribeOptions
fn clone(&self) -> TranscribeOptions
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 TranscribeOptions
impl Debug for TranscribeOptions
Source§impl Default for TranscribeOptions
impl Default for TranscribeOptions
Source§fn default() -> TranscribeOptions
fn default() -> TranscribeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TranscribeOptions
impl RefUnwindSafe for TranscribeOptions
impl Send for TranscribeOptions
impl Sync for TranscribeOptions
impl Unpin for TranscribeOptions
impl UnsafeUnpin for TranscribeOptions
impl UnwindSafe for TranscribeOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more