I was wondering if one can look-up English words in Emacs from an English dictionary that includes IPA or plays a sound. I am using define-word.el package, which is very good but doesn't have IPA.
Asked
Active
Viewed 131 times
1 Answers
1
or plays a sound
Something in that spirit will, at least, give you the reading of the word you're looking for, assuming you have something like espeak installed on your computer
(defun my-read-word-at-point ()
"READ CURRENT WORD."
(interactive)
(message "reading: %s" (thing-at-point 'word 'no-properties))
(shell-command (format "espeak -v en-us %s" (thing-at-point 'word 'no-properties))))

Nsukami _
- 6,341
- 2
- 22
- 35
-
Thanks. Never knew about espeak - sounds a bit weird but I think will do the job for now. – Arktik Mar 11 '18 at 22:09
-
1I wrote a bash script to parse HTML page from Oxford Online Dictionary for a word and play it with `mplayer` as you suggested above and render the IPA in the minibuffer. – Arktik Mar 17 '18 at 17:59
-
@A.Blizzard Really nice.You may also want to read this [answer](https://emacs.stackexchange.com/questions/39387/asynchronous-version-of-shell-command-on-region/39393#39393), just in case o/ – Nsukami _ Mar 18 '18 at 19:27