Ahmed Ashour
Ahmed Ashour

Reputation: 43

Start recording as soon as the user starts speaking in windows phone 7?

I just wanted to know if there is a way to start recording from the microphone as soon as the user starts speaking.

I know how to record audio from the microphone using the normal steps, but it always requires the user to start the recording himself by pressing a button or something.

I wanted to know if there is an event that can trigger recording when the user starts to speak. Or if I can make the program understand when the user is speaking.

Upvotes: 2

Views: 138

Answers (1)

Maxim V. Pavlov
Maxim V. Pavlov

Reputation: 10509

Currently this can't be done in WP7 at a system level. As for your own app - in theory it is possible. You could start the mic, and perform a mic buffer analysis each time the buffer ready event is raised. You would analyze the sound pattern, apply some separate-voice-from-noise algorith (if one exists in pure .net implementation) and, if voice is detected, start sending the data to a recording stream. It is a great overhead for a device though.

Windows 7 has voice activated commands already. I would recommend waiting for a few more update releases for WP7, most likely Microsoft is to roll our a feature like this soon. Although it would still drain power, since the system would need to have a mic running all the time, and do a wave-sequence analysis.

Upvotes: 1

Related Questions