On Sun, May 02, 2021 at 08:55:27AM +0200, Federico Giannici wrote: > SHORT VERSION: How can I make Chromium to use the speakers from the internal > soundcard and the the microphone from an USB card?
You could do what you want with AUDIORECDEVICE environment variable (see sndio(4) man page). $ doas sysctl kern.audio.record=1 $ export AUDIORECDEVICE=snd/1 $ chrome it will makes libsndio to open 'snd/1' device for recording and open 'default' (usually 'snd/0') for playing. Please note that it is working for chromium as it is opening two devices: one for recording and another for playing. A program which is opening ONE device for playing AND recording couldn't work with this trick (like firefox for example). Thanks. -- Sebastien Marie