SpeechInputState

@Stable
class SpeechInputState(source)

On-device speech recognition state (Android SpeechRecognizer), exposed so a UI can show the live level (e.g. on a Persona).

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Input loudness, 0–1, while listening.

Link copied to clipboard

Functions

Link copied to clipboard
fun cancel()

Stop listening and drop what was heard: no final transcript is delivered.

Link copied to clipboard
fun stop()