1# The mary-generic output module is based on the generic plugin for Speech
2# Dispatcher. It means there is no 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. To enable it, you need to rename it to mary-generic.conf, so it can
6# be used with the sd_generic output module.
7#
8# IMPORTANT: The audio output method relies on an audio playback
9# utility (play, aplay, paplay for OSS, ALSA or Pulse)
10# being installed. If this is not the case, consider installing it
11# or replace the $PLAY_COMMAND string in the GenericExecuteString below
12# with play, paplay or similar.
13#
14# GenericExecuteSynth is the shell command that should be
15# executed in order to say some message. This command must
16# stop saying the message on SIGKILL, otherwise it's useless.
17# You can use the variables $LANGUAGE, $VOICE, $PITCH and $RATE
18# which will be substituted for the appropriate value (you
19# can modify this value, see other parameters).
20# This line uses the command curl, so you might need to install
21# curl if it isn't already installed.
22# The command can be split into more lines, if necessary, using '\'.
23GenericExecuteSynth \
24"curl \"http://localhost:59125/process?INPUT_TEXT=`printf %s \'$DATA\'| xxd -plain | tr -d '\\n' | sed 's/\\\(..\\\)/%\\\1/g'`&INPUT_TYPE=TEXT&OUTPUT_TYPE=AUDIO&AUDIO=WAVE_FILE&LOCALE=$LANGUAGE&VOICE=$VOICE\" > $TMPDIR/mary-generic.wav && $PLAY_COMMAND $TMPDIR/mary-generic.wav"
25
26GenericCmdDependency "curl"
27GenericSoundIconFolder "/usr/share/sounds/sound-icons/"
28
29# The following three items control punctuation levels None, Some, and All.
30# Each of these values will be substituted into the $PUNCT variable depending
31# on the value passed to speech dispatcher from applications.
32# Note that if an empty string is specified, then $PUNCT will be blank
33# which is a default situation for espeak.
34
35GenericPunctNone ""
36GenericPunctSome "--punct=\"()[]{};:\""
37GenericPunctMost "--punct=\"()[]{};:\""
38GenericPunctAll "--punct"
39
40# GenericStripPunctChars is a list (enclosed in doublequotes) of
41# all the characters that should be replaced by whitespaces in
42# order not to be badly handled by the output module or misinterpreted
43# by shell.
44#GenericStripPunctChars  ""
45
46# If the language you need to pass in $LANG is different
47# from the standard ISO language code, you can specify
48# which string to use instead. If you wish to use
49# other than ISO charset for the specified language,
50# you can add it's name (as accepted by iconv) as a
51# third parameter in doublequotes.
52
53GenericLanguage  "en" "en_GB" "utf-8"
54GenericLanguage  "de" "de" "utf-8"
55
56# AddVoice specifies which $VOICE string should be assigned to
57# each language and symbolic voice name. All the voices you want
58# to use must be specified here. This list will likely not be
59# up-to-date, please check your mary installation and add the voices
60# you want to use.
61
62AddVoice        "en"    "MALE1"         "dfki-spike"
63AddVoice        "en"    "FEMALE1"       "dfki-prudence"
64AddVoice        "en"    "CHILD_FEMALE"  "dfki-poppy"
65AddVoice        "de"    "MALE1"         "dfki-pavoque-styles"
66
67# Debug turns debugging on or off
68# See speechd.conf for information where debugging information is stored
69Debug 0
70
71
72# Copyright (C) 2018 Florian Steinhardt <no.known.email@example.com>
73#
74# This program is free software; you can redistribute it and/or modify it under
75# the terms of the GNU General Public License as published by the Free Software
76# Foundation; either version 2 of the License, or (at your option) any later
77# version.
78#
79# This program is distributed in the hope that it will be useful, but WITHOUT ANY
80# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
81# PARTICULAR PURPOSE.  See the GNU General Public License for more details (file
82# COPYING in the root directory).
83#
84# You should have received a copy of the GNU General Public License
85# along with this program.  If not, see <https://www.gnu.org/licenses/>.
86