speech_to_text
Transcribe local audio files into written text using automatic speech recognition. Supports common formats up to 25MB, accepts an optional language hint, and falls back to a local model when no API key is set.
Instructions
Transcribe a local audio file to text.
Tries Groq's whisper-large-v3-turbo first (free tier, no credit card -
requires GROQ_API_KEY), falling back to a fully local, keyless model
(faster-whisper, MIT) if Groq is unavailable or the key isn't set. The
local fallback requires the optional local-stt extra (uv sync --extra local-stt) and auto-downloads its model weights on first use.
Args: audio_path: Absolute path to a local audio file (mp3/wav/m4a/flac/ ogg/webm/mp4/mpeg/mpga), max 25MB. language: Optional ISO-639-1 language hint (e.g. "en"). Ignored by the local fallback, which auto-detects language.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"audio_path": "<audio_path>"
},
"name": "speech_to_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | ||
| audio_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |