Get voice amplitude from SFSpeechRecognizer

こ雲淡風輕ζ 提交于 2019-12-23 17:14:53

问题


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


回答1:


I am not sure if you can get that from Speech kit but I made something similar where I combined speech recogniser and AVAudioRecorder and got the self.audioRecorder?.averagePower which I used to update amplitude of that sound wave.



来源:https://stackoverflow.com/questions/42906845/get-voice-amplitude-from-sfspeechrecognizer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!