NAME
Twilio::TwiML::Voice::ConversationRelay - The ConversationRelay element of TwiML
SYNOPSIS
my $element = Twilio::TwiML::Voice::ConversationRelay->new(\%attributes);
DESCRIPTION
See Twilio::TwiML::TwiML for the methods every element has.
METHODS
new
my $element = Twilio::TwiML::Voice::ConversationRelay->new(\%attributes);
attribute_table
Used by Twilio::TwiML::TwiML.
language
my $child = $element->language(\%attributes);
Add Language child. Returns a Twilio::TwiML::Voice::Language.
parameter
my $child = $element->parameter(\%attributes);
Add Parameter child. Returns a Twilio::TwiML::Voice::Parameter.
ATTRIBUTES
Each name works in \%attributes, and as a set_ method that returns the element.
application_reconnect-
Whether the WebSocket connection to the application should be reconnected if it drops during the call. Defaults to false True or false.
asr_smart_format-
Whether smart formatting should be applied to transcripts. Takes precedence over deepgramSmartFormat True or false.
backgroundnoisereduction-
This parameters enables background noise filtering on the audio stream before it reaches the STT engine, improving transcription accuracy in noisy environments
customer_name-
Customer name sent to Conversations and Conversational Intelligence. Defaults to the caller ID
debug-
Multiple debug options to be used for troubleshooting
deepgramsmartformat-
This parameter enables Deepgram's smart formatting feature, which automatically applies punctuation, capitalization, and formatting (e.g. numbers, dates, currency) to transcripts
dtmf_detection-
Whether DTMF tones should be detected and reported in speech transcription True or false.
eager_eot_threshold-
Eager end-of-turn confidence threshold, which fires before the end-of-turn threshold. The value can be between 0.3 and 0.9
echo_prompt_filtering-
Whether transcripts that echo the agent's own text-to-speech should be dropped. Defaults to false True or false.
elevenlabs_language_text_normalization-
Legacy alias of ttsLanguageTextNormalization True or false.
elevenlabs_text_normalization-
When using ElevenLabs as TTS provider, this parameter allows you to enable or disable its text normalization feature
events-
This parameter allows you to enable event subscriptions
hints-
Phrases to help better accuracy in speech recognition of these pharases
ignorebackchannel-
This parameter brief caller acknowledgments (e.g. "yeah", "uh-huh") are ignored and will not interrupt the agent while it is speaking.
include_in_prompt-
Extra fields to be included in prompt messages. The value can be turn-state or prompt-segments
intelligence_service-
The Conversational Intelligence Service id or unique name to be used for the session
interrupt_sensitivity-
Set the sensitivity of the interrupt feature for speech. The value can be low, medium, or high
interruptible-
Whether and how the input from a caller, such as speaking or DTMF can interrupt the play of text-to-speech
language-
Language to be used for both text-to-speech and transcription
partial_prompt_on_hangup-
Whether the in-progress partial transcript should be reported as a prompt when the call hangs up True or false.
partial_prompts-
Whether partial prompts should be reported to WebSocket server before the caller finishes speaking True or false.
preemptible-
Whether subsequent text-to-speech or play media can interrupt the on-going play of text-to-speech or media True or false.
profanity_filter-
Whether profanities should be filtered out of the speech transcription True or false.
report_input_during_agent_speech-
Whether prompts should be reported to WebSocket server when text-to-speech playing and interrupt is disabled True or false.
speech_model-
Speech model to be used for transcription
speechtimeout-
Set the duration of silence that indicates the end of speech
transcription_language-
Language to be used for transcription
transcription_provider-
Provider to be used for transcription
tts_language-
Language to be used for text-to-speech
tts_language_text_normalization-
Whether language-specific text normalization should be applied for text-to-speech True or false.
tts_provider-
Provider to be used for text-to-speech
tts_text_normalization-
Text normalization for text-to-speech. The value can be auto, on, or off. Takes precedence over elevenlabsTextNormalization
turn_detection-
Whether turn detection should be used to decide when the caller has finished speaking. Defaults to false True or false.
url-
URL of the remote service where the session is connected to
voice-
Voice to be used for text-to-speech
welcome_greeting-
The sentence to be played automatically when the session is connected
welcome_greeting_interruptible-
"Whether and how the input from a caller, such as speaking or DTMF can interrupt the welcome greeting
set_application_reconnect
set_asr_smart_format
set_backgroundnoisereduction
set_customer_name
set_debug
set_deepgramsmartformat
set_dtmf_detection
set_eager_eot_threshold
set_echo_prompt_filtering
set_elevenlabs_language_text_normalization
set_elevenlabs_text_normalization
set_events
set_hints
set_ignorebackchannel
set_include_in_prompt
set_intelligence_service
set_interrupt_sensitivity
set_interruptible
set_language
set_partial_prompt_on_hangup
set_partial_prompts
set_preemptible
set_profanity_filter
set_report_input_during_agent_speech
set_speech_model
set_speechtimeout
set_transcription_language
set_transcription_provider
set_tts_language
set_tts_language_text_normalization
set_tts_provider
set_tts_text_normalization
set_turn_detection
set_url
set_voice
set_welcome_greeting
set_welcome_greeting_interruptible
Set the attribute of the same name.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.