echogarden 1.1.0 → 1.2.0

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.
Files changed (56) hide show
  1. package/data/schemas/options.json +56 -1
  2. package/dist/alignment/DTWSequenceAlignmentWindowed.js +6 -1
  3. package/dist/alignment/DTWSequenceAlignmentWindowed.js.map +1 -1
  4. package/dist/alignment/SpeechAlignment.js +1 -1
  5. package/dist/alignment/SpeechAlignment.js.map +1 -1
  6. package/dist/api/APIOptions.d.ts +3 -0
  7. package/dist/api/Alignment.js +2 -1
  8. package/dist/api/Alignment.js.map +1 -1
  9. package/dist/api/GlobalOptions.d.ts +10 -0
  10. package/dist/api/GlobalOptions.js +21 -3
  11. package/dist/api/GlobalOptions.js.map +1 -1
  12. package/dist/cli/CLI.js +224 -191
  13. package/dist/cli/CLI.js.map +1 -1
  14. package/dist/cli/CLIConfigFile.js +7 -7
  15. package/dist/cli/CLIConfigFile.js.map +1 -1
  16. package/dist/cli/CLIOptions.d.ts +7 -0
  17. package/dist/cli/CLIOptions.js +2 -0
  18. package/dist/cli/CLIOptions.js.map +1 -0
  19. package/dist/cli/CLIParser.d.ts +5 -6
  20. package/dist/cli/CLIParser.js +16 -12
  21. package/dist/cli/CLIParser.js.map +1 -1
  22. package/dist/recognition/WhisperSTT.js +34 -17
  23. package/dist/recognition/WhisperSTT.js.map +1 -1
  24. package/dist/utilities/FileDownloader.js +3 -1
  25. package/dist/utilities/FileDownloader.js.map +1 -1
  26. package/dist/utilities/Logger.d.ts +5 -4
  27. package/dist/utilities/Logger.js +19 -8
  28. package/dist/utilities/Logger.js.map +1 -1
  29. package/dist/utilities/PackageManager.js +3 -2
  30. package/dist/utilities/PackageManager.js.map +1 -1
  31. package/dist/utilities/Utilities.d.ts +1 -1
  32. package/dist/utilities/Utilities.js +9 -9
  33. package/dist/utilities/Utilities.js.map +1 -1
  34. package/docs/API.md +3 -10
  35. package/docs/CLI.md +88 -77
  36. package/docs/Contributing.md +4 -4
  37. package/docs/Engines.md +1 -1
  38. package/docs/Options.md +25 -2
  39. package/docs/Releases.md +8 -8
  40. package/docs/Tasklist.md +17 -19
  41. package/docs/Technical.md +2 -2
  42. package/package.json +3 -3
  43. package/src/alignment/DTWSequenceAlignmentWindowed.ts +7 -1
  44. package/src/alignment/SpeechAlignment.ts +1 -1
  45. package/src/api/APIOptions.ts +3 -0
  46. package/src/api/Alignment.ts +4 -2
  47. package/src/api/GlobalOptions.ts +33 -5
  48. package/src/cli/CLI.ts +257 -205
  49. package/src/cli/CLIConfigFile.ts +7 -7
  50. package/src/cli/CLIOptions.ts +8 -0
  51. package/src/cli/CLIParser.ts +20 -17
  52. package/src/recognition/WhisperSTT.ts +38 -17
  53. package/src/utilities/FileDownloader.ts +5 -1
  54. package/src/utilities/Logger.ts +22 -8
  55. package/src/utilities/PackageManager.ts +4 -3
  56. package/src/utilities/Utilities.ts +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"Utilities.js","sourceRoot":"","sources":["../../src/utilities/Utilities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGnC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAIrD,MAAM,GAAG,GAAG,WAAW,CAAA;AAEvB,MAAM,UAAU,mBAAmB,CAAC,MAAsB;IACzD,OAAO,iBAAiB,CAAe,YAAY,EAAE,MAAM,CAAC,CAAA;AAC7D,CAAC;AAED,SAAS,iBAAiB,CAAI,gBAAqB,EAAE,MAAa;IACjE,IAAI,WAAW,GAAG,CAAC,CAAA;IAEnB,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;QAC1B,WAAW,IAAI,GAAG,CAAC,MAAM,CAAA;IAC1B,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,gBAAgB,CAAC,WAAW,CAAC,CAAA;IAEhD,IAAI,MAAM,GAA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
@@ -290,21 +290,14 @@ Timeline object.
290
290
 
291
291
  ### `setGlobalOption(key, value)`
292
292
 
293
- Set a global option.
293
+ Sets a global option.
294
294
 
295
- Supported keys:
295
+ See the [options reference](Options.md) for more details about the available global options.
296
296
 
297
- * `'ffmpegPath'`: override FFmpeg executable path
298
- * `'soxPath'`: override SoX executable path
299
297
 
300
298
  ### `getGlobalOption(key)`
301
299
 
302
- Get a global option.
303
-
304
- Supported keys:
305
-
306
- * `'ffmpegPath'`: get FFmpeg executable path
307
- * `'soxPath'`: get SoX executable path
300
+ Gets a global option.
308
301
 
309
302
  #### Returns:
310
303
 
package/docs/CLI.md CHANGED
@@ -118,6 +118,73 @@ This would align the audio file `dutch-speech.mp3` with the translated transcrip
118
118
  echogarden align-translation dutch-speech.mp3 english-translation.txt result.srt result.json
119
119
  ```
120
120
 
121
+ ## Language detection
122
+
123
+ **Task**: Given audio or textual input, try to identify which language it is spoken or written in.
124
+
125
+ Try to identify the language of an audio file containing speech, and print the probabilities to the terminal:
126
+ ```bash
127
+ echogarden detect-speech-language speech.mp3
128
+ ```
129
+
130
+ Try to identify the language of a text file, and print the probabilities to the terminal:
131
+ ```bash
132
+ echogarden detect-text-language story.txt
133
+ ```
134
+
135
+ Try to identify the language of a text file, and store the detailed probabilities in a JSON file:
136
+ ```bash
137
+ echogarden detect-text-language story.txt detection-results.json
138
+ ```
139
+
140
+ ## Voice activity detection
141
+
142
+ **Task**: Given an audio file, try to classify which parts of the audio contain speech, and which don't.
143
+
144
+ This would apply VAD and play the audio, synchronized with `speech` and `nonspeech` indicators, printed to the terminal.
145
+ ```bash
146
+ echogarden detect-voice-activity speech.mp3
147
+ ```
148
+
149
+ This would apply VAD and store the results in a timeline JSON file.
150
+ ```bash
151
+ echogarden detect-voice-activity speech.mp3 timeline.json
152
+ ```
153
+
154
+ ## Speech denoising
155
+
156
+ **Task**: Attempt to reduce the amount of background noise in a spoken recording.
157
+
158
+ This would apply denoising and play the denoised audio:
159
+ ```bash
160
+ echogarden denoise speech.mp3
161
+ ```
162
+
163
+ This would apply denoising, and save the denoised audio to a file:
164
+ ```bash
165
+ echogarden denoise speech.mp3 denoised-speech.mp3
166
+ ```
167
+
168
+ ## Source separation
169
+
170
+ **Task**: Try to isolate a vocal track (or other type of track, depending on model used), from the audio.
171
+
172
+ This would apply source separation and play the isolated audio:
173
+ ```bash
174
+ echogarden isolate voice-with-music.mp3
175
+ ```
176
+
177
+ This would apply source separation, and save both the isolated and background audio:
178
+ ```bash
179
+ echogarden isolate voice-with-music.mp3 voice-isolated.mp3
180
+ ```
181
+
182
+ Written files would be:
183
+ ```
184
+ voice-isolated.mp3
185
+ voice-isolated.background.mp3
186
+ ```
187
+
121
188
  ## Using output templates to split the output to multiple files
122
189
 
123
190
  Echogarden can split the output to multiple parts based on the segment boundaries detected. For example:
@@ -151,7 +218,7 @@ echogarden transcribe speech.mp3 --no-play
151
218
 
152
219
  ## File overwriting
153
220
 
154
- By default, the CLI doesn't overwrite existing files. If an output file `out.mp3` already exists, it will save it as `out_001.mp3`.
221
+ By default, the CLI doesn't overwrite existing files. If an output file `out.mp3` already exists, it will save it as `out_00x.mp3`.
155
222
 
156
223
  To have existing files be overwritten, you can pass the `--overwrite` option.
157
224
 
@@ -161,9 +228,26 @@ Since there are many possible configuration options, it may be more convenient t
161
228
 
162
229
  When a file named `echogarden.config` is found at the current directory, it will be loaded automatically and its content would be used as default options. You can also specify a particular configuration file path with the option `--config=path/to/your-config-file.config`.
163
230
 
164
- The configuration file format is simple and has a dedicated section for each command (all `speak-` commands are grouped together under `speak`):
231
+ The configuration file format is simple and has a dedicated section for each command (all `speak-` commands are grouped together under `speak`), `global` section for global API options, and `cli` for CLI-specific options. `#` is used as a comment character.
165
232
 
233
+ Example:
166
234
  ```conf
235
+ [global]
236
+
237
+ # Custom remote packages base URL:
238
+ packageBaseURL = https://hf-mirror.com/echogarden/echogarden-packages/resolve/main/
239
+
240
+ # Log level:
241
+ logLevel = info
242
+
243
+ [cli]
244
+
245
+ # Should play audio in the terminal:
246
+ play = true
247
+
248
+ # Overwrite existing files:
249
+ overwrite = true
250
+
167
251
  [speak]
168
252
 
169
253
  # Engine for synthesis:
@@ -180,8 +264,9 @@ customLexiconPaths = ["lexicon1.json", "lexicon2.json"]
180
264
  # Engine for recognition:
181
265
  engine = whisper
182
266
 
183
- # Whisper model to use:
267
+ # Whisper options:
184
268
  whisper.model = tiny
269
+ whisper.temperature = 0.15
185
270
  ```
186
271
 
187
272
  ### JSON configuration file
@@ -216,74 +301,6 @@ Flattened property names are also accepted:
216
301
  }
217
302
  ```
218
303
 
219
- ## Other operations
220
-
221
- ### Language detection
222
-
223
- **Task**: Given audio or textual input, try to identify which language it is spoken or written in.
224
-
225
- Try to identify the language of an audio file containing speech, and print the probabilities to the terminal:
226
- ```bash
227
- echogarden detect-speech-language speech.mp3
228
- ```
229
-
230
- Try to identify the language of a text file, and print the probabilities to the terminal:
231
- ```bash
232
- echogarden detect-text-language story.txt
233
- ```
234
-
235
- Try to identify the language of a text file, and store the detailed probabilities in a JSON file:
236
- ```bash
237
- echogarden detect-text-language story.txt detection-results.json
238
- ```
239
-
240
- ### Voice activity detection
241
-
242
- **Task**: Given an audio file, try to classify which parts of the audio contain speech, and which don't.
243
-
244
- This would apply VAD and play the audio, synchronized with `speech` and `nonspeech` indicators, printed to the terminal.
245
- ```bash
246
- echogarden detect-voice-activity speech.mp3
247
- ```
248
-
249
- This would apply VAD and store the results in a timeline JSON file.
250
- ```bash
251
- echogarden detect-voice-activity speech.mp3 timeline.json
252
- ```
253
-
254
- ### Speech denoising
255
-
256
- **Task**: Attempt to reduce the amount of background noise in a spoken recording.
257
-
258
- This would apply denoising and play the denoised audio:
259
- ```bash
260
- echogarden denoise speech.mp3
261
- ```
262
-
263
- This would apply denoising, and save the denoised audio to a file:
264
- ```bash
265
- echogarden denoise speech.mp3 denoised-speech.mp3
266
- ```
267
-
268
- ### Source separation
269
-
270
- **Task**: Try to isolate a vocal track (or other type of track, depending on model used), from the audio.
271
-
272
- This would apply source separation and play the isolated audio:
273
- ```bash
274
- echogarden isolate voice-with-music.mp3
275
- ```
276
-
277
- This would apply source separation, and save both the isolated and background audio:
278
- ```bash
279
- echogarden isolate voice-with-music.mp3 voice-isolated.mp3
280
- ```
281
-
282
- Written files would be:
283
- ```
284
- voice-isolated.mp3
285
- voice-isolated.background.mp3
286
- ```
287
304
 
288
305
  ## Information and lists
289
306
 
@@ -324,9 +341,3 @@ Uninstall one or more expansion packages
324
341
 
325
342
  Show a list of installed expansion packages
326
343
 
327
- ## General CLI options
328
-
329
- * `--play`, `--no-play`: enable/disable audio playback. Defaults to play if there is no output file specified
330
- * `--overwrite`, `--no-overwrite`: overwrite/keep existing files. Doesn't overwrite by default
331
- * `--debug`, `--no-debug`: show/hide the full details of JavaScript errors, if they occur. Disabled by default
332
- * `--config=...`: path to configuration file to use. Defaults to `echogarden.config` or `echogarden.config.json`, if found at the current directory
@@ -6,15 +6,15 @@ However, there are many areas where contributions can be made.
6
6
 
7
7
  ## Report any issue or bug you encounter
8
8
 
9
- First, check the issue tracker, as well as the [task list](Tasklist.md) to see if the problem is already known to me. The task list allows me to efficiently document and organize a large quantity of small issues, enhancements or ideas that would otherwise flood an issue tracker with lots of unimportant entries, be ignored, or forgotten entirely.
9
+ First, check the issue tracker, as well as the [task list](Tasklist.md) to see if the problem is already known to me. The task list allows me to efficiently document and organize a large number of small issues, enhancements or ideas that would otherwise flood an issue tracker with lots of unimportant entries, be ignored, or be forgotten entirely.
10
10
 
11
11
  If you find the issue you're encountering in the task list, you can still open an issue to discuss it. This allows me to know that someone cares about a particular issue, and I may give it higher priority.
12
12
 
13
13
  There might be some obvious errors that have gone unreported. Especially if:
14
- * You're using the macOS architecture: I don't have access to a macOS machine, so personally I did not and cannot perform testing on that platform.
14
+ * You're using the macOS architecture: I don't have access to a macOS machine, so personally, I did not and cannot perform testing on that platform.
15
15
  * You're using cloud services: There may be changes in the service that will require updating the code. I don't often test they work correctly, since my trial periods in Google, Microsoft and Amazon have all expired, thus testing requires me to use paid requests.
16
16
 
17
- Since there is a large number of engines, options and behaviors, it is difficult for me to test everything at each release. It is likely there are edge cases that I didn't think about or noticed.
17
+ Since there is a large number of engines, options and behaviors, it is difficult for me to test everything at each release. There are likely edge cases that I didn't think about or noticed.
18
18
 
19
19
  In any case, please let me know if you get any unexpected error message or surprising behavior that you care about, and I'll try to prioritize it, if possible.
20
20
 
@@ -30,7 +30,7 @@ If the problem is serious, you can report it, and we'll see what we can do.
30
30
 
31
31
  ## Fork and make changes to the codebase
32
32
 
33
- See guide for [setting up a development environment](Development.md).
33
+ See the guide for [setting up a development environment](Development.md).
34
34
 
35
35
 
36
36
  ## Notes about licensing
package/docs/Engines.md CHANGED
@@ -80,7 +80,7 @@ These engines' goal is to match (or "align") a given spoken recording with a giv
80
80
 
81
81
  ## Speech-to-translated-transcript alignment
82
82
 
83
- These goal here is to match (or "align") a given spoken recording in one language, with a given translated transcript in a different language, as closely as possible.
83
+ The goal here is to match (or "align") a given spoken recording in one language, with a given translated transcript in a different language, as closely as possible.
84
84
 
85
85
  * `whisper`: given a spoken recording in any of the [98 languages](https://platform.openai.com/docs/guides/speech-to-text/supported-languages) supported by Whisper, and an English translation of its transcript, the translated transcript is tokenized and then decoded, in order, using a guided approach, with any multilingual Whisper model, set to its `translate` task mode. In this way, the approximate mapping between the spoken audio and each word of the translation is estimated
86
86
 
package/docs/Options.md CHANGED
@@ -142,11 +142,11 @@ Applies to CLI operation: `transcribe`, API method: `recognize`
142
142
 
143
143
  **Whisper**:
144
144
  * `whisper.model`: selects which Whisper model to use. Can be `tiny`, `tiny.en`, `base`, `base.en`, `small`, `small.en`, `medium`, `medium.en`, `large` (same as `large-v2`), `large-v1`, `large-v2`, `large-v3` (**Note**: large models aren't yet supported by `onnxruntime-node` due to their size). Defaults to `tiny` or `tiny.en`
145
- * `whisper.temperature`: temperature setting for the text decoder. Impacts amount of randomization for token selection. It is recommended to leave at `0.1` (close to no randomization - almost always chooses the top ranked token) or choose a relatively low value (`0.25` or lower) for best results. Defaults to `0.1`
145
+ * `whisper.temperature`: temperature setting for the text decoder. Impacts the amount of randomization for token selection. It is recommended to leave at `0.1` (close to no randomization - almost always chooses the top ranked token) or choose a relatively low value (`0.25` or lower) for best results. Defaults to `0.1`
146
146
  * `whisper.prompt`: initial text to give the Whisper model. Can be a vocabulary, or example text of some sort. Note that if the prompt is very similar to the transcript, the model may intentionally avoid producing the transcript tokens as it may assume that they have already been transcribed. Optional
147
147
  * `whisper.topCandidateCount`: the number of top candidate tokens to consider. Defaults to `5`
148
148
  * `whisper.punctuationThreshold`: the minimal probability for a punctuation token, included in the top candidates, to be chosen unconditionally. A lower threshold encourages the model to output more punctuation symbols. Defaults to `0.2`
149
- * `whisper.autoPromptParts`: use previous part's recognized text as prompt for the next part. Disabling this may help to prevent repetition carrying over between parts, in some cases. Defaults to `true`
149
+ * `whisper.autoPromptParts`: use previous part's recognized text as the prompt for the next part. Disabling this may help to prevent repetition carrying over between parts, in some cases. Defaults to `true`
150
150
  * `whisper.maxTokensPerPart`: maximum number of tokens to decode for each audio part. Defaults to `250`
151
151
  * `whisper.suppressRepetition`: attempt to suppress decoding of repeating token patterns. Defaults to `true`
152
152
  * `whisper.decodeTimestampTokens`: enable/disable decoding of timestamp tokens. Setting to `false` can reduce the occurrence of hallucinations and token repetition loops, possibly due to the overall reduction in the number of tokens decoded. This has no impact on the accuracy of timestamps, since they are derived independently using cross-attention weights. However, there are cases where this can cause the model to end a part prematurely, especially in singing and less speech-like voice segments, or when there are multiple speakers. Defaults to `true`
@@ -370,3 +370,26 @@ These are shared between text-to-speech, speech-to-text and alignment operations
370
370
  * `maxAddedDuration`: maximum extra time (in seconds) that may be added after a cue's end time. This gives the reader additional time to read the cue, and also ensures that very short duration cues aren't shown in a flash. Defaults to `3.0`
371
371
 
372
372
  **Note**: options `maxLineCount`, `maxLineWidth`, `minWordsInLine`, `separatePhrases`, are only effective when using the `segment` and `sentence` modes, and are ignored in all other modes. `maxAddedDuration` doesn't apply to modes `word`, `phone` and `word+phone` (they always use the exact start and end timestamps).
373
+
374
+ ## Global options
375
+
376
+ On the CLI, global options can be used with any operation. To set global options via the API, use the `setGlobalOption(key, value)` method (see the [API reference](API.md) for more details).
377
+
378
+ * `ffmpegPath`: sets a custom path for the FFmpeg executable
379
+ * `soxPath`: sets a custom path for the SoX executable
380
+ * `packageBaseURL`: sets a custom base URL for the remote package repository used to download missing packages. Default is `https://huggingface.co/echogarden/echogarden-packages/resolve/main/`. If `huggingface.co` isn't accessible in your location, you can set to use a mirror by changing `huggingface.co` to alternative a domain like `hf-mirror.com`
381
+ * `logLevel`: adjusts the quantity of log messages shown during processing. Possible values: `silent`, `output`, `error`, `warning`, `info`, `trace`. Defaults to `info`
382
+
383
+
384
+ ## CLI options
385
+
386
+ These options are for the CLI only.
387
+
388
+ * `--play`, `--no-play`: enable/disable audio playback. Defaults to play if there is no output file specified
389
+ * `--overwrite`, `--no-overwrite`: overwrite/keep existing files. Doesn't overwrite by default
390
+ * `--debug`, `--no-debug`: show/hide the full details of JavaScript errors, if they occur. Disabled by default
391
+ * `--config=...`: path to configuration file to use. Defaults to `echogarden.config` or `echogarden.config.json`, if found at the current directory
392
+
393
+ ## Using a configuration file
394
+
395
+ The CLI supports loading options from a default or custom configuration file in various formats. See the [CLI Guide](CLI.md) for more details.
package/docs/Releases.md CHANGED
@@ -14,7 +14,7 @@ For releases after `1.0.0`, see the [GitHub releases page](https://github.com/ec
14
14
  * Integrate optional vocal isolation to speech recognition, alignment and translation operations using the new `--isolate` option, allowing for higher accuracy in difficult cases like achieving word-level lyrics alignment
15
15
  * Add the new `adaptive-gate` VAD engine using a custom bandlimited adaptive gate. Fast and robust. Works well for relatively clean tracks or tracks that have already been processed using vocal isolation
16
16
  * Add optional token-level repetition suppression to Whisper engine
17
- * Expose several new configuration options for the Whisper engine: a settings for maximum tokens per part, and a setting to enable/disable repetition suppression, set custom random seed, disable/enable decoding of timestamp tokens
17
+ * Expose several new configuration options for the Whisper engine: settings for maximum tokens per part, and a setting to enable/disable repetition suppression, set custom random seed, disable/enable decoding of timestamp tokens
18
18
  * Expose more options for the Elevenlabs engine
19
19
 
20
20
  **Enhancements**:
@@ -25,13 +25,13 @@ For releases after `1.0.0`, see the [GitHub releases page](https://github.com/ec
25
25
  **Behavioral and breaking changes**:
26
26
  * Minimal required node version changed to `18.0.0`
27
27
  * All recognition, alignment, translation and language recognition operations first apply the new adaptive gate VAD (can be changed to any other VAD engine via the `vad.` option prefix) and remove any sections that are not identified as containing voice, before starting processing. This should improve results in most cases, and reduce processing time
28
- * To reduce Whisper hallucinations and repetition loops, these change were made:
28
+ * To reduce Whisper hallucinations and repetition loops, these changes were made:
29
29
  * Pre-cropping by default can significantly help with reducing hallucinations, giving the model less "empty space" to hallucinate on
30
30
  * Enable new token-level repetition suppression (`suppressRepetition = true`) during decoding
31
31
  * Disable decoding of timestamp tokens by default (`decodeTimestampTokens = false`), since more accurate timing is already extracted via cross-attention weight alignment. For unclear reasons, this can significantly reduce the occurrence of token repetition loops, and increases word timestamp accuracy. However, there are cases where this causes the model to end a part prematurely, especially in singing and less speech-like voice segments. In those cases the it can be enabled with `decodeTimestampTokens = true`
32
32
  * When `transcribe`, `align` or `translate-speech` operations are run with `--isolate` enabled, they will output the isolated part in `some-output-file.isolated.wav` and background part (isolated subtracted from original) in `some-output-file.background.wav` (any supported codec other than `wav` can be used - this is just an example)
33
33
  * VAD operations now return a timeline including only the active sections, labeled as `active`
34
- * When the specified language is not English, but an `.en` Whisper model was specified, a warning would be shown, and the model would be automatically switched to the corresponding multilingual model (omitting the `.en`), instead of producing an error
34
+ * When the specified language is not English, but an `.en` Whisper model was specified, a warning would be shown, and the model will be automatically switched to the corresponding multilingual model (omitting the `.en`), instead of producing an error
35
35
  * Default speech language detection engine is now changed to `whisper`
36
36
  * Default voice activity detection engine is now changed to `silero`
37
37
  * CLI: duplicate file name outputs would now append the `_001` suffix pattern instead of ` (1)`. This change is meant to simplify sorting and typing the resulting file names and remove the space and parenthesis characters, to ensure compatibility with all operating systems
@@ -40,7 +40,7 @@ For releases after `1.0.0`, see the [GitHub releases page](https://github.com/ec
40
40
  * `dryMixGainDb` denoising option renamed to `dryMixGain`
41
41
 
42
42
  **Fixes**:
43
- * Integrated `whisper` engine now uses `tiktoken` to tokenize text, which produces near identical tokenization compared to the official Python implementation. This fixes issues with decoding Chinese characters, correctly encoding prompts, and several others languages with characters that span multiple tokens
43
+ * Integrated `whisper` engine now uses `tiktoken` to tokenize text, which produces near identical tokenization compared to the official Python implementation. This fixes issues with decoding Chinese characters, correctly encoding prompts, and several other languages with characters that span multiple tokens
44
44
  * Fix voice language lists for multilingual voices in Elevenlabs TTS engine
45
45
  * Fix runtime error with `rnnoise` when used as VAD engine
46
46
  * Fix issue in CLI where supported output media formats weren't reported correctly
@@ -132,7 +132,7 @@ Many features, enhancements, and fixes were incrementally added over the span of
132
132
  * Expose subtitle configuration options to CLI
133
133
 
134
134
  **Enhancements**:
135
- * Improve speech language detection to work with arbitrary length audio. Split audio to overlapping parts and detect each part individually. Then average the results.
135
+ * Improve speech language detection to work with arbitrary length audio. Split audio into overlapping parts and detect each part individually. Then average the results.
136
136
  * Add more heteronyms
137
137
 
138
138
  **Behavioral changes**:
@@ -172,7 +172,7 @@ Many features, enhancements, and fixes were incrementally added over the span of
172
172
  * Add support for custom lexicons. Change lexicon object structure to include language code and allow for multiple languages in a single lexicon
173
173
  * Add support for SSML inputs (currently only supported by Google, Microsoft and Amazon cloud engines). Ensure they are not split to segments or sentences
174
174
  * CLI: Add flag to enable or disable file overwriting in CLI
175
- * CLI: Add command to list engines
175
+ * CLI: Add operation to list engines
176
176
  * Add arguments to customize paragraph parsing
177
177
  * Change whitespace option to include option for collapsing all whitespace
178
178
 
@@ -251,8 +251,8 @@ Many features, enhancements, and fixes were incrementally added over the span of
251
251
  **New features**:
252
252
 
253
253
  **Enhancements**:
254
- * Show current sentence and segment in synthesis log.
255
- * Add check for cancellation flag.
254
+ * Show current sentence and segment in synthesis log
255
+ * Add check for cancellation flag
256
256
  * Add support to additional VITS voices
257
257
  * Improve auto TTS engine selection
258
258
  * Many Enhancements
package/docs/Tasklist.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  ### Alignment
6
6
 
7
- * In DTW-RA, recognition transcript including something like "Question 2.What does Juan", where "2.What" has a point in the middle, is breaking playback of the timeline
7
+ * In DTW-RA, a recognized transcript including something like "Question 2.What does Juan", where "2.What" has a point in the middle, is breaking playback of the timeline
8
8
  * DTW-RA will not work correctly with Polish language texts, due to issues with the eSpeak engine pronouncing `|` characters, which are intended to be used as separators and ignored by all other eSpeak languages
9
9
 
10
10
  ### Synthesis
@@ -35,7 +35,7 @@
35
35
  ## Features and enhancements
36
36
 
37
37
  ### CLI
38
- * Show names of files written do disk. This is useful for cases where a file is auto-renamed to prevent overwriting existing data
38
+ * Show names of files written to disk. This is useful for cases where a file is auto-renamed to prevent overwriting existing data
39
39
  * Restrict input media file extensions to ensure that invalid files are not passed to FFmpeg
40
40
  * Consider what to do with non-supported templates like `[hello]`
41
41
  * Show a message when a new version is available
@@ -67,7 +67,7 @@
67
67
  * Use the Wikipedia reader when the URL is detected to be from `wikipedia.org`
68
68
 
69
69
  ### CLI / `list-voices`
70
- * When given a configuration file, see if you can fall back to take options from `speak` options, for example, to take API keys that are required for the both the synthesis request and voice list request and
70
+ * When given a configuration file, see if you can fall back to take options from `speak` options, for example, to take API keys that are required for both the synthesis request and voice list request and
71
71
 
72
72
  ### CLI / `list-packages`
73
73
  * Support filters
@@ -83,7 +83,6 @@
83
83
  * `speak-youtube-subtitles`: To speak the subtitles of a YouTube video
84
84
 
85
85
  ### API
86
- * Option to control logging verbosity
87
86
  * Accept full language names as language identifiers
88
87
  * Validate timelines to ensure timestamps are always increasing: no negative timestamps or timestamps over the duration of the audio. No sentences without words, etc. and correct if needed
89
88
  * See whether it's possible to detect and include / remove Emoji characters in timelines
@@ -91,7 +90,7 @@
91
90
  * Accept voice list caching options in `SynthesisOptions`
92
91
 
93
92
  ### Package manager
94
- * Better error message when package is not found remotely. Currently, it just gives a `404 not found` without any other information
93
+ * Better error message when a package is not found remotely. Currently, it just gives a `404 not found` without any other information
95
94
  * Retry on network failure
96
95
 
97
96
  ### Speech language detection
@@ -100,8 +99,7 @@
100
99
  * Deploy and add the new n-gram based text language detection model
101
100
 
102
101
  ### Segmentation
103
- * Split long words
104
- * See if it's possible to reliably use eSpeak as a segmentation engine
102
+ * See if it's possible or useful to reliably use eSpeak as a segmentation engine.
105
103
 
106
104
  ### Subtitles
107
105
  * Split long words if needed. This is especially important for Chinese and Japanese
@@ -115,8 +113,8 @@
115
113
  * Option to disable alignment (only for some engines). Alternative: use a low granularity DTW setting that is very fast to compute
116
114
  * Find places to add commas (",") to improve speech fluency. VITS voices don't normally add speech breaks if there is no punctuation
117
115
  * An isolated dash " - " can be converted to a " , " to ensure there's a break in the speech
118
- * Ensure abbreviations like "Ph.d" or names like are segmented and read correctly (does `cldr` treat it as a word? Maybe eSpeak doesn't recognize it as a word). "C#" and ".NET" as well
119
- * Find way to manually reset voice list cache
116
+ * Ensure abbreviations like "Ph.d" or similar names are segmented and read correctly (does `cldr` treat it as a word? Maybe eSpeak doesn't recognize it as a word). "C#" and ".NET" as well
117
+ * Find a way to manually reset voice list cache
120
118
  * When synthesized text isn't pre-split to sentences, apply sentence splits by using the existing method to convert the output of word timelines to sentence/segment timelines
121
119
  * Some `sapi` voices and `msspeech` languages output phones that are converted to Microsoft alphabet, not IPA symbols. Try to see if these can be translated to IPA
122
120
  * Decide whether asterisk `*` should be spoken when using `speak-url` or `speak-wikipedia`
@@ -155,11 +153,11 @@
155
153
  * Show alternatives when playing in the CLI. Clear current line and rewrite already printed text for alternatives during the speech recognition process
156
154
 
157
155
  ### Recognition / Whisper
158
- * Whisper's Chinese and Japanese output can be split to words in a more accurate way. Consider using a dedicated segmentation library to perform the segmentation in character sequences that have no spaces within them
156
+ * Whisper's Chinese and Japanese output can be split into words in a more accurate way. Consider using a dedicated segmentation library to perform the segmentation in character sequences that have no spaces within them
159
157
  * Automatically disable using previous section recognized transcript as prompt for the next section when lots of repetition occurred in previous section
160
- * Cache last model (if enough memory available)
161
- * The segment output can be used to split to segments, otherwise it is possible to try to guess using pause lengths or voice activity detection
162
- * Bring back option to use eSpeak DTW based alignment on segments, as an alternative approach
158
+ * Cache last model (if enough memory is available)
159
+ * The segment output can be used to split into segments, otherwise it is possible to try to guess using pause lengths or voice activity detection
160
+ * Bring back the option to use eSpeak DTW based alignment on segments, as an alternative approach
163
161
 
164
162
  ### Alignment
165
163
 
@@ -170,7 +168,7 @@
170
168
  ### Alignment / Whisper
171
169
 
172
170
  ### Source separation / MDX-NET
173
- * Since MDX-NET requires FFT with large window sizes, the FFT computation overhead currently acts as a bottleneck, especially when GPU is used for inference. Currently it uses a WASM port of KissFFT, running on a single thread, which is still relatively fast. To get higher performance, try to (optionally) use native, SIMD optimized FFT like FFTW3 via a NAPI addon, with multi-threading enabled
171
+ * Since MDX-NET requires FFT with large window sizes, the FFT computation overhead currently acts as a bottleneck, especially when GPU is used for inference. Currently, it uses a WASM port of KissFFT, running on a single thread, which is still relatively fast. To get higher performance, try to (optionally) use native, SIMD optimized FFT like FFTW3 via a NAPI addon, with multi-threading enabled
174
172
  * Option to customize overlap
175
173
  * Add more models
176
174
 
@@ -225,7 +223,7 @@
225
223
  ### CLI
226
224
  * Auto-generate options file, with comments, based on default options of the API
227
225
  * Have the CLI launch a background worker (in a thread) to enable better parallelism
228
- * Play back result audio while synthesis or recognition is still processing in the background
226
+ * Playback result audio while synthesis or recognition is still processing in the background
229
227
  * Auto-import and extract project Gutenberg texts (by URL or from a file)
230
228
  * `stdin` input support
231
229
  * `stdout` output support
@@ -243,10 +241,10 @@
243
241
  * Add capitalization and punctuation to recognized outputs if needed (Silero has a model for it for `en`, `de`, `ru`, `es`, but in `.pt` format only)
244
242
 
245
243
  ### Synthesis
246
- * Synthesize given subtitle file and try to preserve the existing timing of cues, or even align to existing speech
244
+ * Synthesize the given subtitle file and try to preserve the existing timing of cues, or even align to existing speech
247
245
 
248
246
  ### Recognition
249
- * Low latency recognition mode. Make the partial transcription available as fast as possible
247
+ * Low latency, streaming recognition mode. Make the partial transcription available as fast as possible
250
248
  * Live input / microphone recognition
251
249
  * Implement beam search for Whisper decoder
252
250
  * Implement beam search for Silero decoder
@@ -274,7 +272,7 @@
274
272
  ## Maybe?
275
273
 
276
274
  * Using a machine translation model to provide speech translation to languages other than English? How would the timing be determined?
277
- * Is it possible to get sentence boundaries without punctuation using NLP techniques like part of speech tagging?
275
+ * Is it possible to get sentence boundaries without punctuation using NLP techniques like part-of-speech tagging?
278
276
 
279
277
  ## May or may not be good ideas
280
278
 
@@ -283,7 +281,7 @@
283
281
 
284
282
  ## Other ideas
285
283
 
286
- * Support alignment of EPUB 3 eBooks with corresponding audiobook
284
+ * Support alignment of EPUB 3 eBooks with a corresponding audiobook
287
285
  * Voice cloning
288
286
  * Speech-to-speech voice conversion
289
287
  * Speech-to-speech translation
package/docs/Technical.md CHANGED
@@ -61,9 +61,9 @@ I don't think that `stdin` and `stdout` are able to capture the type of complex,
61
61
 
62
62
  ## Why does the CLI use `--option=value` and not `--option value` syntax?
63
63
 
64
- I would have allowed `--option value` if I could. The reason `--option=value` syntax is used is because the options are defined using an auto-generated schema, which is different for each command. This means I don't know ahead of time which options require an extra value, like `--voice Bob`, and which don't, like `--play`, at the time the command line is parsed. This makes it difficult to intersperse switches and inputs/outputs like `echogarden speak "Hello" --play output.mp3 --voice Bob`.
64
+ I would have allowed `--option value` if I could. The reason `--option=value` syntax is used is because the options are defined using an auto-generated schema, which is different for each operation. This means I don't know ahead of time which options require an extra value, like `--voice Bob`, and which don't, like `--play`, at the time the command line is parsed. This makes it difficult to intersperse switches and inputs/outputs like `echogarden speak "Hello" --play output.mp3 --voice Bob`.
65
65
 
66
- In order to support a syntax like `--option value` I will need to parse the command line separately for each command, but then it would be difficult to share common options between all of them.
66
+ In order to support a syntax like `--option value` I will need to parse the command line separately for each operation, but then it would be difficult to share common options between all of them.
67
67
 
68
68
  Also, `option=value` is more similar to the syntax used in the configuration file, which makes it more consistent, and since the CLI accepts arbitrary numbers of free arguments, it helps prevent confusion on whether an argument is related to an option or a free one.
69
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echogarden",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "An easy-to-use speech toolset. Includes tools for synthesis, recognition, alignment, speech translation, language detection, source separation and more.",
5
5
  "author": "Rotem Dan",
6
6
  "license": "GPL-3.0",
@@ -88,7 +88,7 @@
88
88
  "moving-median": "^1.0.0",
89
89
  "msgpack-lite": "^0.1.26",
90
90
  "onnxruntime-node": "^1.17.3",
91
- "openai": "^4.38.2",
91
+ "openai": "^4.38.5",
92
92
  "sam-js": "^0.2.1",
93
93
  "strip-ansi": "^7.1.0",
94
94
  "tar": "^7.0.1",
@@ -123,7 +123,7 @@
123
123
  "@types/recursive-readdir": "^2.2.4",
124
124
  "@types/tar": "^6.1.13",
125
125
  "@types/ws": "^8.5.10",
126
- "ts-json-schema-generator": "^2.1.0",
126
+ "ts-json-schema-generator": "^2.1.1",
127
127
  "typescript": "^5.4.5"
128
128
  }
129
129
  }