Home > other >  Pyaudio how to determine the volume size
Pyaudio how to determine the volume size

Time:10-09

I made a program pyaudio official recording code,
I'd like to read the rest of the 512 data, judge whether the volume to a certain size, if it is written to a file, if not I will lose

I mainly want to notice a voice interaction process, if the volume reaches a certain value I think someone is talking, I recorded, if the sound I think small talk over, and then in the baidu to do voice recognition

It is best to a frame of a frame of judgment, if not are there any other way

CodePudding user response:

Call back mode

CodePudding user response:

The
reference 3 floor qq_36776452 response:
call back mode

Can some concrete?
  • Related