简体   繁体   English

从SFSpeechRecognizer获取语音幅度

[英]Get voice amplitude from SFSpeechRecognizer

Im using this library https://github.com/appcoda/SpeechToTextDemo to transcript voice to text 我使用这个库https://github.com/appcoda/SpeechToTextDemo将语音转录成文本

I want to have the real voice amplitude to show graph of voice with this library https://github.com/alankarmisra/SwiftSiriWaveformView 我希望有真实的声音幅度来显示这个库的语音图https://github.com/alankarmisra/SwiftSiriWaveformView

i dont know how to get this value from the first library 我不知道如何从第一个库中获取此值

我不确定你是否可以通过语音工具包获得它,但我在语音识别器和AVAudioRecorder组合中做了类似的东西,得到了self.audioRecorder?.averagePower ,我用它来更新那个声波的振幅。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM