Package com.sinch.android.rtc.calling
Class DialVoiceRelayOptions
-
- All Implemented Interfaces:
@SinchBetaApi() public final class DialVoiceRelayOptions
Options for dialing a Voice Relay endpoint through the Sinch Voice V2 platform.
Voice Relay connects the call to speech-to-text (STT) and text-to-speech (TTS) services through a WebSocket endpoint. A
nulloptional property is omitted from the dial request and the Voice V2 platform applies its default.See Voice locales for the available voices and locales.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringttsVoiceprivate final StringsttLanguageprivate final StringserviceIdprivate final BooleanenableInterruptionsprivate final Map<String, String>callHeaders
-
Constructor Summary
Constructors Constructor Description DialVoiceRelayOptions(String ttsVoice, String sttLanguage, String serviceId, Boolean enableInterruptions, Map<String, String> callHeaders)DialVoiceRelayOptions(String ttsVoice, String sttLanguage, String serviceId, Boolean enableInterruptions)DialVoiceRelayOptions(String ttsVoice, String sttLanguage, String serviceId)DialVoiceRelayOptions(String ttsVoice, String sttLanguage)
-
Method Summary
Modifier and Type Method Description final StringgetTtsVoice()final StringgetSttLanguage()final StringgetServiceId()final BooleangetEnableInterruptions()final Map<String, String>getCallHeaders()-
-
Constructor Detail
-
DialVoiceRelayOptions
DialVoiceRelayOptions(String ttsVoice, String sttLanguage, String serviceId, Boolean enableInterruptions, Map<String, String> callHeaders)
- Parameters:
ttsVoice- Name of the voice used for speech synthesis, for exampleEmma.sttLanguage- BCP 47 language tag used to transcribe inbound audio, for exampleen-US.serviceId- Voice V2 service ID to use for the dial.enableInterruptions- Whether callers can interrupt, or barge in on, TTS playback.callHeaders- Custom headers included in the destination call setup.
-
DialVoiceRelayOptions
DialVoiceRelayOptions(String ttsVoice, String sttLanguage, String serviceId, Boolean enableInterruptions)
- Parameters:
ttsVoice- Name of the voice used for speech synthesis, for exampleEmma.sttLanguage- BCP 47 language tag used to transcribe inbound audio, for exampleen-US.serviceId- Voice V2 service ID to use for the dial.enableInterruptions- Whether callers can interrupt, or barge in on, TTS playback.
-
DialVoiceRelayOptions
DialVoiceRelayOptions(String ttsVoice, String sttLanguage, String serviceId)
- Parameters:
ttsVoice- Name of the voice used for speech synthesis, for exampleEmma.sttLanguage- BCP 47 language tag used to transcribe inbound audio, for exampleen-US.serviceId- Voice V2 service ID to use for the dial.
-
-
Method Detail
-
getTtsVoice
final String getTtsVoice()
-
getSttLanguage
final String getSttLanguage()
-
getServiceId
final String getServiceId()
-
getEnableInterruptions
final Boolean getEnableInterruptions()
-
getCallHeaders
final Map<String, String> getCallHeaders()
-
-
-
-