Detect tap with pyaudio from live mic
One way I’ve done it: read a block of samples at a time, say 0.05 seconds worth compute the RMS amplitude of the block (square root of the average of the squares of the individual samples) if the block’s RMS amplitude is greater than a threshold, it’s a “noisy block” else it’s a “quiet block” … Read more