You are not logged in.

#1 2018-10-22 21:27:17

liochan
Member
Registered: 2013-04-17
Posts: 10

[solved] Microphone issue with chromium

I am using some webrtc tools like google meet. With firefox the microphone is working fine. I also try with audacity I can record sound. I got a laptop and it works with internal microphone or an external microphone plugged on jack. But when I try to use google meet with chromium the sound is working but not the microphone (both internal or external). First case was, I did a meeting with 3 people, everything is fine. When a 4th is coming, firefox do not handle it, my CPU is at 100% so firefox freeze (no sound/no mic). I close firefox  and switch to chromium, it handles 4th people, no crash, but nobody ear me. If someone leaves, I stop chromium and go back with firefox, everything is fine.
Second case, at a start of a new day, so after a morning boot, I tried directly in chromium, I got sound but not mic. I stopped it and I started firefox, I got sound and mic.

$ arecord --list-device
**** Liste des Périphériques Matériels CAPTURE ****
carte 0: PCH [HDA Intel PCH], périphérique 0: ALC269VC Analog [ALC269VC Analog]
  Sous-périphériques: 1/1
  Sous-périphérique #0: subdevice #0

I use both default card in firefox or chromium or audacity. In alsamixer the default card is named PulseAudio as I use it as audio backend.

Have you any clue ?

Last edited by liochan (2018-10-26 08:48:03)

Offline

#2 2018-10-23 07:19:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,423

Re: [solved] Microphone issue with chromium

Is your chromium recording from the correct device? Did you enable access to the microphone within chromium (technically there should be some popup or some identifier in the address bar where you can grant websites access to the microphone) What's the output of

pacmd list-cards
pacmd list-sources
pacmd list-source-outputs

during this not working situation?

Online

#3 2018-10-23 12:22:59

liochan
Member
Registered: 2013-04-17
Posts: 10

Re: [solved] Microphone issue with chromium

Chromium list two devices but I think it is the same (one is just prefixed with default). But I tried to change between and I got no effects. Sound is working but not microphone. I also check authorization for camera, microphone and notification. (you can click at the start of the address bar to view/change those settings)

Here are the outputs. I check the outputs and internal mic is not available because my headset is plug in jack wink
Headset unplugged

pacmd list-cards 
1 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf0600000 irq 28"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1e20"
                device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller (NP300E5C series laptop)"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Audio interne"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Entrée Stéréo analogique (priority 65, available: unknown)
                output:analog-stereo: Sortie Stéréo analogique (priority 6500, available: unknown)
                output:analog-stereo+input:analog-stereo: Duplex stéréo analogique (priority 6565, available: unknown)
                output:hdmi-stereo: Sortie Digital Stereo (HDMI) (priority 5900, available: no)
                output:hdmi-stereo+input:analog-stereo: Sortie Digital Stereo (HDMI) + Entrée Stéréo analogique (priority 5965, available: unknown)
                output:hdmi-surround: Sortie Digital Surround 5.1 (HDMI) (priority 800, available: no)
                output:hdmi-surround+input:analog-stereo: Sortie Digital Surround 5.1 (HDMI) + Entrée Stéréo analogique (priority 865, available: unknown)
                output:hdmi-surround71: Sortie Digital Surround 7.1 (HDMI) (priority 800, available: no)
                output:hdmi-surround71+input:analog-stereo: Sortie Digital Surround 7.1 (HDMI) + Entrée Stéréo analogique (priority 865, available: unknown)
                off: Éteint (priority 0, available: unknown)
        active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Audio interne Stéréo analogique
        sources:
                alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Audio interne Stéréo analogique
                alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Audio interne Stéréo analogique
        ports:
                analog-input-internal-mic: Microphone interne (priority 8900, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output-speaker: Haut-parleurs (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Casque audio (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"

headset plugged

$ pacmd list-cards 
1 card(s) available.
    index: 0
        name: <alsa_card.pci-0000_00_1b.0>
        driver: <module-alsa-card.c>
        owner module: 6
        properties:
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf0600000 irq 28"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1e20"
                device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller (NP300E5C series laptop)"
                device.form_factor = "internal"
                device.string = "0"
                device.description = "Audio interne"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        profiles:
                input:analog-stereo: Entrée Stéréo analogique (priority 65, available: unknown)
                output:analog-stereo: Sortie Stéréo analogique (priority 6500, available: unknown)
                output:analog-stereo+input:analog-stereo: Duplex stéréo analogique (priority 6565, available: unknown)
                output:hdmi-stereo: Sortie Digital Stereo (HDMI) (priority 5900, available: no)
                output:hdmi-stereo+input:analog-stereo: Sortie Digital Stereo (HDMI) + Entrée Stéréo analogique (priority 5965, available: unknown)
                output:hdmi-surround: Sortie Digital Surround 5.1 (HDMI) (priority 800, available: no)
                output:hdmi-surround+input:analog-stereo: Sortie Digital Surround 5.1 (HDMI) + Entrée Stéréo analogique (priority 865, available: unknown)
                output:hdmi-surround71: Sortie Digital Surround 7.1 (HDMI) (priority 800, available: no)
                output:hdmi-surround71+input:analog-stereo: Sortie Digital Surround 7.1 (HDMI) + Entrée Stéréo analogique (priority 865, available: unknown)
                off: Éteint (priority 0, available: unknown)
        active profile: <output:analog-stereo+input:analog-stereo>
        sinks:
                alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Audio interne Stéréo analogique
        sources:
                alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Audio interne Stéréo analogique
                alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Audio interne Stéréo analogique
        ports:
                analog-input-internal-mic: Microphone interne (priority 8900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-output-speaker: Haut-parleurs (priority 10000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Casque audio (priority 9000, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-headphones"
                hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "video-display"
$ pacmd list-sources
2 source(s) available.
    index: 0
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 1030
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stéréo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 2000,00 ms
        monitor_of: 0
        card: 0 <alsa_card.pci-0000_00_1b.0>
        module: 6
        properties:
                device.description = "Monitor of Audio interne Stéréo analogique"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf0600000 irq 28"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1e20"
                device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller (NP300E5C series laptop)"
                device.form_factor = "internal"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
  * index: 1
        name: <alsa_input.pci-0000_00_1b.0.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 9039
        volume: front-left: 27905 /  43% / -22,25 dB,   front-right: 19011 /  29% / -32,25 dB
                balance -0,32
        base volume: 6554 /  10% / -60,00 dB
        volume steps: 65537
        muted: no
        current latency: 1,81 ms
        max rewind: 0 KiB
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stéréo
        used by: 1
        linked by: 1
        configured latency: 10,00 ms; range is 0,50 .. 2000,00 ms
        card: 0 <alsa_card.pci-0000_00_1b.0>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC269VC Analog"
                alsa.id = "ALC269VC Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf0600000 irq 28"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1e20"
                device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller (NP300E5C series laptop)"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Stéréo analogique"
                device.description = "Audio interne Stéréo analogique"
                alsa.mixer_name = "Realtek ALC269VC"
                alsa.components = "HDA:10ec0269,144dc652,00100202 HDA:80862806,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-input-internal-mic: Microphone interne (priority 8900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-input-microphone"
        active port: <analog-input-mic>
$ pacmd list-source-outputs 
1 source output(s) available.
    index: 4
        driver: <protocol-native.c>
        flags: START_CORKED 
        state: RUNNING
        source: 1 <alsa_input.pci-0000_00_1b.0.analog-stereo>
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        muted: yes
        current latency: 0,00 ms
        requested latency: 10,00 ms
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stéréo
        resample method: (null)
        owner module: 12
        client: 41 <Chrome input>
        properties:
                application.icon_name = "chromium-browser"
                media.name = "RecordStream"
                application.name = "Chrome input"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "32"
                application.process.id = "9053"
                application.process.user = "user"
                application.process.host = "host"
                application.process.binary = "chromium"
                application.language = "fr_FR.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "ec3c2aab50fa43eea0b6349319239836"
                application.process.session_id = "2"
                module-stream-restore.id = "source-output-by-application-name:Chrome input"

This morning I had a try after a boot, with and without headset, no mic. I switch without rebooting to firefox everything was fine.
Thank you for your help.

Offline

#4 2018-10-23 14:12:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,423

Re: [solved] Microphone issue with chromium

        muted: yes

your recording stream is muted. Unmute in pavucontrol or so, or with

pacmd set-source-output-mute 4 off

Double check the index, it will be different with every new recording stream.

Online

#5 2018-10-26 08:47:34

liochan
Member
Registered: 2013-04-17
Posts: 10

Re: [solved] Microphone issue with chromium

Thank you very much. It works now. The index was not the same, thank you for your advice.

I also read one more time the wiki about alsa and Pulse. I always forget the differences, so I was changing only alsa settings hmm
I found that I miss to install pavucontrol-qt. So I can not access mix panel for PulseAudio with graphical frontend. When I installed the package I don't know why, but mic was muted only for chromuim apps. I guess it was something I did a long time ago big_smile

Offline

Board footer

Powered by FluxBB