AudioRoute

The type of the audio route.

Enumerator

routeDefault
-1: The default audio route.
routeHeadset
0: Audio output routing is a headset with microphone.
routeEarpiece
1: The audio route is an earpiece.
routeHeadsetnomic
2: The audio route is a headset without a microphone.
routeSpeakerphone
3: The audio route is the speaker that comes with the device.
routeLoudspeaker
4: The audio route is an external speaker. (iOS and macOS only)
routeHeadsetbluetooth
5: The audio route is a Bluetooth device using the HFP protocol.
routeHdmi
6: The audio route is an HDMI peripheral device. (For macOS only)
routeUsb
7: The audio route is a USB peripheral device. (For macOS only)
routeDisplayport
8: The audio route is a DisplayPort peripheral device. (For macOS only)
routeAirplay
9: The audio route is Apple AirPlay. (For macOS only)
routeBluetoothSpeaker
10: The audio route is a Bluetooth device using the A2DP protocol.