FakeSpeechRecognizer
class FakeSpeechRecognizer(var script: List<SpeechRecognitionEvent> = emptyList(), var error: SpeechRecognitionException? = null) : SpeechRecognizing
Scripted SpeechRecognizing for consumer tests.
Each collected run emits script in order, then throws error if set, otherwise completes. Runs and stop calls are recorded.
Constructors
Link copied to clipboard
constructor(script: List<SpeechRecognitionEvent> = emptyList(), error: SpeechRecognitionException? = null)
Properties
Functions
Link copied to clipboard
open override fun recognize(configuration: SpeechRecognitionConfiguration): Flow<SpeechRecognitionEvent>