>EMACSPEAK --Complete Audio Desktop

Next: , Previous: Speech System, Up: Basic Usage


5.5 Voice Lock Mode

The status of voice lock mode can be toggled on and off by issuing the command C-e d v (M-x voice-lock-mode). With a prefix arg, this function applies globally; otherwise, it is local to the current buffer. To have voice lock mode activated automatically when Emacspeak starts, include the following code in your .emacs file:

     (add-hook 'emacs-lisp-mode-hook
     'turn-on-voice-lock)

Alternatively, Emacspeak can be set to enable voice lock automatically in all of the major modes that support it. To do so, insert the following statement into your Emacs initialization file:

     (global-voice-lock-mode t)

Note that the list of major modes in which global-voice-lock-mode will provide automatic activation is specified in the variable voice-lock-global-modes See Voice Lock.

The characteristics of the different voice personalities deployed by voice lock mode vary according to the capabilities of the speech synthesizer. The definitions applicable to the Dectalk family of synthesizers are contained in dtk-voices.el, which is supplied as part of the Emacspeak distribution.

Using voice lock mode, Emacspeak also supports many of the aural style properties defined in level 2 of the World Wide Web Consortium's Cascading Style Sheet specification (see http://www.w3.org/TR/REC-CSS2/. Thus, when Emacspeak is running in conjunction with a cooperating user agent, such as William Perry's Emacspeak/W3 web browser, the rendering of HTML documents can be regulated by style sheets. Examples of style rules which employ the CSS audio properties can be found in the default style sheet which is supplied in the Emacs/W3 distribution.