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 null optional property is omitted from the dial request and the Voice V2 platform applies its default.

    See Voice locales for the available voices and locales.

    • 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 example Emma.
        sttLanguage - BCP 47 language tag used to transcribe inbound audio, for example en-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 example Emma.
        sttLanguage - BCP 47 language tag used to transcribe inbound audio, for example en-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 example Emma.
        sttLanguage - BCP 47 language tag used to transcribe inbound audio, for example en-US.
        serviceId - Voice V2 service ID to use for the dial.
      • DialVoiceRelayOptions

        DialVoiceRelayOptions(String ttsVoice, String sttLanguage)
        Parameters:
        ttsVoice - Name of the voice used for speech synthesis, for example Emma.
        sttLanguage - BCP 47 language tag used to transcribe inbound audio, for example en-US.