Skip to main content

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
You’ll need an audio file for testing (WAV, MP3, FLAC, or other common formats); duration ≤ 30 seconds, mono/stereo.

Your First Speech-to-Text Call

Minimal example to transcribe a Hindi audio file:
curl --X POST https://api.vachana.ai/stt/v3 \
  --H 'Content-Type: multipart/form-data' \
  --H 'X-API-Key-ID: <x-api-key>' \
  --H 'X-API-Request-ID: <x-api-request-id>' \
  --F audio_file='/path/to/your/audio.wav' \
  --F language_code=hi-IN
Replace these values:
  • <x-api-key>: Your Vachana API key
  • <x-api-request-id>: Your Vachana request ID
  • /path/to/your/audio.wav: Path to your audio file
  • hi-IN: Language code (see Language Codes for all options)

Expected STT Response

On success, you’ll receive a JSON response like:
{
  "success": true,
  "request_id": "req_abc123",
  "transcript": "नमस्ते, आप कैसे हैं?"
}

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)
What happens next:
  1. Our team will generate your API credentials (api-key and user-id)
  2. You’ll receive a ready-to-use cURL command with your credentials embedded
  3. We’ll assign free credits to your account so you can start testing immediately — no payment required
  4. You can begin using STT and/or TTS right away with the provided examples
Expected turnaround: API credentials are typically provisioned within 1 business day. No Credit Card Required: All new accounts receive complimentary credits for testing and evaluation.

Next Steps