Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need help detecting the amplitude from the microphone input. I have connected a telephone to mic device so that I can record voice calls. this is working manually on a button press. However i would like to add auto recording. so when the handset is lifted the amplitude input changes and I want to see the amplitude. I will put this in a ticker so that when the amplitude changes, the recording will start. I know how to start and stop the recording, finding it hard to see the amplitude. i am using mci to record and play the wav file. Does anyone know a quick and simple way to see the amplitude? if this is the best way to do it?
Posted

The solution was to get the amps from the incoming sound. Because I was using a microphone there was a lot of background noise. Used a time frame for the amps spike and when the amps went above a set amount the recording would start. when the amps remained below the spike for a certain amount of time. I made it 5 seconds the recording stops and then I use MCI to save the recording to a predefined location.

if the recording was less than 5 seconds the application would pickup a false start and discard the recording.
 
Share this answer
 
I do not think that what you want to do is possible in MCI. I could be wrong though. :)

However, take a look at this[^] from MSDN which may give you some clues to get started.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900