Package org.openhab.core.voice
Class DialogContext.Builder
java.lang.Object
org.openhab.core.voice.DialogContext.Builder
- Enclosing class:
- DialogContext
Builder for
DialogContext
Allows to describe a dialog context without requiring the involved services to be loaded-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a newDialogContextwithDialogGroup(@Nullable String dialogGroup) withHLI(@Nullable HumanLanguageInterpreter service) withHLIs(Collection<HumanLanguageInterpreter> services) withHLIs(List<HumanLanguageInterpreter> services) withKeyword(@Nullable String keyword) withListeningItem(@Nullable String listeningItem) withLocale(@Nullable Locale locale) withLocationItem(@Nullable String locationItem) withMelody(@Nullable String listeningMelody) withSource(@Nullable AudioSource source) withSTT(@Nullable STTService service) withTTS(@Nullable TTSService service)
-
Constructor Details
-
Builder
-
-
Method Details
-
withSource
-
withSink
-
withKS
-
withSTT
-
withTTS
-
withHLI
-
withHLIs
-
withHLIs
-
withKeyword
-
withVoice
-
withDialogGroup
-
withLocationItem
-
withListeningItem
-
withMelody
-
withLocale
-
build
Creates a newDialogContext- Returns:
- a
DialogContextwith the configured components and options - Throws:
IllegalStateException- if a required dialog component is missing
-