{
"timestamp": "2023-12-28T09:04:17.210Z",
"path": "/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab",
"request_id": "G-821fe9df",
"statusCode": 400,
"message": "Content-Type is missing Multipart Boundary.",
"validation_errors": [
"Field \"language\" must be a string",
"Field \"min_speakers\" must be a number"
]
}
Use the returned WebSocket url to connect to the WebSocket and start sending audio chunks. Use the returned id and the GET /v2/live/:id endpoint to obtain the status and results.
Why initiate with POST instead of connecting directly to the WebSocket?
Security: Generate the WebSocket URL on your backend and keep your API key private. The init call returns a connectable URL and a session id that you can safely pass to web, iOS, or Android clients without exposing credentials in the app.
Lower infrastructure load: The secure URL is generated on your backend, the client can connect directly to Gladia’s WebSocket server without a pass-through on your side, saving your own resources.
Resilient reconnection and session continuity: If the WebSocket disconnects (which can happen on unreliable networks), the session created by the init call lets the client reconnect without losing context. Traditional flows that open a socket first typically force a brand‑new session on disconnect, dropping in‑progress state.
Authorizations
x-gladia-key
string
header
required
Your personal Gladia API key
Query Parameters
region
enum<string>
The region used to process the audio.
Available options:
us-west,
eu-west
Body
application/json
encoding
enum<string>
default:wav/pcm
The encoding format of the audio stream. Supported formats:
PCM: 8, 16, 24, and 32 bits
A-law: 8 bits
μ-law: 8 bits
Note: No need to add WAV headers to raw audio as the API supports both formats.
Available options:
wav/pcm,
wav/alaw,
wav/ulaw
bit_depth
enum<number>
default:16
The bit depth of the audio stream
Available options:
8,
16,
24,
32
sample_rate
enum<number>
default:16000
The sample rate of the audio stream
Available options:
8000,
16000,
32000,
44100,
48000
channels
integer
default:1
The number of channels of the audio stream
Required range: 1 <= x <= 8
custom_metadata
object
Custom metadata you can attach to this live transcription
Example:
{ "user": "John Doe" }
model
enum<string>
default:solaria-1
The model used to process the audio. "solaria-1" is used by default.
Available options:
solaria-1
endpointing
number
default:0.05
The endpointing duration in seconds. Endpointing is the duration of silence which will cause an utterance to be considered as finished. Only whole milliseconds are supported: the value is rounded to the nearest millisecond (e.g. 0.3825 becomes 0.383)
Required range: 0.01 <= x <= 10
maximum_duration_without_endpointing
number
default:5
The maximum duration in seconds without endpointing. If endpointing is not detected after this duration, current utterance will be considered as finished
Required range: 5 <= x <= 60
language_config
object
Specify the language configuration
Show child attributes
pre_processing
object
Specify the pre-processing configuration
Show child attributes
realtime_processing
object
Specify the realtime processing configuration
Show child attributes
post_processing
object
Specify the post-processing configuration
Show child attributes
messages_config
object
Specify the websocket messages configuration
Show child attributes
callback
boolean
default:false
If true, messages will be sent to configured url.
callback_config
object
Specify the callback configuration
Show child attributes
Response
The live job has been initiated
id
string<uuid>
required
Id of the job
Example:
"45463597-20b7-4af7-b3b3-f5fb778203ab"
created_at
string<date-time>
required
Creation date
Example:
"2023-12-28T09:04:17.210Z"
url
string<uri>
required
The websocket url to connect to for sending audio data. The url will contain the temporary token to authenticate the session.
{
"timestamp": "2023-12-28T09:04:17.210Z",
"path": "/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab",
"request_id": "G-821fe9df",
"statusCode": 400,
"message": "Content-Type is missing Multipart Boundary.",
"validation_errors": [
"Field \"language\" must be a string",
"Field \"min_speakers\" must be a number"
]
}
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Gladia","description":"Gladia is a state-of-the-art audio transcription and intelligence provider. We offer a simple API to get transcription from your audios and videos, in both Real-time and asynchronous ways, with audio intelligence tools to extract, analyze and understand data from your audios.","colors":{"primary":"#2e343e","light":"#FFFFFF","dark":"#2e343e"},"logo":{"light":"https://mintcdn.com/gladia-95/7AxFDxWc-Kx9YrXI/assets/images/logos/text-black.svg?fit=max\u0026auto=format\u0026n=7AxFDxWc-Kx9YrXI\u0026q=85\u0026s=859e5353abd40a9847f9e2c7484fed6e","dark":"https://mintcdn.com/gladia-95/7AxFDxWc-Kx9YrXI/assets/images/logos/text-white.svg?fit=max\u0026auto=format\u0026n=7AxFDxWc-Kx9YrXI\u0026q=85\u0026s=a5aa26d03764480054c8d3b955451fd4"},"favicon":"https://mintcdn.com/gladia-95/7AxFDxWc-Kx9YrXI/assets/icons/favicon.svg?fit=max\u0026auto=format\u0026n=7AxFDxWc-Kx9YrXI\u0026q=85\u0026s=9efa7a64cbd6179dba2bb8f9a9281c83","api":{"openapi":"https://api.gladia.io/openapi.json"},"appearance":{"default":"system","strict":false},"background":{"image":{"light":"","dark":""},"color":{"light":"#FFFFFF","dark":"#15181d"}},"navbar":{"links":[{"icon":"comment-question","href":"https://support.gladia.io/","label":"Support"},{"icon":"discord","href":"https://discord.gg/T22a4ETUQp","label":"Community"},{"icon":"newspaper","href":"https://www.gladia.io/blog","label":"Blog"}],"primary":{"type":"button","label":"Signup","href":"https://app.gladia.io/?utm_campaign=197609689-Website\u0026utm_source=documentation\u0026utm_content=sign-up"}},"footer":{"socials":{"twitter":"https://twitter.com/gladia_io","github":"https://github.com/gladiaio","linkedin":"https://www.linkedin.com/company/gladia-io"}},"seo":{"indexing":"all"},"fonts":{"family":"Inter"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":false},"integrations":{"gtm":{"tagId":"GTM-MKBBGXGP"},"hotjar":{"hjid":"5197599","hjsv":"6"},"intercom":{"appId":"zkqf4zax"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gladia-95","hasAudioNarration":false,"actualSubdomain":"gladia-95","customDomains":["docs.gladia.io"],"gitSource":{"type":"github","owner":"gladiaio","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":false,"edits":false,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aed96cfe36b681e5080173c","clientVersion":"0.0.4131","searchFilterCounts":[{"language":"default","tag":"Documentation","count":55},{"language":"default","tag":"API Reference","count":43},{"language":"default","tag":"Live endpoints","count":25},{"language":"default","tag":"Callbacks","count":17},{"language":"default","tag":"Audio Intelligence","count":12},{"language":"default","tag":"Integrations","count":12},{"language":"default","tag":"Pre-recorded endpoints","count":11},{"language":"default","tag":"Speech-to-Text","count":9},{"language":"default","tag":"Webhooks","count":7},{"language":"default","tag":"Realtime messages","count":6}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@media (min-width: 1280px){.prose{max-width:88ch}main [class*=\"max-w-\"]{max-width:1180px!important}#content-area,#mintlify-content{max-width:1180px!important}#content-container{padding-left:5rem;padding-right:3rem}}.prose pre{max-width:100%;overflow:auto}"}],"page":{"pagePath":"api-reference/v2/live/init","slug":"/api-reference/v2/live/init","pageMetadata":{"title":"Initiate a session","description":"Initiate a live transcription WebSocket session.","openapi":"POST /v2/live","href":"/api-reference/v2/live/init"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Initiate a live transcription WebSocket session.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Accordion}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Use the returned WebSocket url to connect to the WebSocket and start sending audio chunks. Use the returned `,_jsx(_components.code,{children:`id`}),` and the `,_jsx(_components.a,{href:`/api-reference/v2/live/get`,children:`GET /v2/live/:id`}),` endpoint to obtain the status and results.`]}),`\n`,_jsx(Accordion,{title:`Why initiate with POST instead of connecting directly to the WebSocket?`,id:`why-initiate-with-post-instead-of-connecting-directly-to-the-websocket`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Security`}),`: Generate the WebSocket URL on your backend and keep your API key private. The init call returns a connectable URL and a session `,_jsx(_components.code,{children:`id`}),` that you can safely pass to web, iOS, or Android clients without exposing credentials in the app.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Lower infrastructure load`}),`: The secure URL is generated on your backend, the client can connect directly to Gladia’s WebSocket server without a pass-through on your side, saving your own resources.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Resilient reconnection and session continuity`}),`: If the WebSocket disconnects (which can happen on unreliable networks), the session created by the init call lets the client reconnect without losing context. Traditional flows that open a socket first typically force a brand‑new session on disconnect, dropping in‑progress state.`]}),`\n`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Initiate a session","description":"Initiate a live transcription WebSocket session.","openapi":"POST /v2/live","href":"/api-reference/v2/live/init"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/gladia-95/e75c57c68c49919f/vox-widget.js"],"openApiReferenceData":{"operation":{"operationId":"StreamingController_initStreamingSession_v2","parameters":["d3ca10c2-35c8-4823-b56a-cfe7dd0c377f"],"requestBody":"b1323032-9cb4-4b2c-b159-8a38684d3507","responses":{"201":"e459f2ee-28a9-4540-a6de-ea8d2974d1f6","400":"b85c58aa-0728-4a88-b573-5706746f8baa","401":"14bf7784-0e1b-4460-b4b3-4135fbd2918c","422":"c6208329-34c4-4954-958f-58ada309e69e"},"security":["cf0c2aeb-5e58-4092-972b-48f4ecb0d6df"],"summary":"Initiate a new live job","tags":["Live V2"],"method":"post","type":"path","servers":["5fdda1c3-9852-4bd5-a15c-7317eb42293c"],"path":"/v2/live","baseUrlOptions":["https://api.gladia.io/"],"title":"Initiate a new live job","description":"Initiate a live transcription WebSocket session.","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"d3ca10c2-35c8-4823-b56a-cfe7dd0c377f":{"name":"region","required":false,"in":"query","description":"The region used to process the audio.","schema":{"type":"string","enum":["us-west","eu-west"],"isRequired":false,"description":"The region used to process the audio.","uniqueKey":"","typeLabel":"enum\u003cstring>"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"encoding":{"type":"string","description":"The encoding format of the audio stream. Supported formats: \n- PCM: 8, 16, 24, and 32 bits \n- A-law: 8 bits \n- μ-law: 8 bits \n\nNote: No need to add WAV headers to raw audio as the API supports both formats.","default":"wav/pcm","enum":["wav/pcm","wav/alaw","wav/ulaw"],"uniqueKey":"encoding","typeLabel":"enum\u003cstring>"},"bit_depth":{"type":"number","description":"The bit depth of the audio stream","default":16,"enum":[8,16,24,32],"uniqueKey":"bit_depth","typeLabel":"enum\u003cnumber>"},"sample_rate":{"type":"number","description":"The sample rate of the audio stream","default":16000,"enum":[8000,16000,32000,44100,48000],"uniqueKey":"sample_rate","typeLabel":"enum\u003cnumber>"},"channels":{"type":"integer","description":"The number of channels of the audio stream","default":1,"minimum":1,"maximum":8,"uniqueKey":"channels","typeLabel":"integer"},"custom_metadata":{"type":"object","description":"Custom metadata you can attach to this live transcription","example":{"user":"John Doe"},"additionalProperties":true,"uniqueKey":"custom_metadata","typeLabel":"object"},"model":{"type":"string","description":"The model used to process the audio. \"solaria-1\" is used by default.","default":"solaria-1","enum":["solaria-1"],"uniqueKey":"model","typeLabel":"enum\u003cstring>"},"endpointing":{"type":"number","description":"The endpointing duration in seconds. Endpointing is the duration of silence which will cause an utterance to be considered as finished. Only whole milliseconds are supported: the value is rounded to the nearest millisecond (e.g. 0.3825 becomes 0.383)","default":0.05,"minimum":0.01,"maximum":10,"uniqueKey":"endpointing","typeLabel":"number"},"maximum_duration_without_endpointing":{"type":"number","description":"The maximum duration in seconds without endpointing. If endpointing is not detected after this duration, current utterance will be considered as finished","default":5,"minimum":5,"maximum":60,"uniqueKey":"maximum_duration_without_endpointing","typeLabel":"number"},"language_config":{"type":"object","description":"Specify the language configuration","properties":{"languages":{"type":"array","description":"If one language is set, it will be used for the transcription. Otherwise, language will be auto-detected by the model.","default":[],"items":{"type":"string","enum":["af","am","ar","as","az","ba","be","bg","bn","bo","br","bs","ca","cs","cy","da","de","el","en","es","et","eu","fa","fi","fo","fr","gl","gu","ha","haw","he","hi","hr","ht","hu","hy","id","is","it","ja","jw","ka","kk","km","kn","ko","la","lb","ln","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","my","ne","nl","nn","no","oc","pa","pl","ps","pt","ro","ru","sa","sd","si","sk","sl","sn","so","sq","sr","su","sv","sw","ta","te","tg","th","tk","tl","tr","tt","uk","ur","uz","vi","yi","yo","zh"],"description":"Specify the language in which it will be pronounced when sound comparison occurs. Default to transcription language.","uniqueKey":"language_config.languages.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"language_config.languages","typeLabel":"enum\u003cstring>[]"},"code_switching":{"type":"boolean","description":"If true, language will be auto-detected on each utterance. Otherwise, language will be auto-detected on first utterance and then used for the rest of the transcription. If one language is set, this option will be ignored.","default":false,"uniqueKey":"language_config.code_switching","typeLabel":"boolean"}},"uniqueKey":"language_config","typeLabel":"object"},"pre_processing":{"type":"object","description":"Specify the pre-processing configuration","properties":{"audio_enhancer":{"type":"boolean","description":"If true, apply pre-processing to the audio stream to enhance the quality.","default":false,"uniqueKey":"pre_processing.audio_enhancer","typeLabel":"boolean"},"speech_threshold":{"type":"number","description":"Sensitivity configuration for Speech Threshold. A value close to 1 will apply stricter thresholds, making it less likely to detect background sounds as speech.","default":0.6,"minimum":0,"maximum":1,"uniqueKey":"pre_processing.speech_threshold","typeLabel":"number"}},"uniqueKey":"pre_processing","typeLabel":"object"},"realtime_processing":{"type":"object","description":"Specify the realtime processing configuration","properties":{"custom_vocabulary":{"type":"boolean","description":"If true, enable custom vocabulary for the transcription.","default":false,"uniqueKey":"realtime_processing.custom_vocabulary","typeLabel":"boolean"},"custom_vocabulary_config":{"type":"object","description":"Custom vocabulary configuration, if `custom_vocabulary` is enabled","required":["vocabulary"],"properties":{"vocabulary":{"type":"array","description":"Specific vocabulary list to feed the transcription model with. Each item can be a string or an object with the following properties: value, intensity, pronunciations, language.","example":["Westeros",{"value":"Stark"},{"value":"Night's Watch","pronunciations":["Nightz Watch"],"intensity":0.4,"language":"en"}],"items":{"oneOf":[{"type":"object","required":["value"],"properties":{"value":{"type":"string","description":"The text used to replace in the transcription.","example":"Gladia","isRequired":true,"uniqueKey":"realtime_processing.custom_vocabulary_config.vocabulary.items.[INDEX].oneOf.0.value","typeLabel":"string"},"intensity":{"type":"number","description":"The global intensity of the feature.","example":0.5,"minimum":0,"maximum":1,"uniqueKey":"realtime_processing.custom_vocabulary_config.vocabulary.items.[INDEX].oneOf.0.intensity","typeLabel":"number"},"pronunciations":{"description":"The pronunciations used in the transcription.","type":"array","items":{"type":"string","uniqueKey":"realtime_processing.custom_vocabulary_config.vocabulary.items.[INDEX].oneOf.0.pronunciations.items.[INDEX]","typeLabel":"string"},"uniqueKey":"realtime_processing.custom_vocabulary_config.vocabulary.items.[INDEX].oneOf.0.pronunciations","typeLabel":"string[]"},"language":{"type":"string","description":"Specify the language in which it will be pronounced when sound comparison occurs. Default to transcription language.","enum":["af","am","ar","as","az","ba","be","bg","bn","bo","br","bs","ca","cs","cy","da","de","el","en","es","et","eu","fa","fi","fo","fr","gl","gu","ha","haw","he","hi","hr","ht","hu","hy","id","is","it","ja","jw","ka","kk","km","kn","ko","la","lb","ln","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","my","ne","nl","nn","no","oc","pa","pl","ps","pt","ro","ru","sa","sd","si","sk","sl","sn","so","sq","sr","su","sv","sw","ta","te","tg","th","tk","tl","tr","tt","uk","ur","uz","vi","yi","yo","zh"],"example":"en","uniqueKey":"realtime_processing.custom_vocabulary_config.vocabulary.items.[INDEX].oneOf.0.language","typeLabel":"enum\u003cstring>"}},"uniqueKey":"realtime_processing.custom_vocabulary_config.vocabulary.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","uniqueKey":"realtime_processing.custom_vocabulary_config.vocabulary.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"realtime_processing.custom_vocabulary_config.vocabulary.items.[INDEX]","typeLabel":"object | string"},"isRequired":true,"uniqueKey":"realtime_processing.custom_vocabulary_config.vocabulary","typeLabel":"(object | string)[]"},"default_intensity":{"type":"number","description":"Default intensity for the custom vocabulary","example":0.5,"minimum":0,"maximum":1,"uniqueKey":"realtime_processing.custom_vocabulary_config.default_intensity","typeLabel":"number"}},"uniqueKey":"realtime_processing.custom_vocabulary_config","typeLabel":"object"},"custom_spelling":{"type":"boolean","description":"If true, enable custom spelling for the transcription.","default":false,"uniqueKey":"realtime_processing.custom_spelling","typeLabel":"boolean"},"custom_spelling_config":{"type":"object","description":"Custom spelling configuration, if `custom_spelling` is enabled","required":["spelling_dictionary"],"properties":{"spelling_dictionary":{"type":"object","description":"The list of spelling applied on the audio transcription","example":{"Gettleman":["gettleman"],"SQL":["Sequel"]},"additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"realtime_processing.custom_spelling_config.spelling_dictionary.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"realtime_processing.custom_spelling_config.spelling_dictionary.additionalProperties","typeLabel":"string[]"},"isRequired":true,"uniqueKey":"realtime_processing.custom_spelling_config.spelling_dictionary","typeLabel":"object"}},"uniqueKey":"realtime_processing.custom_spelling_config","typeLabel":"object"},"translation":{"type":"boolean","description":"If true, enable translation for the transcription","default":false,"uniqueKey":"realtime_processing.translation","typeLabel":"boolean"},"translation_config":{"type":"object","description":"Translation configuration, if `translation` is enabled","required":["target_languages"],"properties":{"target_languages":{"type":"array","description":"Target language in `iso639-1` format you want the transcription translated to","example":["en"],"minItems":1,"items":{"type":"string","enum":["af","am","ar","as","az","ba","be","bg","bn","bo","br","bs","ca","cs","cy","da","de","el","en","es","et","eu","fa","fi","fo","fr","gl","gu","ha","haw","he","hi","hr","ht","hu","hy","id","is","it","ja","jw","ka","kk","km","kn","ko","la","lb","ln","lo","lt","lv","mg","mi","mk","ml","mn","mr","ms","mt","my","ne","nl","nn","no","oc","pa","pl","ps","pt","ro","ru","sa","sd","si","sk","sl","sn","so","sq","sr","su","sv","sw","ta","te","tg","th","tk","tl","tr","tt","uk","ur","uz","vi","wo","yi","yo","zh"],"description":"Target language in `iso639-1` format you want the transcription translated to","uniqueKey":"realtime_processing.translation_config.target_languages.items.[INDEX]","typeLabel":"enum\u003cstring>"},"isRequired":true,"uniqueKey":"realtime_processing.translation_config.target_languages","typeLabel":"enum\u003cstring>[]"},"model":{"type":"string","description":"Model you want the translation model to use to translate","default":"batch","enum":["base","batch","enhanced"],"uniqueKey":"realtime_processing.translation_config.model","typeLabel":"enum\u003cstring>"},"match_original_utterances":{"type":"boolean","description":"Align translated utterances with the original ones","default":true,"uniqueKey":"realtime_processing.translation_config.match_original_utterances","typeLabel":"boolean"},"lipsync":{"type":"boolean","description":"Whether to apply lipsync to the translated transcription. ","default":true,"uniqueKey":"realtime_processing.translation_config.lipsync","typeLabel":"boolean"},"context_adaptation":{"type":"boolean","description":"Enables or disables context-aware translation features that allow the model to adapt translations based on provided context.","default":true,"uniqueKey":"realtime_processing.translation_config.context_adaptation","typeLabel":"boolean"},"context":{"type":"string","description":"Context information to improve translation accuracy","uniqueKey":"realtime_processing.translation_config.context","typeLabel":"string"},"informal":{"type":"boolean","description":"Forces the translation to use informal language forms when available in the target language.","default":false,"uniqueKey":"realtime_processing.translation_config.informal","typeLabel":"boolean"}},"uniqueKey":"realtime_processing.translation_config","typeLabel":"object"},"named_entity_recognition":{"type":"boolean","description":"If true, enable named entity recognition for the transcription.","default":false,"uniqueKey":"realtime_processing.named_entity_recognition","typeLabel":"boolean"},"sentiment_analysis":{"type":"boolean","description":"If true, enable sentiment analysis for the transcription.","default":false,"uniqueKey":"realtime_processing.sentiment_analysis","typeLabel":"boolean"}},"uniqueKey":"realtime_processing","typeLabel":"object"},"post_processing":{"type":"object","description":"Specify the post-processing configuration","properties":{"summarization":{"type":"boolean","description":"If true, generates summarization for the whole transcription.","default":false,"uniqueKey":"post_processing.summarization","typeLabel":"boolean"},"summarization_config":{"type":"object","description":"Summarization configuration, if `summarization` is enabled","properties":{"type":{"type":"string","description":"The type of summarization to apply","default":"general","enum":["general","bullet_points","concise"],"uniqueKey":"post_processing.summarization_config.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"post_processing.summarization_config","typeLabel":"object"}},"uniqueKey":"post_processing","typeLabel":"object"},"messages_config":{"type":"object","description":"Specify the websocket messages configuration","properties":{"receive_partial_transcripts":{"type":"boolean","description":"If true, partial transcript will be sent to websocket.","default":false,"uniqueKey":"messages_config.receive_partial_transcripts","typeLabel":"boolean"},"receive_final_transcripts":{"type":"boolean","description":"If true, final transcript will be sent to websocket.","default":true,"uniqueKey":"messages_config.receive_final_transcripts","typeLabel":"boolean"},"receive_speech_events":{"type":"boolean","description":"If true, begin and end speech events will be sent to websocket.","default":true,"uniqueKey":"messages_config.receive_speech_events","typeLabel":"boolean"},"receive_pre_processing_events":{"type":"boolean","description":"If true, pre-processing events will be sent to websocket.","default":true,"uniqueKey":"messages_config.receive_pre_processing_events","typeLabel":"boolean"},"receive_realtime_processing_events":{"type":"boolean","description":"If true, realtime processing events will be sent to websocket.","default":true,"uniqueKey":"messages_config.receive_realtime_processing_events","typeLabel":"boolean"},"receive_post_processing_events":{"type":"boolean","description":"If true, post-processing events will be sent to websocket.","default":true,"uniqueKey":"messages_config.receive_post_processing_events","typeLabel":"boolean"},"receive_acknowledgments":{"type":"boolean","description":"If true, acknowledgments will be sent to websocket.","default":true,"uniqueKey":"messages_config.receive_acknowledgments","typeLabel":"boolean"},"receive_errors":{"type":"boolean","description":"If true, errors will be sent to websocket.","default":true,"uniqueKey":"messages_config.receive_errors","typeLabel":"boolean"},"receive_lifecycle_events":{"type":"boolean","description":"If true, lifecycle events will be sent to websocket.","default":false,"uniqueKey":"messages_config.receive_lifecycle_events","typeLabel":"boolean"}},"uniqueKey":"messages_config","typeLabel":"object"},"callback":{"type":"boolean","description":"If true, messages will be sent to configured url.","default":false,"uniqueKey":"callback","typeLabel":"boolean"},"callback_config":{"type":"object","description":"Specify the callback configuration","properties":{"url":{"type":"string","description":"URL on which we will do a `POST` request with configured messages","example":"https://callback.example","format":"uri","uniqueKey":"callback_config.url","typeLabel":"string\u003curi>"},"receive_partial_transcripts":{"type":"boolean","description":"If true, partial transcript will be sent to the defined callback.","default":false,"uniqueKey":"callback_config.receive_partial_transcripts","typeLabel":"boolean"},"receive_final_transcripts":{"type":"boolean","description":"If true, final transcript will be sent to the defined callback.","default":true,"uniqueKey":"callback_config.receive_final_transcripts","typeLabel":"boolean"},"receive_speech_events":{"type":"boolean","description":"If true, begin and end speech events will be sent to the defined callback.","default":false,"uniqueKey":"callback_config.receive_speech_events","typeLabel":"boolean"},"receive_pre_processing_events":{"type":"boolean","description":"If true, pre-processing events will be sent to the defined callback.","default":true,"uniqueKey":"callback_config.receive_pre_processing_events","typeLabel":"boolean"},"receive_realtime_processing_events":{"type":"boolean","description":"If true, realtime processing events will be sent to the defined callback.","default":true,"uniqueKey":"callback_config.receive_realtime_processing_events","typeLabel":"boolean"},"receive_post_processing_events":{"type":"boolean","description":"If true, post-processing events will be sent to the defined callback.","default":true,"uniqueKey":"callback_config.receive_post_processing_events","typeLabel":"boolean"},"receive_acknowledgments":{"type":"boolean","description":"If true, acknowledgments will be sent to the defined callback.","default":false,"uniqueKey":"callback_config.receive_acknowledgments","typeLabel":"boolean"},"receive_errors":{"type":"boolean","description":"If true, errors will be sent to the defined callback.","default":false,"uniqueKey":"callback_config.receive_errors","typeLabel":"boolean"},"receive_lifecycle_events":{"type":"boolean","description":"If true, lifecycle events will be sent to the defined callback.","default":true,"uniqueKey":"callback_config.receive_lifecycle_events","typeLabel":"boolean"}},"uniqueKey":"callback_config","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"encoding":"wav/pcm","bit_depth":16,"sample_rate":16000,"channels":1,"custom_metadata":{"user":"John Doe"},"model":"solaria-1","endpointing":0.05,"maximum_duration_without_endpointing":5,"language_config":{"languages":[],"code_switching":false},"pre_processing":{"audio_enhancer":false,"speech_threshold":0.6},"realtime_processing":{"custom_vocabulary":false,"custom_spelling":false,"translation":false,"named_entity_recognition":false,"sentiment_analysis":false},"post_processing":{"summarization":false,"summarization_config":{"type":"general"}},"messages_config":{"receive_partial_transcripts":false,"receive_final_transcripts":true,"receive_speech_events":true,"receive_pre_processing_events":true,"receive_realtime_processing_events":true,"receive_post_processing_events":true,"receive_acknowledgments":true,"receive_errors":true,"receive_lifecycle_events":false},"callback":false,"callback_config":{"url":"https://callback.example","receive_partial_transcripts":false,"receive_final_transcripts":true,"receive_speech_events":false,"receive_pre_processing_events":true,"receive_realtime_processing_events":true,"receive_post_processing_events":true,"receive_acknowledgments":false,"receive_errors":false,"receive_lifecycle_events":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"e459f2ee-28a9-4540-a6de-ea8d2974d1f6":{"description":"The live job has been initiated","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Id of the job","format":"uuid","example":"45463597-20b7-4af7-b3b3-f5fb778203ab","isRequired":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"created_at":{"type":"string","description":"Creation date","format":"date-time","example":"2023-12-28T09:04:17.210Z","isRequired":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"url":{"type":"string","description":"The websocket url to connect to for sending audio data. The url will contain the temporary token to authenticate the session.","example":"wss://api.gladia.io/v2/live?token=4a39145c-2844-4557-8f34-34883f7be7d9","format":"uri","isRequired":true,"uniqueKey":"url","typeLabel":"string\u003curi>"}},"required":["id","created_at","url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"45463597-20b7-4af7-b3b3-f5fb778203ab","created_at":"2023-12-28T09:04:17.210Z","url":"wss://api.gladia.io/v2/live?token=4a39145c-2844-4557-8f34-34883f7be7d9"}}},"exampleType":"generated"}},"exampleType":"generated"},"b85c58aa-0728-4a88-b573-5706746f8baa":{"description":"Something is wrong with the request","content":{"application/json":{"schema":{"type":"object","properties":{"timestamp":{"type":"string","description":"Date of when the error occurred","example":"2023-12-28T09:04:17.210Z","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"path":{"type":"string","description":"Path to the API endpoint","example":"/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab","isRequired":true,"uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","description":"Debug id","example":"G-821fe9df","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"statusCode":{"type":"number","description":"HTTP status code of the error","example":400,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"number"},"message":{"type":"string","description":"Error message","example":"Content-Type is missing Multipart Boundary.","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"validation_errors":{"description":"List of validation errors, if any","example":["Field \"language\" must be a string","Field \"min_speakers\" must be a number"],"type":"array","items":{"type":"string","uniqueKey":"validation_errors.items.[INDEX]","typeLabel":"string"},"uniqueKey":"validation_errors","typeLabel":"string[]"}},"required":["timestamp","path","request_id","statusCode","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"timestamp":"2023-12-28T09:04:17.210Z","path":"/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab","request_id":"G-821fe9df","statusCode":400,"message":"Content-Type is missing Multipart Boundary.","validation_errors":["Field \"language\" must be a string","Field \"min_speakers\" must be a number"]}}},"exampleType":"generated"}},"exampleType":"generated"},"14bf7784-0e1b-4460-b4b3-4135fbd2918c":{"description":"You don't have the permissions to initiate a new live job","content":{"application/json":{"schema":{"type":"object","properties":{"timestamp":{"type":"string","description":"Date of when the error occurred","example":"2023-12-28T09:04:17.210Z","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"path":{"type":"string","description":"Path to the API endpoint","example":"/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab","isRequired":true,"uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","description":"Debug id","example":"G-821fe9df","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"statusCode":{"type":"number","description":"HTTP status code of the error","example":401,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"number"},"message":{"type":"string","description":"Error message","example":"gladia key not found","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["timestamp","path","request_id","statusCode","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"timestamp":"2023-12-28T09:04:17.210Z","path":"/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab","request_id":"G-821fe9df","statusCode":401,"message":"gladia key not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"c6208329-34c4-4954-958f-58ada309e69e":{"description":"The parameters you gave are incorrect","content":{"application/json":{"schema":{"type":"object","properties":{"timestamp":{"type":"string","description":"Date of when the error occurred","example":"2023-12-28T09:04:17.210Z","isRequired":true,"uniqueKey":"timestamp","typeLabel":"string"},"path":{"type":"string","description":"Path to the API endpoint","example":"/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab","isRequired":true,"uniqueKey":"path","typeLabel":"string"},"request_id":{"type":"string","description":"Debug id","example":"G-821fe9df","isRequired":true,"uniqueKey":"request_id","typeLabel":"string"},"statusCode":{"type":"number","description":"HTTP status code of the error","example":422,"isRequired":true,"uniqueKey":"statusCode","typeLabel":"number"},"message":{"type":"string","description":"Error message","example":"Invalid parameter","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["timestamp","path","request_id","statusCode","message"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"timestamp":"2023-12-28T09:04:17.210Z","path":"/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab","request_id":"G-821fe9df","statusCode":422,"message":"Invalid parameter"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"cf0c2aeb-5e58-4092-972b-48f4ecb0d6df":{"x_gladia_key":{"type":"apiKey","in":"header","name":"x-gladia-key","description":"Your personal Gladia API key","scopes":[],"schemeName":"x_gladia_key"}}},"servers":{"5fdda1c3-9852-4bd5-a15c-7317eb42293c":{"url":"https://api.gladia.io/","description":"Gladia API production URL"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-gladia-key","description":"Your personal Gladia API key","scopes":[],"schemeName":"x_gladia_key"},"schema":{"title":"x-gladia-key","type":"string","description":"Your personal Gladia API key","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"x_gladia_key","name":"x-gladia-key"}],"title":"x_gladia_key"}]},"originalFileLocation":"https://api.gladia.io/openapi.json"},"subdomain":"gladia-95","siteName":"Gladia","title":"Initiate a session - Gladia","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-10-01T09:34:59.353Z","originalFileLocation":"api-reference/v2/live/init.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Initiate a live transcription WebSocket session.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gladia\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Initiate a session - Gladia\">\u003cmeta data-mint-head property=\"og:description\" content=\"Initiate a live transcription WebSocket session.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gladia\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gladia.io/api-reference/v2/live/init\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gladia-95.mintlify.site/_mintlify/api/og/v2?division=Live+endpoints\u0026amp;title=Initiate+a+session\u0026amp;description=Initiate+a+live+transcription+WebSocket+session.\u0026amp;theme=e0e1724ef500c8bc024a3a3d\u0026amp;signature=d35d16d6489f2fecac4a79d057e4fbf8cb4565f735160e01f30cd7a9bbf7e095\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Initiate a session - Gladia\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Initiate a live transcription WebSocket session.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gladia-95.mintlify.site/_mintlify/api/og/v2?division=Live+endpoints\u0026amp;title=Initiate+a+session\u0026amp;description=Initiate+a+live+transcription+WebSocket+session.\u0026amp;theme=e0e1724ef500c8bc024a3a3d\u0026amp;signature=d35d16d6489f2fecac4a79d057e4fbf8cb4565f735160e01f30cd7a9bbf7e095\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gladia-95/C6Kx4RCj0cgFXBjD/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gladia\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2e343e\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gladia.io/api-reference/v2/live/init\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/v2/live/init.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gladia.io/#organization\",\"name\":\"Gladia\",\"url\":\"https://docs.gladia.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gladia-95/7AxFDxWc-Kx9YrXI/assets/images/logos/text-black.svg?fit=max\u0026auto=format\u0026n=7AxFDxWc-Kx9YrXI\u0026q=85\u0026s=859e5353abd40a9847f9e2c7484fed6e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gladia.io#website\",\"name\":\"Gladia\",\"url\":\"https://docs.gladia.io\",\"publisher\":{\"@id\":\"https://docs.gladia.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gladia.io/api-reference/v2/live/init#webpage\",\"url\":\"https://docs.gladia.io/api-reference/v2/live/init\",\"name\":\"Initiate a session\",\"description\":\"Initiate a live transcription WebSocket session.\",\"dateModified\":\"2025-10-01T09:34:59.353Z\",\"isPartOf\":{\"@id\":\"https://docs.gladia.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gladia.io/api-reference/v2/live/init#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gladia.io/api-reference/v2/live/init#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Gladia\",\"item\":\"https://docs.gladia.io\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Initiate a session\",\"item\":\"https://docs.gladia.io/api-reference/v2/live/init\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gladia.io/api-reference/v2/live/init#apireference\",\"headline\":\"Initiate a session\",\"name\":\"Initiate a session\",\"description\":\"Initiate a live transcription WebSocket session.\",\"url\":\"https://docs.gladia.io/api-reference/v2/live/init\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gladia.io/api-reference/v2/live/init#webpage\"},\"dateModified\":\"2025-10-01T09:34:59.353Z\",\"publisher\":{\"@id\":\"https://docs.gladia.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gladia.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gladia\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gladia\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/v2/live/init.md","siteName":"Gladia","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":"/chapters/introduction"}]},{"anchor":"API Reference","icon":"code","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference"},{"title":"Authentication","description":"Use your API key to authenticate your calls","href":"/api-reference/authentication"}]},{"group":"Live endpoints","pages":[{"title":"Initiate a session","openapi":"POST /v2/live","href":"/api-reference/v2/live/init"},{"title":"Live WebSocket","description":"WebSocket to send audio chunks and receive events.","asyncapi":"asyncapi.yaml liveTranscription","href":"/api-reference/v2/live/websocket"},{"title":"Get result","openapi":"GET /v2/live/{id}","href":"/api-reference/v2/live/get"},{"title":"List transcriptions","openapi":"GET /v2/live","href":"/api-reference/v2/live/list"},{"title":"Download audio file","openapi":"GET /v2/live/{id}/file","href":"/api-reference/v2/live/get-audio"},{"title":"Delete transcription","openapi":"delete /v2/live/{id}","href":"/api-reference/v2/live/delete"},{"group":"Webhooks","icon":"webhook","pages":[{"title":"Start session","href":"/api-reference/v2/live/webhook/start-session"},{"title":"Start recording","href":"/api-reference/v2/live/webhook/start-recording"},{"title":"End recording","href":"/api-reference/v2/live/webhook/end-recording"},{"title":"End session","href":"/api-reference/v2/live/webhook/end-session"}]},{"group":"Callbacks","icon":"reply-all","pages":[{"group":"Realtime messages","pages":[{"title":"Transcript","href":"/api-reference/v2/live/callback/transcript"},{"title":"Speech Start","href":"/api-reference/v2/live/callback/speech-start"},{"title":"Speech End","href":"/api-reference/v2/live/callback/speech-end"},{"title":"Translation","href":"/api-reference/v2/live/callback/translation"},{"title":"Named Entity Recognition","href":"/api-reference/v2/live/callback/named-entity-recognition"},{"title":"Sentiment Analysis","href":"/api-reference/v2/live/callback/sentiment-analysis"}]},{"group":"Post-processing messages","pages":[{"title":"Post Transcript","href":"/api-reference/v2/live/callback/post-transcript"},{"title":"Final transcript","href":"/api-reference/v2/live/callback/post-final-transcript"},{"title":"Summarization","href":"/api-reference/v2/live/callback/post-summarization"}]},{"group":"Acknowledgment messages","pages":[{"title":"Audio chunk acknowledge (ack)","href":"/api-reference/v2/live/callback/audio-chunk-ack"},{"title":"Stop recording acknowledge (ack)","href":"/api-reference/v2/live/callback/stop-recording-ack"}]},{"group":"Lifecycle messages","pages":[{"title":"Start session","href":"/api-reference/v2/live/callback/start-session"},{"title":"Start recording","href":"/api-reference/v2/live/callback/start-recording"},{"title":"End recording","href":"/api-reference/v2/live/callback/end-recording"},{"title":"End session","href":"/api-reference/v2/live/callback/end-session"}]}]}]},{"group":"Pre-recorded endpoints","pages":[{"title":"Upload a file","openapi":"post /v2/upload","href":"/api-reference/v2/upload/audio-file"},{"title":"Initiate a transcription","openapi":"POST /v2/pre-recorded","href":"/api-reference/v2/pre-recorded/init"},{"title":"Get result","openapi":"GET /v2/pre-recorded/{id}","href":"/api-reference/v2/pre-recorded/get"},{"title":"List transcriptions","openapi":"GET /v2/pre-recorded","href":"/api-reference/v2/pre-recorded/list"},{"title":"Download audio file","openapi":"GET /v2/pre-recorded/{id}/file","href":"/api-reference/v2/pre-recorded/get-audio"},{"title":"Delete transcription","openapi":"delete /v2/pre-recorded/{id}","href":"/api-reference/v2/pre-recorded/delete"},{"group":"Webhooks","icon":"webhook","pages":[{"title":"Created","href":"/api-reference/v2/pre-recorded/webhook/created"},{"title":"Success","href":"/api-reference/v2/pre-recorded/webhook/success"},{"title":"Error","href":"/api-reference/v2/pre-recorded/webhook/error"}]},{"group":"Callbacks","icon":"reply-all","pages":[{"title":"Success","href":"/api-reference/v2/pre-recorded/callback/success"},{"title":"Error","href":"/api-reference/v2/pre-recorded/callback/error"}]}]},{"group":"Transcription (deprecated)","pages":[{"title":"Initiate a transcription","openapi":"POST /v2/transcription","href":"/api-reference/v2/transcription/init"},{"title":"Get result","openapi":"GET /v2/transcription/{id}","href":"/api-reference/v2/transcription/get"},{"title":"List transcriptions","openapi":"GET /v2/transcription","href":"/api-reference/v2/transcription/list"},{"title":"Download audio file","openapi":"GET /v2/transcription/{id}/file","href":"/api-reference/v2/transcription/get-audio"},{"title":"Delete transcription","openapi":"delete /v2/transcription/{id}","href":"/api-reference/v2/transcription/delete"}]}]}]},"basePath":"","title":"Initiate a session - Gladia","buildId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","deploymentId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-DPDWPCdE.js","utils-DyjUHyLo.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BWYE1cdS.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-COAzxpEw.js","snippetPresets-DNiD_S52.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-DDHbuAIY.js","ApiExamples-CjwVt80x.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ByHQMk7z.js","shallow-CaZuw1AO.js","getApiPlaygroundDisplay-DPVPOknm.js","CodeSnippet-B31CH-Mp.js","CodeSnippets-BxTYZWz6.js","getPastedJson-DhoAwiNO.js","icon-Dhq8z75J.js","MethodPill-DLXmKOwr.js","DuplicateIcon-jzdVwyRU.js","createIcon-eD0b3klN.js","DynamicMarkdown-BfddVCX7.js","SectionHeading-2pSCIo17.js","axios-vUo_bRtp.js","Markdown-DsWjhwJ4.js","clsx-B2t_mZQG.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CUljsAY7.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Cf70306N.js"]}