#
# Prepare speech samples for the predict application.
#
# Requirements:
#    festival, with a voice database.
#
# Results:
#    freely redistributable sound files
#
# This set will work with predict 2.2.2
#
# A. Maitland Bottoms
# bottoms@debian.org
# 1 September 2003

# The default target does what John A. Magliacane's build script did.
vocalizer:
	cc -Wall -O3 -s -fomit-frame-pointer vocalizer.c -o vocalizer

# This target is just to make some waves :)
# Note: requires working installation of the festival speech software
# A line in the file spoken.txt is a filename, a tab character, and
# the text of the utterance.
waves: 
	# ensure permissions on the scripts.
	chmod +x outspoken.sh
	chmod +x text2wave
	cat spoken.txt | ./outspoken.sh

# For Future Use: create speex encoded sound files.
# Note: requires speex (http://www.speex.org/)
spx: zero.wav
	for i in *.wav ; do speexenc $$i `basename $$i .wav`.spx ; done

clean:
	rm -f *~ vocalizer

cleansounds:
	rm -f *.wav *.spx
