Debian Codegraph @

config/modules/llia_phon-generic.conf

raw
1 # llia_phon 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
8 # WARNING: This is only a preliminary version and needs some more
9 # work to be really useful. We plan to finish it as soon as llia_phon
10 # is fixed in it's CVS.
11
12 # Debug turns debugging on or off
13 # Debug 0
14
15 # DebugFile specifies the file where the debugging information
16 # should be stored (note that the log is overwritten each time
17 # the module starts)
18 # DebugFile "/tmp/debug-llia-phon-generic"
19
20 # GenericExecuteSynth is the shell command that should be
21 # executed in order to say some message. This command must
22 # stop saying the message on SIGKILL, otherwise it's useless.
23 # You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
24 # which will be substituted for the appropriate value (you
25 # can modify this value, see other parameters).
26 # The command can be split into more lines, if necessary, using '\'.
27
28 GenericExecuteSynth \
29 "printf %s \'$DATA\' > $TMPDIR/llia_phon.txt && llia_phon | mbrola --f $PITCH --t $RATE \
30 -e -I LIAPHON/data/noarch/initfile.lia (directory with the voice) $VOICE \
31 $TMPDIR/llia_phon.txt -.au | $PLAY_COMMAND -t au - >/dev/null"
32
33 GenericCmdDependency "llia_phon"
34 GenericCmdDependency "mbrola"
35 GenericSoundIconFolder "/usr/share/sounds/sound-icons/"
36
37 # AddVoice specifies which $VOICE string should be assigned to
38 # each language and symbolic voice name. All the voices you want
39 # to use must be specified here.
40
41 AddVoice "fr" "male1" "phoneme-file"
42 AddVoice "fr" "male2" "phoneme-file"
43
44 # DefaultVoice specifies which $VOICE string should be used if no voice is
45 # specified otherwise.
46
47 DefaultVoice "phoneme-file"
48
49 GenericDefaultCharset "iso-8859-1"
50
51 # These parameters set _rate_ and _pitch_ conversion. This is
52 # part of the core of the definition of this generic output
53 # module for this concrete synthesizer, it's not intended to
54 # be modified by common users.
55 # The resulting rate (or pitch) has the form:
56 # (speechd_rate * GenericRateMultiply) + GenericRateAdd
57 # while speechd_rate is a value between -100 (lowest) and +100 (highest)
58 # You have to define some meaningful conversion for each synthesizer
59
60 GenericRateAdd 100
61 GenericPitchAdd 100
62 #GenericVolumeAdd 100
63
64 # (These values are multiplied by 100, because DotConf currently
65 # doesn't support floats. So you can write 0.85 as 85 and so on.)
66
67 GenericRateMultiply -85
68 GenericPitchMultiply 100
69 #GenericVolumeMultiply 50
70
71 # If the client program can't handle floats, you will have to
72 # use these two options to force integers as the parameters
73 # 1 means force integers, 0 means do nothing (write floats).
74
75 #GenericRateForceInteger 0
76 #GenericPitchForceInteger 0
77 #GenericVolumeForceInteger 0
78
79
80 # Copyright (C) 2004-2008 Brailcom, o.p.s
81 #
82 # This program is free software; you can redistribute it and/or modify it under
83 # the terms of the GNU General Public License as published by the Free Software
84 # Foundation; either version 2 of the License, or (at your option) any later
85 # version.
86 #
87 # This program is distributed in the hope that it will be useful, but WITHOUT ANY
88 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
89 # PARTICULAR PURPOSE. See the GNU General Public License for more details (file
90 # COPYING in the root directory).
91 #
92 # You should have received a copy of the GNU General Public License
93 # along with this program. If not, see <https://www.gnu.org/licenses/>.