Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thilinasatoru/pi-audio-detector

RaspberryPi USB Mic voice detection script.
https://github.com/thilinasatoru/pi-audio-detector

audio microphone-audio-capture python raspberry-pi

Last synced: 2 days ago
JSON representation

RaspberryPi USB Mic voice detection script.

Awesome Lists containing this project

README

        

# Parameters

```py
# Parameters
sample_rate = 44100 # Hz
channels = 1 # mono
duration = 10 # seconds
cry_threshold_dB = 60 # Loudness threshold for detecting suspicious sound
low_freq = 500 # Hz (lower frequency limit for band-pass filter)
high_freq = 4000 # Hz (upper frequency limit for band-pass filter)
use_bandpass_filter = False # Boolean to enable or disable band-pass filter

# Buffer length in samples
buffer_length = int(sample_rate * 0.5) # 0.5 seconds buffer

api_url = "http://localhost:5000/audio" # Replace with your API endpoint
```