[SOLVED] speaker

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

[SOLVED] speaker

Postby shogun1234 » 2019-05-12 18:05

I need to use microphone/ speaker recently but when testing with

Code: Select all
arecord -d 10 /tmp/test-mic.wav

But play the sound with following command
Code: Select all
aplay /tmp/test-mic.wav

doesn't find any sound is recorded.

Also pavucontrol and alsamixer show the setting like https://imgur.com/a/xcJzVKA

That looks all fine to me. But I just can't get microphone/ speaker working. What else should I check for this problem?

My sound card info is as below

Code: Select all
$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0x1ff3018000 irq 137

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX8200 Analog [CX8200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code: Select all
$ uname -r

Code: Select all
$cat /etc/debian_version
Last edited by shogun1234 on 2019-05-13 17:47, edited 1 time in total.
Posts: 128
Joined: 2006-07-13 08:04

Re: speaker

Postby tynman » 2019-05-13 15:59

You can test the output part of a computer's audio setup without a microphone. But it's more difficult to test the microphone input part of the setup without the speaker part working first. So test the output setup first.

Have you verified the speaker is working with the computer?

One way to do that would be to run the speaker-test command.

Code: Select all
$ speaker-test

Without any parameters, it defaults to playing pink noise through only one of the speakers.
Posts: 124
Joined: 2016-05-03 19:48
Location: British Columbia, Canada

Re: speaker

Postby shogun1234 » 2019-05-13 17:26

Thanks. Test with command
Code: Select all

I can hear noisy coming through headset. Also
Code: Select all
speaker-test -t wav -c 6

produces clearly front left, front right, center sound and so on.

But is there any ways to test my own voice? One problem is when
skype was installed testing using skype's call test can't hear my own
voice, which got recorded through speaker. So would like to check
if it's my problem (misconfiguration or something) or skype's issue.

Posts: 128
Joined: 2006-07-13 08:04

Re: speaker

Postby shogun1234 » 2019-05-13 17:46

Oh I seems to find the solution

Basically to use the commands (https://askubuntu.com/questions/123798/ ... ith-a-mic#)
Code: Select all
pactl load-module module-loopback latency_msec=1

With this command I can hear the sound when typing on my own keyboard. To stop this command, execute this command
Code: Select all
pactl unload-module module-loopback

Testing to hear my own voice
Code: Select all
arecord -f cd - | aplay -

This does exactly echo back my own voice. I suppose my problem is solved now. Thanks!
Posts: 128
Joined: 2006-07-13 08:04

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 3 guests