问题
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