iOS 如何录制内部音频?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/17821859/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 00:29:07  来源:igfitidea点击:

iOS How can I record internal audio?

ioscore-audio

提问by zono

Is it possible to record background sound by an app? If so, what is the key technology? (Core Audio?)

是否可以通过应用程序录制背景声音?如果是,关键技术是什么?(核心音频?)

What I want to do is below..

我想做的是下面..

  1. Open BBC radio on safari.
  2. Open the recording app. At the time, safari runs in the background.
  3. Record the sound by the recording app.
  1. 在 safari 上打开 BBC 电台。
  2. 打开录音应用。当时,safari 在后台运行。
  3. 通过录音应用程序录制声音。

I tried to find solutions like using "Novocaine" but I still haven't the faintest idea.

我试图找到使用“Novocaine”之类的解决方案,但我仍然没有最模糊的想法。

回答by Dominik Hadl

This is a duplicate of Record Internal Sound iPhone SDK.

这是Record Internal Sound iPhone SDK的副本。

And no, you cannot do it by any public API - using a non-public API will result in your app getting rejected and not allowed into the Apple App Store.

不,您不能通过任何公共 API 来做到这一点 - 使用非公共 API 将导致您的应用被拒绝并且不允许进入 Apple App Store。

回答by Patrick Goley

Have you tried getting the stream URL for BBC Radio and record directly from the stream? If you can find the right URL, something like AudioStreamercould help you actually stream the audio. Then it is only up to you to record what you get from the stream. This is a much more realistic approach to accomplishing your goal.

您是否尝试过获取 BBC Radio 的流 URL 并直接从流中录制?如果您能找到正确的 URL,则AudioStreamer 之类的东西可以帮助您实际流式传输音频。然后只由您来记录您从流中获得的内容。这是实现目标的更现实的方法。