LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   background noise on recording (https://www.linuxquestions.org/questions/linux-general-1/background-noise-on-recording-4175472571/)

satimis 08-07-2013 11:17 PM

background noise on recording
 
Hi all,

With gnome-sound-recorder OR running following command;

Code:

ffmpeg -f alsa -i pulse -ar 44100 -ac 2 -ab 128k output.mp3
I can record sound as .mp3 file. But there is a heavy background noise. However if I lower the volume level of MIG on alsamixer I can reduce the noise. But the sound recorded is also reduces.

Is there a solution? Thanks

Rgds
satimis

DoubleTrouble 08-08-2013 12:09 AM

Not sure how to fix your problem, But you should use audacity to record your audio and then use the Noise Removal tool and then use the compressor filter with normalize checked.

Youtube have many tutorials on audacity using the noise removal tool, compressor and normalize effect filters.

If you decide to use audacity, make sure to select pulse from the drop down box next to the microphone. Also, select the Mic from the sound volume control settings as the recording source.

satimis 08-08-2013 02:49 AM

Quote:

Originally Posted by DoubleTrouble (Post 5005310)
Not sure how to fix your problem, But you should use audacity to record your audio and then use the Noise Removal tool and then use the compressor filter with normalize checked.

Youtube have many tutorials on audacity using the noise removal tool, compressor and normalize effect filters.

If you decide to use audacity, make sure to select pulse from the drop down box next to the microphone. Also, select the Mic from the sound volume control settings as the recording source.

Hi,

Thanks for your advice.

I found many youtube video on audacity such as;
http://www.youtube.com/watch?v=49tRaaFacqw

Actually the easiest way for me without headache is on;
http://www.linuxquestions.org/questi...3/#post4999676

As curiosity I started exploring geek@LQ's suggestion;
http://www.linuxquestions.org/questi...3/#post5000631

It works but there is heavy background noise. Then I started googling around for advice. I found many threads in re of background noise. But I haven't discovered a solution to my problem yet.

satimis

DoubleTrouble 08-08-2013 05:57 AM

Yeah, it seems you have a complex case since there aren't many volunteers to help your solution.

I'm not a sound expert but I seen these tutorials that help my recording and editing of audio. Visit this site and watch these videos http://goinglinux.com/screencasts.html

#001 - Using Audacity To Record An Audio Podcast
#002 - Using Audacity To Edit An Audio Podcast

I wish I knew the cause of your problem to be more helpful : /

DoubleTrouble 08-08-2013 12:15 PM

Quote:

Originally Posted by satimis (Post 5005390)
As curiosity I started exploring geek@LQ's suggestion;
http://www.linuxquestions.org/questi...3/#post5000631

I was reading your other post. It seems you want to record google translate. If this is is the case, you need to choose the Mix or Monitor channel as the recording source. Either of these channels if supported by your soundcard will record audio that is playing on your desktop. In fact, it will record all channels including Mic and line if there devices connected to them.

Select Mix or Monitor from alsamixer if available. If you don't have these channels, then you need to use the pulse audio volume control. The package name is pavucontrol.

Open pavucontrol and play something with audio for a test run. As the auidio is playing, go to the recording tab and click the dropdown box that has your soundcard's name and choose Monitor of soundcard's name.

In Monitor mode this will record whatever you hear playing through your speakers including Mic and Line.


Once you have it in Mix or Monitor mode, use either ffmpeg or audacity to record google translate.

satimis 08-08-2013 08:42 PM

Quote:

Originally Posted by DoubleTrouble (Post 5005707)
I was reading your other post. It seems you want to record google translate. If this is is the case, you need to choose the Mix or Monitor channel as the recording source. Either of these channels if supported by your soundcard will record audio that is playing on your desktop. In fact, it will record all channels including Mic and line if there devices connected to them.

Select Mix or Monitor from alsamixer if available. If you don't have these channels, then you need to use the pulse audio volume control. The package name is pavucontrol.

Open pavucontrol and play something with audio for a test run. As the auidio is playing, go to the recording tab and click the dropdown box that has your soundcard's name and choose Monitor of soundcard's name.

In Monitor mode this will record whatever you hear playing through your speakers including Mic and Line.


Once you have it in Mix or Monitor mode, use either ffmpeg or audacity to record google translate.

Hi,

It seems quite strange. I don't have MIC attached to the computer except USB external speakers.

Performed following test;
Installed pavucontrol. However it didn't help. I can't play .mp3 files on it. Neither I can record "google translate" running ffmpeg/gnome-sound-recorder. It seemed having something recorded but nothing on playback. Even after uninstalling pavucontrol I can't record "google translate" anymore.

satimis

frankbell 08-08-2013 08:50 PM

If you want to record an incoming stream, you might want to look at jack to "jack" the incoming stream into your recording program.

If you provide more precise detail about what exactly you are trying to accomplish, we can provide more specific help.

satimis 08-08-2013 09:08 PM

Quote:

Originally Posted by frankbell (Post 5005975)
- snip -

If you provide more precise detail about what exactly you are trying to accomplish, we can provide more specific help.

Hi,

What I'm trying to record is the output of google translate - voice. As well as the output of online text-to-speech, available on Internet.

Thanks

satimis

DoubleTrouble 08-08-2013 11:37 PM

Quote:

Originally Posted by satimis (Post 5005973)
Hi,

It seems quite strange. I don't have MIC attached to the computer except USB external speakers.

Performed following test;
Installed pavucontrol. However it didn't help. I can't play .mp3 files on it. Neither I can record "google translate" running ffmpeg/gnome-sound-recorder. It seemed having something recorded but nothing on playback. Even after uninstalling pavucontrol I can't record "google translate" anymore.

satimis

I assured you I would never give bad info without experiencing it myself. I personally use these methods myself when recording audio from Mic and/or internet streams and it works quite well.

As for the pavucontrol program it shouldn't have messed your settings, don't know why it did. I've used this program many times in certain distros.


All times are GMT -5. The time now is 04:34 PM.