SFSpeechRecognizer.GetRecognitionTask 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetRecognitionTask(SFSpeechRecognitionRequest, ISFSpeechRecognitionTaskDelegate) |
擷 SFSpeechRecognitionTask 取 的 |
GetRecognitionTask(SFSpeechRecognitionRequest, Action<SFSpeechRecognitionResult,NSError>) |
SFSpeechRecognitionTask |
GetRecognitionTask(SFSpeechRecognitionRequest, ISFSpeechRecognitionTaskDelegate)
擷 SFSpeechRecognitionTask 取 的 request
,這會呼叫 回傳回 aDelegate
。
[Foundation.Export("recognitionTaskWithRequest:delegate:")]
public virtual Speech.SFSpeechRecognitionTask GetRecognitionTask (Speech.SFSpeechRecognitionRequest request, Speech.ISFSpeechRecognitionTaskDelegate delegate);
abstract member GetRecognitionTask : Speech.SFSpeechRecognitionRequest * Speech.ISFSpeechRecognitionTaskDelegate -> Speech.SFSpeechRecognitionTask
override this.GetRecognitionTask : Speech.SFSpeechRecognitionRequest * Speech.ISFSpeechRecognitionTaskDelegate -> Speech.SFSpeechRecognitionTask
參數
- request
- SFSpeechRecognitionRequest
- delegate
- ISFSpeechRecognitionTaskDelegate
傳回
- 屬性
適用於
GetRecognitionTask(SFSpeechRecognitionRequest, Action<SFSpeechRecognitionResult,NSError>)
SFSpeechRecognitionTaskrequest
取得 的 , resultHandler
並視需要以非同步方式呼叫 。
[Foundation.Export("recognitionTaskWithRequest:resultHandler:")]
public virtual Speech.SFSpeechRecognitionTask GetRecognitionTask (Speech.SFSpeechRecognitionRequest request, Action<Speech.SFSpeechRecognitionResult,Foundation.NSError> resultHandler);
abstract member GetRecognitionTask : Speech.SFSpeechRecognitionRequest * Action<Speech.SFSpeechRecognitionResult, Foundation.NSError> -> Speech.SFSpeechRecognitionTask
override this.GetRecognitionTask : Speech.SFSpeechRecognitionRequest * Action<Speech.SFSpeechRecognitionResult, Foundation.NSError> -> Speech.SFSpeechRecognitionTask
參數
- request
- SFSpeechRecognitionRequest
- resultHandler
- Action<SFSpeechRecognitionResult,NSError>
傳回
- 屬性
備註
在大部分情況下, resultHandler
會在背景執行緒上多次呼叫 。