iphone xcode 中从麦克风到扬声器的音频流

发布于 2024-12-26 04:20:14 字数 200 浏览 8 评论 0原文

实际上我是 iOS 开发的新手。 我的客户要求是让 iPhone 作为 MegaPhone 工作。即,音频输入应从蓝牙或麦克风获取,并通过手机扬声器广播。

我可以从麦克风录制音频并使用 AVAudioRecorder 和 AVAudioPlayer 播放它,但实际上我需要的是广播到不录音的扬声器。

伙计们有可用的示例代码吗?

提前致谢。

Actually i'm a newbee to iOS development.
My requirement from a client is to make iPhone work as a MegaPhone. i.e, Audio input should be taken from the bluetooth or microphone and broadcast it through phone speakers.

I am able to record audio from microphone and play it using AVAudioRecorder and AVAudioPlayer,but what actually i needed is to broadcast to the speakers not recording.

Guys any sample codes available for this??

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文