Prerequisites
Before you begin, ensure you have:- Valid API credentials (API Key and User ID)
- cURL installed, or a tool like Postman for making HTTP requests
- Speech-to-Text (STT)
- Text-to-Speech (TTS)
- REST
- WebSocket
You’ll need an audio file for testing (WAV, MP3, FLAC, or other common formats); duration ≤ 30 seconds, mono/stereo.Replace these values:
Your First Speech-to-Text Call
Minimal example to transcribe a Hindi audio file:<x-api-key>: Your Vachana API key<x-api-request-id>: Your Vachana request ID/path/to/your/audio.wav: Path to your audio filehi-IN: Language code (see Language Codes for all options)
Expected STT Response
On success, you’ll receive a JSON response like:Authentication Setup
The Vachana API uses header-based authentication with the same credentials for both STT and TTS.Obtaining Credentials
API key provisioning is currently handled by our team to ensure personalized onboarding and support. To request your credentials: Send an email to speechstack@gnani.ai with the following details:- Use Case (optional): Brief description of your intended application (e.g. STT, TTS, or both)
- Our team will generate your API credentials (
api-keyanduser-id) - You’ll receive a ready-to-use cURL command with your credentials embedded
- We’ll assign free credits to your account so you can start testing immediately — no payment required
- You can begin using STT and/or TTS right away with the provided examples
Next Steps
- Speech-to-Text: STT REST and STT WebSocket for all STT parameters and language options
- Text-to-Speech: REST, Streaming (SSE), and WebSocket for TTS options