Config
Note
The
configFunction is non-blocking.
{
"verb": "config",
"synthesizer": {
"voice": "Jenny"
},
"recognizer": {
"vendor": "google",
"language": "de-DE"
},
"bargeIn": {
"enable": true,
"input" : ["speech"],
"actionHook: "/userInput"
}
}
Parameters
amdbooleanenable answering machine detection; see the amd properties of the dial Function for details.
actionHookDelayActionobjectAn object describing behaviors to apply if the application delays in responding to an action hook (same options as the gather Function).
bargeInobjectthis object contains properties that are used to instantiate a 'background' gather Function.
bargeIn.enablebooleanif true, begin listening for speech or dtmf input while the session is executing other Functions. This is known as a "background gather" and an application to capture user input outside of a gather Function. If false, stop any background listening task that is in progress.
bargeIn.stickybooleanIf true and bargeIn.enable is true, then when the background gather completes with speech or dtmf detected, it will automatically start another background gather.
bargeIn.actionHookstringA webhook to call if user input is collected from the background gather.
bargeIn.inputarrayArray, specifying allowed types of input: ['digits'], ['speech'], or ['digits', 'speech'].
bargeIn.finishOnKeystringDtmf key that signals the end of dtmf input.
bargeIn.numDigitsnumberExact number of dtmf digits expected to gather.
bargeIn.minDigitsnumberMinimum number of dtmf digits expected to gather. Defaults to 1.
bargeIn.maxDigitsnumberMaximum number of dtmf digits expected to gather.
bargeIn.interDigitTimeoutnumberAmount of time to wait between digits after minDigits have been entered.
boostAudioSignalstring | numberA string or integer value indicating the number of decibels to boost or reduce the strength of the outgoing audio signal to the caller/called party, e.g. "-6 dB". Note this applies to the main track only, not to any dub tracks.
fillerNoiseobjectplay audio to the caller while the remote application is processing gather transcriptions. This is a session-wide setting that may be overridden at the gather Function level.
fillerNoise.enablebooleanwhether to enable or disable filler noise.
fillerNoise.urlstringhttp(s) audio to play as filler noise.
fillerNoise.startDelaySecsnumberinteger value specifying number of seconds to wait for a response from the remote application before playing filler noise (default: play immediately after sending results).
listenobjecta nested listen action, which allows recording of the call from this point forward by streaming the audio to a remote server over a websocket connection.
notifyEventsbooleanwhether to enable event notifications (Function:status messages) over websocket connections. Functions that are sent over the websocket must also contain an "id" property to activate this feature.
onHoldMusicstringprovides the URL to a remote music source to use when a call is placed on hold.
recognizerobjectchange the session-level default speech recognition settings. See the transcribe Function for details on the recognizer property.
resetstring | arrayresets either 'recognizer' and/or 'synthesizer' to the default application settings.
recordobjectoptions to manage call recording.
record.actionstring"startCallRecording", "stopCallRecording", "pauseCallRecording", or "resumeCallRecording".
record.typestringSpecifies the recording type.
Allowed values:
- siprec (default)
- cloud
record.silencebooleanWhen action : pauseCallRecording setting this to true will pad the recording with silence.
Defaults to false meaning the recording file is truncated during the pause.
record.siprecServerURLstringSIP URI for SIPREC server.
Note: Required if action is "startCallRecording" and type is not "cloud".
record.recordingIDstringUser-supplied string to identify the recording. Note: Only used with siprec recording
transcribeobjecta nested transcribe action, which allows a transcription of the call to be sent in the background.
transcribe.enablebooleanif true start the transcribe, if false stop it.
transcribe.transcriptionHookstringthe webhook/websocket identifier to send transcriptions to (required if enabling transcription).
transcribe.recognizerobjectrecognizer options.
sipRequestWithinDialogHookstring | objecta webhook to call when a SIP request is received within the dialog (e.g. an INFO, NOTIFY, or REFER).
synthesizerobjectchange the session-level default text-to-speech settings. See the say Function for details on the synthesizer property.
disableTtsCachebooleandisable TTS caching for an entire call session
noiseIsolationobjectEnable or disable server-side noise isolation to reduce background noise on call audio. Useful for improving STT accuracy in noisy environments.
noiseIsolation.enablebooleanWhether to enable or disable noise isolation.
noiseIsolation.vendorstringNoise isolation vendor: "krisp" or "rnnoise". Availability of Krisp depends on your service plan. RNNoise is open-source and requires no API key.
noiseIsolation.levelnumberSuppression level 0–100. Higher values are more aggressive. Default: 100.
noiseIsolation.modelstringOptional model name override.
turnTakingobjectEnable or disable turn-taking detection for conversational AI applications. Turn-taking uses an acoustic model to determine when the user has finished speaking, rather than relying on silence detection alone.
turnTaking.enablebooleanWhether to enable or disable turn-taking detection.
turnTaking.vendorstringTurn-taking vendor: "krisp". Availability of Krisp depends on your service plan.
turnTaking.thresholdnumberConfidence threshold 0.0–1.0. Lower values trigger earlier turn transitions (more aggressive). Default: 0.5.
turnTaking.modelstringOptional model name override.