Download the audio
GET
/v2/live/{id}/file The session's recording, in FLAC, for accounts that record their audio. Available about 40 seconds after the session ends. A Range header returns part of it.
Authentication: your API key in the x-gladia-key header (Authentication).
Example
curl -L https://eu1.api.gladia.io/v2/live/0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b/file \ -H "x-gladia-key: $GLADIA_API_KEY" \ -o session.flacimport os
from gladiaio_sdk import GladiaClient
client = GladiaClient( api_key=os.environ["GLADIA_API_KEY"], api_url=os.environ.get("GLADIA_API_URL", "https://eu1.api.gladia.io"),)
audio = client.live_v2().get_file("0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b")with open("session.flac", "wb") as file: file.write(audio)import { writeFileSync } from "node:fs";import { GladiaClient } from "@gladiaio/sdk";
const client = new GladiaClient({ apiKey: process.env.GLADIA_API_KEY, apiUrl: process.env.GLADIA_API_URL ?? "https://eu1.api.gladia.io",});
const audio = await client.liveV2().getFile("0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b");writeFileSync("session.flac", Buffer.from(audio));Try it
Parameters
-
idstring · path requiredIdentifier of the session (
idofPOST /v2/live).
Responses
200 The recording.
206 The requested range of the recording.
302 A redirect to a signed download URL.
401 No API key, or an unknown one.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}403 The key may not do this (its scopes, or the addresses it may be used from).
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}404 No such session for your account.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}503 The service cannot answer right now: try again.
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "sample_rate Input should be 8000, 16000, 32000, 44100 or 48000" ], "error": "string"}