I am basically using 3 tools to generate the WAV file required by ersky9xr r221:
- say: converts text into speech (aiff file)
- afconvert: converts aiff to wav file
- dd: binary manipulation of wav file
# Create Voice File say -v "$VOICE" "$phrase" -o $FAIFF -r $WPM # Convert AIFF to WAV afconvert -f WAVE -d LEI16@$FREQ -c 1 $FAIFF $FWAVE # Convert wav offset from 4096 to 44 dd if=$FWAVE bs=1 count=35 of=$FOUTF >&/dev/null dd if=$FWAVE bs=1 skip=4087 seek=35 conv=notrunc of=$FOUTF >&/dev/null