WebAudio / web-audio-api

The Web Audio API v1.0, developed by the W3C Audio WG
https://webaudio.github.io/web-audio-api/
Other
1.05k stars 166 forks source link

Audio routed to the earpiece speaker #2583

Closed Baklap4 closed 5 months ago

Baklap4 commented 5 months ago

Describe the feature I'm trying to route my audio to the earpiece speaker (the speaker you listen to with your ear while calling) But my Android phone (nokia 7.2) only comes with a single output device (the main speaker on the bottom).

How would i route the audio to the earpiece output speaker?

Current Mediadevices

InputDeviceInfo {deviceId: 'default', kind: 'audioinput', label: 'Standaard', groupId: '42ce4b4d02e1763b6c314db5b3cb1efaa70a81b8a2ac8c350637170a5e5be8ae'}
InputDeviceInfo {deviceId: 'ac3e17360f85dff444ae6cada7e23bfeddf7e1c391374e9499c37d94dab73c7a', kind: 'audioinput', label: 'Speakerphone', groupId: '64666bf4aaee971eced5b7e9aaa4f85039a40e843632d7ff2e465a3bf88673bc'}
InputDeviceInfo {deviceId: 'eb364c898b08fa362e30990b86d1f8869823a4bd4074678e0073be6145f13a85', kind: 'audioinput', label: 'Headset earpiece', groupId: 'f1b58e8d73a00d5fc6d6e1724af3620545b66d63ef323b8462eaa101288f5abc'}
InputDeviceInfo {deviceId: 'e88dc1736eeb24a7d8554f2cd1b1f1368b1ebc0a802dcd1cbad68d8e676b1189', kind: 'videoinput', label: 'camera2 1, facing front', groupId: '295b28ec0cba5d9b590c26960e76001409e6101b40d0ee1a5ef75d8383f05455'}
InputDeviceInfo {deviceId: 'ac3e17360f85dff444ae6cada7e23bfeddf7e1c391374e9499c37d94dab73c7a', kind: 'videoinput', label: 'camera2 0, facing back', groupId: '47b867a01c0ccf3936f04434f72a5171d7c0dd622ed19fd81f90c03368e148a1'}
MediaDeviceInfo {deviceId: 'default', kind: 'audiooutput', label: 'Standaard', groupId: 'default'}
hoch commented 5 months ago

Hi @Baklap4 - this is not a Q/A forum for Web Audio API. You can ask general questions like this in StackOverflow or WebAudio Slack Channel.