I may have missed something in provided examples … But I couldn’t get what I want for the moment 😥
I would like to record user voice in a optimized way, which means : [i:90shf9z2]stop recording audio data as soon as incoming audio level is kept under a certain threshold for a period of time[/i:90shf9z2].
This recording has to be saved in a wavefile at the end of speech (this last step shouldn’t be a problem, as it’s very well descirbed in provided examples).
The only way I have thought about is to spy incoming audio frames to take a decision about keeping recording or not. I mainly tried to get started with "recording" and "dsp_custom" examples … But I didn’t succeed so far.
So, two questions about this : Is there a more simple way to achieve this ? And if not, is it possible to get a few tips to get really started on this point ?
- Breton asked 10 years ago
Look at the "pitchdetection" example. Here youll find out how to initialize a record. You see there is an audio channel where the recorded signal is directly played back (but with no volume). You are now able to process this live data from this channel. Look at this function: audiochannel->[b:59mcajuv]getWaveData[/b:59mcajuv]..
Take the float data from this function to find out the incoming audio level (see the "spectrum" example!)
I am a newbie myself but maybe I could help out
- marblecake answered 10 years ago
Please login first to submit.