【问题标题】:Get voice amplitude from SFSpeechRecognizer从 SFSpeechRecognizer 获取语音幅度
【发布时间】:2017-03-20 14:54:16
【问题描述】:

我正在使用这个库 https://github.com/appcoda/SpeechToTextDemo 将语音转录为文本

我想用这个库https://github.com/alankarmisra/SwiftSiriWaveformView获得真实的语音幅度来显示语音图

我不知道如何从第一个库中获取此值

【问题讨论】:

  • 你有解决办法吗?

标签: ios swift sfspeechrecognizer


【解决方案1】:

我不确定你是否可以从 Speech kit 中得到它,但我做了类似的事情,我将语音识别器和 AVAudioRecorder 结合起来,得到了 self.audioRecorder?.averagePower,我用它来更新那个声波的幅度。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-12
    相关资源
    最近更新 更多