public class ChatBuilder
extends java.lang.Object
Chat
Modifier and Type | Method and Description |
---|---|
Chat |
build()
Return a configured instance of Chat
|
<any> |
buildAsync()
Return a configured instance of Chat
|
static ChatBuilder |
with(QiContext context)
Create a new builder from the qiContext
|
ChatBuilder |
withAsrDriverParameters(java.util.Map<java.lang.String,java.lang.String> aSRParameters)
Configure the AsrDriverParameters used by Chat
|
ChatBuilder |
withChatbot(Chatbot... chatbots)
Configure the chatbots sets used by Chat
|
ChatBuilder |
withChatbots(java.util.List<? extends Chatbot> chatbots)
Configure the chatbots sets used by Chat
|
ChatBuilder |
withLocale(Locale locale)
Configure the locale used by Chat
|
ChatBuilder |
withSpeechEngine(SpeechEngine speechEngine)
Configure the speechEngine used by Chat
|
public static ChatBuilder with(QiContext context)
context
- the Android contextpublic ChatBuilder withLocale(Locale locale)
locale
- the localepublic ChatBuilder withSpeechEngine(SpeechEngine speechEngine)
speechEngine
- the speechEnginepublic ChatBuilder withChatbot(Chatbot... chatbots)
chatbots
- the phrase sets listpublic ChatBuilder withChatbots(java.util.List<? extends Chatbot> chatbots)
chatbots
- the phrase sets listpublic ChatBuilder withAsrDriverParameters(java.util.Map<java.lang.String,java.lang.String> aSRParameters)
aSRParameters
- the AsrDriverParameterspublic Chat build()
public <any> buildAsync()