2022-02-08 09:17:22 +11:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
INWAV="1637.wav"
|
|
|
|
OUTWAV="foo.wav"
|
2022-05-05 15:58:45 +11:00
|
|
|
DATAFILE="waves.text"
|
2022-02-08 09:17:22 +11:00
|
|
|
|
2022-05-05 15:58:45 +11:00
|
|
|
# XXX ./wav2text $INWAV | ./panoramix | ./text2wav $OUTWAV
|
2022-02-08 09:17:22 +11:00
|
|
|
|
2022-05-05 15:58:45 +11:00
|
|
|
OUTWAV="quux.wav"
|
2022-02-08 09:17:22 +11:00
|
|
|
|
2022-05-23 20:11:09 +11:00
|
|
|
./genwaves | tee $DATAFILE | c-tools/text2wav $OUTWAV
|
2022-05-05 15:58:45 +11:00
|
|
|
|
|
|
|
sndfile-spectrogram \
|
|
|
|
--min-freq=30 --max-freq=4000 \
|
|
|
|
--hann \
|
|
|
|
$OUTWAV \
|
|
|
|
1200 600 \
|
|
|
|
spectrogram.png
|
|
|
|
|
|
|
|
sndfile-waveform \
|
|
|
|
-c -2 \
|
|
|
|
-g 1200x600 \
|
|
|
|
$OUTWAV waveform.png
|
|
|
|
|
|
|
|
# echo " HEAD OF DATAS" ; head $DATAFILE
|