Live Sessions
Everything in Aura Live revolves around a Live Session. A session is a temporary bridge between your audio source and our transcription engine.
Prerequisites
Section titled “Prerequisites”Before starting a session, you should identify:
- Language: What language is being spoken? (Use the
iso_639_1code). - Model: Which ASR model should process the audio? (e.g.,
tiny,medium,large-v3).
Starting a Session
Section titled “Starting a Session”To start a session, send a POST request to the /api/v1/sessions/ endpoint.
Request Body
Section titled “Request Body”Specify the language and the base model you want to use.
{ "language_id": 1, "model_id": 2}Response
Section titled “Response”The API will return a session object containing a session_id.
{ "id": "abc-123-def", "status": "pending", "created_at": "..."}Session Life Cycle
Section titled “Session Life Cycle”- Pending: The session is created but no audio is being received.
- Active: Audio is being streamed and transcribed.
- Finished: The connection has been closed by either the client or the server.
- Error: Something went wrong with the transcription engine.
Fetching Available Options
Section titled “Fetching Available Options”To populate your session configuration, use these endpoints:
- List Languages:
GET /api/v1/languages/ - List Models:
GET /api/v1/models/
[!TIP] Use the models’
vramfield to understand the resource requirements. Smaller models liketinyare faster but less accurate, whereaslarge-v3provides the highest accuracy but requires more compute.