Skip to main content

Recommended settings

Use the speech recognition and translation settings below to get started with the API. For detailed description and fine-tuning please refer to [translation settings breakdown section][2] or contact Palabra.ai support. Below you can find default, speed, and quality settings preset.

Default preset

Optimal settings to start with.

{
"input_stream": {
"content_type": "audio",
"source": {
"type": "webrtc"
}
},
"output_stream": {
"content_type": "audio",
"target": {
"type": "webrtc"
}
},
"pipeline": {
"transcription": {
"source_language": "en",
"detectable_languages": [],
"segment_confirmation_silence_threshold": 0.7,
"sentence_splitter": {
"enabled": true
},
"verification": {
"auto_transcription_correction": false,
"transcription_correction_style": null
}
},
"translations": [
{
"target_language": "es",
"translate_partial_transcriptions": false,
"speech_generation": {
"voice_cloning": false,
"voice_id": "default_low",
"voice_timbre_detection": {
"enabled": true,
"high_timbre_voices": [
"default_high"
],
"low_timbre_voices": [
"default_low"
]
}
}
}
],
"translation_queue_configs": {
"global": {
"desired_queue_level_ms": 8000,
"max_queue_level_ms": 24000,
"auto_tempo": true
}
},
"allowed_message_types": [
"translated_transcription",
"partial_transcription",
"partial_translated_transcription",
"validated_transcription"
]
}
}