Share via


ISFSpeechRecognitionTaskDelegate Interface

Definition

Delegate object whose members are called in reaction to speech-recognition events.

[Foundation.Protocol(Name="SFSpeechRecognitionTaskDelegate", WrapperType=typeof(Speech.SFSpeechRecognitionTaskDelegateWrapper))]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidDetectSpeech", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask) }, Selector="speechRecognitionDidDetectSpeech:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidHypothesizeTranscription", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask), typeof(Speech.SFTranscription) }, Selector="speechRecognitionTask:didHypothesizeTranscription:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidFinishRecognition", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask), typeof(Speech.SFSpeechRecognitionResult) }, Selector="speechRecognitionTask:didFinishRecognition:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="FinishedReadingAudio", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask) }, Selector="speechRecognitionTaskFinishedReadingAudio:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WasCancelled", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask) }, Selector="speechRecognitionTaskWasCancelled:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidFinishSuccessfully", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask), typeof(System.Boolean) }, Selector="speechRecognitionTask:didFinishSuccessfully:")]
[Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidProcessAudioDuration", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask), typeof(System.Double) }, Selector="speechRecognitionTask:didProcessAudioDuration:")]
public interface ISFSpeechRecognitionTaskDelegate : IDisposable, ObjCRuntime.INativeObject
[<Foundation.Protocol(Name="SFSpeechRecognitionTaskDelegate", WrapperType=typeof(Speech.SFSpeechRecognitionTaskDelegateWrapper))>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidDetectSpeech", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask) }, Selector="speechRecognitionDidDetectSpeech:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidHypothesizeTranscription", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask), typeof(Speech.SFTranscription) }, Selector="speechRecognitionTask:didHypothesizeTranscription:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidFinishRecognition", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask), typeof(Speech.SFSpeechRecognitionResult) }, Selector="speechRecognitionTask:didFinishRecognition:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="FinishedReadingAudio", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask) }, Selector="speechRecognitionTaskFinishedReadingAudio:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="WasCancelled", ParameterByRef=new System.Boolean[] { false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask) }, Selector="speechRecognitionTaskWasCancelled:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidFinishSuccessfully", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask), typeof(System.Boolean) }, Selector="speechRecognitionTask:didFinishSuccessfully:")>]
[<Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="DidProcessAudioDuration", ParameterByRef=new System.Boolean[] { false, false }, ParameterType=new System.Type[] { typeof(Speech.SFSpeechRecognitionTask), typeof(System.Double) }, Selector="speechRecognitionTask:didProcessAudioDuration:")>]
type ISFSpeechRecognitionTaskDelegate = interface
    interface INativeObject
    interface IDisposable
Derived
Attributes
Implements

Properties

Name Description
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from INativeObject)

Methods

Name Description
DidDetectSpeech(SFSpeechRecognitionTask)

The system calls this method periodically as speech is detected.

DidFinishRecognition(SFSpeechRecognitionTask, SFSpeechRecognitionResult)

The system calls this method after it has completed recognition.

DidFinishSuccessfully(SFSpeechRecognitionTask, Boolean)

The system calls this method after the task has finished.

DidHypothesizeTranscription(SFSpeechRecognitionTask, SFTranscription)

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

DidProcessAudioDuration(SFSpeechRecognitionTask, Double)
FinishedReadingAudio(SFSpeechRecognitionTask)

Called by the system after the audio input has finished.

WasCancelled(SFSpeechRecognitionTask)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)
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.

DidProcessAudioDuration(ISFSpeechRecognitionTaskDelegate, SFSpeechRecognitionTask, Double)
FinishedReadingAudio(ISFSpeechRecognitionTaskDelegate, SFSpeechRecognitionTask)

Called by the system after the audio input has finished.

WasCancelled(ISFSpeechRecognitionTaskDelegate, SFSpeechRecognitionTask)

Applies to

See also