Builder
data class Builder(orientation: TrayConfig.Orientation, haptic: Boolean, sayGreeting: Boolean, greeting: String, ttsMode: SynthesisRequest.Mode, voice: String, clientId: String?, clientSecret: String?, properties: HashMap<String, Any>, logLevel: Int, wakewordModelURL: String?, nluURL: String?, rasaOssURL: String?, refreshModels: Boolean, editTranscript: (String) -> String?, listener: SpokestackTrayListener?, transcriptEditor: TranscriptEditor?)
Content copied to clipboard
A fluent builder interface for creating a tray configuration.
Constructors
Builder
Link copied to clipboard
fun Builder(orientation: TrayConfig.Orientation = Orientation.LEFT, haptic: Boolean = true, sayGreeting: Boolean = true, greeting: String = "", ttsMode: SynthesisRequest.Mode = Mode.TEXT, voice: String = "demo-male", clientId: String? = null, clientSecret: String? = null, properties: HashMap<String, Any> = HashMap(), logLevel: Int = EventTracer.Level.NONE.value(), wakewordModelURL: String? = null, nluURL: String? = null, rasaOssURL: String? = null, refreshModels: Boolean = false, editTranscript: (String) -> String? = null, listener: SpokestackTrayListener? = null, transcriptEditor: TranscriptEditor? = null)
Content copied to clipboard
Functions
build
Link copied to clipboard
credentials
Link copied to clipboard
fun credentials(clientId: String, clientSecret: String): TrayConfig.Builder
Content copied to clipboard
greeting
Link copied to clipboard
haptic
Link copied to clipboard
logLevel
Link copied to clipboard
nluURL
Link copied to clipboard
orientation
Link copied to clipboard
rasaOssURL
Link copied to clipboard
refreshModels
Link copied to clipboard
sayGreeting
Link copied to clipboard
ttsMode
Link copied to clipboard
ttsVoice
Link copied to clipboard
wakewordModelURL
Link copied to clipboard
withListener
Link copied to clipboard
withProperty
Link copied to clipboard
withSpokestackBuilder
Link copied to clipboard
withTranscriptEditor
Link copied to clipboard
Properties
spokestackBuilder
Link copied to clipboard