beep on folder change

#!/bin/bash

# watchFolder

while true
do
       touch  ./lastwatch
       sleep 5
       find "$HOME/tmp/" -name *.wav -cnewer ./lastwatch -exec beepspeakers 1 {} \;
done

Without using inotify. Script is stolen from the internet (and I can’t find link anymore). beepspeakers script here.