[Solved] How do I give microphone permission to Desktop App (Linux, XFCE, USB mic)?

Okay that’s the problem we are having then. I’ve seen this error before and likely some issue between the system and electron (see [Bug]: Could not start audio source error on mediaDevices.getUserMedia · Issue #32299 · electron/electron · GitHub for an example).

What I’d like to understand is whether it’s just the default device the problem or something else. To test this we could do something like this:

  1. Fetch the devices like we did before:
await navigator.mediaDevices.enumerateDevices();
  1. Copy the deviceId of the microphone you expect to use and run:
await navigator.mediaDevices.getUserMedia({audio: {deviceId: {exact: '2b4966ead820e4070ce8b67ca5347520604e170d0aba45ef113882378338783b'}}});

Change the id with whatever you get at step 1. And see if the error is gone now.