Symlink notifyd.py to osd_server.py for backward compatibility
[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 ################################################################################
8
9 if [ $# -eq 0 ] ; then
10   echo "Usage: $0 <text_to_say>"
11   exit -1
12 fi
13
14 if [ -x /usr/bin/flite ] ; then
15   flite -o play -t "$*"
16 elif [ -x /usr/bin/festival ] ; then
17   echo $* | festival --tts
18 fi
19
20 ## END OF FILE #################################################################