Package com.twilio.twiml.voice
Class Assistant
- java.lang.Object
-
- com.twilio.twiml.TwiML
-
- com.twilio.twiml.voice.Assistant
-
public class Assistant extends TwiML
TwiML wrapper for<Assistant>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Assistant.Builder
Create a new<Assistant>
element
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
The assistant ID of the AI AssistantString
getLanguage()
Language to be used for both text-to-speech and transcriptionString
getSpeechModel()
Speech model to be used for transcriptionString
getTranscriptionLanguage()
Language to be used for transcriptionString
getTranscriptionProvider()
Provider to be used for transcriptionString
getTtsLanguage()
Language to be used for text-to-speechString
getTtsProvider()
Provider to be used for text-to-speechString
getVoice()
Voice to be used for text-to-speechString
getWelcomeGreeting()
The sentence to be played automatically when the session is connectedBoolean
isDebug()
Whether debugging on the session is enabledBoolean
isDtmfDetection()
Whether DTMF tones should be detected and reported in speech transcriptionBoolean
isInterruptByDtmf()
Whether DTMF tone can interrupt the play of text-to-speechBoolean
isInterruptible()
Whether caller's speaking can interrupt the play of text-to-speechBoolean
isPartialPrompts()
Whether partial prompts should be reported to WebSocket server before the caller finishes speakingBoolean
isProfanityFilter()
Whether profanities should be filtered out of the speech transcriptionBoolean
isWelcomeGreetingInterruptible()
Whether caller's speaking can interrupt the welcome greeting-
Methods inherited from class com.twilio.twiml.TwiML
equals, getChildren, getOptions, getTagName, hashCode, toUrl, toXml
-
-
-
-
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
-
-