Advertisement
Guest User

Texou

a guest
Jan 28th, 2011
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.71 KB | None | 0 0
  1. Speechd.conf
  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 SocketName bellow). 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. # SocketName 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. # TMPDIR+speechd-sock-UID where TMPDIR is the default temp dir
  27. # location on the system and UID the user id who starts Speech Dispatcher
  28. # (e.g. /tmp/speechd-sock-1005 for a user # whose uid is 1005).
  29. # Do not change this unless you have a reason and know what you are doing.
  30.  
  31. # SocketName "default"
  32.  
  33. # The Port on which Speech Dispatcher should be available to clients if the "inet_socket"
  34. # communication method is used.
  35.  
  36. # Port 6560
  37.  
  38. # By default, if "inet_socket" communication method is used, the specified port is opened only
  39. # for connections comming from localhost. If LocalhostAccessOnly is set to 0 it disables this
  40. # access controll. It means that the port will be accessible from all computers on the
  41. # network. If you turn off this option, please make sure you set up some system rules on what
  42. # computers are and are not allowed to access the Speech Dispatcher port.
  43.  
  44. # LocalhostAccessOnly 1
  45.  
  46. # -----LOGGING CONFIGURATION-----
  47.  
  48. # The LogLevel is a number between 0 and 5 that specifies
  49. # how much of the logging information should be printed
  50. # out on the screen or in the logfile (see LogFile)
  51. # 0 means nothing, 5 means everything (not recommended).
  52.  
  53. LogLevel  3
  54.  
  55. # The LogDir specifies where Speech Dispatcher writes its logging messages
  56. # (status information, error messages, etc.).  Specify "stdout" for
  57. # standard console output or a directory path. 'default' means that
  58. # the logs are written to the default destination (e.g. a preconfigured
  59. # system directory or the home directory if .speech-dispatcher is present)
  60. # DO NOT COMMENT OUT THIS OPTION, SET IT TO "default" if you do not
  61. # want to influence it.
  62.  
  63. LogDir  "default"
  64. #LogDir  "/var/log/speech-dispatcher/"
  65. #LogDir  "stdout"
  66.  
  67. # The CustomLogFile allows logging all messages of the given kind,
  68. # regardless their priority, to the given destination.
  69.  
  70. #CustomLogFile "protocol" "/var/log/speech-dispatcher/speech-dispatcher-protocol.log"
  71.  
  72. # ----- VOICE PARAMETERS -----
  73.  
  74. # The DefaultRate controls how fast the synthesizer is going to speak.
  75. # The value must be between -100 (slowest) and +100 (fastest), default
  76. # is 0.
  77.  
  78. # DefaultRate  0
  79.  
  80. # The DefaultPitch controls the pitch of the synthesized voice.  The
  81. # value must be between -100 (lowest) and +100 (highest), default is
  82. # 0.
  83.  
  84. # DefaultPitch  0
  85.  
  86. # The DefaultVolume constrols the default volume of the voice.  It is
  87. # a value between -100 (softly) and +100 (loudly).  Currently, +100
  88. # maps to the default volume of the synthesizer.
  89.  
  90. DefaultVolume 100
  91.  
  92. # The DefaultVoiceType controls which voice type should be used by
  93. # default.  Voice types are symbolic names which map to particular
  94. # voices provided by the synthesizer according to the output module
  95. # configuratuion.  Please see the synthesizer-specific configuration
  96. # in etc/speech-dispatcher/modules/ to see which voices are assigned to
  97. # different symbolic names.  The following symbolic names are
  98. # currently supported: MALE1, MALE2, MALE3, FEMALE1, FEMALE2, FEMALE3,
  99. # CHILD_MALE, CHILD_FEMALE
  100.  
  101. # DefaultVoiceType  "MALE1"
  102.  
  103. # The Default language with which to speak
  104.  
  105. # DefaultLanguage "en"
  106.  
  107.  
  108. # ----- MESSAGE DISPATCHING CONTROLL -----
  109.  
  110. # The DefaultClientName specifies the name of a client who didn't
  111. # introduce himself at the beginning of an SSIP session.
  112.  
  113. # DefaultClientName  "unknown:unknown:unknown"
  114.  
  115. # The Default Priority. Use with caution, normally this shouldn't be
  116. # changed globally (at this place)
  117.  
  118. # DefaultPriority  "text"
  119.  
  120. # The DefaultPauseContext specifies by how many index marks a speech
  121. # cursor should return when resuming after a pause. This is roughly
  122. # equivalent to the number of sentences before the place of the
  123. # execution of pause that will be repeated.
  124.  
  125. # DefaultPauseContext 0
  126.  
  127. # -----SPELLING/PUNCTUATION/CAPITAL LETTERS  CONFIGURATION-----
  128.  
  129. # The DefaultPunctuationMode sets the way dots, comas, exclamation
  130. # marks, question marks etc. are interpreted.  none: they are ignored
  131. # some: some of them are sent to synthesis (see
  132. # DefaultPunctuationSome) all: all punctuation marks are sent to
  133. # synthesis
  134.  
  135. # DefaultPunctuationMode "none"
  136.  
  137. # The DefaultCapLetRecognition: if set to "spell", capital letters
  138. # should be spelled (e.g. "capital b"), if set to "icon",
  139. # capital letters are indicated by inserting a special sound
  140. # before them but they should be read normally, it set to "none"
  141. # capital letters are not recognized (by default)
  142.  
  143. # DefaultCapLetRecognition  "none"
  144.  
  145. # The DefaultSpelling: if set to On, all messages will be spelled
  146. # unless set otherwise (this is usually not something you want to do.)
  147.  
  148. # DefaultSpelling  Off
  149.  
  150. # ----- AUDIO CONFIGURATION -----------
  151.  
  152. # -- AUDIO OUTPUT --
  153.  
  154. # Chooses between three possible sound output systems:
  155. #       "oss"   - Open Sound System
  156. #       "alsa"  - Advanced Linux Sound System
  157. #       "nas"   - Network Audio System
  158. #       "pulse" - PulseAudio
  159. # ALSA is default and recommended. The recent implementations
  160. # support mixing of multiple streams. OSS is only provided
  161. # for compatibility with architectures that do not include ALSA.
  162. # NAS is an audio server with higher level of control over
  163. # your audio stream, with the possibility to stream your audio
  164. # over the network to a different computer and other advanced
  165. # features. (The NAS backend is not very well tested however.)
  166. # PulseAudio is a sound server for POSIX and WIN32 systems.
  167. #
  168.  
  169. # AudioOutputMethod "pulse"
  170.  
  171. # What ALSA device to use when Advanced Linux Sound Architecture is
  172. # chosen for the audio output.
  173.  
  174. #AudioALSADevice "default"
  175.  
  176. # -- PulseAudio parameters --
  177.  
  178. #AudioPulseServer "default"
  179.  
  180. # Maximum length of the buffer
  181.  
  182. #AudioPulseMaxLength -1
  183.  
  184. # Target length of the buffer
  185. # The server tries to assure that at least FestivalPulseTargetLength
  186. # bytes are always available in the buffer
  187.  
  188. #AudioPulseTargetLength 4410
  189.  
  190. # Pre-buffering
  191. # The server does not start with playback before at least
  192. # FestivalPulsePrebuffering bytes are available in the buffer
  193.  
  194. #AudioPulsePreBuffering -1
  195.  
  196. # Minimum request
  197. # The server does not request less than FestivalPulseMinRequest bytes
  198. # from the client, instead waits until the buffer is free enough to
  199. # request more bytes at once
  200.  
  201. #AudioPulseMinRequest -1
  202.  
  203. # -- OSS parameters --
  204.  
  205. # What OSS device to use when Open Sound System is
  206. # chosen for the audio output.
  207.  
  208. #AudioOSSDevice "/dev/dsp"
  209.  
  210. # -- NAS parameters --
  211.  
  212. # Route to the Network Audio System server when NAS
  213. # was chosen for the audio output. Note that NAS
  214. # server doesn't need to run on your machine,
  215. # you can use it also over network (for instance
  216. # when working on remote machines).
  217.  
  218. #AudioNASServer "tcp/localhost:5450"
  219.  
  220.  
  221.  
  222. # -----OUTPUT MODULES CONFIGURATION-----
  223.  
  224. # Each AddModule line loads an output module.
  225. #  Syntax: AddModule "name" "binary" "configuration" "logfile"
  226. #  - name is the name under which you can acces this module
  227. #  - binary is the path to the binary executable of this module,
  228. #    either relative (to lib/speech-dispatcher-modules/) or absolute
  229. #  - configuration is the path to the config file of this module,
  230. #    either relative (to etc/speech-dispatcher/modules/) or absolute
  231.  
  232. AddModule "espeak"       "sd_espeak"   "espeak.conf"
  233. AddModule "festival"     "sd_festival"  "festival.conf"
  234. AddModule "flite"        "sd_flite"     "flite.conf"
  235. AddModule "ivona"    "sd_ivona"    "ivona.conf"
  236. #AddModule "espeak-generic" "sd_generic" "espeak-generic.conf"
  237. #AddModule "espeak-mbrola-generic" "sd_generic" "espeak-mbrola-generic.conf"
  238. #AddModule "swift-generic" "sd_generic" "swift-generic.conf"
  239. #AddModule "epos-generic" "sd_generic"   "epos-generic.conf"
  240. #AddModule "dtk-generic"  "sd_generic"   "dtk-generic.conf"
  241. AddModule "ibmtts"       "sd_ibmtts"    "ibmtts.conf"
  242. #AddModule "cicero"        "sd_cicero"     "cicero.conf"
  243.  
  244. # DO NOT REMOVE the following line unless you have
  245. # a specific reason -- this is the fallback output module
  246. # that is only used when no other modules are in use
  247. AddModule "dummy"         "sd_dummy"      ""
  248.  
  249. # The output module testing doesn't actually connect to anything. It
  250. # outputs the requested commands to standard output and reads
  251. # responses from stdandard input. This way, Speech Dispatcher's
  252. # communication with output modules can be tested easily.
  253.  
  254. # AddModule "testing"
  255.  
  256. # The DefaultModule selects which output module is the default.  You
  257. # must use one of the names of the modules loaded with AddModule.
  258.  
  259. DefaultModule ibmtts
  260.  
  261. # The LanguageDefaultModule selects which output modules are prefered
  262. # for specified languages.
  263.  
  264. #LanguageDefaultModule "en"  "espeak"
  265. #LanguageDefaultModule "cs"  "festival"
  266. #LanguageDefaultModule "es"  "festival"
  267.  
  268. # -----CLIENT SPECIFIC CONFIGURATION-----
  269.  
  270. # Here you can include the files with client-specific configuration
  271. # for different types of clients. They must contain one or more sections with
  272. # this structure:
  273. #     BeginClient "emacs:*"
  274. #          DefaultPunctuationMode "some"
  275. #          ...and/or some other settings
  276. #     EndClient
  277. # The parameter of BeginClient tells Speech Dispatcher to which clients
  278. # it should apply this settings (it does glob-style matching, you can use
  279. # * to match any number of characters and ? to match one character)
  280.  
  281. # There are some sample client settings
  282.  
  283. Include "/etc/speech-dispatcher/clients/*.conf"
  284. Include "clients/*.conf"
  285.  
  286. # This line below is to enable autospawning, without breaking everything else read by dotconf.
  287. # AutoSpawn
  288.  
  289. ibmtts.conf:
  290.  
  291. # -- SSML Support --
  292.  
  293. # Some version of IBM TTS support SSML. If IbmttsUseSSML
  294. # is set to 1, SSML will be used and advanced features like
  295. # index marking will be working. If set to 0, all SSML is
  296. # deleted from the message prior to sending it to IBM TTS.
  297. # By default, SSML support is switched off.
  298.  
  299. # IbmttsUseSSML 0
  300.  
  301. # -- Abbreviation dictionaries --
  302.  
  303. # Enable the abbreviation dictionaries.
  304. #
  305.  
  306. IbmttsUseAbbreviation 1
  307.  
  308. # -- SOUND ICONS --
  309.  
  310. # IBM TTS Synthesizer does not currently support sound icons
  311. # (audio files that are played by name when an application requests
  312. # a sound icon).  If you have installed the free(b)soft sound-icons
  313. # package, this is the directory where will they be found.  If not
  314. # blank, the IBM TTS Output Module will play them if it finds a
  315. # file whose name matches the sound icon name.  If blank, or no
  316. # matching file is found, the name of the sound icon will be spoken.
  317.  
  318. #IbmttsSoundIconFolder "/usr/share/sounds/sound-icons/"
  319.  
  320. # -- DEBUG --
  321.  
  322. # Debug turns debugging on or off
  323. # See speechd.conf for information where debugging information is stored.
  324.  
  325. # TODO: Change this to 0 and comment out for final release.
  326.  
  327. Debug 0
  328.  
  329. # DebugFile specifies the file where the debugging information
  330. # should be stored (note that the log is overwritten each time
  331. # the module starts)
  332.  
  333. # DebugFile "/tmp/debug-ibmtts"
  334.  
  335. # -- VOICE PARAMETERS --
  336.  
  337. # This table provides a mechanism for fine-tuning the voices used for synthesis.
  338. # The dialect is chosen by the table above, then adjusted according to these parameters.
  339. # The columns are:
  340. #   Voice Name   - See the Speech Dispatcher manual for standard voice names.  Use lowercase names.
  341. #   M/F          - Gender.   0 = male. 1 = female.
  342. #   Br           - Breathiness.  0 to 100. 0 is usually used for males, 40 or 50 for females.
  343. #   Hd Sz        - Head Size.  0 to 100.
  344. #   Pitch Bas    - Pitch Baseline.  0 to 100.
  345. #   Pitch Flc    - Pitch Fluctuation.  0 to 100.
  346. #   Rough        - Roughness.  0 to 100
  347. #   Speed        - Rate.  0 to 100.
  348.  
  349. # Volume is controlled via speechd.conf or SSIP commands.
  350.  
  351. # Application RATE or PITCH commands are relative to the settings here.
  352. # For example, if Pitch Bas is 80 below, a PITCH command of -50 would set the
  353. # pitch baseline to halfway between 80 and 0, or 40.
  354.  
  355. # All columns must be provided.
  356.  
  357. #                                             Hd  -Pitch-
  358. #                      Voice Name     M/F Br  Sz  Bas Flc Rough Speed
  359. #                      -------------- --- --- --- --- --- ---   ---
  360. #IbmttsVoiceParameters "male1"          0   0  50  65  30   0    50
  361. #IbmttsVoiceParameters "male2"          0   0  86  56  47   0    50
  362. #IbmttsVoiceParameters "male3"          0   0  50  69  34   0    70
  363. #IbmttsVoiceParameters "male3"          0  20  30  61  44  18    50
  364. #IbmttsVoiceParameters "female1"        1  50  50  81  30   0    50
  365. #IbmttsVoiceParameters "female2"        1  40  56  89  35   0    70
  366. #IbmttsVoiceParameters "female3"        1  40  45  68  30   3    50
  367. IbmttsVoiceParameters  "child_male"     0   0  35  85  35   0    50
  368. #IbmttsVoiceParameters "child_female"   1   0  22  93  35   0    50
  369.  
  370. # The table above shows the default mapping.
  371. # It shows the default settings in the IBM TTS Engine, as follows:
  372. #
  373. # SD Voice Name     IBM TTS Voice
  374. # -------------     -------------
  375. # male1             Adult Male 1
  376. # male2             Adult Male 2
  377. # male3             Adult Male 3
  378. # male3             Elderly Male (uncomment the 2nd "male3" line if you want to use this)
  379. # female1           Adult Female 1
  380. # female2           Adult Female 2
  381. # female3           Elderly Female (notice there is no Adult Female 3)
  382. # child_male        none provided (that is why it is uncommented, by default)
  383. # child_female      Child
  384.  
  385. # -- KEY NAME SUBSTITUTIONS --
  386.  
  387. # Maps Speech Dispatcher key names used in SSIP KEY commands to speakable words.
  388. # The string in the "SD Key" column occurring anywhere in a KEY command
  389. # is replaced with the string in "Spoken".  The substitutions occur in the
  390. # order listed.  "Lang" determines which language the substitution applies
  391. # to.
  392.  
  393. #                     Lang  SD Key      Spoken
  394. #                     ----  ----------- -----------
  395. IbmttsKeySubstitution "en"  "kp--"      "keypad minus "
  396. IbmttsKeySubstitution "en"  "kp-"       "keypad "
  397. IbmttsKeySubstitution "en"  "_"         " "
  398. IbmttsKeySubstitution "en"  "#"         "pound "
  399. IbmttsKeySubstitution "en"  "&"         "ampersand "
  400. IbmttsKeySubstitution "en"  "!"         "exclamation mark "
  401. IbmttsKeySubstitution "en"  "Š"         "pipe "
  402. IbmttsKeySubstitution "en"  "€"         "currency "
  403. IbmttsKeySubstitution "en"  "Ø"         "capital phi "
  404. IbmttsKeySubstitution "en"  "Þ"         "phi "
  405. IbmttsKeySubstitution "en"  "ÿ"         "yummel "
  406. IbmttsKeySubstitution "en"  "­"         "dash "
  407. IbmttsKeySubstitution "en"  "A"         "capital A "
  408. IbmttsKeySubstitution "en"  "B"         "capital B "
  409. IbmttsKeySubstitution "en"  "C"         "capital C "
  410. IbmttsKeySubstitution "en"  "D"         "capital D "
  411. IbmttsKeySubstitution "en"  "E"         "capital E "
  412. IbmttsKeySubstitution "en"  "F"         "capital F "
  413. IbmttsKeySubstitution "en"  "G"         "capital G "
  414. IbmttsKeySubstitution "en"  "H"         "capital H "
  415. IbmttsKeySubstitution "en"  "I"         "capital I "
  416. IbmttsKeySubstitution "en"  "J"         "capital J "
  417. IbmttsKeySubstitution "en"  "K"         "capital K "
  418. IbmttsKeySubstitution "en"  "L"         "capital L "
  419. IbmttsKeySubstitution "en"  "M"         "capital M "
  420. IbmttsKeySubstitution "en"  "N"         "capital N "
  421. IbmttsKeySubstitution "en"  "O"         "capital O "
  422. IbmttsKeySubstitution "en"  "P"         "capital P "
  423. IbmttsKeySubstitution "en"  "Q"         "capital Q "
  424. IbmttsKeySubstitution "en"  "R"         "capital R "
  425. IbmttsKeySubstitution "en"  "S"         "capital S "
  426. IbmttsKeySubstitution "en"  "T"         "capital T "
  427. IbmttsKeySubstitution "en"  "U"         "capital U "
  428. IbmttsKeySubstitution "en"  "V"         "capital V "
  429. IbmttsKeySubstitution "en"  "W"         "capital W "
  430. IbmttsKeySubstitution "en"  "X"         "capital X "
  431. IbmttsKeySubstitution "en"  "Y"         "capital Y "
  432. IbmttsKeySubstitution "en"  "Z"         "capital Z "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement