clip.wav. If you do not have one, download a Hindi sample:
1
Create an API key
Sign in to the Gnani API dashboard and generate an API key.
2
Set your key
The examples read your key from the If you use a
GNANI_API_KEY environment variable, so it never appears in your code. Set it in the terminal you will run the examples from:.env file, load it with a library such as python-dotenv or dotenv, and keep the file out of version control.3
Install
4
Run
Save the code as a file and run it from the folder that contains Run the Python examples with
clip.wav.python quickstart.py and the Node.js example with node quickstart.mjs.5
Check the output
A successful request returns
200 and a body like this:transcript is the text of what was said, and detected_language_code is the language it is in. Keep request_id if you need to contact support about this request.If it didn’t work
Every error and its body is listed in the Error Reference.
Next
Prisma v3.0
Language detection, output styles and context hints.
Realtime transcription
Stream live audio over a WebSocket and get text as people speak.
Batch transcription
Transcribe many files, or files longer than 30 seconds.

