File: outspoken.sh

package info (click to toggle)
predict 2.2.2-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,968 kB
  • ctags: 2,628
  • sloc: ansic: 32,041; sh: 3,346; makefile: 417; yacc: 318; perl: 32
file content (14 lines) | stat: -rwxr-xr-x 420 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# Input stdin has lines of the form
# filename <tab> text
# and produces a set of files containing
# sound files of the spoken text.
# text2wave is an example script from the
# festival speech software, which handles
# the basic text to speech (tts) operation.
IFS='	'
while read  filename contents ; do
 echo "file: " $filename
 echo "contents: " $contents
 echo $contents | ./text2wave -o $filename.wav
done