pub struct SessionVoiceConfig {
pub provider: Option<String>,
pub model: Option<String>,
}Expand description
Session-scoped Voice/STT configuration override.
The GUI/CLI may allow users to override speech-to-text settings for a single
agent session without changing the global AppConfig.voice defaults.
§Field interpretation
provider: STT provider id (currently"local","openai", or"none").model: Provider-specific model selector.- When the effective provider is
"openai", this is an OpenAI model id (e.g."whisper-1","gpt-4o-transcribe"). - When the effective provider is
"local", this is either:- a full filesystem path to a whisper.cpp-compatible model file, or
- a filename to be resolved under the configured models directory.
- When the effective provider is
Empty/whitespace-only strings should be treated as None by consumers.
Fields§
§provider: Option<String>Override STT provider for this session.
model: Option<String>Override STT model for this session.
Trait Implementations§
Source§impl Clone for SessionVoiceConfig
impl Clone for SessionVoiceConfig
Source§fn clone(&self) -> SessionVoiceConfig
fn clone(&self) -> SessionVoiceConfig
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 SessionVoiceConfig
impl Debug for SessionVoiceConfig
Source§impl Default for SessionVoiceConfig
impl Default for SessionVoiceConfig
Source§fn default() -> SessionVoiceConfig
fn default() -> SessionVoiceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionVoiceConfig
impl<'de> Deserialize<'de> for SessionVoiceConfig
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
Auto Trait Implementations§
impl Freeze for SessionVoiceConfig
impl RefUnwindSafe for SessionVoiceConfig
impl Send for SessionVoiceConfig
impl Sync for SessionVoiceConfig
impl Unpin for SessionVoiceConfig
impl UnwindSafe for SessionVoiceConfig
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].