Microphone setup and alsamixer

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
Moettke
Level 1
Level 1
Posts: 14
Joined: Mon Nov 25, 2019 12:48 pm

Microphone setup and alsamixer

Post by Moettke »

The microphone, instead of recording my voice, records the sound of applications (browser). As I understand it, he takes sound from the monitor (HDMI). How to change this behavior and make it record sounds that are around it, and not system sounds?
User avatar
MrEen
Level 21
Level 21
Posts: 14188
Joined: Mon Jun 12, 2017 8:39 pm

Re: Microphone setup and alsamixer

Post by MrEen »

Hi Moettke,
In the terminal run pacmd list-sources and I'll bet you'll see the asterisk next to the .monitor device. Paste the output and I'll give you a command to change that.
Moettke
Level 1
Level 1
Posts: 14
Joined: Mon Nov 25, 2019 12:48 pm

Re: Microphone setup and alsamixer

Post by Moettke »

I tried to figure it out myself did not work
Image
Image
Image
Image
Image
Image
Moettke
Level 1
Level 1
Posts: 14
Joined: Mon Nov 25, 2019 12:48 pm

Re: Microphone setup and alsamixer

Post by Moettke »

MrEen wrote:
Sun Oct 18, 2020 3:54 pm
Hi Moettke,
In the terminal run pacmd list-sources and I'll bet you'll see the asterisk next to the .monitor device. Paste the output and I'll give you a command to change that.
If I understood correctly, then this is exactly the case

Code: Select all

2 source(s) available.
  * index: 1
        name: <alsa_input.pci-0000_00_14.2.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9039
        volume: front-left: 20726 /  32% / -30,00 dB,   front-right: 20726 /  32% / -30,00 dB
                balance 0,00
        base volume: 6554 /  10% / -60,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: s16le 2-канальный 4410
        channel map: front-left,front-right
                     Стерео
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
        card: 1 <alsa_card.pci-0000_00_14.2>
        module: 8
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "Generic Analog"
                alsa.id = "Generic Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA ATI SB"
                alsa.long_card_name = "HDA ATI SB at 0xfe300000 irq 16"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:14.2"
                sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "4383"
                device.product.name = "SBx00 Azalia (Intel HDA)"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Аналоговый стерео"
                device.description = "Встроенное аудио Аналоговый стерео"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-input-front-mic: Фронтальный микрофон (priority 8500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-rear-mic: Тыловой микрофон (priority 8200, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-linein: Линейный вход (priority 8100, latency offset 0 usec, available: no)
                        properties:

        active port: <analog-input-rear-mic>
    index: 3
        name: <alsa_output.pci-0000_00_14.2.analog-stereo.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: IDLE
        suspend cause: (none)
        priority: 1030
        volume: front-left: 51366 /  78% / -6,35 dB,   front-right: 51366 /  78% / -6,35 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 4 KiB
        sample spec: s16le 2-канальный 4410
        channel map: front-left,front-right
                     Стерео
        used by: 0
        linked by: 0
        configured latency: 1999,82 ms; range is 0,50 .. 1999,82 ms
        monitor_of: 2
        card: 1 <alsa_card.pci-0000_00_14.2>
        module: 8
        properties:
                device.description = "Monitor of Встроенное аудио Аналоговый стерео"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HDA ATI SB"
                alsa.long_card_name = "HDA ATI SB at 0xfe300000 irq 16"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:14.2"
                sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "4383"
                device.product.name = "SBx00 Azalia (Intel HDA)"
                device.form_factor = "internal"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
User avatar
MrEen
Level 21
Level 21
Posts: 14188
Joined: Mon Jun 12, 2017 8:39 pm

Re: Microphone setup and alsamixer

Post by MrEen »

You have managed to change to input to the proper device instead of the monitor of your output. It should work now, unless the application you are using it automatically selecting the monitor of output. For that you would need to check the application's settings.
Moettke
Level 1
Level 1
Posts: 14
Joined: Mon Nov 25, 2019 12:48 pm

Re: Microphone setup and alsamixer

Post by Moettke »

If you use the command

Code: Select all

arecord -f cd -d 5 test-mic.wav
Recording takes place from the browser
User avatar
MrEen
Level 21
Level 21
Posts: 14188
Joined: Mon Jun 12, 2017 8:39 pm

Re: Microphone setup and alsamixer

Post by MrEen »

Let's see if you have something strange in your sound setup. Post the output of this command:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
Moettke
Level 1
Level 1
Posts: 14
Joined: Mon Nov 25, 2019 12:48 pm

Re: Microphone setup and alsamixer

Post by Moettke »

User avatar
MrEen
Level 21
Level 21
Posts: 14188
Joined: Mon Jun 12, 2017 8:39 pm

Re: Microphone setup and alsamixer

Post by MrEen »

Okay, in that output you only have something plugged in to the Line In port:

Code: Select all

	Ports:
		analog-input-front-mic: Фронтальный микрофон (priority: 8500, not available)
		analog-input-rear-mic: Тыловой микрофон (priority: 8200, not available)
		analog-input-linein: Линейный вход (priority: 8100, available)
Previously, it was the Rear Mic port:

Code: Select all

        ports:
                analog-input-front-mic: Фронтальный микрофон (priority 8500, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-rear-mic: Тыловой микрофон (priority 8200, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-input-microphone"
                analog-input-linein: Линейный вход (priority 8100, latency offset 0 usec, available: no)
                        properties:
And you've added this in /etc/modprobe.d:

Code: Select all

snd_hda_intel: model=generic
That could interfere.

Did the Line In work for recording?
Moettke
Level 1
Level 1
Posts: 14
Joined: Mon Nov 25, 2019 12:48 pm

Re: Microphone setup and alsamixer

Post by Moettke »

Code: Select all

snd_hda_intel: model=generic
I removed it
But as for the line-in, I did the experiments, but did not rearrange the microphone back. In any case, audio is being captured from applications.
User avatar
MrEen
Level 21
Level 21
Posts: 14188
Joined: Mon Jun 12, 2017 8:39 pm

Re: Microphone setup and alsamixer

Post by MrEen »

Do some recording longer than 10 seconds. Look at the Recording tab of pavucontrol (Volume Control) and see what it claims to be recording from and see if you can change it on that tab to the proper Built-in Audio Analog Stereo.
Post Reply

Return to “Sound, Multimedia, & Codecs”