You need to constantly check whether the person is speaking into the microphone or not. If he says, then write it to a file, as soon as he stopped talking - stop recording. What library should I use to check and record from microphone on c ++?

    2 answers 2

    Depends on the operating system. Speak more specifically - I want to write for such and such an operating system in such and such an environment. See more SO

    There is an example of sound recording through MCI for Builder, it only needs to be slightly adapted for Visual C ++:

    Sound recording in C ++ Builder