1. Create Soniox Account#

Create a free Soniox Account to obtain an API key. The API key gives you free access to Soniox API services. You can find your API key under API Keys tab for a given project in Soniox Console.

Soniox Account is free of charge and does not require credit card information. You get 300 minutes of free speech recognition AI services through Soniox API. If you require additional free usage, contact us, and we will assign you additional free minutes.

2. Download Examples#

Clone our soniox_examples GitHub repository with all the code examples and test audio files. We will refer to these examples and audio files throughout our how-to guides.

git clone https://github.com/soniox/soniox_examples.git

Enter the directory containing examples for your programming language.

Python Examples

cd soniox_examples/python

3. Install Client Library#

Choose any of our available client libraries to ease the integration of Soniox API into your application.

Requirements: Python 3.7 or higher.

The Soniox Python client library is published on PyPI: soniox.

Create and activate venv

python3 -m venv venv
source venv/bin/activate

Install packages

python3 -m pip install -U pip
python3 -m pip install -U setuptools wheel
python3 -m pip install -U soniox

4. Authenticate#

To authenticate your requests, you have to specify the API key. You can find your API key under API Keys tab for a given project in Soniox Console.

You can set the API key using the SONIOX_API_KEY environment variable, which will be automatically used by the client library.


In your application, you can alternatively specify the API key in code when initializing the SpeechClient, as shown below.

from soniox.speech_service import Client

with SpeechClient(api_key="<YOUR-API-KEY>") as client:

5. Transcribe#

This example will transcribe a short audio file and print out the recognized words.



python3 transcribe_file_short.py


He 180 60
was 420 60
two 660 60