iOS开发语音识别

时间:2020-03-17 08:39:40

标签: ios swift

我正在使用语音框架,它运行良好。 (导入语音,导入AVFoundation)

我会按照以下说明停止它: audioEngine.stop() request.endAudio() 认识任务? .CANCEL() audioEngine.inputNode.removeTap(onBus:0)。

然后我使用这些说明,但是音频非常低,几乎不存在。

      let string1 = "welcome"
      let utterance1 = AVSpeechUtterance (string: string1)
      utterance1.voice = AVSpeechSynthesisVoice (language: "it-IT")
      let synth1 = AVSpeechSynthesizer ()
      synth1.speak (utterance1)

你能帮我吗?

非常感谢 马西莫参议员 佛罗伦萨网络部 意大利

0 个答案:

没有答案