1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605
|
.\" hey, Emacs: -*- nroff -*-
.\" multispeech is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This program is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program; see the file COPYING. If not, write to
.\" the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
.\"
.TH MULTISPEECH.CONF 5 "March 2, 2010"
.\" Please update the above date whenever this man page is modified.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins (default)
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
multispeech.conf \- Multispeech configuration file
.SH DESCRIPTION
On startup \fBmultispeech\fP expects to find it's configuration
in \fI<sysconfdir>/multispeech.conf\fP and \fI~/.multispeechrc\fP.
The user settings provided by \fI~/.multispeechrc\fP
always take precedence over the system\-wide ones
from \fI<sysconfdir>/multispeech.conf\fP. And all these settings in turn
can be overridden by an extra configuration file specified via the
command line. Being started as \fBSpeech Dispatcher\fP module,
\fBmultispeech\fP treats the file specified in command line
as an extension of global configuration. Options specified there
override ones from the main system configuration file, but
\fI~/.multispeechrc takes precedence over the\fP both.
Some configuration options are mandatory, so at least
one of these files must exist.
.SH "SYNTAX"
The syntax is quite simple.
.PP
Lines started from the \(oq#\(cq character are treated as comments.
Blank lines are ignored. Each option entry looks like follows:
.PP
keyword = value
.PP
Case is significant.
.PP
All options are logically grouped by sections.
Each section is started by its name in square brackets on a separate
line.
.SH "CLIENT INTERACTION CONTROL OPTIONS"
These options are grouped in the section named \(oqfrontend\(cq. These
options are as follows:
.TP
.B charset
.br
Input charset should be specified by its name. Available names
can be found in \fI/usr/share/i18n/SUPPORTED\fP or wherever else
it is on your system. By default this option is not set
so current locale setting is used.
.TP
.B native_voices
.br
Enable native voice control embedded commands.
.TP
.B dtk_voices
.br
Enable DECtalk voice control embedded commands.
.PP
These two options control inline parameters parsing. In the default
state only native voices are enabled, so \fBmultispeech\fP behaves as
it used to and accepts only special inline commands formed by
\fBemacspeak\fP. When dtk voices are enabled, \fBmultispeech\fP
recognizes DECtalk inline commands and tries to emulate some subset of
the DECtalk voice control capabilities. Use the word \(oqyes\(cq or
\(oqon\(cq to enable and the word \(oqno\(cq or \(oqoff\(cq to disable
the option. Nothing prevents to keep both options enabled
simultaneously. In this case DECtalk inline commands will be accepted
as well as the native ones. If both options are disabled, then inline
commands detection and parsing will not be performed at all.
.SH "GENERAL AUDIO OUTPUT CONTROL OPTIONS"
Section name is \(oqaudio\(cq. It contains following options:
.TP
.B device
.br
Default device for all audio output (speech, sounds and tones).
If it is not specified explicitly, then system default will be used.
The DSP device specifications (such as \(oq/dev/dsp\(cq)
are allowed here as well as the ALSA ones. Invoke \(oqmultispeech \-l\(cq
to get list of all available devices on your system.
.TP
.B general_volume
.br
Volume level applied to all audio output in general.
It should be in the range of (0.0..1.0]. When this option is not
specified the default value 0.8 is used.
.TP
.B latency
.br
Audio output latency in seconds. Special value 0.0 implies
that reasonable latency will be chosen automatically by system.
Normally this option should not be set up explicitly.
Do it only if you are pretty unsatisfied by the default.
.TP
.B async_operation
.br
This option enables truly asynchronous audio stream operation.
Normally it is absolutely not necessary, thus, disabled by default,
but theoretically there can be some circumstances where it would be
preferable. Use the word \(oqyes\(cq or \(oqon\(cq to enable and the word
\(oqno\(cq or \(oqoff\(cq to disable.
.TP
.B pulseaudio_direct
.br
This option allows direct usage of PulseAudio API for \(oqpulse\(cq and
\(oqdefault\(cq devices when \(oqpulse\(cq device is present in the system.
If it is disabled, these devices will be accessed via native host
API bridge. Use the word \(oqyes\(cq or \(oqon\(cq to enable and the word
\(oqno\(cq or \(oqoff\(cq to disable.
.SH "SOUNDS PLAYING CONTROL OPTIONS"
Section name is \(oqsounds\(cq. It contains several options that
affect sound file playing capability:
.TP
.B device
.br
Sound files playing device. This setting overwrites general default
and allows one to play sound files on a separate audio device.
The DSP device specifications (such as \(oq/dev/dsp\(cq)
are accepted here as well as the ALSA ones. Invoke \(oqmultispeech \-l\(cq
to get list of all available devices on your system.
.TP
.B volume
.br
Relative volume level for sound files playing. It is 1.0
by default.
.TP
.B asynchronous
.br
This option enables or disables to play sound files
simultaneously with other audio activities, such as
speech and tone signals producing. It is enabled by default.
Use the word \(oqyes\(cq or \(oqon\(cq to enable and the word
\(oqno\(cq or \(oqoff\(cq to disable.
.SH "TONE SIGNALS PRODUCING CONTROL OPTIONS"
Section name is \(oqtones\(cq. It consists of the following options:
.TP
.B device
.br
Tones producing device. This setting overwrites general default
and allows one to use a separate device for tone signals.
The DSP device specifications (such as \(oq/dev/dsp\(cq)
are accepted here as well as the ALSA ones. Invoke \(oqmultispeech \-l\(cq
to get list of all available devices on your system.
.TP
.B volume
.br
Relative volume level for tone signals producing. It is 1.0
by default.
.TP
.B sampling
.br
Sampling frequency for generated tone signals. It is 44100
by default.
.TP
.B asynchronous
.br
This option enables or disables to produce tone signals
simultaneously with other audio activities, such as
speech and sound files playing. It is enabled by default.
Use the word \(oqyes\(cq or \(oqon\(cq to enable and the word
\(oqno\(cq or \(oqoff\(cq to disable.
.SH "GENERAL SPEECH CONTROL OPTIONS"
Section name is \(oqspeech\(cq. These options affect speech output in
general:
.TP
.B device
.br
Speech output device. This setting overwrites general default
and allows one to produce speech on a separate audio device.
The DSP device specifications (such as \(oq/dev/dsp\(cq)
are accepted here as well as the ALSA ones. Invoke \(oqmultispeech \-l\(cq
to get list of all available devices on your system.
.TP
.B volume
.br
Relative volume level for speech output. It is 1.0 by default.
.TP
.B language
.br
This option specifies the language to speak. Allowed values are:
\(oqen\(cq for English, \(oqru\(cq for Russian, \(oqde\(cq for German,
\(oqfr\(cq for French, \(oqes\(cq for Spanish, \(oqpt\(cq for
Portuguese, \(oqit\(cq for Italian or \(oqautodetect\(cq for automatic
detection from the text nature. By default language is
autodetected. The language then may be changed on the fly during
runtime by respective commands.
.TP
.B fallback
.br
This option specifies the language that will be chosen when it should
be changed, but autodetection fails. Any supported language may be
specified here, of course, except of \(oqautodetect\(cq. Of course,
the language declared as a fallback must be available itself. See
below about language related options.
.SH "LANGUAGE RELATED SPEECH CONTROL OPTIONS"
There is a separate section for each supported language named
\(oqen\(cq for English, \(oqru\(cq for Russian, \(oqde\(cq for German,
\(oqfr\(cq for French, \(oqes\(cq for Spanish, \(oqpt\(cq for
Portuguese and \(oqit\(cq for Italian. These sections contain quite the
same collection of options that affect speech on a specific
language. Actual speech engine is chosen by the key option
\(oqengine\(cq. By default it is \(oqespeak\(cq for all languages.
If it is explicitly not set or set as \(oqdisabled\(cq then
the language will not be available in Multispeech and no resources
will be spent for it. Actual choice vary from language to language,
but these two values are always legitimate. It is not necessary to
define speech engine for each language, but at least one must be
defined. It is wise to define speech engine for only those languages
that are actually to be used or define speech engine for all languages
in global configuration and then locally disable some of them that are
not needed.
.PP
Each language specific section consists of the following options:
.TP
.B engine
.br
TTS engine specification. Allowed values are as follows:
.PP
\fBfreephone\fP \- English speech with Freephone and Mbrola voice
\(oqen1\(cq;
.br
\fBru_tts\fP \- Russian speech with Ru_tts speech synthesizer;
.br
\fBespeak\fP \- all supported languages with Espeak TTS engine;
.br
\fBmbrola\fP \- English, German, French, Spanish, Portuguese and
Italian speech produced by Mbrola in conjunction with Espeak as a
preprocessor;
.br
\fBuser\fP \- user defined TTS engine.
.TP
.B priority
.br
Language detection priority. Any integer value is allowed.
During autodetection languages are probed in the ascending order
of their priority values. It is 0 by default.
.TP
.B volume
.br
Specific voice loudness relatively to the general speech volume
level. It is 1.0 by default.
.TP
.B pitch
.br
Specific voice pitch adjustment relative to it's normal level.
It is 1.0 by default. Greater value causes higher pitch.
.TP
.B rate
.br
Relative speech rate for specific voice. It is 1.0 by default.
Higher value causes quicker speech.
.TP
.B acceleration
.br
Apply additional speech tempo acceleration. Speech rate
will be changed by specified difference in percents
compared to the original tempo. Positive values cause
speech acceleration while the negative ones actually imply
slowing it down. Default value is 0 so no additional
tempo change is applied.
.TP
.B char_pitch
.br
Relative voice pitch control applied to the single
letters pronunciation. By default 1.0 is suggested.
.TP
.B char_rate
.br
Relative speech rate control applied to the single
letters pronunciation. By default 1.0 is suggested.
.TP
.B caps_factor
.br
Voice pitch factor for capital letters. By default it is 1.2
so capital letters are pronounced by slightly higher pitch.
.TP
.B speak_numbers
.br
This option affects numbers speaking. When it is \(oqyes\(cq or
\(oqon\(cq, digits are treated as if they belong to the native
alphabet and, therefore, do not cause language switching. When it is
\(oqno\(cq or \(oqoff\(cq, digits are treated as foreign symbols
causing switch to another language that will be the fallback one or
some other according to the language priority settings. It is
\(oqyes\(cq by default.
.SH "MBROLA RELATED OPTIONS"
Section named \(oqmbrola\(cq contains some options affecting
\fBmultispeech\fP interaction with \fBmbrola\fP speech engine:
.TP
.B executable
.br
Path to the Mbrola executable. If only program name is specified
(as it is by default) then environment variable \fBPATH\fP
will be examined and all paths mentioned there will be searched.
.TP
.B voices
.br
Path to the directory where Mbrola voice files are stored.
By default \(oq<datadir>/mbrola\(cq is suggested.
.SH "MBROLA VOICES ASSIGNMENT"
These voices are used by Mbrola backend in conjunction with Espeak.
To see the list of the voices supported by Espeak try to invoke
\(oqespeak \-\-voices\(cq. Only Mbrola voices are allowed here. Also
make sure that you have corresponding Mbrola voices itself.
See Espeak documentation for further details.
.TP
.B en
.br
English voice. By default \(oqen1\(cq is used.
.TP
.B de
.br
German voice. By default \(oqde6\(cq is used.
.TP
.B fr
.br
French voice. By default \(oqfr4\(cq is used.
.TP
.B es
.br
Spanish voice. By default \(oqes1\(cq is used.
.TP
.B pt
.br
Portuguese voice. By default \(oqbr3\(cq is used.
.TP
.B it
.br
Italian voice. By default \(oqit3\(cq is used.
.SH "FREEPHONE RELATED OPTIONS"
Section named \(oqfreephone\(cq is devoted to \fBfreephone\fP speech
backend. Here are the following options:
.TP
.B executable
.br
Path to the Freephone executable. If only program name is specified
(as it is by default) then environment variable \fBPATH\fP
will be examined and all paths mentioned there will be searched.
.TP
.B lexicon
.br
Path to the lexical database. By default
\(oq<datadir>/freespeech/enlex.db\(cq is suggested.
.SH "RU TTS RELATED OPTIONS"
Section named \(oqru_tts\(cq consists of options that control
\fBmultispeech\fP interaction with \fBru_tts\fP speech synthesizer:
.TP
.B executable
.br
Path to the Ru_tts executable. If only program name is specified
(as it is by default) then environment variable \fBPATH\fP
will be examined and all paths mentioned there will be searched.
.TP
.B lexicon
.br
Path to the lexical database. By default
\(oq<datadir>/freespeech/rulex.db\(cq is suggested.
.TP
.B log
.br
Optional file to collect unknown words. This file must be writable
for the Multispeech user. The collected data can be used later
to improve lexical database. No such file is suggested by default
so unknown words are not stored.
.TP
.B expressiveness
.br
Relative voice pitch variation level. The default value is 1.0.
It is the normal intonation. Value 0.0 causes absolutely monotonic
speech.
.TP
.B female_voice
.br
When this option is \(oqyes\(cq the alternative female voice is used
instead of the default (male) one.
.TP
.B decimal_point
.TQ
.B decimal_comma
.br
These options enable or disable treating point and comma
inside a number as decimal separator. By default both are enabled.
Use \(oqyes\(cq or \(oqon\(cq to enable and \(oqno\(cq or \(oqoff\(cq
to disable.
.TP
.B interclause_gap_factor
.br
The factor applied to all interclause gap durations.
.TP
.B comma_gap_factor
.TQ
.B dot_gap_factor
.TQ
.B semicolon_gap_factor
.TQ
.B colon_gap_factor
.TQ
.B question_gap_factor
.TQ
.B exclamation_gap_factor
.br
the factors applied to the durations of the gaps
implied by the corresponding punctuations.
.TP
.B intonational_gap_factor
.br
The factor applied to the duration of intonational gaps
not caused by punctuations.
.SH "ESPEAK RELATED OPTIONS"
Interaction with \fBespeak\fP TTS engine is controlled by the options
grouped in section \(oqespeak\(cq:
.TP
.B executable
.br
Path to the Espeak executable. If only program name is specified
(as it is by default) then environment variable \fBPATH\fP
will be examined and all paths mentioned there will be searched.
.TP
.B en
.br
English voice specification. By default \(oqen\(cq is
suggested. Invoke \(oqespeak \-\-voices\(cq to see all available
alternatives.
.TP
.B ru
.br
Russian voice specification. By default \(oqru\(cq is
suggested. Invoke \(oqespeak \-\-voices\(cq to see all available
alternatives.
.TP
.B de
.br
German voice specification. By default \(oqde\(cq is
suggested. Invoke \(oqespeak \-\-voices\(cq to see all available
alternatives.
.TP
.B fr
.br
French voice specification. By default \(oqfr\(cq is
suggested. Invoke \(oqespeak \-\-voices\(cq to see all available
alternatives.
.TP
.B es
.br
Spanish voice specification. By default \(oqes\(cq is
suggested. Invoke \(oqespeak \-\-voices\(cq to see all available
alternatives.
.TP
.B pt
.br
Portuguese voice specification. By default \(oqpt\(cq is
suggested. Invoke \(oqespeak \-\-voices\(cq to see all available
alternatives.
.TP
.B it
.br
Italian voice specification. By default \(oqit\(cq is
suggested. Invoke \(oqespeak \-\-voices\(cq to see all available
alternatives.
.SH "USER DEFINED TTS BACKEND OPTIONS"
The section name is \(oquser\(cq. The following options are grouped
here:
.TP
.B command
.br
Shell command to perform TTS transformation. This command
must accept text on the standard input and produce sound
stream on the standard output. It should be a simple command,
pipes or other shell complications are not allowed here,
but command line arguments may be specified. Moreover, there are
several special keywords recognized by Multispeech and replaced
by actual values internally just before execution. This mechanism
allows Multispeech to pass current speech parameters to the TTS
engine. These keywords are as follows:
.PP
\fB%lang\fP \- replaced by the language id string;
.br
\fB%pitch\fP \- replaced by relative voice pitch value;
.br
\fB%rate\fP \- replaced by relative speech rate value;
.br
\fB%freq\fP \- replaced by the sampling frequency value.
.PP
The last keyword is replaced only when freq_control is enabled
(see below).
.TP
.B format
.br
Produced sound stream sample format. The following values
are allowed here:
.PP
\fBs8\fP \- signed 8 bits;
.br
\fBu8\fP \- unsigned 8 bits;
.br
\fBs16\fP \- signed 16 bits.
.PP
Leave this option commented out if sound stream is produced
in a format that can be detected automatically, such as wave file
for instance.
.TP
.B sampling
.br
Produced sound stream sampling frequency in Hz. Assumed 22050
by default. This option is ignored when sound stream format
is autodetected.
.TP
.B stereo
.br
Set to \(oqyes\(cq if produced sound stream is stereo. By default it is
assumed mono. This option is ignored when sound stream format is
autodetected.
.TP
.B freq_control
.br
Set this option to \(oqyes\(cq if TTS engine accepts sampling frequency
specification (as \fBmbrola\fP does, for instance) and you wish
to make use of this capability. This option allows \(oq%freq\(cq
keyword replacement in command line. Leave commented out if unsure.
.TP
.B charset
.br
Character set in which the TTS engine accepts it's input.
Available charset names can be found in \fI/usr/share/i18n/SUPPORTED\fP
or wherever else it is on your system. By default this option
is not set so current locale setting is used.
.SH "SPEECH DISPATCHER MODULE RELATED OPTIONS"
The section name is \(oqspd\(cq. The following options are grouped
here:
.TP
.B version
.br
\fBSpeech Dispatcher\fP version. Usually it is correctly guessed
automatically, but you can specify it explicitly
when compatibility issues take place.
.TP
.B sound_icons
.br
Path to the directory where \fBmultispeech\fP will search sound icon
files when acting as \fBSpeech Dispatcher\fP module.
By default \(oq<datadir>/sounds/sound\-icons\(cq is suggested.
.TP
.B use_voice_language
.br
This option defines \fBmultispeech\fP behaviour when
\fBsynthesis_voice\fP and \fBlanguage\fP settings are passed by
\fBSpeech Dispatcher\fP in a single request. If it is \(oqyes\(cq
or \(oqon\(cq, language will be chosen according to the specified
voice, otherwise, when it is \(oqno\(cq or \(oqoff\(cq, the last
setting in packet will take precedence. By default this option
is \(oqyes\(cq.
.TP
.B accept_explicit_language
.br
This option enables or disables explicit language choice by
\fBSpeech Dispatcher\fP. When disabled, language can be chosen only
via \fBsynthesis_voice\fP. Use the word \(oqyes\(cq or \(oqon\(cq
to enable and the word \(oqno\(cq or \(oqoff\(cq to disable.
By default this option is enabled.
.TP
.B ignore_unknown_voice
.br
When this option is \(oqyes\(cq or \(oqon\(cq, \fBSpeech Dispatcher\fP
requests to set \fBsynthesis_voice\fP with unknown name are ignored.
Otherwise, when it is \(oqno\(cq or \(oqoff\(cq, such requests are
treated as if the voice name was \(oqNULL\(cq. This special name
is used for so-called default voice that allows \fBmultispeech\fP
to utilize language autodetection mechanism. Though language still
can be changed explicitly by \fBSpeech Dispatcher\fP if enabled.
This option is \(oqno\(cq by default.
.TP
.B index_marks
.br
This option enables or disables index marks support.
When it is \(oqyes\(cq or \(oqon\(cq, index marks are reported
correctly, but it is necessary to split message at the point of index
mark. If such side effect is somewhat inconvenient, it may be better
to turn off index marks support by setting this option to \(oqno\(cq
or \(oqoff\(cq. By default index marks support is enabled.
.SH "SEE ALSO"
.BR espeak(1),
.BR freephone(1),
.BR mbrola(1),
.BR multispeech(1),
.BR ru_tts(1),
.BR speech-dispatcher(1).
.SH AUTHOR
Igor B. Poretsky <poretsky@mlbox.ru>.
|