iPhone音频队列采样率问题
我正在为 iPhone 制作一款音高校正软件。我目前处于有趣的音频队列部分,我有一些关于改变音调的问题。我目前增加音调的想法是将采样率加倍并删除每隔一帧。我将其设置为以 LPCM 格式录制到文件并从该文件播放。如果我理解正确的话, lpcm 每个数据包有一帧,所以删除所有其他帧应该是小菜一碟。在尝试解决这部分代码之前我想知道的是,如果我使用 lpcm,我可以在文件的不同部分使用不同的采样率吗?如果没有,是否有另一种格式支持在文件的不同部分具有多个采样率?
I am in the process of making a piece of pitch correction software for the iPhone. I am currently at the fun Audio Queue part and I have a few questions about changing the pitch. My current idea to increase the pitch is to double the sampling rate and delete every other frame. I have it setup to record to a file and play from that file with LPCM format. If I understand correctly lpcm has one frame per packet so deleting every other frame should be a piece of cake. What I am wondering before I try to tackle this part of the code is if I use lpcm, can I have the sampling rate different in different parts of the file? If not is there another format that would support having multiple sampling rates at different parts of the file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能想首先在合适的环境中试验音调变换算法本身(例如 MATLAB/Octave,甚至只是桌面系统上您的首选语言)。如果它需要适用于音乐和语音,那么您可能需要考虑实现相位声码器。
You might want to experiment with the pitch shifting algorithm itself in a suitable environment first (e.g. MATLAB/Octave, or even just your preferred language on a desktop system). If it needs to work for music as well as speech then you probably want to look at implementing a phase vocoder.