Browse Source

Merge remote-tracking branch 'pettarin/master'

master
Reece H. Dunn 8 years ago
parent
commit
706e780ff4
3 changed files with 20 additions and 5 deletions
  1. 15
    4
      emscripten/README.md
  2. 1
    1
      emscripten/js/demo.js
  3. 4
    0
      src/ucd-tools/.gitignore

+ 15
- 4
emscripten/README.md View File

supporting Web workers and the Web Audio API. supporting Web workers and the Web Audio API.


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


$ make en && make it && make de $ make en && make it && make de
``` ```


4. Recompile the `espeak-ng` library with `emconfigure` and `emmake`:
4. Enter the `src/ucd-tools` directory, `make clean` it, and compile with `emconfigure` and `emmake`:

```bash
$ cd src/ucd-tools
$ ./autogen.sh
$ make clean
$ emconfigure ./configure
$ emmake make
$ cd ../..
```

5. Recompile the `espeak-ng` library with `emconfigure` and `emmake`:


```bash ```bash
$ emconfigure ./configure --prefix=/usr --without-async --without-mbrola --without-sonic $ emconfigure ./configure --prefix=/usr --without-async --without-mbrola --without-sonic
$ emmake make src/libespeak-ng.la $ emmake make src/libespeak-ng.la
``` ```


5. Enter the `emscripten` directory and compile the JS worker with `emmake`:
6. Enter the `emscripten` directory and compile the JS worker with `emmake`:


```bash ```bash
$ cd emscripten $ cd emscripten
$ emmake make $ emmake make
``` ```


6. The `js/` directory should contain the output JS files:
7. The `js/` directory should contain the output JS files:


* `espeakng.js`, * `espeakng.js`,
* `espeakng.worker.js`, and * `espeakng.worker.js`, and

+ 1
- 1
emscripten/js/demo.js View File

opt.value = voice.identifier; opt.value = voice.identifier;
console.log('Adding voice: ' + opt.text); console.log('Adding voice: ' + opt.text);
sel.add(opt); sel.add(opt);
if (voice.name === 'english') {
if (voice.name === 'English (Great Britain)') {
opt.id = 'default-voice'; opt.id = 'default-voice';
opt.selected = true; opt.selected = true;
} }

+ 4
- 0
src/ucd-tools/.gitignore View File

Makefile Makefile
Makefile.in Makefile.in
stamp-h1 stamp-h1

# emscripten:
a.out.js
a.out.js.mem

Loading…
Cancel
Save