multispeech.conf - Multispeech configuration file
Contents
Client Interaction Control Options
These options are grouped in the section named ‘frontend’. These options are as follows:
charset
Input charset should be specified by its name. Available names can be found in
/usr/share/i18n/SUPPORTED or wherever else it is on your system. By default this option is not set
so current locale setting is used.
native_voices
Enable native voice control embedded commands.
dtk_voices
Enable DECtalk voice control embedded commands.
These two options control inline parameters parsing. In the default state only native voices are enabled,
so multispeech behaves as it used to and accepts only special inline commands formed by emacspeak. When
dtk voices are enabled, multispeech recognizes DECtalk inline commands and tries to emulate some subset
of the DECtalk voice control capabilities. Use the word ‘yes’ or ‘on’ to enable and the word ‘no’ or
‘off’ 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.
Description
On startup multispeech expects to find it's configuration in /etc/multispeech.conf and ~/.multispeechrc.
The user settings provided by ~/.multispeechrc always take precedence over the system-wide ones from
/etc/multispeech.conf. And all these settings in turn can be overridden by an extra configuration file
specified via the command line. Being started as SpeechDispatcher module, multispeech 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 ~/.multispeechrctakesprecedenceoverthe both.
Some configuration options are mandatory, so at least one of these files must exist.
General Audio Output Control Options
Section name is ‘audio’. It contains following options:
device
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 ‘/dev/dsp’)
are allowed here as well as the ALSA ones. Invoke ‘multispeech -l’ to get list of all available
devices on your system.
general_volume
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.
latency
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.
async_operation
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 ‘yes’ or ‘on’ to enable and the word ‘no’ or ‘off’ to disable.
pulseaudio_direct
This option allows direct usage of PulseAudio API for ‘pulse’ and ‘default’ devices when ‘pulse’
device is present in the system. If it is disabled, these devices will be accessed via native
host API bridge. Use the word ‘yes’ or ‘on’ to enable and the word ‘no’ or ‘off’ to disable.
General Speech Control Options
Section name is ‘speech’. These options affect speech output in general:
device
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 ‘/dev/dsp’) are accepted here as
well as the ALSA ones. Invoke ‘multispeech -l’ to get list of all available devices on your
system.
volume
Relative volume level for speech output. It is 1.0 by default.
language
This option specifies the language to speak. Allowed values are: ‘en’ for English, ‘ru’ for
Russian, ‘de’ for German, ‘fr’ for French, ‘es’ for Spanish, ‘pt’ for Portuguese, ‘it’ for Italian
or ‘autodetect’ 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.
fallback
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
‘autodetect’. Of course, the language declared as a fallback must be available itself. See below
about language related options.
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 ‘espeak --voices’. Only Mbrola voices are allowed here. Also make sure
that you have corresponding Mbrola voices itself. See Espeak documentation for further details.
en
English voice. By default ‘en1’ is used.
de
German voice. By default ‘de6’ is used.
fr
French voice. By default ‘fr4’ is used.
es
Spanish voice. By default ‘es1’ is used.
pt
Portuguese voice. By default ‘br3’ is used.
it
Italian voice. By default ‘it3’ is used.
Name
multispeech.conf - Multispeech configuration file
See Also
espeak(1),freephone(1),mbrola(1),multispeech(1),ru_tts(1),speech-dispatcher(1).
Sounds Playing Control Options
Section name is ‘sounds’. It contains several options that affect sound file playing capability:
device
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 ‘/dev/dsp’) are accepted
here as well as the ALSA ones. Invoke ‘multispeech -l’ to get list of all available devices on
your system.
volume
Relative volume level for sound files playing. It is 1.0 by default.
asynchronous
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 ‘yes’ or ‘on’
to enable and the word ‘no’ or ‘off’ to disable.
Syntax
The syntax is quite simple.
Lines started from the ‘#’ character are treated as comments. Blank lines are ignored. Each option entry
looks like follows:
keyword = value
Case is significant.
All options are logically grouped by sections. Each section is started by its name in square brackets on
a separate line.
Tone Signals Producing Control Options
Section name is ‘tones’. It consists of the following options:
device
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 ‘/dev/dsp’) are accepted here as
well as the ALSA ones. Invoke ‘multispeech -l’ to get list of all available devices on your
system.
volume
Relative volume level for tone signals producing. It is 1.0 by default.
sampling
Sampling frequency for generated tone signals. It is 44100 by default.
asynchronous
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 ‘yes’
or ‘on’ to enable and the word ‘no’ or ‘off’ to disable.
User Defined Tts Backend Options
The section name is ‘user’. The following options are grouped here:
command
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:
%lang - replaced by the language id string;
%pitch - replaced by relative voice pitch value;
%rate - replaced by relative speech rate value;
%freq - replaced by the sampling frequency value.
The last keyword is replaced only when freq_control is enabled (see below).
format
Produced sound stream sample format. The following values are allowed here:
s8 - signed 8 bits;
u8 - unsigned 8 bits;
s16 - signed 16 bits.
Leave this option commented out if sound stream is produced in a format that can be detected
automatically, such as wave file for instance.
sampling
Produced sound stream sampling frequency in Hz. Assumed 22050 by default. This option is ignored
when sound stream format is autodetected.
stereo
Set to ‘yes’ if produced sound stream is stereo. By default it is assumed mono. This option is
ignored when sound stream format is autodetected.
freq_control
Set this option to ‘yes’ if TTS engine accepts sampling frequency specification (as mbrola does,
for instance) and you wish to make use of this capability. This option allows ‘%freq’ keyword
replacement in command line. Leave commented out if unsure.
charset
Character set in which the TTS engine accepts it's input. Available charset names can be found
in /usr/share/i18n/SUPPORTED or wherever else it is on your system. By default this option is not
set so current locale setting is used.
