Skip to main content

handle_voice_status

Function handle_voice_status 

Source
pub(super) async fn handle_voice_status(
    __arg0: State<AppState>,
) -> impl IntoResponse
Expand description

GET /api/v1/voice/status → { "engine": "groq", "ready": false, "missing": "groq-key", "error": "..." }. Whether the chosen engine has what it needs to transcribe, read from the settings and the environment alone: nothing is sent anywhere, no program is run and no model is fetched. The mic asks this before it records, so a person with no engine set up is told at the click, not after speaking into nothing.