soniox
The official Python SDK for the Soniox API (STT, REST)
Decision gist · record as of 2026-08-14
Yes. The SDK is actively maintained, has low install friction, no known vulnerabilities, and a permissive license. Install it if you need to integrate Soniox's STT or TTS APIs into a Python application. Avoid Python 3.13.6 specifically due to a documented ssl regression; any other 3.10–3.14 version is safe.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires SONIOX_API_KEY environment variable or explicit API key passed to client.
- Avoid Python 3.13.6 for realtime operations.
- Low friction install with three lightweight runtime dependencies (httpx, pydantic, websockets).
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 (permissive). No restrictions on commercial use, modification, or redistribution; attribution required.
last release 2026-08-11 (3 days) · last repo commit 2026-08-11 · 11 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 296,113 downloads/mo, #7,903 on PyPI
Alternatives
Verify before relying
from soniox import SonioxClient
client = SonioxClient()
transcript = client.stt.transcribe_and_wait_with_tokens(
file="path/to/audio.mp3",
delete_after=True,
)
print(transcript.text)
client.close()- Pricing model and rate limits for STT/TTS operations beyond daily cost tracking.
- Whether voice cloning quality and speed meet production requirements for your use case.
- Latency characteristics of realtime WebSocket endpoints under load.
What it is and what it does
Soniox is the official Python SDK for accessing Soniox's speech and audio APIs. It provides both synchronous and asynchronous clients that wrap REST and WebSocket endpoints for speech-to-text transcription, text-to-speech synthesis, voice cloning, and usage/cost reporting. The SDK handles authentication via API key, file uploads, model selection, and typed request/response objects through pydantic.
Typical workflows include transcribing audio files end-to-end in a single call, streaming realtime speech recognition or synthesis over WebSocket, cloning voices from reference audio for custom TTS, and querying daily spend and per-request logs. The package is actively maintained, supports Python 3.10 through 3.14, and has minimal dependencies (httpx, pydantic, websockets).
Use it for
- Transcribe audio files or URLs to text in a single call with automatic cleanup.
- Stream live audio over WebSocket for low-latency speech-to-text in real-time applications.
- Generate speech from text with built-in or cloned voices, optionally streaming audio chunks as they arrive.
- Clone a custom voice from a reference audio clip and reuse it across TTS requests.
- Track API usage and costs per model and per request over a date range.
- Build async applications that handle concurrent STT/TTS operations without blocking.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The SDK is actively maintained, has low install friction, no known vulnerabilities, and a permissive license. Install it if you need to integrate Soniox's STT or TTS APIs into a Python application. Avoid Python 3.13.6 specifically due to a documented ssl regression; any other 3.10–3.14 version is safe.
Install
soniox on PyPI
Before you install
Low friction install with three lightweight runtime dependencies (httpx, pydantic, websockets). Active maintenance—last commit 2026-08-11, released 3 days ago. Supports modern Python versions (3.10–3.14). Note: avoid Python 3.13.6 due to a CPython ssl regression that hangs realtime STT/TTS.
Requires SONIOX_API_KEY environment variable or explicit API key passed to client. Avoid Python 3.13.6 for realtime operations.
License in practice
Apache-2.0 (permissive). No restrictions on commercial use, modification, or redistribution; attribution required.
Quickstart
from soniox import SonioxClient
client = SonioxClient()
transcript = client.stt.transcribe_and_wait_with_tokens(
file="path/to/audio.mp3",
delete_after=True,
)
print(transcript.text)
client.close()
Verify before relying
- Pricing model and rate limits for STT/TTS operations beyond daily cost tracking.
- Whether voice cloning quality and speed meet production requirements for your use case.
- Latency characteristics of realtime WebSocket endpoints under load.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packageshttpxpydanticwebsockets |
| Maintenance | Actively maintained 3 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 296,113 / month, #7,903 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: soniox-2.9.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “stt tts realtime streaming”
- sonioxPython SDK for the Soniox speech-to-text and text-to-speech API,…
- livekit-plugins-openaiIntegrates OpenAI's Realtime, Responses, LLM, TTS, and STT APIs into…
- livekit-plugins-inworldIntegrates Inworld's text-to-speech and speech-to-text APIs into…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also livekit-plugins-soniox · fish-audio-sdk · kugelaudio · mlx-audio · livekit-plugins-inworld · aws_sdk_transcribe_streaming · rev-ai · livekit-plugins-cartesia · speechmatics-rt · livekit-plugins-deepgram