Skip to content
/ howl Public

A Deep Learning project to classify sound at night

Notifications You must be signed in to change notification settings

strbrgr/howl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Howl

What is this all about?

I regularly scream during sleep at night. Sometimes once sometimes plenty of times. Most of the times my wife has to wake me up. The number of screams correlates with the stress level within my day-to-day life, so I thought it would be a fun to come up with a project that uses Deep Learning to analyze my screaming behavior.

Documentation

Installing Docker on your Pi

curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USER

Using arecord to record via my external Microphone

When I started this project I thought that I would need python and the PyAudio library to record sound through my external microphone. While this might work, it was total overkill once I discovered arecord. Arecord is a command-line sound recorder and player for ALSA soundcard driver and can be used super easy with a cronjob and a shell script:

#!/bin/bash

timeout 28800 /usr/bin/arecord -D plughw:2,0 -f cd -t wav --max-file-time 3600 --use-strftime "/home/jo/Desktop/howl/audio/export/%Y/%m/%d/listen-%H-%M-%v.wav"

This will record the sound for 8 hours and write to a seperate file/folder every hour once I created the following cronjob:

0 22 * * * /home/jo/Desktop/howl/audio/record_audio.sh

I normally pass out around 10pm and get up around 5am, so recording for 8 hours makes sense.

Things learned along the way

About

A Deep Learning project to classify sound at night

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages