You are not logged in.
Recording with arecord works fine and microphone is clear but it is distorted in GUI apps like chromium, firefox, teams or any sound recording apps even though they are using correct capture device.
Here is alsa info http://alsa-project.org/db/?f=144dbe42d … 8b873a5b65
Last edited by crimsoncandy (2020-08-18 13:16:44)
Offline
Since pulseaudio is installed and the programs in question will use pulseaudio if it's running, what's pulses state here?
pacmd list-sources
pacmd list-source-outputs
during such a problematic recording?
Offline
Since pulseaudio is installed and the programs in question will use pulseaudio if it's running, what's pulses state here?
pacmd list-sources pacmd list-source-outputs
during such a problematic recording?
During recording with firefox
pacmd list-sources
2 source(s) available.
index: 0
name: <alsa_output.pci-0000_03_00.6.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY
state: RUNNING
suspend cause: (none)
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: 17 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 2
linked by: 2
fixed latency: 100.14 ms
monitor_of: 0
card: 1 <alsa_card.pci-0000_03_00.6>
module: 7
properties:
device.description = "Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo"
device.class = "monitor"
alsa.card = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xe0680000 irq 57"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:03:00.6"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "15e3"
device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
device.string = "1"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
* index: 1
name: <alsa_input.pci-0000_03_00.6.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
state: RUNNING
suspend cause: (none)
priority: 9039
volume: front-left: 19571 / 30% / -31.49 dB, front-right: 19571 / 30% / -31.49 dB
balance 0.00
base volume: 6554 / 10% / -60.00 dB
volume steps: 65537
muted: no
current latency: 0.54 ms
max rewind: 0 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
Stereo
used by: 2
linked by: 2
fixed latency: 100.14 ms
card: 1 <alsa_card.pci-0000_03_00.6>
module: 7
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 = "1"
alsa.card_name = "HD-Audio Generic"
alsa.long_card_name = "HD-Audio Generic at 0xe0680000 irq 57"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:03:00.6"
sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1"
device.bus = "pci"
device.vendor.id = "1022"
device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"
device.product.id = "15e3"
device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"
device.string = "front:1"
device.buffering.buffer_size = "17664"
device.buffering.fragment_size = "2944"
device.access_mode = "mmap"
device.profile.name = "analog-stereo"
device.profile.description = "Analog Stereo"
device.description = "Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo"
alsa.mixer_name = "Realtek Generic"
alsa.components = "HDA:10ec0230,17aa3822,00100002"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-input-internal-mic: Internal Microphone (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"
active port: <analog-input-internal-mic>
pacmd list-source-outputs
4 source output(s) available.
index: 0
driver: <protocol-native.c>
flags: DONT_MOVE START_CORKED
state: RUNNING
source: 1 <alsa_input.pci-0000_03_00.6.analog-stereo>
volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 100.14 ms
sample spec: float32le 2ch 44100Hz
channel map: front-left,front-right
Stereo
resample method: copy
owner module: 9
client: 3 <Firefox>
properties:
media.name = "AudioCallbackDriver"
application.name = "Firefox"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.process.id = "734"
application.process.user = "saurabh"
application.process.host = "archers"
application.process.binary = "firefox"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "a35a4fba2e8e45fd994717175963b7f4"
application.process.session_id = "1"
application.icon_name = "firefox"
module-stream-restore.id = "source-output-by-application-name:Firefox"
index: 1
driver: <protocol-native.c>
flags: DONT_MOVE
state: RUNNING
source: 0 <alsa_output.pci-0000_03_00.6.analog-stereo.monitor>
volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 86.39 ms
requested latency: 100.14 ms
sample spec: float32le 1ch 25Hz
channel map: mono
Mono
resample method: peaks
owner module: 9
client: 4 <PulseAudio Volume Control>
properties:
media.name = "Peak detect"
application.name = "PulseAudio Volume Control"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.id = "org.PulseAudio.pavucontrol"
application.icon_name = "audio-card"
application.version = "4.0"
application.process.id = "1239"
application.process.user = "saurabh"
application.process.host = "archers"
application.process.binary = "pavucontrol"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "a35a4fba2e8e45fd994717175963b7f4"
application.process.session_id = "1"
module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"
index: 2
driver: <protocol-native.c>
flags: DONT_MOVE
state: RUNNING
source: 1 <alsa_input.pci-0000_03_00.6.analog-stereo>
volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 0.00 ms
requested latency: 100.14 ms
sample spec: float32le 1ch 25Hz
channel map: mono
Mono
resample method: peaks
owner module: 9
client: 4 <PulseAudio Volume Control>
properties:
media.name = "Peak detect"
application.name = "PulseAudio Volume Control"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.id = "org.PulseAudio.pavucontrol"
application.icon_name = "audio-card"
application.version = "4.0"
application.process.id = "1239"
application.process.user = "saurabh"
application.process.host = "archers"
application.process.binary = "pavucontrol"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "a35a4fba2e8e45fd994717175963b7f4"
application.process.session_id = "1"
module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"
index: 3
driver: <protocol-native.c>
flags: DONT_MOVE
state: RUNNING
source: 0 <alsa_output.pci-0000_03_00.6.analog-stereo.monitor>
volume: mono: 65536 / 100% / 0.00 dB
balance 0.00
muted: no
current latency: 86.62 ms
requested latency: 100.14 ms
sample spec: float32le 1ch 25Hz
channel map: mono
Mono
resample method: peaks
owner module: 9
client: 4 <PulseAudio Volume Control>
direct on input: 1
properties:
media.name = "Peak detect"
application.name = "PulseAudio Volume Control"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "33"
application.id = "org.PulseAudio.pavucontrol"
application.icon_name = "audio-card"
application.version = "4.0"
application.process.id = "1239"
application.process.user = "saurabh"
application.process.host = "archers"
application.process.binary = "pavucontrol"
application.language = "en_US.UTF-8"
window.x11.display = ":0"
application.process.machine_id = "a35a4fba2e8e45fd994717175963b7f4"
application.process.session_id = "1"
module-stream-restore.id = "source-output-by-application-id:org.PulseAudio.pavucontrol"
Offline
One thing to note here is the base volume for microphone is 10% which is very low considering the same for speakers is 100%. Also I forgot to mention that I was using mic boost, without mic boost the microphone is barely audible but distortion is a little less when recording.
"arecord" works fine with or without mic boost.
I guess that increasing the base volume might fix the issue.
Offline
@V1del Thanks for your help! The microphone problem is solved by muting one channel (left or right), but still there are some apps (e.g chromium) which reset the channels causing the same issue, can this behavior be changed? Or is it possible to remove one of the channels of microphone permanently?
EDIT: I found a workaround. I added the following to /etc/pulse/default.pa
load-module module-remap-source source_name=record_mono master=alsa_input.pci-0000_03_00.6.analog-stereo master_channel_map=front-left channel_map=mono
set-default-source record_mono
Then restart pulseaudio.
Last edited by crimsoncandy (2020-08-16 11:12:19)
Offline
Glad to hear, please mark as [SOLVED] by editing the title in your first post: https://wiki.archlinux.org/index.php/Co … ow_to_post
Offline