Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Using an ALSA PCM as a microphone in Chromium

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
TimonLukas
Posts: 1
Joined: 2017-10-10 11:42

Using an ALSA PCM as a microphone in Chromium

#1 Post by TimonLukas »

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!

Post Reply