Voice-Activated VOX Audio Recording?
Posted: Sat 03 Mar 2018, 00:00
any way to do this on puppy?
thx
thx
READ-ONLY Archive
https://oldforum.puppylinux.com/
thx, watchdog!watchdog wrote:Audacity can do that.
thx, i tried it. Doesn't appear to, tho'.Moat wrote:does mcenaw's Precord have this capability?
thx, will check it out!drunkjedi wrote:On this page a Python script is given to do that job.
http://mocha.freeshell.org/audio.html
Actually, on that mocha.freeshell.org site there is a simple commandline using sox that includes sound activated recording thresholds. Here is the complete script including the relevant sox rec commands:drunkjedi wrote:On this page a Python script is given to do that job.
http://mocha.freeshell.org/audio.html
Code: Select all
#!/bin/bash
#source http://www.sis-germany.de/index.php?page=Thread&threadID=1444
NAME=`date +%m-%d-%Y_%H-%M-%S`
#choose a method below, either the decibel or % of level method
#also choose number of channels, sample rate, encoding, etc..
#you need to find a level that works for your hardware
#rec -c 1 -r 22050 $NAME.wav silence 1 0 -22d -1 00:00:05 -22d
#rec -c 1 -r 22050 $NAME.wav silence 1 0 8% -1 00:00:05 8%
rec -c 1 -r 22050 $NAME.mp3 silence 1 0 8% -1 00:00:05 8%
#rec -c 1 -r 22050 $NAME.mp3 silence 1 0 25% -1 00:00:05 25%
#uncomment appropriate line below for normalizing when finished
#echo "Normalize..."
#sox $NAME.wav $NAME-norm.wav gain -n -1
#sox $NAME.mp3 $NAME-norm.mp3 gain -n -1
#uncomment appropriate line below for a spectral graph if desired
#echo "Calculating Spectrogram..."
#sox $NAME.wav -n spectrogram -x 1024 -y 768 -z 100 -t "$NAME.wav" -c '' -o $NAME.png
#sox $NAME.mp3 -n spectrogram -x 1024 -y 768 -z 100 -t "$NAME.mp3" -c '' -o $NAME.png
#echo "Done."