Speech
Realtime transcription
Stream PCM16 audio and receive partial and final transcripts with Perigee-1-transcribe-realtime.
Perigee-1-transcribe-realtime receives audio over WebSocket and emits transcript events at approximately 200 ms end-to-end transcription latency.
Endpoint and audio format
Send binary audio frames as PCM16 little-endian, mono audio. Use a 16 kHz sample rate and make the configuration match the source.
Connection lifecycle
- Open the authenticated WebSocket.
- Wait for
ready. - Send a
configmessage. - Send binary PCM audio frames.
- Render
partialevents as replaceable draft text. - Persist
finalevents. - Send
{"type":"flush"}when the source ends. - Wait for
flushed, then close the connection.
Configure the session
Set the expected language explicitly. Automatic mixed-language detection is not supported.
Events
| Event | Use |
|---|---|
ready | Connection accepted and ready for configuration or audio. |
speech_start | Voice activity detection found speech. |
partial | Replaceable draft transcript for the current segment. |
speech_end | Voice activity detection found the end of an utterance. |
final | Stable transcript with segment_id and optional timestamps. |
flushed | Buffered audio has been finalized. |
error | The request or session cannot continue. |
When return_timestamps is enabled, a final event may include: