相关疑难解决方法(0)

连续语音识别.与SFSpeechRecognizer(ios10-beta)

我正在努力执行续.AVCapture在iOS 10 beta上使用语音识别.我已经设置captureOutput(...)了不断获得CMSampleBuffers.我将这些缓冲区直接放入SFSpeechAudioBufferRecognitionRequest我之前设置的中,如下所示:

... do some setup
  SFSpeechRecognizer.requestAuthorization { authStatus in
    if authStatus == SFSpeechRecognizerAuthorizationStatus.authorized {
      self.m_recognizer = SFSpeechRecognizer()
      self.m_recognRequest = SFSpeechAudioBufferRecognitionRequest()
      self.m_recognRequest?.shouldReportPartialResults = false
      self.m_isRecording = true
    } else {
      print("not authorized")
    }
  }
.... do further setup


func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, from connection: AVCaptureConnection!) {

if(!m_AV_initialized) {
  print("captureOutput(...): not initialized !")
  return
}
if(!m_isRecording) {
  return
}

let formatDesc = CMSampleBufferGetFormatDescription(sampleBuffer)
let mediaType = CMFormatDescriptionGetMediaType(formatDesc!)
if (mediaType …
Run Code Online (Sandbox Code Playgroud)

beta ios swift ios10

14
推荐指数
4
解决办法
2万
查看次数

iOS 10的语音识别限制

有谁知道iOS 10(每台设备或每个应用程序)的语音识别是否有限制?

speech-recognition ios10 apple-speech

9
推荐指数
2
解决办法
4795
查看次数

标签 统计

ios10 ×2

apple-speech ×1

beta ×1

ios ×1

speech-recognition ×1

swift ×1