简体   繁体   中英

Get voice amplitude from SFSpeechRecognizer

Im using this library https://github.com/appcoda/SpeechToTextDemo to transcript voice to text

I want to have the real voice amplitude to show graph of voice with this library https://github.com/alankarmisra/SwiftSiriWaveformView

i dont know how to get this value from the first library

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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