Gentoo Archives: gentoo-user

From: meino.cramer@×××.de
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT]: Denoising software ?
Date: Sat, 10 Dec 2011 19:52:03
Message-Id: 20111210195017.GA2914@solfire
In Reply to: Re: [gentoo-user] [OT]: Denoising software ? by luis jure
1 luis jure <ljc@××××××××××××.uy> [11-12-10 13:28]:
2 > on 2011-12-09 at 13:55 Michael Mol wrote:
3 >
4 > >I couldn't tell you if it's necessarily "good", but Audacity has a
5 > >noise filter.
6 >
7 > that's exactly what i was about to reply.
8 >
9 > and if you want to try a CLI tool, sox provides a similar utility.
10 >
11 > noiseprof [profile-file]
12 > Calculate a profile of the audio for use in noise reduction.
13 > See the description of the noisered effect for details.
14 >
15 > noisered [profile-file [amount]]
16 > Reduce noise in the audio signal by profiling and filtering. This
17 > effect is moderately effective at removing consistent background
18 > noise such as hiss or hum. To use it, first run SoX with the
19 > noise‐ prof effect on a section of audio that ideally would contain
20 > silence but in fact contains noise - such sections are typically
21 > found at the beginning or the end of a recording. noiseprof will
22 > write out a noise profile to profile-file, or to stdout if no
23 > profile-file or if `-' is given. E.g. sox speech.wav -n trim 0 1.5
24 > noiseprof speech.noise-profile To actually remove the noise, run
25 > SoX again, this time with the noisered effect; noisered will
26 > reduce noise according to a noise profile (which was generated by
27 > noiseprof), from profile-file, or from stdin if no profile-file or
28 > if `-' is given. E.g. sox speech.wav cleaned.wav noisered
29 > speech.noise-profile 0.3 How much noise should be removed is
30 > specified by amount-a number between 0 and 1 with a default of
31 > 0.5. Higher numbers will remove more noise but present a greater
32 > likelihood of removing wanted components of the audio signal.
33 > Before replacing an original recording with a noise-reduced
34 > version, experiment with different amount values to find the
35 > optimal one for your audio; use headphones to check that you are
36 > happy with the results, paying particular attention to quieter
37 > sections of the audio.
38 >
39 > On most systems, the two stages - profiling and reduction
40 > - can be combined using a pipe, e.g. sox noisy.wav -n
41 > trim 0 1 noiseprof | play noisy.wav noisered
42 >
43 > never compared the results, if you do, i for one would be very interested
44 > in your experience.
45 >
46 > IMO, it's much better to remove noise by small amounts in successive
47 > passes (taking a new profile each time, of course), than trying to remove
48 > too much noise in one pass.
49 >
50 > let us know how it went!
51 >
52 > lj
53 >
54
55 I have some results now. "Measurement" was only done with my two ears
56 in a before/after-way of doing. No spectrum analysis or other high
57 advanced stuff.
58
59 Device: Recording was done with a Tascam DR2D field recorder (SDcard
60 recordings), which has a nice sound and a fine stereo image ... and a
61 slightly high noise floor.
62
63 Test:
64 I set the internal mics of the Tascam to mid
65 gain and pushed the level to max. I think (read: "I dont know for
66 sure") that the level is simply a variable resistor in the signal
67 path. The gain is the amplification level...so the noise comes from
68 this source beside others. No AGC was active.
69
70 I went into the kitchen, put the recorder on the desk and switch it
71 on. I let it record its own noise for a moment or two and then start
72 to boil water (high freqs in the sound) and I produced other sounds
73 which contain high freqs.
74
75 After a while I stopped recording.
76
77 As exspected, the recording was filled with some noise, which was not
78 destructive but fairly audible.
79
80 I loaded the file into audacity, and used the denoising filter.
81 The result has noticeable less noise but it was still audible.
82
83 Then I used gwc in conjunction with pulseaudio. I leave all the setting
84 alone and only selected for the Window function "Hanning-overlap-add"
85 and for the Noise Suppression Method "Lober & Hoeldrich", both marked
86 with "Best" in the settings menu.
87
88 I denoised the same input as above.
89
90 The result? There was no noise at all anymore -- at least for my ears.
91 Both files were checked using earphones and played with the Tascam
92 instead being played through the PC loudspeakers.
93 In the beginning of the file there were some audible artifacts, which
94 may result from too less read data...but this is guessed.
95
96 Gwc is a little fragile due the longer period it was not maintained
97 anymore. Its alsa interface simply does not work.
98
99 But it clearly wins when it comes to denoising. It also supports the
100 removal of other audio artifacts.
101
102 HTH!
103 Best regards,
104 mcc

Replies

Subject Author
Re: [gentoo-user] [OT]: Denoising software ? luis jure <ljc@××××××××××××.uy>