1
\$\begingroup\$

In a performance sensitive environment, I have an audio stream. I need to classify each frame as speech/non speech. For this purpose, only "clean" voice should be classified speech. Voice with substantial background noise (maybe music) should be classified as non speech.

What features/methods could you suggest?

\$\endgroup\$
6
  • 1
    \$\begingroup\$ How much is a frame? What else might there be other than speech? Distinguishing between human speech and synthesized speech, for instance, would be difficult. Distinguishing between human speech and a jackhammer would be easy. \$\endgroup\$
    – endolith
    Commented Aug 5, 2011 at 21:41
  • \$\begingroup\$ Unfortunately, synthesized speech is an option. But I do realize that probably trying to address this would be an overkill, and I'm willing to make this sacrifice. As for frame size, I'm pretty sure I can control it. It works with 4000 sample frames at 8000 smp/sec. The 500ms delay is fine, but I wouldn't want to make it any larger. \$\endgroup\$ Commented Aug 5, 2011 at 23:34
  • \$\begingroup\$ I had not bad results with linear regression coefficients of the spectrum. \$\endgroup\$ Commented Aug 6, 2011 at 9:11
  • \$\begingroup\$ Despite the mention of "DSP" (only in the title!) this seems to be a software question, and doesn't have anything to do with electronics. Voted to close. \$\endgroup\$
    – stevenvh
    Commented Aug 6, 2011 at 9:32
  • \$\begingroup\$ Your answer is currently only a comment, can you explain more about how you have done this, what it means and/or why it works. \$\endgroup\$
    – Kortuk
    Commented Aug 6, 2011 at 11:16

4 Answers 4

3
\$\begingroup\$

I agree. I've previously researched this topic before and found that it is a very complex subject. Here are some basic algorithms: http://en.wikipedia.org/wiki/Speech_recognition#Algorithms.. I highly suggest you do lots of research. Here's some links for you to enjoy :) http://www.dsprelated.com/showmessage/83934/1.php & http://www.ee.columbia.edu/~dpwe/pubs/LeeE06-vad.pdf and many more on google.

\$\endgroup\$
1
  • \$\begingroup\$ Great links! I really hope that I won't have to program and train an HMM though... thanks \$\endgroup\$ Commented Aug 5, 2011 at 23:48
1
\$\begingroup\$

What I would do: first try to find the fundamental frequency. A speaking voice does not have a fixed note in this sense, so you need to do it quite quickly-responding, a direct phase-locking method may be better than doing it with FFT. Then feed this frequency into a comb filter, to remove the fundamental and all its overtones. What remains is then, ideally, only pop and hiss noises, both either quite low or quite high-frequency, so bandpassing the midrange should – for a clear and single voice signal – leave only a very weak remaining signal. For music or other noises on the other hand, you have a wide mixture of frequencies throughout the midrange, so combfiltering will not weaken the RMS very much at all. So a high level after the comb/bandfiltering process will indicate that the source was not clean voice.


I tried this with a simple SynthMaker program, SynthMaker schematic for the clear-voice detection

and it is not really reliable yet but does in principle work.

Result for speech alone:

Result of the SynthMaker schematic for the clear-voice detection for speech

The combfiltered signal is 6 dB weaker than the only-bandpassed one.

Result for music (speech+acoustic guitar, just to test):

Result of the SynthMaker schematic for the clear-voice detection for speech+acoustic guitar

Here, the combfiltered signal is actually louder (the filter is wrongly normalized).

\$\endgroup\$
0
\$\begingroup\$

This is not a simple problem, and this is more of a guess than a answer.

One distinction that comes to mind is that pure voice will have very little amplitude at higher frequencies, like above 3 kHz. Unfortunately, things like a hard S sound (hissing) does occur in voice and can have components up to around 8 kHz. Sometimes music and other background noise will have frequencies limited to 3 kHz too. So, frequency distinction will help, but isn't good enough on its own.

Lots of music will have a rythmic beat, especially when looking at just the base frequencies. That isn't true of all kinds of noise though.

As I said, this is not a simple problem and will probably require substantial experimentation.

\$\endgroup\$
1
  • \$\begingroup\$ I have only 4kHz of signal anyway, so I'll have to find something else. Thanks! \$\endgroup\$ Commented Aug 5, 2011 at 23:46
0
\$\begingroup\$

My (long ago) Masters thesis involved doing this as a minor part of the overall task, largely with hardware. I can dig it out and see what I concluded :-). As I recall, the nature of energy content around 400 Hz is a major indicator. This was for use on telephone circuits. I also had some papers from British Telecom on the subject which I can provide references to and (just) possibly copies of the papers.

\$\endgroup\$
1
  • \$\begingroup\$ Wow, that would be great! Thx :) \$\endgroup\$ Commented Aug 5, 2011 at 23:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.