public interface SFSpeechRecognitionTaskDelegate
| Modifier and Type | Method and Description |
|---|---|
default void |
speechRecognitionDidDetectSpeech(SFSpeechRecognitionTask task)
Called when the task first detects speech in the source audio
|
default void |
speechRecognitionTaskDidFinishRecognition(SFSpeechRecognitionTask task,
SFSpeechRecognitionResult recognitionResult)
Called only for final recognitions of utterances.
|
default void |
speechRecognitionTaskDidFinishSuccessfully(SFSpeechRecognitionTask task,
boolean successfully)
Called when recognition of all requested utterances is finished.
|
default void |
speechRecognitionTaskDidHypothesizeTranscription(SFSpeechRecognitionTask task,
SFTranscription transcription)
Called for all recognitions, including non-final hypothesis
|
default void |
speechRecognitionTaskFinishedReadingAudio(SFSpeechRecognitionTask task)
Called when the task is no longer accepting new audio but may be finishing final processing
|
default void |
speechRecognitionTaskWasCancelled(SFSpeechRecognitionTask task)
Called when the task has been cancelled, either by client app, the user, or the system
|
default void speechRecognitionDidDetectSpeech(SFSpeechRecognitionTask task)
default void speechRecognitionTaskDidFinishRecognition(SFSpeechRecognitionTask task, SFSpeechRecognitionResult recognitionResult)
default void speechRecognitionTaskDidFinishSuccessfully(SFSpeechRecognitionTask task, boolean successfully)
default void speechRecognitionTaskDidHypothesizeTranscription(SFSpeechRecognitionTask task, SFTranscription transcription)
default void speechRecognitionTaskFinishedReadingAudio(SFSpeechRecognitionTask task)
default void speechRecognitionTaskWasCancelled(SFSpeechRecognitionTask task)