MatrixIO Recorder
Version vom 25. September 2020, 15:23 Uhr von Raz0rsedge (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „ #!/bin/bash # record HDD Microphone 5 seconds for health status, convert and put to index.html cd ~/matrixOne/ui/sounds/ ./.recorder for f in *.raw; do sox -r…“)
- !/bin/bash
- record HDD Microphone 5 seconds for health status, convert and put to index.html
cd ~/matrixOne/ui/sounds/ ./.recorder for f in *.raw; do sox -r 16000 -e signed -b 16 -c 1 "$f" "${f%.*}.wav"; done sox -m *.wav out.wav sleep 1 sox out.wav audio.dat #create plaintext file of amplitude values tail -n+3 audio.dat > audio_only.dat #remove comments gnuplot audio.gpi #run script
- sox -t wav -r 16000 -c 1 out.wav -t mp3 out.mp3
lame -b 32 --resample 16 -a out.wav $(date "+%Y.%m.%d-%H.%M.%S").mp3 sleep 3 rm *.dat rm *.wav rm *.raw java -jar /home/pi/html4tree/build/libs/html4tree.jar /home/pi/matrixOne/ui/sounds/ --max-level 0