Interface TimedRecognitionCallback
- All Superinterfaces:
RecognitionCallback
- All Known Implementing Classes:
TimedRecognitionCallback.Adapter
Caption-aware
SpeechRecognizer callback. Platform recognizers
that expose segment timing can call these overloads; text-only
recognizers continue to use RecognitionCallback.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classNo-op adapter. -
Method Summary
Modifier and TypeMethodDescriptionvoidonPartialResult(TranscriptionResult result) Called with an interim timed recognition result.voidonResult(TranscriptionResult result, float confidence, String[] alternatives) Called with the final timed recognition result.Methods inherited from interface RecognitionCallback
onEnd, onError, onPartialResult, onResult
-
Method Details
-
onPartialResult
Called with an interim timed recognition result.- Parameters:
result- partial timed recognition result
-
onResult
Called with the final timed recognition result.- Parameters:
result- final timed recognition resultconfidence- confidence score from0.0to1.0, when availablealternatives- provider-specific alternative transcripts
-