Speech to Text
Transcribe spoken audio into high-accuracy text across 22+ Indian languages with robust handling for regional accents, noisy environments, and code-mixed speech.
What it does
- Multi-dialect Indic ASR: Accurately transcribes spoken speech into native script text across 22+ Indian languages.
- Noise & Accent Invariance: Trained on thousands of hours of diverse real-world Indian speech, handling acoustic noise, reverberation, and code-mixed phrasing.
- Real-time & Batch Modes: Supports short audio clips via REST pipeline compute as well as continuous low-latency streaming over WebSockets.
- Multimodal Chaining: Directly pipes transcripts into Translation and Text-to-Speech engines for end-to-end Speech-to-Speech Translation.
1-Minute Quick Call
Transcribe your first base64 audio sample immediately:
curl --location 'https://dhruva-api.bhashini.gov.in/services/inference/pipeline' \
--header 'Accept: */*' \
--header 'Authorization: <YOUR_INFERENCE_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"pipelineTasks": [
{
"taskType": "asr",
"config": {
"language": { "sourceLanguage": "hi" },
"serviceId": "ai4bharat/conformer-hi-gpu--t4"
}
}
],
"inputData": {
"audio": [
{ "audioContent": "<BASE64_ENCODED_AUDIO_STRING>" }
]
}
}'Audio Specifications
| Parameter | Specification | Recommendation |
|---|---|---|
| Sample Rate | 8,000 Hz to 48,000 Hz | 16,000 Hz (16 kHz) for optimal acoustic feature extraction |
| Channels | 1 (Mono) or 2 (Stereo) | 1 Channel Mono (convert stereo before encoding) |
| Format | Linear PCM WAV, MP3, FLAC | WAV (PCM 16-bit little-endian) |
| Encoding | Base64 string | Standard UTF-8 Base64 |
| Max Batch Duration | Up to 60 seconds per request | For continuous streams, use the WebSocket ASR API. |
Common Use Cases
- Call Center Analytics: Transcribe customer grievance calls into regional text for sentiment analysis and compliance auditing.
- Voice Search & Conversational Assistants: Power voice-first mobile applications in Indian regional languages.
- Video Subtitling & Captioning: Automatically generate subtitles for regional video content using tools like Chitraanuvad.
Developer Guides & References
- ASR quickstart — make your first ASR call with interactive microphone recording.
- Multimodal pipelines — chain ASR with translation and TTS into a single call.
- WebSocket ASR — streaming real-time transcription protocol.
- Model catalog — browse models across languages.
- API reference — request/response payloads.