/hatsuon.el

Add the English pronunciation functionality to Emacs.

Primary LanguageEmacs LispGNU General Public License v3.0GPL-3.0

hatsuon.el

Add the English pronunciation functionality to Emacs.

Contents

Installation

MELPA

This package is not on MELPA.

Manual

Install the required packages:

  • emms
  • request
  • s

Then place hatsuon.el in your load-path, and put the following line in your init.el file:

(require 'hatsuon)

Or using use-package with straight:

(use-package hatsuon
  :straight (:host github :repo "okomestudio/hatsuon.el"))

By default, hatsuon.el pull audio from Wiktionary. To use audio from other sites, load their audio URL getter extension:

(use-package hatsuon
   :straight (:host github :repo "okomestudio/hatsuon.el"
                    :files (:defaults "extensions/*"))
   :custom (hatsuon-audio-url-getters '(hatsuon-mw-audio-url-getter))
   :config
   (require 'hatsuon-mw))

Usage

  • hatsuon-play-audio: Play the audio for the word
  • hatsuon-remove-cached-audio-file: Remove an audio file cached locally

Changelog

0.1

Add external audio getters as extensions.

Alpha

Initial release.

Development

TBD.