# Bluetooth device with speaker and mic not working

**URL:** <https://devforum.zoom.us/t/bluetooth-device-with-speaker-and-mic-not-working/78086>\
**Category:** iOS\
**Created:** [October 31, 2022, 3:47am UTC](https://devforum.zoom.us/t/bluetooth-device-with-speaker-and-mic-not-working/78086 "2022-10-31T03:47:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![curtis.forsta](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/curtis.forsta/32/33092_2.png) [@curtis.forsta](https://devforum.zoom.us/u/curtis.forsta)\
**Post date:** [October 31, 2022, 3:47am UTC](https://devforum.zoom.us/t/bluetooth-device-with-speaker-and-mic-not-working/78086/1 "2022-10-31T03:47:12Z")

</div>

**Description**  
I have an bluetooth device that is a speaker/mic combo and I have it connected to my iPhone. When I join a session, both the speaker and mic do not produce any sound nor does it pick up my voice. There is no audio coming the phone because I assume it is routing all audio to the bluetooth device. I have verified that the bluetooth device works as it works properly with the official Zoom app.

I have tested with the sample app provided with the VideoSDK and it also does not work. I have also included both bluetooth permissions “NSBluetoothPeripheralUsageDescription”, " NSBluetoothAlwaysUsageDescription" in the info.plist. I am curious what the purpose of these permissions are as I am never prompted with a dialog to allow these permissions from my device.

Without this bluetooth device connected, the phone’s speakers and mic work properly during a session.

Is there any additional configuration for audio required to get this to work?

**Which iOS Video SDK version?**  
1.5.2

**Smartphone (please complete the following information):**

- iPhone SE iOS15

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [October 31, 2022, 9:09am UTC](https://devforum.zoom.us/t/bluetooth-device-with-speaker-and-mic-not-working/78086/2 "2022-10-31T09:09:42Z")

</div>

Hi @curtis.forsta,

Video SDK as a SDK not care the audio output.  
Just provide the session audio.  
So, you can adjust the device audio output yourself by ‘`AVAudioSession`’.  
Please be careful of the availability version of AV api usage.

```auto
- (BOOL)overrideOutputAudioPort:(AVAudioSessionPortOverride)portOverride
						  error:(NSError **)outError
	API_AVAILABLE(ios(6.0), watchos(2.0), tvos(9.0)) API_UNAVAILABLE(macOS);

```

```
extern OSStatus
AudioSessionSetProperty(AudioSessionPropertyID inID,
						UInt32 inDataSize,
						const void *inData)                    
API_DEPRECATED("no longer supported", ios(2.0, 7.0), macCatalyst(14.0, 14.0)) API_UNAVAILABLE(macos) __WATCHOS_PROHIBITED__ TVOS_PROHIBITED;

```

```auto

```

---

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [November 5, 2022, 3:15am UTC](https://devforum.zoom.us/t/bluetooth-device-with-speaker-and-mic-not-working/78086/3 "2022-11-05T03:15:06Z")

</div>

@curtis.forsta  
It is working normally for me … what I do is to set the audio session as shown:

```auto
let avs = AVAudioSession.sharedInstance()
try? avs.setCategory(.playAndRecord, mode: .videoChat, options: .allowBluetooth)
try? avs.setActive(true)

```

Even if the docs are mentioning that `mode: .videoChat` should enable `options: .allowBluetooth` by default … I noticed in an early beta of iOS 16 that was not working so I’ve added it explicitly - that fixed the issue.

docs reference:

```auto
/** Only valid with kAudioSessionCategory_PlayAndRecord. Reduces the number of allowable audio
 routes to be only those that are appropriate for video chat applications. May engage appropriate
 system-supplied signal processing. Has the side effect of setting
 AVAudioSessionCategoryOptionAllowBluetooth and AVAudioSessionCategoryOptionDefaultToSpeaker. */
@available(iOS 7.0, *)
public static let videoChat: AVAudioSession.Mode

```

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [November 9, 2022, 3:16am UTC](https://devforum.zoom.us/t/bluetooth-device-with-speaker-and-mic-not-working/78086/4 "2022-11-09T03:16:02Z")

</div>

Hi @rokgregoric ,  
Thanks for your sharing.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [December 9, 2022, 1:16pm UTC](https://devforum.zoom.us/t/bluetooth-device-with-speaker-and-mic-not-working/78086/5 "2022-12-09T13:16:41Z")

</div>

Closed on December 9, 2022, 1:16pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
