/utilities/emacspeak/lisp/flite-voices.el

https://github.com/jamesnvc/emacs.d · Lisp · 82 lines · 14 code · 12 blank · 56 comment · 0 complexity · 642b94637050dd0b5c70bd196b0d75f2 MD5 · raw file

  1. ;;; flite.el --- Emacspeak FLite
  2. ;;; $Id: flite-voices.el 5798 2008-08-22 17:35:01Z tv.raman.tv $
  3. ;;; $Author: tv.raman.tv $
  4. ;;; Description: FLite interface
  5. ;;; Keywords: Emacspeak, Audio Desktop FLite
  6. ;;{{{ LCD Archive entry:
  7. ;;; LCD Archive Entry:
  8. ;;; emacspeak| T. V. Raman |raman@cs.cornell.edu
  9. ;;; A speech interface to Emacs |
  10. ;;; $Date: 2008-07-06 10:18:30 -0700 (Sun, 06 Jul 2008) $ |
  11. ;;; $Revision: 4532 $ |
  12. ;;; Location undetermined
  13. ;;;
  14. ;;}}}
  15. ;;{{{ Copyright:
  16. ;;;Copyright (C) 1995 -- 2007, T. V. Raman
  17. ;;; Copyright (c) 1994, 1995 by Digital Equipment Corporation.
  18. ;;; All Rights Reserved.
  19. ;;;
  20. ;;; This file is not part of GNU Emacs, but the same permissions apply.
  21. ;;;
  22. ;;; GNU Emacs is free software; you can redistribute it and/or modify
  23. ;;; it under the terms of the GNU General Public License as published by
  24. ;;; the Free Software Foundation; either version 2, or (at your option)
  25. ;;; any later version.
  26. ;;;
  27. ;;; GNU Emacs is distributed in the hope that it will be useful,
  28. ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  29. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  30. ;;; GNU General Public License for more details.
  31. ;;;
  32. ;;; You should have received a copy of the GNU General Public License
  33. ;;; along with GNU Emacs; see the file COPYING. If not, write to
  34. ;;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  35. ;;}}}
  36. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  37. ;;{{{ introduction
  38. ;;; defines interactive command tts-flite that launches eflite
  39. ;;; this will be updated to use the FLite TCL server when that is complete.
  40. ;;; http://sf.net/projects/eflite
  41. ;;; as the tts server.
  42. ;;; When and if eflite becomes capable of voice locking,
  43. ;;; this file should provide code similar to outloud-voices.el
  44. ;;}}}
  45. ;;{{{ Required modules
  46. (require 'cl)
  47. (declaim (optimize (safety 0) (speed 3)))
  48. (require 'custom)
  49. ;;}}}
  50. ;;;###autoload
  51. ;;{{{ launch eflite
  52. ;;;###autoload
  53. (defun tts-eflite ()
  54. "Use eflite TTS server."
  55. (interactive)
  56. (let ((dtk-program "eflite"))
  57. (tts-restart)
  58. (message "This is Emacspeak! ")))
  59. (defun flite-configure-tts ()
  60. (dectalk-configure-tts)
  61. (dtk-unicode-update-untouched-charsets '(ascii latin-iso8859-1 eight-bit-graphic)))
  62. ;;}}}
  63. (provide 'flite-voices)
  64. ;;{{{ end of file
  65. ;;; local variables:
  66. ;;; folded-file: t
  67. ;;; byte-compile-dynamic: t
  68. ;;; end:
  69. ;;}}}