Linux Commands Examples

A great documentation place for Linux commands

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

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!

examples

6
source
            
echo "${1}" | spd-say -p -25 -e
}
0
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."
0
source
            
do
spd-say "$speech"
sleep 1;
done
fi
}
speak $1
0
source
            
mpc volume 100
spd-say -C
0
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.

How can this site be more helpful to YOU ?


give  feedback