<ConversationRelay> verb routes a call to a ConversationRelay service that provides voice interactions over a WebSocket connection. It provides speech-to-text transcription and allows requesting text-to-speech synthesis for the call over WebSocket.
Attributes
| ATTRIBUTE | DESCRIPTION | OPTIONS | DEFAULT |
|---|---|---|---|
url | The WebSocket URL of the conversation relay server. | - | |
welcomeGreeting | A greeting message to be spoken when the conversation relay session starts. | - | |
voice | The TTS voice to use (e.g., Telnyx.Natural.abbie, Telnyx.NaturalHD.astra). | - | |
language | The language for TTS and transcription (e.g., en, fr, es). | - | |
transcriptionProvider | The speech-to-text provider (e.g., deepgram). | - | |
interruptible | Whether TTS playback can be interrupted by the caller. true is an alias for any, false is an alias for none. | none, any, speech, dtmf, true, false | any |
welcomeGreetingInterruptible | Whether the welcome greeting can be interrupted by the caller. true is an alias for any, false is an alias for none. | none, any, speech, dtmf, true, false | any |
dtmfDetection | Whether to enable DTMF detection during the conversation relay session. | false |
Child verbs/nouns
| NOUN/VERB | DESCRIPTION |
|---|---|
Language | Configures a supported language with optional per-language voice and provider settings. Multiple <Language> elements can be specified to enable multilingual conversations. |
Parameter | Custom key-value parameter passed to the WebSocket server as assistant dynamic variables. |
Language Attributes
| ATTRIBUTE | DESCRIPTION | OPTIONS | DEFAULT |
|---|---|---|---|
code | The language code (e.g., en, fr, es). | - | |
ttsProvider | The text-to-speech provider to use for this language (e.g., telnyx, google). | - | |
voice | The voice to use for this language. | - | |
transcriptionProvider | The speech-to-text provider to use for this language (e.g., google, telnyx, deepgram). | - | |
speechModel | The speech recognition model to use for this language (e.g., nova-2). | - |
Parameter Attributes
| ATTRIBUTE | DESCRIPTION | OPTIONS | DEFAULT |
|---|---|---|---|
name | The name of the custom parameter. | - | |
value | The value of the custom parameter. | - |
Examples
Basic usage with greeting and voice
Multilingual with DTMF language selection
Custom parameters
Custom parameters are passed to the WebSocket server as assistant dynamic variables.Non-interruptible greeting
UsewelcomeGreetingInterruptible="none" to ensure the greeting plays fully before accepting input.