| 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 |
# Debug turns debugging on or off |
| 13 |
# See speechd.conf for information where debugging information is stored |
| 14 |
# Debug 0 |
| 15 |
|
| 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 |
# The command can be split into more lines, if necessary, using '\'. |
| 24 |
|
| 25 |
GenericExecuteSynth \ |
| 26 |
"epos-say -o --language $LANGUAGE --voice $VOICE --init_f $PITCH --init_t $RATE \ |
| 27 |
\'$DATA\' | sed -e /unknown*/d >$TMPDIR/epos-said.wav && play $TMPDIR/epos-said.wav >/dev/null" |
| 28 |
|
| 29 |
GenericCmdDependency "epos-say" |
| 30 |
GenericSoundIconFolder "/usr/share/sounds/sound-icons/" |
| 31 |
|
| 32 |
# GenericStripPunctChars is a list (enclosed in doublequotes) of |
| 33 |
# all the characters that should be replaced by whitespaces in |
| 34 |
# order not to be badly handled by the output module or misinterpreted |
| 35 |
# by shell. |
| 36 |
|
| 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 |
|
| 43 |
AddVoice "cs" "male1" "kadlec" |
| 44 |
AddVoice "sk" "male1" "bob" |
| 45 |
|
| 46 |
# DefaultVoice specifies which $VOICE string should be used if no voice is |
| 47 |
# specified otherwise. |
| 48 |
|
| 49 |
defaultVoice "kadlec" |
| 50 |
|
| 51 |
# If the language you need to pass in $LANGUAGE is different |
| 52 |
# from the standard ISO language code, you can specify |
| 53 |
# which string to use instead. If you wish to use |
| 54 |
# other than ISO charset for the specified language, |
| 55 |
# you can add it's name (as accepted by iconv) as a |
| 56 |
# third parameter in doublequotes, or use GenericDefaultCharset |
| 57 |
# to specify it |
| 58 |
|
| 59 |
GenericLanguage "cs" "czech" |
| 60 |
GenericLanguage "sk" "slovak" |
| 61 |
|
| 62 |
GenericDefaultCharset "iso-8859-2" |
| 63 |
|
| 64 |
# These parameters set _rate_ and _pitch_ conversion. This is |
| 65 |
# part of the core of the definition of this generic output |
| 66 |
# module for this concrete synthesizer, it's not intended to |
| 67 |
# be modified by common users. |
| 68 |
# The resulting rate (or pitch) has the form: |
| 69 |
# (speechd_rate * GenericRateMultiply) + GenericRateAdd |
| 70 |
# while speechd_rate is a value between -100 (lowest) and +100 (highest) |
| 71 |
# You have to define some meaningful conversion for each synthesizer |
| 72 |
|
| 73 |
GenericRateAdd 100 |
| 74 |
GenericPitchAdd 100 |
| 75 |
#GenericVolumeAdd 100 |
| 76 |
|
| 77 |
# (These values are multiplied by 100, because DotConf currently |
| 78 |
# doesn't support floats. So you can write 0.85 as 85 and so on.) |
| 79 |
|
| 80 |
GenericRateMultiply -85 |
| 81 |
GenericPitchMultiply 100 |
| 82 |
#GenericVolumeMultiply 50 |
| 83 |
|
| 84 |
# If the client program can't handle floats, you will have to |
| 85 |
# use these two options to force integers as the parameters |
| 86 |
# 1 means force integers, 0 means do nothing (write floats). |
| 87 |
|
| 88 |
#GenericRateForceInteger 0 |
| 89 |
#GenericPitchForceInteger 0 |
| 90 |
#GenericVolumeForceInteger 0 |
| 91 |
|
| 92 |
|
| 93 |
# Copyright (C) 2003-2008 Brailcom, o.p.s |
| 94 |
# |
| 95 |
# This program is free software; you can redistribute it and/or modify it under |
| 96 |
# the terms of the GNU General Public License as published by the Free Software |
| 97 |
# Foundation; either version 2 of the License, or (at your option) any later |
| 98 |
# version. |
| 99 |
# |
| 100 |
# This program is distributed in the hope that it will be useful, but WITHOUT ANY |
| 101 |
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 102 |
# PARTICULAR PURPOSE. See the GNU General Public License for more details (file |
| 103 |
# COPYING in the root directory). |
| 104 |
# |
| 105 |
# You should have received a copy of the GNU General Public License |
| 106 |
# along with this program. If not, see <https://www.gnu.org/licenses/>. |