在 iPhone/iPod touch 上录制流媒体音频
该应用程序当前播放来自在线电台的音频。
基本上它有两个主要特点: 玩: 单击电台名称或播放按钮后,调频电台就会开始播放。
记录 : 单击记录链接后,记录器开始记录。再次单击它,停止并重播录制的音频。
问题
- 流媒体录制不清晰。 目前使用AVAudioRecorder的录音机虽然录制音频,但声音嘈杂。 难道是因为流媒体音频使用audioQueue,而使用的录音机是AVAudioRecorder,它也是从麦克风录制的。我们只想录制流媒体内容。
注意:AVAudioRecorder用于录音时声音清晰,但用于录制流媒体音频内容时效果不佳。
为了播放流音频,我使用了 Matt Gallagher 先生链接中的代码 此处
您能否建议一种更好的方法录制流媒体音频。 是否有像 AVAudioRecorder 这样的现有 API 或者我做错了什么?
This application currently plays audio from onine stations.
Basically it has 2 main features:
Play:
On click of a station name or the play button, the fm station starts playing.
Record :
On click of the record link, the recorders starts recording. Clicking it again, stops and replays the recorded audio.
The problem
- The streaming recording is not recording clearly.
The current recorder using AVAudioRecorder though records the audio, the sound is noisy.
Could it be because the streaming audio uses audioQueue while the recorder used is AVAudioRecorder which also records from microphone.We want to record only the streaming content.
Note: The AVAudioRecorder when used for voice recording is clear, but not good with recording streaming audio content.
For playing streaming audio, i used code from Mr. Matt Gallagher link is
here
Can you please suggest a better way to record streaming audio.
Is there an existing API like AVAudioRecorder or am I doing something wrong ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请看看这个框架。它在录制时提供录制数据 Streaming Kit Streaming Kit
通过 HTTP 播放 MP3
并将其数据附加到 NSMutabledata使用此委托离线玩游戏。
在播放前拦截 PCM 数据
Please Look at this Framework. It provide data for recording while recording Streaming Kit Streaming Kit
Play an MP3 over HTTP
And append its data to NSMutabledata to play offline by using this delegate.
Intercept PCM data just before its played