spd-say
send text-to-speech output request to speech-dispatcher
see also :
speech-dispatcher
Synopsis
spd-say
[options] "some text"
add an example, a script, a trick and tips
examples
source
echo "${1}" |
spd-say -p -25 -e
}
source
if [ "$eval" = "1" ]; then
spd-say "No GPS fix acquired!"
elif [ "$eval" = "2" ]; then
spd-say "GPS 2D fix acquired!"
elif [ "$eval" = "3" ]; then
spd-say "GPS 3D fix acquired!"
count=$(expr ${count} + 1)
else
# echo "No information available. Please try it
another time."
source
do
spd-say "$speech"
sleep 1;
done
fi
}
speak $1
source
mpc volume 100
spd-say -C
source
spd-say -w -P important "$timeString"
;;
"pico")
pico2wave -w $voiceFile "$timeString"
description
spd-say
sends text-to-speech output request to
speech-dispatcher process which handles it and
ideally outputs the result to the audio system.
options
-r,
--rate
Set the rate of the speech
(between -100 and +100, default: 0)
-p,
--pitch
Set the pitch of the speech
(between -100 and +100, default: 0)
-i,
--volume
Set the volume (intensity) of
the speech (between -100 and +100, default: 0)
-o,
--output-module
Set the output module
-l,
--language
Set the language (iso code)
-t,
--voice-type
Set the preferred voice type
(male1, male2, male3, female1, female2, female3, child_male,
child_female)
-m,
--punctuation-mode
Set the punctuation mode (none,
some, all)
-s,
--spelling
Spell the message
-x,
--ssml
Set SSML mode on (default:
off)
-e,
--pipe-mode
Pipe from stdin to stdout plus
Speech Dispatcher
-P,
--priority
Set priority of the message
(important, message, text, notification, progress; default:
text)
-N,
--application-name
Set the application name used
to establish the connection to specified string value
(default: spd-say)
-n,
--connection-name
Set the connection name used to
establish the connection to specified string value (default:
main)
-w,
--wait
Wait till the message is spoken
or discarded
-S,
--stop
Stop speaking the message being
spoken in Speech Dispatcher
-C,
--cancel
Cancel all messages in Speech
Dispatcher
-v,
--version
Print version and copyright
info
-h,
--help
Print this info
environment
SPEECHD_ADDRESS
specifies TCP endpoint where speech-dispatcher is
listening and to which spd-say should connect. Has form of
<method>:<address>, where <method> is one of
unix_socket and inet_socket. The <address> is
either path to Unix domain socket if method is unix_socket, of IP
address if method is inet_socket.
see also
speech-dispatcher
The full
documentation for spd-say is maintained as a Texinfo
manual. If the info and spd-say programs are
properly installed at your site, the command
info
spd-say
should give you
access to the complete manual.