Edytuj

Udostępnij za pośrednictwem


SFSpeechRecognitionTaskDelegate_Extensions Class

Definition

Extension methods to the ISFSpeechRecognitionTaskDelegate interface to support all the methods from the SFSpeechRecognitionTaskDelegate protocol.

public static class SFSpeechRecognitionTaskDelegate_Extensions
type SFSpeechRecognitionTaskDelegate_Extensions = class
Inheritance
SFSpeechRecognitionTaskDelegate_Extensions

Remarks

The extension methods for ISFSpeechRecognitionTaskDelegate allow developers to treat instances of the interface as having all the optional methods of the original SFSpeechRecognitionTaskDelegate protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

DidDetectSpeech(ISFSpeechRecognitionTaskDelegate, SFSpeechRecognitionTask)

The system calls this method periodically as speech is detected.

DidFinishRecognition(ISFSpeechRecognitionTaskDelegate, SFSpeechRecognitionTask, SFSpeechRecognitionResult)

The system calls this method after it has completed recognition.

DidFinishSuccessfully(ISFSpeechRecognitionTaskDelegate, SFSpeechRecognitionTask, Boolean)

The system calls this method after the task has finished.

DidHypothesizeTranscription(ISFSpeechRecognitionTaskDelegate, SFSpeechRecognitionTask, SFTranscription)

The system calls this method periodically, as the speech recognition attempts to refine the results.

FinishedReadingAudio(ISFSpeechRecognitionTaskDelegate, SFSpeechRecognitionTask)

Called by the system after the audio input has finished.

WasCancelled(ISFSpeechRecognitionTaskDelegate, SFSpeechRecognitionTask)

Applies to