View previous topic :: View next topic |
Author |
Message |
Gh0str1d3r Guru
Joined: 27 May 2008 Posts: 411
|
Posted: Mon Apr 07, 2014 3:51 pm Post subject: pulseaudio microphone stereo by default |
|
|
Hi all,
I have a problem with my audio settings. I am using alsa with pulseaudio. My problem is that the laptop's internal microphone can record sounds only when I am using the stereo mode:
Code: | arecord -c 2 test.wav |
Without the option "-c 2" the recorded audio file is totally silent. The main problem is that applications like Skype do not have an option to use stereo input, and in fact, there is only one microphone.
Any suggestion for a solution? I guess it is only a small thing in a config file.
Thanks a lot! |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Mon Apr 07, 2014 7:57 pm Post subject: |
|
|
Does this work?
Code: | parec --channels=1 test.wav |
|
|
Back to top |
|
|
Gh0str1d3r Guru
Joined: 27 May 2008 Posts: 411
|
Posted: Mon Apr 07, 2014 8:50 pm Post subject: |
|
|
Ant P. wrote: | Does this work?
Code: | parec --channels=1 test.wav |
|
It does create a file with finite size, but I can't find a player to play it back. Even audacity fails with this file. (I also tried to use the -r option additionally)
I should also mention that audacity does not record anything when set to mono, but it works when set to stereo. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Apr 08, 2014 12:01 am Post subject: |
|
|
My bad, it seems like parec records to... some completely unspecified format by default. And there's no manpage for it either...
This should do something:
Code: | parec --channels=1 --file-format=wav test.wav |
|
|
Back to top |
|
|
Gh0str1d3r Guru
Joined: 27 May 2008 Posts: 411
|
Posted: Tue Apr 08, 2014 5:42 pm Post subject: |
|
|
Okay, this does record a file I can play with mplayer. However, there is no sound in it. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Apr 08, 2014 7:25 pm Post subject: |
|
|
This whole problem is weird. The microphone in my laptop shows up as stereo too but nothing has problems using it as input...
I don't know a good way to fix it; as a workaround you could try using module-remap-source in pulseaudio to make it appear to skype as a mono device. |
|
Back to top |
|
|
|