Debian Codegraph @

config/modules/dtk-generic.conf

raw
1 # DECTalk software 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. Note that this is not an optimal solution, but
6 # it's reported to work.
7 #
8 # Please note that DECTalk software is currently *not* Free Software.
9 # You might want to look at Festival instead.
10
11 # Debug turns debugging on or off
12 # See speechd.conf for information where debugging information is stored
13
14 # Debug 0
15
16 # GenericExecuteSynth is the shell command that should be
17 # executed in order to say some message. This command must
18 # stop saying the message on SIGKILL, otherwise it's useless.
19 # You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
20 # which will be substituted for the appropriate value (you
21 # can modify this value, see other parameters).
22 # The command can be split into more lines, if necessary, using '\'.
23 # NOTE1:
24 # Users of previous versions of this configuration file need to rename their
25 # DECTalk command-line program back to `say', since speech dispatcher no
26 # longer installs a program with this name. Thus, the reason for
27 # renaming the client in the first place is gone.
28 # NOTE2:
29 # DECTalk software version 4.61 is known to occasionally stop reading,
30 # due to a buffering problem with the `say' program. So far, the only way
31 # I know of to fix this is to upgrade from DECTalk 4.61 to DECTalk 5.
32 GenericExecuteSynth \
33 "echo \"[:n$VOICE][:ra $RATE][:dv ap $PITCH]\" >$TMPDIR/dtk-speak.txt \
34 && printf %s \'$DATA\' | fmt >>$TMPDIR/dtk-speak.txt && say -fi $TMPDIR/dtk-speak.txt"
35
36 GenericCmdDependency "say"
37 GenericSoundIconFolder "/usr/share/sounds/sound-icons/"
38
39 # GenericStripPunctChars is a list (enclosed in doublequotes) of
40 # all the characters that should be replaced by whitespaces in
41 # order not to be badly handled by the output module or misinterpreted
42 # by shell.
43 # We need to strip `[' and `]', as these are DECTalk's
44 # command characters.
45 GenericStripPunctChars "[]"
46
47 # AddVoice specifies which $VOICE string should be assigned to
48 # each language and symbolic voice name. All the voices you want
49 # to use must be specified here.
50 # NOTE:
51 # There is a multilingual version of DECTalk software, however I
52 # do not have it. Thus, only the US English voices are defined here.
53 # If you know about the other languages, please let us know on
54 # <[email protected]>
55
56 AddVoice "en" "MALE1" "p"
57 AddVoice "en" "MALE2" "h"
58 AddVoice "en" "MALE3" "d"
59 AddVoice "en" "FEMALE1" "b"
60 AddVoice "en" "FEMALE2" "u"
61 AddVoice "en" "FEMALE3" "w"
62 AddVoice "en" "CHILD_MALE" "k"
63
64 # DefaultVoice specifies which $VOICE string should be used if no voice is
65 # specified otherwise.
66
67 defaultVoice "p"
68
69 GenericDefaultCharset "iso-8859-1"
70
71 # These parameters set _rate_ and _pitch_ conversion. This is
72 # part of the core of the definition of this generic output
73 # module for this concrete synthesizer, it's not intended to
74 # be modified by common users.
75 # The resulting rate (or pitch) has the form:
76 # (speechd_rate * GenericRateMultiply) + GenericRateAdd
77 # while speechd_rate is a value between -100 (lowest) and +100 (highest)
78 # You have to define some meaningful conversion for each synthesizer
79 # NOTE:
80 # Because DECTalk cannot accept float values, we must force them to be
81 # integers.
82
83 GenericRateForceInteger 1
84 GenericPitchForceInteger 1
85
86 GenericRateAdd 338
87 GenericPitchAdd 225
88
89 # (These values are multiplied by 100, because DotConf currently
90 # doesn't support floats. So you can write 0.85 as 85 and so on.)
91
92 GenericRateMultiply 262
93 GenericPitchMultiply 175
94
95
96
97 # Copyright (C) 2004-2008 Brailcom, o.p.s
98 #
99 # This program is free software; you can redistribute it and/or modify it under
100 # the terms of the GNU General Public License as published by the Free Software
101 # Foundation; either version 2 of the License, or (at your option) any later
102 # version.
103 #
104 # This program is distributed in the hope that it will be useful, but WITHOUT ANY
105 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
106 # PARTICULAR PURPOSE. See the GNU General Public License for more details (file
107 # COPYING in the root directory).
108 #
109 # You should have received a copy of the GNU General Public License
110 # along with this program. If not, see <https://www.gnu.org/licenses/>.