ISFSpeechRecognitionTaskDelegate Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
| 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) | |