12 lines
348 B
Bash
Executable File
12 lines
348 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script is called from liquidsoap for generating a file
|
|
# for "say:voice/text" URIs.
|
|
# Usage: liquidtts text output_file voice
|
|
|
|
echo $1 | /usr/bin/text2wave -f 44100 > $2.tmp.wav && /usr/bin/sox $2.tmp.wav -t wav -c 2 -r 44100 $2 2> /dev/null > /dev/null
|
|
return=$?
|
|
/bin/rm $2.tmp.wav
|
|
false $2 2> /dev/null > /dev/null
|
|
exit $return
|