How to organize voice recording through a microphone on an Opange Pi device (on which I plan to install Linux)? It is important that in the absence of speech the recording should stop (or be paused), a new one should start (the old one should continue) when the speech was resumed.

  • "It is important that the recording be stopped when there is no speech." If your micro channel does not fonit, then you can check the direct audio stream for height. But I did this on Java and for a long time, look under the frameworks for frameworks ... - Denis Kotlyarov

2 answers 2

The easiest way:

0) looking for typical voice frequencies

1) you arrange the second buffer in a Fourier series (sinuses) at these frequencies

3) you lay out the frequencies of the background (street noise)

4) compare amplitudes

In my childhood I did this, about 50 lines for the whole program.

    As a result, I installed the Audio Recorder program, in which there is just such a recording method.
    Installation for Ubuntu 15 and above installation is as follows:
    sudo add-apt-repository ppa: audio-recorder / ppa
    sudo apt-get -y update
    sudo apt-get install --reinstall audio-recorder