Soniox Python SDK
Python SDK for Soniox REST and realtime APIs.
This SDK lets Python apps talk to the Soniox REST API and realtime websocket endpoint, so you can focus on building features instead of dealing with boilerplate.
There are two clients:
SonioxClient(sync)AsyncSonioxClient(async)
They cover every documented endpoint, realtime support, and additional utils.
Grab your API key from the Soniox Console, wire it into the client, and build the workflow you need.
Install
Packages resides on pypi.
REST API quick start
The SDK sends auth headers, validates payloads via Pydantic, and raises typed errors (SonioxAPIError, SonioxInvalidRequestError, etc.). Swap to AsyncSonioxClient when you need await semantics.
Realtime API quick start
Realtime helpers manage session lifecycle, control messages, keep-alives, and event parsing so you can show partial transcripts, speakers, and translations as soon as they stream in.