Prompt

data class Prompt(text: String, voice: String, imageURL: String, expectFollowup: Boolean)

A message/response from the application. Contains either text or the URL of an image to be displayed by the Spokestack Tray and optionally text to be spoken and an indication of whether the Tray should stay open and reactivate the microphone after playing the voice response.

Constructors

Prompt
Link copied to clipboard
fun Prompt(text: String, voice: String = text, imageURL: String = "", expectFollowup: Boolean = false)

Properties

expectFollowup
Link copied to clipboard
val expectFollowup: Boolean = false
imageURL
Link copied to clipboard
val imageURL: String
text
Link copied to clipboard
val text: String
voice
Link copied to clipboard
val voice: String