Before you begin
-
An API key. Copy it from API Keys and set it once:
-
The SDK.
- Python
- JavaScript
Transcribe from a microphone
Open a session, hand it audio as you capture it, and read the result when the speaker stops.- Python
- JavaScript
session_id to quote if you contact support. Microphone audio is raw PCM with no header, which is why the config names the sample rate and channel count.
Where to next
- Transcribe a short audio file: audio you already have in full, plus every request option: model, language, word timestamps, raw PCM, and calling the API without an SDK.
- Transcribe live audio: hand
transcribe_live()any source that produces audio over time, such as a call, a WebSocket, or an upload from a browser. - Connection pre-warming: call
warm()the moment you know audio is coming to take the handshake off the critical path. - API reference: every header, part, and field.
Need help?
Contact support@assemblyai.com or open a support ticket. Include thesession_id from the response.