Advertisement
Guest User

speechd.conf

a guest
May 21st, 2022
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.59 KB | None | 0 0
  1.  
  2. # Global configuration for Speech Dispatcher
  3. # ==========================================
  4.  
  5. # -----SYSTEM OPTIONS-----
  6.  
  7. # CommunicationMethod specifies the method to be used by Speech Dispatcher to communicate with
  8. # its clients. Two basic methods are "unix_socket" and "inet_socket".
  9. #
  10. # unix_socket -- communication over Unix sockets represented by a file in the
  11. # filesystem (see SocketPath below). This method works only locally, but is
  12. # prefered for standard session setup, where every user runs his own instance of Speech
  13. # Dispatcher to get voice feedback on his own computer.
  14. #
  15. # inet_socket -- alternatively, you can start Speech Dispatcher on
  16. # a TCP port and connect to it via hostname/port. This allows for a more
  17. # flexible setup, where you can use Speech Dispatcher over network
  18. # from different machines. See also the Port and LocalhostAccessOnly
  19. # configuration variables.
  20. #
  21. # CommunicationMethod "unix_socket"
  22.  
  23. # SocketPath is either "default" or a full path to the filesystem
  24. # where the driving Unix socket file should be created in case the
  25. # CommunicationMethod is set to "unix_socket". The default is
  26. # $XDG_RUNTIME_DIR/speech-dispatcher/speechd.sock where $XDG_RUNTIME_DIR
  27. # is the directory specified by the XDG Base Directory Specification.
  28. # Do not change this unless you have a reason and know what you are doing.
  29.  
  30. # SocketPath "default"
  31.  
  32. # The Port on which Speech Dispatcher should be available to clients if the "inet_socket"
  33. # communication method is used.
  34.  
  35. # Port 6560
  36.  
  37. # By default, if "inet_socket" communication method is used, the specified port is opened only
  38. # for connections coming from localhost. If LocalhostAccessOnly is set to 0 it disables this
  39. # access control. It means that the port will be accessible from all computers on the
  40. # network. If you turn off this option, please make sure you set up some system rules on what
  41. # computers are and are not allowed to access the Speech Dispatcher port.
  42.  
  43. # LocalhostAccessOnly 1
  44.  
  45. # By default, Speech Dispatcher is configured to shut itself down after a period of
  46. # time if no clients are connected. The timeout value is in seconds, and is started when
  47. # the last client disconnects. A value of 0 disables the timeout.
  48.  
  49. # Timeout 5
  50.  
  51. # -----LOGGING CONFIGURATION-----
  52.  
  53. # The LogLevel is a number between 0 and 5 specifying the
  54. # verbosity of information to the logfile or screen
  55. # 0 means nothing, 5 means everything (not recommended).
  56.  
  57. LogLevel 3
  58.  
  59. # The LogDir specifies where the Speech Dispatcher logs reside
  60. # Specify "stdout" for standard console output
  61. # or a custom log directory path. 'default' means
  62. # the logs are written to the default destination (e.g. a preconfigured
  63. # system directory or the home directory if .speech-dispatcher is present)
  64. # DO NOT COMMENT OUT THIS OPTION, leave as "default" for standard logging
  65.  
  66. LogDir "default"
  67. #LogDir "/var/log/speech-dispatcher/"
  68. #LogDir "stdout"
  69.  
  70. # The CustomLogFile allows logging all messages # regardless of
  71. # priority, to the given destination.
  72. #CustomLogFile "protocol" "/var/log/speech-dispatcher/speech-dispatcher-protocol.log"
  73.  
  74. # ----- VOICE PARAMETERS -----
  75.  
  76. # The DefaultRate controls how fast the synthesizer is going to speak.
  77. # The value must be between -100 (slowest) and +100 (fastest), default
  78. # is 0.
  79.  
  80. # DefaultRate 0
  81.  
  82. # The DefaultPitch controls the pitch of the synthesized voice. The
  83. # value must be between -100 (lowest) and +100 (highest), default is
  84. # 0.
  85.  
  86. # DefaultPitch 0
  87.  
  88. # The DefaultPitchRange controls the pitch range of the synthesized voice. The
  89. # value must be between -100 (lowest) and +100 (highest), default is
  90. # 0.
  91.  
  92. # DefaultPitchRange 0
  93.  
  94. # The DefaultVolume controls the default volume of the voice. It is
  95. # a value between -100 (softly) and +100 (loudly). Currently, +100
  96. # maps to the default volume of the synthesizer.
  97.  
  98. DefaultVolume 100
  99.  
  100. # The DefaultVoiceType controls which voice type should be used by
  101. # default. Voice types are symbolic names which map to particular
  102. # voices provided by the synthesizer according to the output module
  103. # configuration. Please see the synthesizer-specific configuration
  104. # in etc/speech-dispatcher/modules/ to see which voices are assigned to
  105. # different symbolic names. The following symbolic names are
  106. # currently supported: MALE1, MALE2, MALE3, FEMALE1, FEMALE2, FEMALE3,
  107. # CHILD_MALE, CHILD_FEMALE
  108.  
  109. # DefaultVoiceType "MALE1"
  110.  
  111. # The Default language with which to speak
  112.  
  113. # DefaultLanguage "en"
  114.  
  115.  
  116. # ----- MESSAGE DISPATCHING CONTROL -----
  117.  
  118. # The DefaultClientName specifies the name of a client who didn't
  119. # introduce himself at the beginning of an SSIP session.
  120.  
  121. # DefaultClientName "unknown:unknown:unknown"
  122.  
  123. # The Default Priority. Use with caution, normally this shouldn't be
  124. # changed globally (at this place)
  125.  
  126. # DefaultPriority "text"
  127.  
  128. # The DefaultPauseContext specifies by how many index marks a speech
  129. # cursor should return when resuming after a pause. This is roughly
  130. # equivalent to the number of sentences before the place of the
  131. # execution of pause that will be repeated.
  132.  
  133. # DefaultPauseContext 0
  134.  
  135. # -----SPELLING/PUNCTUATION/CAPITAL LETTERS CONFIGURATION-----
  136.  
  137. # The DefaultPunctuationMode sets the way dots, comas, exclamation
  138. # marks, question marks etc. are interpreted. none: they are ignored
  139. # some: some of them are sent to synthesis (see
  140. # DefaultPunctuationSome) all: all punctuation marks are sent to
  141. # synthesis
  142.  
  143. # DefaultPunctuationMode "none"
  144.  
  145. # Whether to use server-side symbols pre-processing by default.
  146. # This controls whether the server should pre-process the messages to insert
  147. # the appropriate words or if the output module is responsible for speaking
  148. # symbols and punctuation.
  149.  
  150. # DefaultSymbolsPreprocessing 0
  151.  
  152. # The DefaultCapLetRecognition: if set to "spell", capital letters
  153. # should be spelled (e.g. "capital b"), if set to "icon",
  154. # capital letters are indicated by inserting a special sound
  155. # before them but they should be read normally, it set to "none"
  156. # capital letters are not recognized (by default)
  157.  
  158. # DefaultCapLetRecognition "none"
  159.  
  160. # The DefaultSpelling: if set to On, all messages will be spelt
  161. # unless set otherwise (this is usually not something you want to do.)
  162.  
  163. # DefaultSpelling Off
  164.  
  165. # ----- AUDIO CONFIGURATION -----------
  166.  
  167. # -- AUDIO OUTPUT --
  168.  
  169. # Chooses between the possible sound output systems:
  170. # "pulse" - PulseAudio
  171. # "alsa" - Advanced Linux Sound System
  172. # "oss" - Open Sound System
  173. # "nas" - Network Audio System
  174. # "libao" - A cross platform audio library
  175. # Pulse audio is the default and recommended sound server. OSS and ALSA
  176. # are only provided for compatibility with architectures that do not
  177. # include Pulse Audio. NAS provides network transparency, but is not
  178. # very well tested. libao is a cross platform library with plugins for
  179. # different sound systems and provides alternative output for Pulse Audio
  180. # and ALSA as well as for other backends.
  181.  
  182. # AudioOutputMethod "pulse"
  183.  
  184. # -- Pulse Audio parameters --
  185.  
  186. # Pulse audio server name or "default" for the default pulse server
  187.  
  188. #AudioPulseServer "default"
  189.  
  190. #AudioPulseMinLength 1764
  191.  
  192. # -- ALSA parameters --
  193.  
  194. # Audio device for ALSA output
  195.  
  196. #AudioALSADevice "default"
  197.  
  198. # -- OSS parameters --
  199.  
  200. # Audio device for OSS output
  201.  
  202. #AudioOSSDevice "/dev/dsp"
  203.  
  204. # -- NAS parameters --
  205.  
  206. # Route to the Network Audio System server when NAS
  207. # is chosen for the audio output. Note that NAS
  208. # server doesn't need to run on your machine,
  209. # you can use it also over network (for instance
  210. # when working on remote machines).
  211.  
  212. #AudioNASServer "tcp/localhost:5450"
  213.  
  214.  
  215.  
  216. # -----OUTPUT MODULES CONFIGURATION-----
  217.  
  218. # Each AddModule line loads an output module.
  219. # Syntax: AddModule "name" "binary" "configuration" "logfile"
  220. # - name is the name under which you can access this module
  221. # - binary is the path to the binary executable of this module,
  222. # either relative (to lib/speech-dispatcher-modules/) or absolute
  223. # - configuration is the path to the config file of this module,
  224. # either relative (to etc/speech-dispatcher/modules/) or absolute
  225.  
  226. #AddModule "espeak" "sd_espeak" "espeak.conf"
  227. #AddModule "espeak-ng" "sd_espeak-ng" "espeak-ng.conf"
  228. #AddModule "festival" "sd_festival" "festival.conf"
  229. #AddModule "flite" "sd_flite" "flite.conf"
  230. #AddModule "ivona" "sd_ivona" "ivona.conf"
  231. #AddModule "pico" "sd_pico" "pico.conf"
  232. #AddModule "espeak-generic" "sd_generic" "espeak-generic.conf"
  233. #AddModule "espeak-ng-mbrola-generic" "sd_generic" "espeak-ng-mbrola-generic.conf"
  234. #AddModule "espeak-mbrola-generic" "sd_generic" "espeak-mbrola-generic.conf"
  235. #AddModule "swift-generic" "sd_generic" "swift-generic.conf"
  236. #AddModule "epos-generic" "sd_generic" "epos-generic.conf"
  237. #AddModule "dtk-generic" "sd_generic" "dtk-generic.conf"
  238. #AddModule "pico-generic" "sd_generic" "pico-generic.conf"
  239. #AddModule "ibmtts" "sd_ibmtts" "ibmtts.conf"
  240. #AddModule "cicero" "sd_cicero" "cicero.conf"
  241. #AddModule "kali" "sd_kali" "kali.conf"
  242. #AddModule "mary-generic" "sd_generic" "mary-generic.conf"
  243. #AddModule "baratinoo" "sd_baratinoo" "baratinoo.conf"
  244. #AddModule "rhvoice" "sd_rhvoice" "rhvoice.conf"
  245. #AddModule "voxin" "sd_voxin" "voxin.conf"
  246.  
  247. # DO NOT REMOVE the following line unless you have
  248. # a specific reason -- this is the fallback output module
  249. # that is only used when no other modules are in use
  250. #AddModule "dummy" "sd_dummy" ""
  251.  
  252. # The output module testing doesn't actually connect to anything. It
  253. # outputs the requested commands to standard output and reads
  254. # responses from stdandard input. This way, Speech Dispatcher's
  255. # communication with output modules can be tested easily.
  256.  
  257. # AddModule "testing"
  258.  
  259. # The DefaultModule selects which output module is the default. You
  260. # must use one of the names of the modules loaded with AddModule.
  261.  
  262. DefaultModule ivona
  263.  
  264. # The LanguageDefaultModule selects which output modules are prefered
  265. # for specified languages.
  266.  
  267. #LanguageDefaultModule "pl" "ivona"
  268. #LanguageDefaultModule "en" "ivona"
  269. #LanguageDefaultModule "cs" "ivona"
  270. #LanguageDefaultModule "es" "ivona"
  271.  
  272. # -----CLIENT SPECIFIC CONFIGURATION-----
  273.  
  274. # Here you can include the files with client-specific configuration
  275. # for different types of clients. They must contain one or more sections with
  276. # this structure:
  277. # BeginClient "emacs:*"
  278. # DefaultPunctuationMode "some"
  279. # ...and/or some other settings
  280. # EndClient
  281. # The parameter of BeginClient tells Speech Dispatcher which clients
  282. # it should apply the settings to (it does glob-style matching, you can use
  283. # * to match any number of characters and ? to match one character)
  284.  
  285. # There are some sample client settings
  286.  
  287. Include "clients/*.conf"
  288.  
  289. # The DisableAutoSpawn option will disable the autospawn mechanism.
  290. # Thus the server will not start automatically on requests from the clients
  291. # DisableAutoSpawn
  292.  
  293.  
  294. # Copyright (C) 2001-2009 Brailcom, o.p.s
  295. # Copyright (C) 2009 Rui Batista <ruiandrebatista@gmail.com>
  296. # Copyright (C) 2010 Andrei Kholodnyi <Andrei.Kholodnyi@gmail.com>
  297. # Copyright (C) 2010 William Hubbs <w.d.hubbs@gmail.com>
  298. # Copyright (C) 2010 Trevor Saunders <trev.saunders@gmail.com>
  299. # Copyright (C) 2012 William Jon McCann <jmccann@redhat.com>
  300. # Copyright (C) 2014 Rob Whyte <fudge@thefudge.net>
  301. # Copyright (C) 2014-2016 Luke Yelavich <themuso@ubuntu.com>
  302. # Copyright (C) 2014 Hussain Jasim <hussainmkj@gmail.com>
  303. # Copyright (C) 2017 Colomban Wendling <cwendling@hypra.fr>
  304. # Copyright (C) 2018 Raphaël POITEVIN <rpoitevin@hypra.fr>
  305. # Copyright (C) 2018 Florian Steinhardt <no.known.email@example.com>
  306. # Copyright (C) 2018 Samuel Thibault <samuel.thibault@ens-lyon.org>
  307. #
  308. # This program is free software; you can redistribute it and/or modify it under
  309. # the terms of the GNU General Public License as published by the Free Software
  310. # Foundation; either version 2 of the License, or (at your option) any later
  311. # version.
  312. #
  313. # This program is distributed in the hope that it will be useful, but WITHOUT ANY
  314. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  315. # PARTICULAR PURPOSE. See the GNU General Public License for more details (file
  316. # COPYING in the root directory).
  317. #
  318. # You should have received a copy of the GNU General Public License
  319. # along with this program. If not, see <https://www.gnu.org/licenses/>.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement