Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pulseaudio microphone stereo by default
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Gh0str1d3r
Guru
Guru


Joined: 27 May 2008
Posts: 411

PostPosted: Mon Apr 07, 2014 3:51 pm    Post subject: pulseaudio microphone stereo by default Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Mon Apr 07, 2014 7:57 pm    Post subject: Reply with quote

Does this work?
Code:
parec --channels=1 test.wav
Back to top
View user's profile Send private message
Gh0str1d3r
Guru
Guru


Joined: 27 May 2008
Posts: 411

PostPosted: Mon Apr 07, 2014 8:50 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Apr 08, 2014 12:01 am    Post subject: Reply with quote

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
View user's profile Send private message
Gh0str1d3r
Guru
Guru


Joined: 27 May 2008
Posts: 411

PostPosted: Tue Apr 08, 2014 5:42 pm    Post subject: Reply with quote

Okay, this does record a file I can play with mplayer. However, there is no sound in it.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Tue Apr 08, 2014 7:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum