Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 25 lines (19 sloc) 579 Bytes
#!/bin/bash
# This script creates ogg audio files speaking the digits 0 to 9 in english.
# Requires flac (package flac) and oggenc (package vorbis-tools)
test -d digits && cd digits
if ! test -d ../source; then
echo >&2 "Please run me in the digits/ directory"
exit 1
fi
function create () {
out="$1";
shift;
echo "Creating $out.ogg..."
flac -s -d --endian little --sign signed --force-raw-format -c "$@" |
oggenc -Q --downmix --resample 22050 -r - -o $out.ogg
}
create blob ../source/blob.flac
for d in {0..9}; do
create english_$d ../source/english_$d.flac
done