detect-speed-test.sh 524 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. source test-common.sh
  3. IN_WAV=detect-speed-test.wav
  4. OUT_WAV=detect-speed-test-out.wav
  5. OUTS_WAV=detect-speed-test-out-spd.wav
  6. audiowmark test-gen-noise detect-speed-test.wav 30 44100
  7. for SPEED in 0.9764 1.0 1.01
  8. do
  9. audiowmark_add $IN_WAV $OUT_WAV $TEST_MSG
  10. audiowmark test-change-speed $OUT_WAV $OUTS_WAV $SPEED
  11. audiowmark_cmp $OUTS_WAV $TEST_MSG --detect-speed --test-speed $SPEED
  12. audiowmark_cmp $OUTS_WAV $TEST_MSG --detect-speed-patient --test-speed $SPEED
  13. done
  14. rm $IN_WAV $OUT_WAV $OUTS_WAV
  15. exit 0