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
Source§impl JsonSchema for SttConfig
impl JsonSchema for SttConfig
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto 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