pub struct AsrConfig {Show 14 fields
pub provider: AsrProvider,
pub task: TranscriptionTask,
pub model_id: String,
pub language: Option<String>,
pub whisper_bundle: Option<PathBuf>,
pub model_dir: Option<PathBuf>,
pub model_cache_only: bool,
pub device: DevicePreference,
pub device_index: Option<String>,
pub compute_type: Option<String>,
pub batch_chunks: bool,
pub max_batch_size: Option<usize>,
pub decode: WhisperxDecodeConfig,
pub external_whisperx: ExternalWhisperxConfig,
}Fields§
§provider: AsrProvider§task: TranscriptionTask§model_id: String§language: Option<String>§whisper_bundle: Option<PathBuf>§model_dir: Option<PathBuf>§model_cache_only: bool§device: DevicePreference§device_index: Option<String>§compute_type: Option<String>§batch_chunks: bool§max_batch_size: Option<usize>§decode: WhisperxDecodeConfig§external_whisperx: ExternalWhisperxConfigTrait Implementations§
Source§impl<'de> Deserialize<'de> for AsrConfig
impl<'de> Deserialize<'de> for AsrConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AsrConfig
Auto Trait Implementations§
impl Freeze for AsrConfig
impl RefUnwindSafe for AsrConfig
impl Send for AsrConfig
impl Sync for AsrConfig
impl Unpin for AsrConfig
impl UnsafeUnpin for AsrConfig
impl UnwindSafe for AsrConfig
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more