Pre-recorded Audio
Input Types — Raw Bytes
Pass in-memory audio bytes directly — useful when audio comes from a network stream, microphone capture, or processing pipeline.
Usage
python
with open("audio.wav", "rb") as f:
result = await client.asr.transcribe_file(
f,
config=TranscriptionConfig(model="zero-indic"),
)
# From a network response
import httpx
async with httpx.AsyncClient() as http:
resp = await http.get("https://example.com/audio.wav")
result = await client.asr.transcribe_file(resp.content, config=config)