Emacs Lisp: produce speech by using espeak shell command

Emacs Lisp: produce speech by using espeak shell command

Espeak shell command is often faster then using Festival Speech. This function may be used to quickly produce some speach. Global variables such as *espeak-amplitude* and *espeak-voice* can help you set it up for your own language and volume.

(defun espeak (text)
  "Speaks text by espeak"
  (let* ((amplitude *espeak-amplitutde*)
     (voice *espeak-voice*)
     (command (format "espeak -a %s -v %s \"%s\"" amplitude voice text)))
    (async-shell-command command)))

Related pages

Leave Your Comment or Contact GNU.Support

Contact GNU.Support now. There is a simple rule at GNU.Support: if we can help you, we do, whenever and wherever necessary, and it's the way we've been doing business since 2002, and the only way we know


Full name:


E-mail:


Message: