How to use AVAudioRecorder data and convert it to raw audio for C++?

独自空忆成欢 提交于 2019-12-11 04:45:39

问题


I've been looking up on where to get microphone input in mac and the AVAudioRecorder class from Objective C turned up. I've managed to record audio into a file, but how can I use AVAudioRecorder and then convert it's Core Audio Format data into raw audio to use in C++ code, for example PocketSphinx? Thanks


回答1:


The Audio Queue API and the RemoteIO Audio Unit will allow getting raw audio sample buffers from the microphone on iOS devices.



来源:https://stackoverflow.com/questions/13328357/how-to-use-avaudiorecorder-data-and-convert-it-to-raw-audio-for-c

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