curl --request POST \
--url https://api.gladia.io/v2/pre-recorded \
--header 'Content-Type: application/json' \
--header 'x-gladia-key: <api-key>' \
--data @- <<EOF
{
"audio_url": "http://files.gladia.io/example/audio-transcription/split_infinity.wav",
"language_config": {
"languages": [],
"code_switching": false
},
"custom_vocabulary": false,
"custom_vocabulary_config": {
"vocabulary": [
"Westeros",
{
"value": "Stark"
},
{
"value": "Night's Watch",
"pronunciations": [
"Nightz Watch"
],
"intensity": 0.4,
"language": "en"
}
],
"default_intensity": 0.5
},
"callback": false,
"callback_config": {
"url": "http://callback.example",
"method": "POST"
},
"subtitles": false,
"subtitles_config": {
"formats": [
"srt"
],
"minimum_duration": 1,
"maximum_duration": 15.5,
"maximum_characters_per_row": 2,
"maximum_rows_per_caption": 3,
"style": "default"
},
"diarization": false,
"diarization_config": {
"number_of_speakers": 3,
"min_speakers": 1,
"max_speakers": 2
},
"translation": false,
"translation_config": {
"target_languages": [
"en"
],
"model": "base",
"match_original_utterances": true,
"lipsync": true,
"context_adaptation": true,
"context": "<string>",
"informal": false
},
"summarization": false,
"summarization_config": {
"type": "general"
},
"named_entity_recognition": false,
"custom_spelling": false,
"custom_spelling_config": {
"spelling_dictionary": {
"Gettleman": [
"gettleman"
],
"SQL": [
"Sequel"
]
}
},
"sentiment_analysis": false,
"audio_to_llm": false,
"audio_to_llm_config": {
"prompts": [
"Extract the key points from the transcription"
]
},
"custom_metadata": {
"user": "John Doe"
},
"sentences": false,
"punctuation_enhanced": false
}
EOF{
"id": "45463597-20b7-4af7-b3b3-f5fb778203ab",
"result_url": "https://api.gladia.io/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab"
}Initiate a pre-recorded transcription job. Use the returned id and the GET /v2/pre-recorded/:id endpoint to obtain the results.
curl --request POST \
--url https://api.gladia.io/v2/pre-recorded \
--header 'Content-Type: application/json' \
--header 'x-gladia-key: <api-key>' \
--data @- <<EOF
{
"audio_url": "http://files.gladia.io/example/audio-transcription/split_infinity.wav",
"language_config": {
"languages": [],
"code_switching": false
},
"custom_vocabulary": false,
"custom_vocabulary_config": {
"vocabulary": [
"Westeros",
{
"value": "Stark"
},
{
"value": "Night's Watch",
"pronunciations": [
"Nightz Watch"
],
"intensity": 0.4,
"language": "en"
}
],
"default_intensity": 0.5
},
"callback": false,
"callback_config": {
"url": "http://callback.example",
"method": "POST"
},
"subtitles": false,
"subtitles_config": {
"formats": [
"srt"
],
"minimum_duration": 1,
"maximum_duration": 15.5,
"maximum_characters_per_row": 2,
"maximum_rows_per_caption": 3,
"style": "default"
},
"diarization": false,
"diarization_config": {
"number_of_speakers": 3,
"min_speakers": 1,
"max_speakers": 2
},
"translation": false,
"translation_config": {
"target_languages": [
"en"
],
"model": "base",
"match_original_utterances": true,
"lipsync": true,
"context_adaptation": true,
"context": "<string>",
"informal": false
},
"summarization": false,
"summarization_config": {
"type": "general"
},
"named_entity_recognition": false,
"custom_spelling": false,
"custom_spelling_config": {
"spelling_dictionary": {
"Gettleman": [
"gettleman"
],
"SQL": [
"Sequel"
]
}
},
"sentiment_analysis": false,
"audio_to_llm": false,
"audio_to_llm_config": {
"prompts": [
"Extract the key points from the transcription"
]
},
"custom_metadata": {
"user": "John Doe"
},
"sentences": false,
"punctuation_enhanced": false
}
EOF{
"id": "45463597-20b7-4af7-b3b3-f5fb778203ab",
"result_url": "https://api.gladia.io/v2/transcription/45463597-20b7-4af7-b3b3-f5fb778203ab"
}Your personal Gladia API key
URL to a Gladia file or to an external audio or video file
"http://files.gladia.io/example/audio-transcription/split_infinity.wav"
Specify the language configuration
Show child attributes
[Beta] Can be either boolean to enable custom_vocabulary for this audio or an array with specific vocabulary list to feed the transcription model with
[Beta] Custom vocabulary configuration, if custom_vocabulary is enabled
Show child attributes
Enable callback for this transcription. If true, the callback_config property will be used to customize the callback behaviour
Customize the callback behaviour (url and http method)
Show child attributes
Enable subtitles generation for this transcription
Configuration for subtitles generation if subtitles is enabled
Show child attributes
Enable speaker recognition (diarization) for this audio
Speaker recognition configuration, if diarization is enabled
Show child attributes
[Beta] Enable translation for this audio
[Beta] Translation configuration, if translation is enabled
Show child attributes
[Beta] Enable summarization for this audio
[Beta] Summarization configuration, if summarization is enabled
Show child attributes
[Alpha] Enable named entity recognition for this audio
[Alpha] Enable custom spelling for this audio
[Alpha] Custom spelling configuration, if custom_spelling is enabled
Show child attributes
Enable sentiment analysis for this audio
[Alpha] Enable audio to llm processing for this audio
[Alpha] Audio to llm configuration, if audio_to_llm is enabled
Show child attributes
Custom metadata you can attach to this transcription
{ "user": "John Doe" }Enable sentences for this audio
[Alpha] Use enhanced punctuation for this audio
The pre recorded job has been initiated