initial checkin
[grml-scripts.git] / usr_bin / xsay
1 #!/bin/sh
2 # Filename:      xsay
3 # Purpose:       output X clipboard text via flite
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: Fre Jul 14 01:29:42 CEST 2006 [mika]
8 ################################################################################
9
10 if [ -x /usr/bin/wmiipsel ] ; then
11   flite -o play -t "$(wmiipsel)"
12 else
13   if [ -x /usr/bin/wmiiplumb ] ; then
14     flite -o play -t "$(wmiiplumb)"
15   else
16     flite -o play -t "$(wmiplumb)"
17   fi
18 fi
19
20 ## END OF FILE #################################################################