Using an ALSA PCM as a microphone in Chromium

Everything about X, Gnome, KDE, ... and everything running on it

Using an ALSA PCM as a microphone in Chromium

Postby TimonLukas » 2017-10-10 11:49

Hey guys! I have a microphone which just creates raw /tmp/ streams, read by ALSA. This works correctly using a 'file' input in /etc/asound.conf (like this:

Code: Select all
pcm.mic_channel0 {
    type file
    file "/tmp/matrix_micarray_channel_0"
    infile "/tmp/matrix_micarray_channel_0"
    format "raw"
    slave {
        pcm sc
    }
}
)

But I can't seem to figure out how to make this device available in Chromium. I already tried creating an .asoundrc for this with the following content:

Code: Select all
pcm.!default {
  type asym
  playback.pcm /* PLAYBACK-PCM */
  capture.pcm "mic_channel0"
}


but to no avail - I just get scrambled output. But I can successfully use that output in other contexts.

Now, how would I go about properly making this available?

Thank you!
TimonLukas
 
Posts: 1
Joined: 2017-10-10 11:42

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable