mirror of https://github.com/drowe67/phasenn.git
19 lines
340 B
Bash
Executable File
19 lines
340 B
Bash
Executable File
#!/bin/bash -x
|
|
# David Dec 2019
|
|
#
|
|
|
|
PATH=$PATH:~/codec2/build_linux/src:~/codec2/build_linux/misc
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "usage: ./run_n0_est.sh rawFile"
|
|
fi
|
|
speech=$1
|
|
x=$(basename $speech)
|
|
base="${x%.*}"
|
|
|
|
c2sim $speech --modelout $base'.model'
|
|
cat $base.model | est_n0 > $base'_n0.txt'
|
|
./plot_n0.py $base'.model' $base'_n0.txt'
|
|
|
|
|