如何使用AVAudioRecorder数据并将其转换为原始音频的C ++? [英] How to use AVAudioRecorder data and convert it to raw audio for C++?

查看:170
本文介绍了如何使用AVAudioRecorder数据并将其转换为原始音频的C ++?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从哪里获取麦克风输入在Mac和目标C AVAudioRecorder类止跌回升仰视。我已经成功地录制音频到一个文件,但我该如何使用AVAudioRecorder然后将其转换的核心音频格式数据转换成原始音频在C ++ code使用,例如PocketSphinx?谢谢

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

推荐答案

音频队列API和RemoteIO音频单元将允许iOS设备上的麦克风获取原始音频样本缓冲区。

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

这篇关于如何使用AVAudioRecorder数据并将其转换为原始音频的C ++?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆