Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 202

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 205

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 314

Deprecated: Assigning the return value of new by reference is deprecated in /home/www/web535/html/dokuwiki/inc/parserutils.php on line 454

Deprecated: Function split() is deprecated in /home/www/web535/html/dokuwiki/inc/auth.php on line 146

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/auth.php on line 236

Warning: Cannot modify header information - headers already sent by (output started at /home/www/web535/html/dokuwiki/inc/parserutils.php:202) in /home/www/web535/html/dokuwiki/inc/actions.php on line 128
linux_scripts:say.sh [wiki.BerndLux.de]
 

Diese Scripte benötigen eine mprola installation mit den dazugehörigen pho dateinen.

  #!/bin/sh

  if [ -z "$1" ]
  then
  while read line
  do
        echo $line | txt2speech.sh -play  # 2>/dev/null

  done
 
  else
        echo "$*" | txt2speech.sh ${2:--play} ; # 2>/dev/null
  fi

txt2speech.sh:

#!/bin/sh

#männlich de
#VOICE=de2
VOICE=de6
#VOICE=
#VOICE=
#VOICE=

# Weiblich de
#VOICE=
#VOICE=
#VOICE=
#VOICE=

 
MBROLA=/usr/local/bin/mbrola
DB=/usr/local/txt2speech/$VOICE/$VOICE
DATUM=`date '+%d.%m.%y-%H:%M'`
 
if [ $1 = "-play" ] ; then
 
 numfilt | txt2pho -m | $MBROLA $DB  - /tmp/saying-$DATUM.wav && /usr/bin/esdplay /tmp/saying-$DATUM.wav ; rm -f /tmp/saying-$DATUM.wav
# /tmp/saying-$DATUM.wav && /usr/bin/esdplay /tmp/saying-$DATUM.wav ; rm -f /tmp/saying-$DATUM.wav #bplay -b 16 -s 22050
else
 
echo "hallo" 
# numfilt | txt2pho  | $MBROLA $DB - ${1:--}

fi;
 
linux_scripts/say.sh.txt · Zuletzt geändert: 2006/04/01 14:37
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki