对讲机与蓝牙耳机 [英] Intercom with Bluetooth headset

查看:109
本文介绍了对讲机与蓝牙耳机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究在iOS和蓝牙音频耳机之间创建双向音频链接的能力。

I've been researching the ability to create a bi-directional audio link between iOS and a bluetooth audio headset.

我需要做的是:

当用户对iOS设备上的麦克风讲话时,该音频应重定向到头戴式耳机之外的音频。
当耳机的麦克风拾取音频时,它应该从iOS设备的扬声器中发出。

What I need to be able to do is:
When the user speaks into the microphone on the iOS device, that audio should be redirected to the audio out of the headset, the piece. When the microphone of the headset picks up audio, that should come out the speaker of the iOS device.

在我的搜索中,我发现您可以:
启用蓝牙音频输入和输出:

如何将iPhone音频路由到蓝牙耳机

In my searching I've found that you can: Enable bluetooth audio input and output:
how to route iPhone audio to the bluetooth headset

将输入重定向到扬声器:

麦克风输入到iOS设备上的扬声器输出?

Redirect input to speaker:
Mic input to the speaker output on an iOS device?

阅读此内容后:

从蓝牙输出到线路输出或扬声器的AudioSession输入

我在想我想做的事。

After reading this:
AudioSession input from bluetooth output to line out or speaker
I'm thinking what I want to do cannot be done.

因此,在进行测试之前,是否有人知道我要尝试做的事是否可能。从最后一个链接看来,您一次只能有一个输入和输出对。我要执行的操作需要两对输入和输出。从BT进入,到iOS扬声器。

So before I get to testing, does anyone know if what I'm trying to do is even possible. From the last link it appears you can only have one input and output pair at a time. What I'm trying to do would require two pairs of input and output. In from BT, out to iOS speaker. In from iOS Mic, out to BT.

谢谢!

推荐答案

当前的公共iOS Audio Session API似乎仅支持单个音频路由对(输入+输出)。

The current public iOS Audio Session APIs appear to only support a single audio route pair (input+output).

这篇关于对讲机与蓝牙耳机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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