Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How can I know  if  the people start to speak and stop speaking?

Posted on 1998-12-06
8
Medium Priority
?
259 Views
Last Modified: 2010-04-02
My prgoram need to record people's speech via microphone.
(only in one or two minutes)

And if he haven't speak,there is only backgroup noise.
at this time I didn't want to record the sound file,
I want is When he start to say,then I start record the file.
so how can i know if he starts to speak ,
and how can i kown if he stops?

another question: how can i filter the background noise?
0
Comment
Question by:jackton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 1179390
Just analize the signal in small slices and look for an intensity that is greater than some sort of threshhold value, if it is above the value start recording (starting with that segment, not the next one).

>> another question: how can i filter the background noise?
This sort of question is the focus of many PhD thesis, scientific papers and patents.  But one basic approach is to record a short segment of the background noise and perform a fourier transform on it to get its spectral components.  Then to filter out the noise from a recording, perform a transform on the recording (short segments of it) to get the spectral components, subtract off the components of the noise.   Then perform another transform to get the "cleaned" signal.

If that is unfamilair to you, your probably should take a trip to a library and do some research on waves, aucostic signals, fourier transforms and signal processing.  
0
 
LVL 86

Expert Comment

by:jkr
ID: 1179391
Just an additional comment: As a (discrete) Fourier transformation consumes lots of CPU time, you should concentrate on the frequency components of interest, e.g. up to 20 kHz.
And the 'treshold' can easily be evaluated by calculating the square of the area between the signal graph and the time axis (which corresponds directly to the signal energy and is the same in both Fourier and time domain).
Another pointer: When you're already heading to the library, be sure to also look for books on Z transformation ;-)
0
 
LVL 10

Accepted Solution

by:
Lischke earned 600 total points
ID: 1179392
jiangtao,

as you suggested I marked this comment as answer to get the points. I'd prefer, though, that we discuss further questions in public to let other people participate.

Ciao, Mike
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:jackton
ID: 1179393
Thanks all.
0
 
LVL 86

Expert Comment

by:jkr
ID: 1179394
What is THIS??????
Well, i think any accepted solution should be visible here, in order to not waste the points of people that reqest a PAQ!!!
0
 
LVL 10

Expert Comment

by:Lischke
ID: 1179395
Sorry for that. See http://www.experts-exchange.com/topics/comp/lang/delphi/Q.10105812 for the solution.

Ciao, Mike
0
 
LVL 86

Expert Comment

by:jkr
ID: 1179396
Well, IMHO, this doesn't help - see, i am not interested in this particular solution (having done enough signal processing by myself), but: If sombody is interested in a solution, requsts this PAQ, spends his/her points on it and is just redirected to a Delphi PAQ (on which points also have to be spent), he/she must consider this a hoax...
0
 
LVL 10

Expert Comment

by:Lischke
ID: 1179397
Hey jkr,

you're right and it'll not happen again. Let's close down this fruitless discussion.

Ciao, Mike
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question