在iOS上实时录制,修改音高和播放音频 [英] Record, modify pitch and play back audio in real time on iOS

查看:252
本文介绍了在iOS上实时录制,修改音高和播放音频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道是否有人可以向我解释如何录制音频,对其进行修改(音高?)并在iPhone上播放给用户.

I just wondering if anyone can explain to me how I would go about recording audio, modifying it (pitch?) and playing it back to the user on iPhone.

我不是要别人为我做这件事,只是有关我应该如何做的一些提示.查看文档,似乎我应该使用AVAudioSessionAVAudioRecorderAVAudioPlayer(AVFoundation.Framework)作为录音播放部件.还是应该使用CoreAudio.Framework?然后是有关修改音频的问题.

I'm not asking for someone to do this for me, just a few hints on how I should go about it. looking through the docs it seems like I should be using AVAudioSession, AVAudioRecorder and AVAudioPlayer (AVFoundation.Framework) for the recording playing parts. Or should I be using the CoreAudio.Framework? and then there is the question regarding modifying the audio.

推荐答案

OpenAL是一个库,支持您要搜索的内容.它在iPhone上非常流行,因此也许您应该对此进行一下了解. 即只需一个命令即可轻松更改样品的音高:

OpenAL is a library, that supports what you're searching for. And its very popular on the iPhone, so maybe you should take a look on this. i.e. The pitch of an sample is easily changeable with only one command:

alSourcef(source, AL_PITCH, pitch);

但是我不确定,AVFoundation或CoreAudio类是否也可以改变音高-从未使用过.

But I'm not sure, if pitch change is also with the AVFoundation or CoreAudio classes possible - never used them.

这篇关于在iOS上实时录制,修改音高和播放音频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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