192 |
- |
1 |
# Epos output module is based on the generic plugin for Speech
|
|
|
2 |
# Dispatcher. It means there is no C code written explicitly for
|
|
|
3 |
# this plugin, all the specifics are handled in this configuration
|
|
|
4 |
# and we call a simple command line client to perform the actual
|
|
|
5 |
# synthesis.
|
|
|
6 |
#
|
|
|
7 |
# WARNING: You will need to either rename the command epos-say in
|
|
|
8 |
# GenericExecuteString to what's the name of this utility on your
|
|
|
9 |
# system (it might be "say"), or (better) create a link epos-say
|
|
|
10 |
# somewhere in your path to the epos's say client.
|
|
|
11 |
|
|
|
12 |
|
|
|
13 |
# GenericExecuteSynth is the shell command that should be
|
|
|
14 |
# executed in order to say some message. This command must
|
|
|
15 |
# stop saying the message on SIGKILL, otherwise it's useless.
|
|
|
16 |
# You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
|
|
|
17 |
# which will be substituted for the appropriate value (you
|
|
|
18 |
# can modify this value, see other parameters).
|
|
|
19 |
# The command can be split into more lines, if necessary, using '\'.
|
|
|
20 |
|
|
|
21 |
GenericExecuteSynth \
|
|
|
22 |
"epos-say -o --language $LANGUAGE --voice $VOICE --init_f $PITCH --init_t $RATE \
|
|
|
23 |
\'$DATA\' | sed -e /unknown*/d >$TMPDIR/epos-said.wav && play $TMPDIR/epos-said.wav >/dev/null"
|
|
|
24 |
|
|
|
25 |
# GenericStripPunctChars is a list (enclosed in doublequotes) of
|
|
|
26 |
# all the characters that should be replaced by whitespaces in
|
|
|
27 |
# order not to be badly handled by the output module or misinterpreted
|
|
|
28 |
# by shell.
|
|
|
29 |
|
|
|
30 |
# GenericStripPunctChars "~@#$%^&*+=|\\/<>[]_`"
|
|
|
31 |
|
|
|
32 |
# AddVoice specifies which $VOICE string should be assigned to
|
|
|
33 |
# each language and symbolic voice name. All the voices you want
|
|
|
34 |
# to use must be specified here.
|
|
|
35 |
|
|
|
36 |
AddVoice "cs" "male1" "kadlec"
|
|
|
37 |
AddVoice "sk" "male1" "bob"
|
|
|
38 |
|
|
|
39 |
# If the language you need to pass in $LANG is different
|
|
|
40 |
# from the standard ISO language code, you can specify
|
|
|
41 |
# which string to use instead. If you wish to use
|
|
|
42 |
# other than ISO charset for the specified language,
|
|
|
43 |
# you can add it's name (as accepted by iconv) as a
|
|
|
44 |
# third parameter in doublequotes.
|
|
|
45 |
|
|
|
46 |
GenericLanguage "cs" "czech"
|
|
|
47 |
GenericLanguage "sk" "slovak"
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
# These parameters set _rate_ and _pitch_ conversion. This is
|
|
|
51 |
# part of the core of the definition of this generic output
|
|
|
52 |
# module for this concrete synthesizer, it's not intended to
|
|
|
53 |
# be modified by common users.
|
|
|
54 |
# The resulting rate (or pitch) has the form:
|
|
|
55 |
# (speechd_rate * GenericRateMultiply) + GenericRateAdd
|
|
|
56 |
# while speechd_rate is a value between -100 (lowest) and +100 (highest)
|
|
|
57 |
# You have to define some meaningful conversion for each synthesizer
|
|
|
58 |
|
|
|
59 |
GenericRateAdd 100
|
|
|
60 |
GenericPitchAdd 100
|
|
|
61 |
#GenericVolumeAdd 100
|
|
|
62 |
|
|
|
63 |
# (These values are multiplied by 100, because DotConf currently
|
|
|
64 |
# doesn't support floats. So you can write 0.85 as 85 and so on.)
|
|
|
65 |
|
|
|
66 |
GenericRateMultiply -85
|
|
|
67 |
GenericPitchMultiply 100
|
|
|
68 |
#GenericVolumeMultiply 50
|
|
|
69 |
|
|
|
70 |
# If the client program can't handle floats, you will have to
|
|
|
71 |
# use these two options to force integers as the parameters
|
|
|
72 |
# 1 means force integers, 0 means do nothing (write floats).
|
|
|
73 |
|
|
|
74 |
#GenericRateForceInteger 0
|
|
|
75 |
#GenericPitchForceInteger 0
|
|
|
76 |
#GenericVolumeForceInteger 0
|
|
|
77 |
|
|
|
78 |
# Debug turns debugging on or off
|
|
|
79 |
# See speechd.conf for information where debugging information is stored
|
|
|
80 |
# Debug 0
|