pub struct LocalWhisperConfig {
pub url: String,
pub bearer_token: Option<String>,
pub max_audio_bytes: usize,
pub timeout_secs: u64,
}Expand description
Local/self-hosted Whisper-compatible STT endpoint ([transcription.local_whisper]).
Configures a self-hosted STT endpoint. Can be on localhost, a private network host, or any reachable URL.
Fields§
§url: StringHTTP or HTTPS endpoint URL, e.g. "http://10.10.0.1:8001/v1/transcribe".
bearer_token: Option<String>Bearer token for endpoint authentication. Omit for unauthenticated local endpoints.
max_audio_bytes: usizeMaximum audio file size in bytes accepted by this endpoint. Defaults to 25 MB — matching the cloud API cap for a safe out-of-the-box experience. Self-hosted endpoints can accept much larger files; raise this as needed, but note that each transcription call clones the audio buffer into a multipart payload, so peak memory per request is ~2× this value.
timeout_secs: u64Request timeout in seconds. Defaults to 300 (large files on local GPU).
Trait Implementations§
Source§impl Clone for LocalWhisperConfig
impl Clone for LocalWhisperConfig
Source§fn clone(&self) -> LocalWhisperConfig
fn clone(&self) -> LocalWhisperConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LocalWhisperConfig
impl Debug for LocalWhisperConfig
Source§impl<'de> Deserialize<'de> for LocalWhisperConfig
impl<'de> Deserialize<'de> for LocalWhisperConfig
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>,
Source§impl JsonSchema for LocalWhisperConfig
impl JsonSchema for LocalWhisperConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for LocalWhisperConfig
impl RefUnwindSafe for LocalWhisperConfig
impl Send for LocalWhisperConfig
impl Sync for LocalWhisperConfig
impl Unpin for LocalWhisperConfig
impl UnsafeUnpin for LocalWhisperConfig
impl UnwindSafe for LocalWhisperConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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