Removing specific ringing sound from voice recording

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
featheredtar
Posts: 20
Joined: Thu Sep 18, 2014 6:03 pm
Operating System: Please select

Removing specific ringing sound from voice recording

Post by featheredtar » Fri Feb 03, 2017 4:50 pm

The soundboard that a friend used produces steady background ringing at a certain frequency. I have used a nyquist prompt script in the past to eliminate a similar problem with different audio hardware (ringing at a different frequency), but don't know how to pinpoint the frequency of this ringing sound. Could someone look at this audio file to find what frequency the ringing is happening at? I'm guessing once that's found then that frequency can be plugged into the following script that I used for my Blue Snowball mic?

Code: Select all

(let* ((q 50)                 ; set the base Q for the filter
       (freq 1000)            ; set base frequency
       ;set the number of iterations
       (iter (truncate (/ *sound-srate* (* 2 freq)))))
  (dotimes (i iter s)         ; start the DO loop
  (setf s (notch2 s (* freq (1+ i)) (* q (1+ i))))))
Thanks. I'm using Audacity 2.1.3-alpha on Windows 10.
Attachments
audio-ringing.wav
(554.58 KiB) Downloaded 53 times

DVDdoug
Forum Crew
Posts: 9419
Joined: Fri Sep 10, 2010 11:30 pm
Operating System: Windows 10

Re: Removing specific ringing sound from voice recording

Post by DVDdoug » Fri Feb 03, 2017 5:45 pm

I can't listen to your file 'cause I'm at work, but I looked at it with Analyze -> Plot Spectrum and there isn't one single frequency that stands-out.

featheredtar
Posts: 20
Joined: Thu Sep 18, 2014 6:03 pm
Operating System: Please select

Re: Removing specific ringing sound from voice recording

Post by featheredtar » Fri Feb 03, 2017 8:14 pm

Yeah, I did the same, though there are about three frequencies that stand out in the first half of the clip that only contains room tone. In the second half with speech those frequencies are subsumed and aren't as discernible amongst the speech.

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Removing specific ringing sound from voice recording

Post by kozikowski » Fri Feb 03, 2017 8:28 pm

That's the custom filter for The Dreaded Yeti Curse. The Yeti has problems with getting rid of computer USB noise from your voice. It was "relatively" easy because most USB systems have similar data management and they all make about the same noise. If you have different noise. it may not be coming from the USB system and it could be a lot harder to suppress.

Drag-Select a relatively quiet part of the performance (noise only). Analyze > Plot Spectrum. Log Frequency, Size at 512. Grab the window and pull it so the window is as wide as possible. The accuracy goes up when you do that.

When we do that with The Yeti Curse, the display have nice peaks at 1000, 2000, etc. And that's how the correction is written. You may need two different filters. One for 4000, 8000, 16000; and a second one for 6000, 12000 18000.

Plot Spectrum cursor will get stuck on the peaks and it will tell you the frequencies.


You picked a good batch of tones. Between 3000 and 4000 is babies screaming on a jet with their fingernails on a blackboard. If you suck enough different tones out of a performance (that's what you're doing), it's going to affect the show quality.

I don't think the single existing filter will work on that series of frequencies without being re-written.

Koz

Trebor
Posts: 9954
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: Removing specific ringing sound from voice recording

Post by Trebor » Fri Feb 03, 2017 8:30 pm

I suggest a wider notch : q=30 rather than q=50 , for the 1kHz harmonics,
and another two notches at 269Hz & 474Hz ...

Code: Select all

(setf s (notch2 s 269 30))   ; apply 269 Hz notch
(setf s (notch2 s 474 30))   ; apply 474 Hz notch
(let* ((q 30)                 ; set the base Q for the filter
       (freq 1000)            ; set base frequency
       ;set the number of iterations
       (iter (truncate (/ *sound-srate* (* 2 freq)))))
  (dotimes (i iter s)         ; start the DO loop
  (setf s (notch2 s (* freq (1+ i)) (* q (1+ i))))))
Suggested Notch code (note top-right box-ticked).png
Suggested Notch code (note top-right box-ticked).png (135.21 KiB) Viewed 862 times

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Removing specific ringing sound from voice recording

Post by kozikowski » Fri Feb 03, 2017 8:34 pm

If you crank up your Plot Spectrum size too far, you will lose the peaks in a blizzard of noise. Scroll the graphic.
Screen Shot 2017-02-03 at 12.31.39.png
Screen Shot 2017-02-03 at 12.31.39.png (13.73 KiB) Viewed 861 times
Too Much Information.....

Koz

featheredtar
Posts: 20
Joined: Thu Sep 18, 2014 6:03 pm
Operating System: Please select

Re: Removing specific ringing sound from voice recording

Post by featheredtar » Sat Feb 04, 2017 4:34 am

Thanks everyone for the help! Trebor's solution worked. A questions about Trebor's code. What does the "q" represent (with a smaller number for q being a wider notch).

kozikowski
Forum Staff
Posts: 69374
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Removing specific ringing sound from voice recording

Post by kozikowski » Sat Feb 04, 2017 5:20 am

That's the Quality of the filter. The higher the quality, the sharper and more surgical the notch, but the more likely it is to distort the show. If you make it too wide and sloppy, it starts deleting parts of the show that should be there.

Koz

featheredtar
Posts: 20
Joined: Thu Sep 18, 2014 6:03 pm
Operating System: Please select

Re: Removing specific ringing sound from voice recording

Post by featheredtar » Sat Feb 04, 2017 8:15 pm

Ah ok - good to know, thanks!

Post Reply