pub struct SttConfig {
pub provider: String,
pub api_key_env: String,
pub model: String,
pub language: Option<String>,
}Expand description
Speech-to-text settings for the per-manager Telegram bot. The provider
arm is the only switch v1 needs (groq); adding OpenAI Whisper or
whisper.cpp later is one match arm in team-bot’s transcribe function.
Fields§
§provider: StringProvider arm. v1: groq.
api_key_env: StringEnv var holding the provider’s API key (mirrors bot_token_env).
The actual secret lives in .team/.env and is resolved by
teamctl bot up at spawn time before being passed to team-bot.
model: StringProvider model id (e.g. whisper-large-v3 for Groq).
language: Option<String>Optional ISO-639 language hint forwarded verbatim to the provider
(e.g. en, fa). When unset, the provider auto-detects.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SttConfig
impl<'de> Deserialize<'de> for SttConfig
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 SttConfig
impl RefUnwindSafe for SttConfig
impl Send for SttConfig
impl Sync for SttConfig
impl Unpin for SttConfig
impl UnsafeUnpin for SttConfig
impl UnwindSafe for SttConfig
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