Whisper STT
WhisperSTT is a buffered HTTP transcription adapter for OpenAI’s POST /v1/audio/transcriptions endpoint. It buffers ~1 s of incoming PCM audio (16 kHz, 16-bit mono), wraps it as a WAV blob, and submits it to Whisper for transcription. Drop-in compatible with the streaming STTProvider interface so it can be swapped for Deepgram / Soniox / Speechmatics without changes to the calling code.
For ~10x lower latency see the GPT-4o transcribe family below — it’s a strict subclass that hits the same endpoint with gpt-4o-transcribe / gpt-4o-mini-transcribe.
Install
whisper ships in the base install — no extra needed.
Usage
getpatter.stt.whisper.STT() and getpatter.stt.openai_transcribe.STT()
both auto-resolve OPENAI_API_KEY from the environment when api_key=
is omitted.Models and rates
Per minute of audio (defaults fromgetpatter.pricing):
The two provider keys hit the same endpoint but are tracked separately in the dashboard so cost attribution stays clean.
Languages
language="en" by default. Whisper-1 and the GPT-4o transcribe family auto-detect the spoken language but accept an explicit BCP-47 hint (e.g. "it", "fr", "es", "de", "pt", "ja", "zh") for higher accuracy on short utterances. See the OpenAI language coverage list.

