Skip to main content

Prerequisites

Before you begin, ensure you have:
  • A valid API key (sign up on the Gnani API platform to generate API keys)
  • cURL installed, or an API client such as Postman
Use a test audio file that meets these requirements:
  • Format: WAV, MP3, OGG, FLAC, AAC, or M4A
  • Sample rate: 8 kHz to 44.1 kHz
  • Maximum duration: 60 seconds

Your First Speech-to-Text Request

Minimal example to transcribe a Hindi audio file:
Replace these values:
  • <API_KEY>: Your Gnani Prisma v2.5 API key
  • /path/to/your/audio.wav: Path to your audio file
  • hi-IN: Language code (see Language Codes)

Expected STT Response

On success, you’ll receive a JSON response like:

Next Steps