@moxxy/plugin-tts-local 0.41.3 → 0.42.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/package.json +6 -6
- package/src/live.test.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moxxy/plugin-tts-local",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.42.1",
|
|
4
4
|
"description": "Fully local, on-device text-to-speech Synthesizer for moxxy. Runs Piper voices (English + Polish) via sherpa-onnx in a forked sidecar process; voice models download once on first use from sherpa-onnx's pinned releases (sha256-verified). No API key, no network at synthesis time. Plugs into the session SynthesizerRegistry — desktop read-aloud, the TUI, and channel voice replies consume it transparently.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"moxxy",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"sherpa-onnx-node": "^1.13.8",
|
|
51
51
|
"@moxxy/model-fetch": "0.1.0",
|
|
52
|
-
"@moxxy/sdk": "0.
|
|
52
|
+
"@moxxy/sdk": "0.42.1"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^22.
|
|
55
|
+
"@types/node": "^22.20.5",
|
|
56
56
|
"typescript": "^6.0.3",
|
|
57
|
-
"vitest": "^
|
|
58
|
-
"@moxxy/
|
|
59
|
-
"@moxxy/
|
|
57
|
+
"vitest": "^5.0.3",
|
|
58
|
+
"@moxxy/tsconfig": "0.0.0",
|
|
59
|
+
"@moxxy/vitest-preset": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsc -p tsconfig.json",
|
package/src/live.test.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { mkdtemp
|
|
1
|
+
import { mkdtemp } from 'node:fs/promises';
|
|
2
2
|
import { tmpdir } from 'node:os';
|
|
3
3
|
import path from 'node:path';
|
|
4
4
|
import { fileURLToPath } from 'node:url';
|
|
@@ -6,6 +6,7 @@ import { fileURLToPath } from 'node:url';
|
|
|
6
6
|
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
|
|
7
7
|
|
|
8
8
|
import { createLocalPiperSynthesizer } from './local-tts.js';
|
|
9
|
+
import { removeDir } from '@moxxy/vitest-preset/fs';
|
|
9
10
|
|
|
10
11
|
// vitest runs the TypeScript SOURCE, so `import.meta.url` here is src/. The
|
|
11
12
|
// sidecar must be the COMPILED entry, so point at dist/sidecar.js (build first:
|
|
@@ -27,7 +28,7 @@ beforeAll(async () => {
|
|
|
27
28
|
modelsDir = await mkdtemp(path.join(tmpdir(), 'tts-local-live-'));
|
|
28
29
|
});
|
|
29
30
|
afterAll(async () => {
|
|
30
|
-
if (modelsDir) await
|
|
31
|
+
if (modelsDir) await removeDir(modelsDir);
|
|
31
32
|
});
|
|
32
33
|
|
|
33
34
|
describe.skipIf(!LIVE)('local TTS (live, real download + native sidecar)', () => {
|