[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Search]
emacspeak speaking engine for personal needs
- To: emacspeak@xxxxxxxxxxx
- Subject: emacspeak speaking engine for personal needs
- From: "Dm. Paduchih" <paduch@xxxxxxxxxxx>
- Date: 17 Mar 2001 18:46:52 +0500
- Resent-Date: Sat, 17 Mar 2001 08:56:15 -0500 (EST)
- Resent-From: emacspeak@xxxxxxxxxxx
- Resent-Message-ID: <"-Hvm3.A.-9B.2r2s6"@hub>
- Resent-Sender: emacspeak-request@xxxxxxxxxxx
- User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7
Hi folks!
I would like to use emacspeak speaking possibilities from within my
own custom commands. But I have found some difficulties with speaking
out several messages one by one. For example, i have written the
following simple routine to read text continuously sentence by
sentence. However it just passes silently through all text or reads
only some part.
;;; This reads buffer sentence by sentence
(defun my-read-book ()
(interactive)
(dtk-set-punctuations 'none)
(emacspeak-dtk-sync)
(let ((old (point)))
(while (re-search-forward sentence-end nil t)
(dtk-speak
(buffer-substring-no-properties old (point)))
(emacspeak-dtk-sync)
(setq old (point))
)))
What is wrong with this code? Or maybe it is a problem with my speech
server? Has anyone this code working?
Thanks. Dmitry
-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@xxxxxxxxxxx" with a
subject of "unsubscribe" or "help"
Emacspeak Files |
Subscribe |
Unsubscribe | Search