Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 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
# GenericExecuteSynth is the shell command that should be
12
# executed in order to say some message. This command must
13
# stop saying the message on SIGKILL, otherwise it's useless.
14
# You can use the variables $LANG, $VOICE, $PITCH and $RATE
15
# which will be substituted for the appropriate value (you
16
# can modify this value, see other parameters).
17
# The command can be split into more lines, if necessary, using '\'.
18
# NOTE1:
19
# Users of previous versions of this configuration file need to rename their
20
# DECTalk command-line program back to `say', since speech dispatcher no
21
# longer installs a program with this name. Thus, the reason for
22
# renaming the client in the first place is gone.
23
# NOTE2:
24
# DECTalk software version 4.61 is known to occasionally stop reading,
25
# due to a buffering problem with the `say' program. So far, the only way
26
# I know of to fix this is to upgrade from DECTalk 4.61 to DECTalk 5.
27
GenericExecuteSynth \
28
"echo \"[:n$VOICE][:ra $RATE][:dv ap $PITCH]\" >$TMPDIR/dtk-speak.txt \
29
&& echo \'$DATA\' | fmt >>$TMPDIR/dtk-speak.txt && say -fi $TMPDIR/dtk-speak.txt"
30
 
31
# GenericStripPunctChars is a list (enclosed in doublequotes) of
32
# all the characters that should be replaced by whitespaces in
33
# order not to be badly handled by the output module or misinterpreted
34
# by shell.
35
# We need to strip `[' and `]', as these are DECTalk's
36
# command characters.
37
GenericStripPunctChars  "[]"
38
 
39
# AddVoice specifies which $VOICE string should be assigned to
40
# each language and symbolic voice name. All the voices you want
41
# to use must be specified here.
42
# NOTE:
43
# There is a multilingual version of DECTalk software, however I
44
# do not have it. Thus, only the US English voices are defined here.
45
# If you know about the other languages, please let us know on
46
# <speechd@freebsoft.org>
47
 
48
AddVoice	"en"	"MALE1"		"p"
49
AddVoice	"en"	"MALE2"		"h"
50
AddVoice	"en"	"MALE3"		"d"
51
AddVoice	"en"	"FEMALE1" 	"b"
52
AddVoice	"en"	"FEMALE2"	"u"
53
AddVoice	"en"	"FEMALE3"	"w"
54
AddVoice	"en"	"CHILD_MALE"	"k"
55
 
56
# These parameters set _rate_ and _pitch_ conversion. This is
57
# part of the core of the definition of this generic output
58
# module for this concrete synthesizer, it's not intended to
59
# be modified by common users.
60
# The resulting rate (or pitch) has the form:
61
# 	(speechd_rate * GenericRateMultiply) + GenericRateAdd
62
# while speechd_rate is a value between -100 (lowest) and +100 (highest)
63
# You have to define some meaningful conversion for each synthesizer
64
# NOTE:
65
# Because DECTalk cannot accept float values, we must force them to be
66
# integers.
67
 
68
GenericRateForceInteger 1
69
GenericPitchForceInteger 1
70
 
71
GenericRateAdd 338
72
GenericPitchAdd	225
73
 
74
# (These values are multiplied by 100, because DotConf currently
75
# doesn't support floats. So you can write 0.85 as 85 and so on.)
76
 
77
GenericRateMultiply 262
78
GenericPitchMultiply 175
79
 
80
# Debug turns debugging on or off
81
# See speechd.conf for information where debugging information is stored
82
 
83
# Debug 0
84