API reference
Speech to Text
Transcribe Odia audio into Odia text.
POSThttps://api.langgenie.ai/v1/speech-to-text
Headers
| Field | Type | Required | Description |
|---|---|---|---|
| api-subscription-key | string | Yes | Your API key. |
Body · multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
| file | binary | Yes | Audio file. WAV, MP3, M4A, OGG/Opus, FLAC or WebM. Max 25 MB. |
| model | string | No | Model ID. Defaults to "langgenie-od-od-v1". |
| with_timestamps | boolean | No | Return segment-level start/end times. Default false. |
Example
import requests
# Odia speech → Odia text
response = requests.post(
"https://api.langgenie.ai/v1/speech-to-text",
headers={"api-subscription-key": "YOUR_API_KEY"},
files={"file": open("sample.wav", "rb")},
data={"model": "langgenie-od-od-v1", "with_timestamps": "true"},
)
print(response.json()["transcript"])Response
200 OK
{
"request_id": "req_8f2c1e9a4b7d3a10",
"model": "langgenie-od-od-v1",
"transcript": "ନମସ୍କାର, ମୁଁ ଆଜି ମୋ ଜମିର ପଟ୍ଟା ବିଷୟରେ ଜାଣିବାକୁ ଚାହୁଁଛି।",
"source_language": "od-IN",
"target_language": "od-IN",
"duration_seconds": 4.2,
"segments": [
{
"start": 0,
"end": 4.2,
"text": "…"
}
]
}