Class Assistant


  • public class Assistant
    extends TwiML
    TwiML wrapper for <Assistant>
    • Method Detail

      • getId

        public String getId()
        The assistant ID of the AI Assistant
        Returns:
        The assistant ID of the AI Assistant
      • getLanguage

        public String getLanguage()
        Language to be used for both text-to-speech and transcription
        Returns:
        Language to be used for both text-to-speech and transcription
      • getTtsLanguage

        public String getTtsLanguage()
        Language to be used for text-to-speech
        Returns:
        Language to be used for text-to-speech
      • getTranscriptionLanguage

        public String getTranscriptionLanguage()
        Language to be used for transcription
        Returns:
        Language to be used for transcription
      • getTtsProvider

        public String getTtsProvider()
        Provider to be used for text-to-speech
        Returns:
        Provider to be used for text-to-speech
      • getVoice

        public String getVoice()
        Voice to be used for text-to-speech
        Returns:
        Voice to be used for text-to-speech
      • getTranscriptionProvider

        public String getTranscriptionProvider()
        Provider to be used for transcription
        Returns:
        Provider to be used for transcription
      • getSpeechModel

        public String getSpeechModel()
        Speech model to be used for transcription
        Returns:
        Speech model to be used for transcription
      • isProfanityFilter

        public Boolean isProfanityFilter()
        Whether profanities should be filtered out of the speech transcription
        Returns:
        Whether profanities should be filtered out of the speech transcription
      • isDtmfDetection

        public Boolean isDtmfDetection()
        Whether DTMF tones should be detected and reported in speech transcription
        Returns:
        Whether DTMF tones should be detected and reported in speech transcription
      • getWelcomeGreeting

        public String getWelcomeGreeting()
        The sentence to be played automatically when the session is connected
        Returns:
        The sentence to be played automatically when the session is connected
      • isPartialPrompts

        public Boolean isPartialPrompts()
        Whether partial prompts should be reported to WebSocket server before the caller finishes speaking
        Returns:
        Whether partial prompts should be reported to WebSocket server before the caller finishes speaking
      • isInterruptible

        public Boolean isInterruptible()
        Whether caller's speaking can interrupt the play of text-to-speech
        Returns:
        Whether caller's speaking can interrupt the play of text-to-speech
      • isInterruptByDtmf

        public Boolean isInterruptByDtmf()
        Whether DTMF tone can interrupt the play of text-to-speech
        Returns:
        Whether DTMF tone can interrupt the play of text-to-speech
      • isWelcomeGreetingInterruptible

        public Boolean isWelcomeGreetingInterruptible()
        Whether caller's speaking can interrupt the welcome greeting
        Returns:
        Whether caller's speaking can interrupt the welcome greeting
      • isDebug

        public Boolean isDebug()
        Whether debugging on the session is enabled
        Returns:
        Whether debugging on the session is enabled