DialVoiceRelayOptions

constructor(ttsVoice: String, sttLanguage: String, serviceId: String? = null, enableInterruptions: Boolean? = null, callHeaders: Map<String, String>? = null)

Parameters

ttsVoice

Name of the voice used for speech synthesis, for example Emma. Must not be empty.

sttLanguage

BCP 47 language tag used to transcribe inbound audio, for example en-US. Must not be empty.

serviceId

Voice V2 service ID to use for the dial. If null, the project's default service is used.

enableInterruptions

Whether callers can interrupt, or barge in on, TTS playback.

callHeaders

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.