在我的 android chrome 浏览器上,我不知道如何更改音频输出(麦克风到扬声器,反之亦然),我构建了一个 webrtc 应用程序,我研究过我们可以通过 setSinkId 更改扬声器,但这不支持 android Chrome到 mdn,这是我用来更改 deviceId 的代码。
await audio.setSinkId(audioDevice[coun.current].deviceId);
const audioContext = new AudioContext({ sinkId: { type: 'none' } });
有什么办法可以在 android chrome 上实现这个