initial checkin
[grml-scripts.git] / usr_bin / say
1 #!/bin/sh
2 # Filename:      say
3 # Purpose:       output text via flite or festival (general multi-lingual speech synthesis system)
4 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports:   see http://grml.org/bugs/
6 # License:       This file is licensed under the GPL v2.
7 # Latest change: Son Jän 30 14:38:30 CET 2005 [mika]
8 ################################################################################
9
10 if [[ "$#" -eq '0' ]] ; then
11   echo "Usage: $0 <text_to_say>"
12   exit -1
13 fi
14
15 if [ -x /usr/bin/flite ] ; then
16   flite -o play -t "$*"
17 elif [ -x /usr/bin/festival ] ; then
18   echo $* | festival --tts
19 fi
20
21 ## END OF FILE #################################################################