This module defines the TTS interface. Here, prefix dtk is synonymous with tts.
Select and start an local speech server interactively. Local server lets Emacspeak on a remote host connect back via SSH port forwarding for instance. Argument PROGRAM specifies the speech server program. Port defaults to dtk-local-server-port (fn PROGRAM &optional PROMPT-PORT)
Set character scale FACTOR for speech rate. Speech rate is scaled by this factor when speaking characters. Not presently used by either Dectalk or Viavoice TTS. Interactive PREFIX arg means set the global default value, and then set the current local value to the result. (fn FACTOR &optional PREFIX)
Set speech rate to one of nine predefined levels. Interactive PREFIX arg says to set the rate globally. Formula used is: rate = dtk-speech-rate-base + dtk-speech-rate-step * level. (fn &optional PREFIX)
Set language by alias. (fn ALIAS LANG)
Set punctuation mode to all. Interactive PREFIX arg sets punctuation mode globally. (fn &optional PREFIX)
Set punctuation mode to some. Interactive PREFIX arg sets punctuation mode globally. (fn &optional PREFIX)
Add a custom replacement string for CHAR. When called interactively, CHAR defaults to the character after point. (fn CHAR REPLACEMENT)
Prefix used to indicate AllCaps
Default Value:
#(" acc " 0 5 (personality acss-p3-s1-r3))
Prefix used to indicate capitalization
Default Value:
#("cap" 0 3 (personality acss-p3-s1-r3))
Set this to your preferred cloud TTS server.
Default Value:
"cloud-outloud"
Engine we use for our local TTS server.
Default Value:
"outloud"
Value of lowest speech rate.
Default Value:
50
Speech rate step used by ‘dtk-set-predefined-rate’.
Default Value:
8
Replacements for characters.
Default Value:
((150 . "-") (9473 . "-") (9475 . "|") (176 . " degrees ") (8451 . "Degree C") (8457 . "Degree F ") (8220 . "\"") (8221 . "\"") (8902 . "*") (173 . "-") (8216 . "`") (8217 . "'") (8208 . " dash ") (8211 . " dash dash ") (8212 . " em dash ") (8202 . " ") (65279 . " ") (8204 . "") (8203 . " ") (8201 . " ") (8213 . "----") (8214 . "||") (8230 . "...") (8226 . " bullet ") (149 . " ... ") (8482 . "TM") (64256 . "ff") (64257 . "fi") (64258 . "fl") (64259 . "ffi") (64260 . "Ffl"))
Alist of character name transformation rules.
Default Value:
(("BOX DRAWING" lambda (_ignored) ".") ("^Mathematical Sans-Serif\\( small\\| capital\\)? letter \\(.*\\)$" lambda (s) (match-string 2 s)) ("^greek\\( small\\| capital\\)? letter \\(.*\\)$" lambda (s) (match-string 2 s)) ("^latin\\( small\\| capital\\)? letter \\(.*\\)$" lambda (s) (match-string 2 s)) ("^DEVANAGARI \\(sign\\|vowel sign\\|letter\\)? \\(.*\\)$" lambda (s) (match-string 2 s)))
Characters of these charsets are ignored by dtk-unicode-replace-chars.
Default Value:
(ascii latin-iso8859-1)
Virtual sound device to use for notifications stream. Set to nil to disable a separate Notification stream. If you set the device here, make sure it exists first. For swiftmac, set this to ‘left’ or ‘right’.
Default Value:
nil