/espeakng.js-cdn

CDN files for espeakng.js, the Javascript port of eSpeak-ng TTS

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

espeakng.js-cdn

This repository contains the latest compiled and minified version of espeakng.js, the Javascript port of eSpeak-ng via emscripten.

espeakng.js allows client-side text-to-speech synthesis in any browser supporting Web workers and the Web Audio API.

  • Version: 1.49.1
  • Date: 2017-02-01
  • License: the GNU General Public License, Version 3 (GPLv3)
  • Size: 3.2 MB (including all the voices)

Download

The following compiled and minified files:

  • js/espeakng.js
  • js/espeakng.min.js (see Notes below)
  • js/espeakng.min.js.map (see Notes below)
  • js/espeakng.worker.js
  • js/espeakng.worker.data

are available through the jsdelivr CDN.

To use espeakng.js in your project, you will need to get (at least):

# Get latest version
https://cdn.jsdelivr.net/espeakng.js/latest/espeakng.min.js
https://cdn.jsdelivr.net/espeakng.js/latest/espeakng.worker.js
https://cdn.jsdelivr.net/espeakng.js/latest/espeakng.worker.data

# Get specific version
https://cdn.jsdelivr.net/espeakng.js/1.49.0/espeakng.min.js
https://cdn.jsdelivr.net/espeakng.js/1.49.0/espeakng.worker.js
https://cdn.jsdelivr.net/espeakng.js/1.49.0/espeakng.worker.data

Upload A New Version

Since auto-updating is enabled, to make a new version available on jsdeliver, just do (in this repository) the following:

  1. copy the new JS/data files from the eSpeak-ng project in the js/ directory;
  2. create a new release, following semver.

The configuration settings for jsdeliver are here.

Demo Files

The files:

  • demo.html
  • demo.min.html
  • js/demo.js

are not uploaded to jsdeliver. They are present in this repository for testing/debugging purposes only.

Notes

Currently js/espeakng.min.js is a copy of js/espeakng.js, and js/espeakng.min.js.map is empty, but they are included to make things easier for jsdelivr in the future.

(I was unable to minify js/espeakng.js with UglifyJS 2 since it complained about the use of the of operator, it looks like an issue with ECMAScript-something support.)