echogarden 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -43,6 +43,12 @@ Additional tools:
43
43
 
44
44
  (hopefully in the future all platforms would be covered using expansion packages)
45
45
 
46
+ ## Updating to latest version
47
+
48
+ ```bash
49
+ npm update echogarden -g
50
+ ```
51
+
46
52
  ## Next steps
47
53
 
48
54
  * [Using the command line interface](docs/CLI.md)
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" resolution-mode="require"/>
1
2
  export declare function synthesize(text: string, apiKey: string, languageCode?: string, voice?: string, speakingRate?: number, pitchDeltaSemitones?: number, volumeGainDb?: number, ssml?: boolean, audioEncoding?: AudioEncoding, sampleRate?: number): Promise<{
2
3
  audioData: Buffer;
3
4
  timepoints: timePoint[];
package/docs/Engines.md CHANGED
@@ -4,7 +4,7 @@
4
4
  ## Text to speech
5
5
 
6
6
  **Offline**:
7
- * [VITS](https://github.com/jaywalnut310/vits) (`vits`): a high-quality end-to-end neural speech synthesis model. Currently available models were trained by Michael Hansen as part of his [Piper speech synthesis system](https://github.com/rhasspy/piper). Supports English (US, UK), Spanish, Brazilian Portuguese, Italian, French, German, Dutch, Norwegian, Danish, Finnish, Polish, Ukrainian, Catalan, Kazakh, Nepali, Vietnamese and Chinese. You can listen to audio examples of all voices and languages on [Piper's samples page](https://rhasspy.github.io/piper-samples/).
7
+ * [VITS](https://github.com/jaywalnut310/vits) (`vits`): a high-quality end-to-end neural speech synthesis architecture. Currently available models were trained by Michael Hansen as part of his [Piper speech synthesis system](https://github.com/rhasspy/piper). Supports English (US, UK), Spanish, Brazilian Portuguese, Italian, French, German, Dutch, Norwegian, Danish, Finnish, Polish, Ukrainian, Catalan, Kazakh, Nepali, Vietnamese and Chinese. You can listen to audio examples of all voices and languages on [Piper's samples page](https://rhasspy.github.io/piper-samples/).
8
8
  * [SVOX Pico](https://github.com/naggety/picotts) (`pico`): a diphone-based synthesizer. Supports English (US, UK), Spanish, Italian, French, and German.
9
9
  * [Flite](https://github.com/festvox/flite) (`flite`): a diphone-based synthesizer. Supports English (US, Scottish), and several Indic languages: Hindi, Bengali, Marathi, Telugu, Tamil, Gujarati, Kannada and Punjabi.
10
10
  * [eSpeak-NG](https://github.com/espeak-ng/espeak-ng/) (`espeak`): a formant-based synthesizer. Supports 100+ languages.
@@ -41,7 +41,7 @@ These cloud-based engines connect to public-facing cloud APIs that are not offic
41
41
 
42
42
  **Offline**:
43
43
  * [OpenAI Whisper](https://github.com/openai/whisper) (`whisper`): high accuracy transformer-based model. Supports 99 languages. There are several models of different sizes, some are multilingual, and some are English only (`.en`): `tiny`, `tiny.en`, `base`, `base.en`, `small`, `small.en`, `medium`, `medium.en`, `large`, `large-v1` and `large-v2`. _Note_: large models are not currently auto-downloaded as Echogarden packages, but may become available in the future.
44
- * [Vosk](https://github.com/alphacep/vosk-api) (`vosk`): models available for [25+ languages](https://alphacephei.com/vosk/models). _Note_: Vosk is not included in the default installation, but you can add support for it using `npm install @echogarden/vosk -g`. You'll need to download a model yourself and specify its directory path via the `vosk.modelPath` option.
44
+ * [Vosk](https://github.com/alphacep/vosk-api) (`vosk`): models available for 25+ languages. _Note_: Vosk is not included in the default installation, but you can add support for it using `npm install @echogarden/vosk -g`. You'll need to manually [download a model](https://alphacephei.com/vosk/models) and specify its directory path via the `vosk.modelPath` option.
45
45
  * [Silero](https://github.com/snakers4/silero-models) (`silero`): models available for English, Spanish, German and Ukrainian. For [non-commercial use only](https://github.com/snakers4/silero-models/blob/master/LICENSE).
46
46
 
47
47
  **Cloud based**:
package/docs/Technical.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Technical overview and Q&A
2
2
 
3
- * Echogarden is written in TypeScript and targets the Node.js platform
4
- * It uses ESM modules and latest ECMAScript and TypeScript features
3
+ * Echogarden is written in TypeScript and targets the Node.js platform.
4
+ * It uses ESM modules and latest ECMAScript and TypeScript features.
5
5
  * It does not depend on essential binary executables. Instead, all of its engines either use pure JavaScript, WebAssembly, WASI, or the ONNX runtime (with some exceptions: the CLI does use executables, loaded from an expansion package, for the SoX tool [and `ffmpeg` as well], which is used only for audio playback and recording. This simplifies the installation and ensures a non-buggy version is used. Since SoX `v14.4.2` is broken on Windows, it bundles `v14.4.1`).
6
- * It does not depend on essential native modules requiring compilation with `node-gyp`. This greatly simplifies and ensures the success of the installation for end-users (the ONNX runtime bundles precompiled NAPI modules for all supported platforms - it doesn't require any compilation during installation)
6
+ * It does not depend on essential native modules requiring compilation with `node-gyp`. This greatly simplifies and ensures the success of the installation for end-users (the ONNX runtime bundles precompiled NAPI modules for all supported platforms - it doesn't require any compilation during installation).
7
7
 
8
8
  ## Package system
9
9
 
@@ -16,11 +16,11 @@ Packages are downloaded as `.tar.gz` files, and are extracted to `[data-folder]/
16
16
  * `Users/User/Library/Application Support/echogarden` on macOS
17
17
  * `/home/user/.local/share/echogarden` on Linux
18
18
 
19
- By using downloadable packages, the installed size is made significantly smaller and the installation faster. The total size of all available packages is currently about 11.4GB (6.8GB compressed). Another advantage of using a data folder is that the data does not need to be re-downloaded when the program is updated.
19
+ By using downloadable packages, the installed size is made significantly smaller and the installation faster. The total size of all available packages is currently about 12.8GB (8.29GB compressed). Another advantage of using a data folder is that the data does not need to be re-downloaded when the program is updated.
20
20
 
21
21
  ## Can the base install size be made smaller?
22
22
 
23
- The installed (uncompressed) size, including dependencies, is around 350MB. This is without any models or voices, which are downloaded as needed.
23
+ The installed (uncompressed) size, including dependencies, is around 300MB. This is without any models or voices, which are downloaded as needed.
24
24
 
25
25
  Currently, the biggest contributors to the size are:
26
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echogarden",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "An integrated speech toolbox designed with end-users in mind.",
5
5
  "author": "Rotem Dan",
6
6
  "license": "GPL-3.0-only",
@@ -35,7 +35,7 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "main": "dist/API/API.js",
38
+ "main": "./dist/API/API.js",
39
39
  "type": "module",
40
40
  "files": [
41
41
  "dist",
@@ -50,7 +50,7 @@
50
50
  "generate-options-schema": "npx ts-json-schema-generator --path ./src/api/APIOptions.ts --unstable --type APIOptions --tsconfig ./tsconfig.json --out ./data/schemas/options.json"
51
51
  },
52
52
  "bin": {
53
- "echogarden": "dist/cli/CLILauncher.js"
53
+ "echogarden": "./dist/cli/CLILauncher.js"
54
54
  },
55
55
  "dependencies": {
56
56
  "@aws-sdk/client-polly": "^3.316.0",