最終更新:2022-02-19 (土) 05:58:37 (800d)
SFSpeechRecognizer.recognitionTask(with:resultHandler:)
Top / SFSpeechRecognizer.recognitionTask(with:resultHandler:)
https://developer.apple.com/documentation/speech/sfspeechrecognizer/1649883-recognitiontask
func recognitionTask(with request: SFSpeechRecognitionRequest, resultHandler: @escaping (SFSpeechRecognitionResult?, Error?) -> Void) -> SFSpeechRecognitionTask
パラメータ
resultHandler
- The block to call when partial or final results are available, or when an error occurs. If the shouldReportPartialResults? property is true, this block may be called multiple times to deliver the partial and final results. The block has no return value and takes the following parameters:
- result: A SFSpeechRecognitionResult containing the partial or final transcriptions of the audio content.
- error: An error object if a problem occurred. This parameter is nil if speech recognition was successful.