LiWangOn
asked on
How to capture voice input?
I am writing a Visual C++ program that have to capture the time whenever there is a voice input towards the microphone. I have no idea how to work it out as I am a novice towards multimedia programming. Please help, it is very urgent.
ASKER
Thx for the reply, but that's not what exactly I want to do. What I want to do is to know when there is a voice input towards the microphone so that I could ask the program to progress on other activity.
->What I want to do is to know when there is a voice input towards the microphone so that I could ask the program to progress on other activity.
===================
hmm...I think the answer is what you want.plz check it and You will find the answer there.
Anyway,good luck.
===================
hmm...I think the answer is what you want.plz check it and You will find the answer there.
Anyway,good luck.
ASKER
I think I get your point. You mean I should analyze the data in the buffer while capturing the sound?
But I still confuse that how could I know which sample is having the "voice", and how to know the corresponding time of that sample?
(Actually I am writing a program to get respond time)
But I still confuse that how could I know which sample is having the "voice", and how to know the corresponding time of that sample?
(Actually I am writing a program to get respond time)
ASKER
I want to get the time difference (in ms) between a word presented on the computer screen and the user's respond towards the microphone.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
1. MCIWnd Window Class
Recording with MCIWnd Controls
http://msdn.microsoft.com/library/psdk/multimed/mciwnd_0e43.htm
2. MCI
Recording with a Waveform-Audio Device
http://msdn.microsoft.com/library/psdk/multimed/mci_4wpx.htm
3. Waveform Audio
Example of Writing Waveform Data
http://msdn.microsoft.com/library/psdk/multimed/wave_8rj5.htm
Recording and Playing Waveform Audio
http://msdn.microsoft.com/library/techart/msdn_spellit.htm
4. DirectSound
Tutorial 2: Capturing a Sound
http://msdn.microsoft.com/library/psdk/directx/dstut_9ox0.htm