0
0

Here is my problem :
I try to record from a mic and put ONLY words or sentences in .wav file.
So I put the flag for looping recording to TRUE.
I now want to analyze my FSOUND_SAMPLE to determine if an user said something or if it is only ambiant noise. And then if a word or a sound higher than ambiant noise has been pronounced, it will start to record in a wav file.
HELP ME PLIZ

  • You must to post comments
0
0

I managed to record to a wav file using a circular buffer modifying the record example (the one that plays back recorded sound in real time). You can set up a dsp unit to monitor current audio and write it to the file only when you decide.

You probably will need a second buffer to hold data coming out from DSP before writing it to disk.

Not the easiest thing in the world (depends on your skills, of course :) ) but it can be done.

ciao
Davide

  • You must to post comments
0
0

And of course, I have no skill. With DSP do you think I will be able to determine if a sound has been pronounced ?

  • You must to post comments
0
0

Yes, but this way he would have to poll recording data very fast to determine whether level is below treshold or not… it seems an easier solution but (in my opinion) would not give optimal results.

BuGbOy, if you have no skills it will be a good idea to study the examples (and may be other things) until you build enough confidence to try yourself.

With DSP (or VUlevels) you can determine if sound level is higher than something you specify, if you are VERY clever I suppose you could even tell the difference between spoken words and background noise (or other interferences).

A quick and dirty way could be analyzing the buffer before writing it to disk and writing only what you need. May be a good compromise that uses no dsp and no polling. Of course you have to do this while locking your recording buffer so you must do it quickly but is should work.

Ciao
Davide

  • You must to post comments
0
0

I really don’t understant how FSOUND_GetCurrentLevels works ?
I put the flag FSOUND_INIT_ACCURATEVULEVELS in FSOUND_INIT, but I don’t understant how to use those F_FLOAT_API and moreover get the value I’m looking for.

  • You must to post comments
0
0

Ok I found how to use those function. But I have no another problem.
I don’t want my recording sound to be played. They should be no sound. But if I change Output or I SetVolume of the current playing channel. It doesn’t work anymore.
I used the record example.
Thx

  • You must to post comments
Showing 5 results
Your Answer

Please first to submit.