LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-27-2012, 03:51 AM   #1
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Rep: Reputation: 30
Question Software to perform noise-cancelling when recording from laptop microphone?


Hi,

I'm using Kubuntu 12.04 on a HP Pavillion dv6 laptop. In Windows, there is a utility or driver function/setting (not sure, as the Windows install has shat itself so I can't check) that transparently performs noise-cancelling on all microphone input, which is very handy as it gets rid of most of the noise from the laptop itself - fan noise and electronic noise. I was wondering if there was some way to do the same thing in Linux?

Thanks in advance.
 
Old 05-27-2012, 10:36 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,138
Blog Entries: 6

Rep: Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827Reputation: 1827
You can look at the -af (audio filter) section of mplayers manual.

mplayer -af sinesuppress, equalizer, comp, pan, resample
Are a few that may help.

Code:
sinesuppress[=freq:decay]
       Remove a sine at the specified frequency. Useful to 
       the 50/60Hz noise on low quality audio equipment. 
       only works on mono input.
          <freq>
               The frequency of the sine which should be r
               Hz) (default: 50)
          <decay>
               Controls the adaptivity (a larger value wi
               filter adapt to amplitude and phase changes 
               smaller value will make the adaptation slower
               0.0001). Reasonable values are around 0.001.
Code:
EXAMPLE:
   mplayer -af equalizer=11:11:10:5:0:-12:0:5:12:12 media.avi
         Would amplify the sound in the upper and lower frequency
         region while canceling it almost completely around 1kHz.
You can use filters with ffmpeg too if you want to capture the mics input with it.
 
Old 05-27-2012, 12:49 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,987

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
The only way I have done it was to record to audacity some few moments of background noise before I play. Then I later use those few seconds for noise removal tool. I know there are many high end windows and maybe some free windows apps too that might be used in wine but most of the live or real time audio is too much for even a high end system. Dedicated audio hardware takes the system load off but only a few are really good on linux.

A better mic and a better room is the solution really. Any electronic way degrades the sound too much.

Depending on the sound device you have, it may have a software way to cancel hum or noise.

Last edited by jefro; 05-27-2012 at 12:52 PM.
 
  


Reply

Tags
audio, laptop, microphone



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Microphone noise bo01 Linux - Laptop and Netbook 3 04-05-2011 10:00 AM
Virtualbox: weird noise from a webcam microphone Domine Slackware 0 11-17-2009 10:46 PM
can't use my microphone for voice recording sfxpt Linux - General 3 02-04-2009 12:55 AM
No sound recording from microphone ihatejunk1 Linux - Software 1 03-14-2005 02:11 AM
Please help! Recording from microphone Accordion Linux - Newbie 3 06-15-2004 09:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration