piper-phonemize 1.4.2 → 1.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piper-phonemize",
3
- "version": "1.4.2",
3
+ "version": "1.4.7",
4
4
  "description": "Phonemization library for Piper text-to-speech using espeak-ng, compiled to WebAssembly",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -25,6 +25,9 @@
25
25
  "speech"
26
26
  ],
27
27
  "author": "Michael Hansen",
28
+ "contributors": [
29
+ "Fangjun Kuang <csukuangfj@gmail.com> (https://github.com/csukuangfj)"
30
+ ],
28
31
  "license": "GPL-3.0-or-later",
29
32
  "bugs": {
30
33
  "url": "https://github.com/csukuangfj/piper-phonemize/issues"
Binary file
@@ -16,12 +16,8 @@ let Module = null;
16
16
  * @param {Function} [options.printErr] - Function to handle stderr (default: console.error)
17
17
  * @returns {Promise<void>}
18
18
  */
19
- async function init(moduleFactory, options) {
20
- const moduleArg = {
21
- print: options?.print || console.log,
22
- printErr: options?.printErr || console.error,
23
- };
24
- Module = await moduleFactory(moduleArg);
19
+ async function init(moduleFactory) {
20
+ Module = await moduleFactory();
25
21
  }
26
22
 
27
23
  /**
package/package.json-2 DELETED
@@ -1,35 +0,0 @@
1
- {
2
- "name": "piper-phonemize",
3
- "version": "PIPER_PHONEMIZE_VERSION",
4
- "description": "Phonemization library for Piper text-to-speech using espeak-ng, compiled to WebAssembly",
5
- "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
8
- },
9
- "repository": {
10
- "type": "git",
11
- "url": "git+https://github.com/csukuangfj/piper-phonemize.git"
12
- },
13
- "keywords": [
14
- "piper",
15
- "phonemize",
16
- "phonemization",
17
- "espeak-ng",
18
- "text-to-speech",
19
- "tts",
20
- "ipa",
21
- "phonemes",
22
- "WebAssembly",
23
- "wasm",
24
- "nlp",
25
- "speech"
26
- ],
27
- "author": "Michael Hansen",
28
- "license": "MIT",
29
- "bugs": {
30
- "url": "https://github.com/csukuangfj/piper-phonemize/issues"
31
- },
32
- "homepage": "https://github.com/csukuangfj/piper-phonemize#readme",
33
- "dependencies": {
34
- }
35
- }