Skip to content

Commit

Permalink
chore: add shell script for audio file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
mhx committed Dec 21, 2023
1 parent e0b4e32 commit 87be9b6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .maintainer-scripts/audio.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
for bits in 8 16 20 24 32; do
sox -D -r10000 -b$bits -n audio/test$bits.wav synth 5 sine ${bits}00
for ch in 1 2 3 4 5 6; do
sox -D -r10000 -b$bits -n audio/test$bits.$ch.wav synth 5 sine ${bits}${ch}0
sox -D -M audio/test$bits.?.wav audio/test$bits-$ch.wav
done
rm audio/test$bits.?.wav
for fmt in aiff caf w64; do
sox -D audio/test$bits.wav audio/test$bits.$fmt
for ch in 1 2 3 4 5 6; do
sox -D audio/test$bits-$ch.wav audio/test$bits-$ch.$fmt
done
done
done

0 comments on commit 87be9b6

Please sign in to comment.