0

What I would like to do is start recording audio to a file (microphone.wav) and then continue recording audio until there is no dialogue detected from the microphone for two seconds. At which point it will finish and save so I can process the file with pocketsphinx. Is this possible?

  • You should check this old question: [enter link description here](https://stackoverflow.com/questions/892199/detect-record-audio-in-python), you could use pyaudio – Manuel Carrero May 13 '19 at 03:23
  • Thank you but that's not what I'm looking for. I don't want it to cut silence out I want it to keep recording until it is silent for a specified time. Also I don't want to result as an array but just as a file. –  May 14 '19 at 02:37

0 Answers0