File: detect-speed-test.sh

package info (click to toggle)
audiowmark 0.6.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,168 kB
  • sloc: cpp: 10,571; sh: 1,867; makefile: 107; python: 34
file content (19 lines) | stat: -rwxr-xr-x 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

source test-common.sh

IN_WAV=detect-speed-test.wav
OUT_WAV=detect-speed-test-out.wav
OUTS_WAV=detect-speed-test-out-spd.wav

audiowmark test-gen-noise detect-speed-test.wav 30 44100
for SPEED in 0.9764 1.0 1.01
do
  audiowmark_add $IN_WAV $OUT_WAV $TEST_MSG
  audiowmark test-change-speed $OUT_WAV $OUTS_WAV $SPEED
  audiowmark_cmp $OUTS_WAV $TEST_MSG --detect-speed --test-speed $SPEED
  audiowmark_cmp $OUTS_WAV $TEST_MSG --detect-speed-patient --test-speed $SPEED
done

rm $IN_WAV $OUT_WAV $OUTS_WAV
exit 0