Dial Voice Relay Options
constructor(ttsVoice: String, sttLanguage: String, serviceId: String? = null, enableInterruptions: Boolean? = null, callHeaders: Map<String, String>? = null)
Parameters
tts Voice
Name of the voice used for speech synthesis, for example Emma. Must not be empty.
stt Language
BCP 47 language tag used to transcribe inbound audio, for example en-US. Must not be empty.
service Id
Voice V2 service ID to use for the dial. If null, the project's default service is used.
enable Interruptions
Whether callers can interrupt, or barge in on, TTS playback.
call Headers
Custom headers included in the destination call setup. If null, no custom headers are included. At most 16 headers; each key must be 1 to 255 characters, and each value at most 255 characters.