ChatComposerVoiceInput

data class ChatComposerVoiceInput(val state: ChatComposerVoiceState, val onStart: () -> Unit, val onStop: () -> Unit)

Voice input for a ChatComposer. Start recognition in onStart, write the live transcript into the composer's value so it can be reviewed before sending, update state as recognition progresses, and stop in onStop.

Constructors

Link copied to clipboard
constructor(state: ChatComposerVoiceState, onStart: () -> Unit, onStop: () -> Unit)

Properties

Link copied to clipboard
val onStart: () -> Unit
Link copied to clipboard
val onStop: () -> Unit
Link copied to clipboard