Debian Codegraph @

config/modules/mary-generic.conf

raw
1 # The mary-generic output module is based on the generic plugin for Speech
2 # Dispatcher. It means there is no 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. Use this config file with the sd_generic output module.
6
7 # Debug turns debugging on or off
8 # See speechd.conf for information where debugging information is stored
9 Debug 0
10
11 # IMPORTANT: The audio output method relies on an audio playback
12 # utility (play, aplay, paplay for OSS, ALSA or Pulse)
13 # being installed. If this is not the case, consider installing it
14 # or replace the $PLAY_COMMAND string in the GenericExecuteString below
15 # with play, paplay or similar.
16 #
17 # GenericExecuteSynth is the shell command that should be
18 # executed in order to say some message. This command must
19 # stop saying the message on SIGKILL, otherwise it's useless.
20 # You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
21 # which will be substituted for the appropriate value (you
22 # can modify this value, see other parameters).
23 # This line uses the command curl, so you might need to install
24 # curl if it isn't already installed.
25 # The command can be split into more lines, if necessary, using '\'.
26 GenericExecuteSynth \
27 "curl \"http://localhost:59125/process?INPUT_TEXT=`printf %s \'$DATA\'| xxd -plain | tr -d '\\n' | sed 's/\\\(..\\\)/%\\\1/g'`&INPUT_TYPE=TEXT&OUTPUT_TYPE=AUDIO&AUDIO=WAVE_FILE&LOCALE=$LANGUAGE&VOICE=$VOICE\" | sox -v $VOLUME $TMPDIR/mary-generic.wav tempo $RATE pitch $PITCH norm && $PLAY_COMMAND $TMPDIR/mary-generic.wav"
28
29 GenericCmdDependency "curl"
30 GenericPortDependency 59125
31 GenericSoundIconFolder "/usr/share/sounds/sound-icons/"
32
33 # The following three items control punctuation levels None, Some, and All.
34 # Each of these values will be substituted into the $PUNCT variable depending
35 # on the value passed to speech dispatcher from applications.
36 # Note that if an empty string is specified, then $PUNCT will be blank
37 # which is a default situation for espeak.
38
39 GenericPunctNone ""
40 GenericPunctSome "--punct=\"()[]{};:\""
41 GenericPunctMost "--punct=\"()[]{};:\""
42 GenericPunctAll "--punct"
43
44 # GenericStripPunctChars is a list (enclosed in doublequotes) of
45 # all the characters that should be replaced by whitespaces in
46 # order not to be badly handled by the output module or misinterpreted
47 # by shell.
48 #GenericStripPunctChars ""
49
50 # If the language you need to pass in $LANGUAGE is different
51 # from the standard ISO language code, you can specify
52 # which string to use instead. If you wish to use
53 # other than ISO charset for the specified language,
54 # you can add it's name (as accepted by iconv) as a
55 # third parameter in doublequotes, or use GenericDefaultCharset
56 # to specify it
57
58 GenericLanguage "en" "en_GB" "utf-8"
59 GenericLanguage "en" "en_US" "utf-8"
60
61 GenericDefaultCharset "utf-8"
62
63 # AddVoice specifies which $VOICE string should be assigned to
64 # each language and symbolic voice name. All the voices you want
65 # to use must be specified here. This list will likely not be
66 # up-to-date, please check your mary installation and add the voices
67 # you want to use.
68
69 #English GB
70 AddVoice "en_GB" "MALE1" "dfki-spike"
71 AddVoice "en_GB" "FEMALE1" "dfki-prudence"
72 AddVoice "en_GB" "CHILD_FEMALE" "dfki-poppy"
73 AddVoice "en_GB" "MALE2" "dfki-obadiah"
74
75 #English US
76 AddVoice "en_US" "MALE1" "cmu-bdl"
77 AddVoice "en_US" "MALE2" "cmu-rms"
78 AddVoice "en_US" "FEMALE1" "cmu-slt"
79
80 #German
81 AddVoice "de" "MALE1" "dfki-pavoque-styles"
82 AddVoice "de" "FEMALE1" "bits1"
83 AddVoice "de" "MALE2" "bits2"
84 AddVoice "de" "MALE3" "bits3"
85 AddVoice "de" "FEMALE2" "bits4"
86 AddVoice "de" "MALE4" "dfki-pavoque-neutral"
87
88 #Turkish
89 AddVoice "tr" "MALE1" "dfki-ot"
90
91 #French
92 AddVoice "fr" "FEMALE1" "upmc-jessica"
93 AddVoice "fr" "MALE1" "upmc-pierre"
94 AddVoice "fr" "FEMALE2" "enst-camille"
95 AddVoice "fr" "MALE2" "enst-dennys-hsmm"
96
97 #Telugu
98 AddVoice "te" "FEMALE1" "cmu-nk-hsmm"
99
100 #Italian
101 AddVoice "it" "FEMALE1" "istc-lucia-hsmm"
102
103 # Not installed yet
104 #marylux-lb
105
106 # DefaultVoice specifies which $VOICE string should be used if no voice is
107 # specified otherwise.
108
109 DefaultVoice "dfki-spike"
110
111 # These parameters set _rate_, _pitch_, and _volume_ conversion. This is
112 # part of the core of the definition of this generic output
113 # module for this concrete synthesizer, it's not intended to
114 # be modified by common users.
115 # The resulting rate (or pitch) has the form:
116 # (speechd_rate * GenericRateMultiply) + GenericRateAdd
117 # while speechd_rate is a value between -100 (lowest) and +100 (highest)
118 # You have to define some meaningful conversion for each synthesizer
119
120 # The SSIP defaults are actually controlled via DefaultRate, DefaultPitch, and
121 # DefaultVolume in the speechd.conf file.
122 # Specific values for Mary TTS
123
124 GenericRateAdd 1
125 GenericPitchAdd 1
126 GenericVolumeAdd 1
127
128 # (These values are multiplied by 100, because DotConf currently
129 # doesn't support floats. So you can write 0.85 as 85 and so on.)
130
131 GenericRateMultiply 1
132 GenericPitchMultiply 750
133 GenericVolumeMultiply 2
134
135 # If the client program can't handle floats, you will have to
136 # use these two options to force integers as the parameters
137 # 1 means force integers, 0 means do nothing (write floats).
138
139 GenericRateForceInteger 0
140 GenericPitchForceInteger 1
141 GenericVolumeForceInteger 0
142
143 # Note that SSIP rates < -50 are spoken at -50.
144
145
146 # Copyright (C) 2018 Florian Steinhardt <[email protected]>
147 #
148 # This program is free software; you can redistribute it and/or modify it under
149 # the terms of the GNU General Public License as published by the Free Software
150 # Foundation; either version 2 of the License, or (at your option) any later
151 # version.
152 #
153 # This program is distributed in the hope that it will be useful, but WITHOUT ANY
154 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
155 # PARTICULAR PURPOSE. See the GNU General Public License for more details (file
156 # COPYING in the root directory).
157 #
158 # You should have received a copy of the GNU General Public License
159 # along with this program. If not, see <https://www.gnu.org/licenses/>.