@suitecut/audio-zipvoice 1.0.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.
- package/README.md +20 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -0
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ZipVoice audio plugin
|
|
2
|
+
|
|
3
|
+
Install only this adapter when SuiteCut narration uses a ZipVoice model.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install --save-dev @suitecut/audio-zipvoice
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
{
|
|
11
|
+
provider: 'zipvoice',
|
|
12
|
+
module: '@suitecut/audio-zipvoice',
|
|
13
|
+
options: {
|
|
14
|
+
tokens: './models/zipvoice/tokens.txt',
|
|
15
|
+
encoder: './models/zipvoice/encoder.onnx',
|
|
16
|
+
decoder: './models/zipvoice/decoder.onnx',
|
|
17
|
+
vocoder: './models/zipvoice/vocoder.onnx',
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAsBA,wBAiBE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createSherpaAudioPlugin, sherpaCommonOptionsShape, sherpaFilePathSchema, sherpaPositiveScaleSchema, } from '@suitecut/audio-sherpa-core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
const OptionsSchema = z.strictObject({
|
|
4
|
+
...sherpaCommonOptionsShape,
|
|
5
|
+
tokens: sherpaFilePathSchema,
|
|
6
|
+
encoder: sherpaFilePathSchema,
|
|
7
|
+
decoder: sherpaFilePathSchema,
|
|
8
|
+
vocoder: sherpaFilePathSchema,
|
|
9
|
+
dataDir: sherpaFilePathSchema.exactOptional(),
|
|
10
|
+
lexicon: sherpaFilePathSchema.exactOptional(),
|
|
11
|
+
featScale: sherpaPositiveScaleSchema.exactOptional(),
|
|
12
|
+
tShift: sherpaPositiveScaleSchema.exactOptional(),
|
|
13
|
+
targetRms: sherpaPositiveScaleSchema.exactOptional(),
|
|
14
|
+
guidanceScale: sherpaPositiveScaleSchema.exactOptional(),
|
|
15
|
+
});
|
|
16
|
+
export default createSherpaAudioPlugin({
|
|
17
|
+
family: 'zipvoice',
|
|
18
|
+
schema: OptionsSchema,
|
|
19
|
+
model: (options) => ({
|
|
20
|
+
zipvoice: {
|
|
21
|
+
tokens: options.tokens,
|
|
22
|
+
encoder: options.encoder,
|
|
23
|
+
decoder: options.decoder,
|
|
24
|
+
vocoder: options.vocoder,
|
|
25
|
+
...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),
|
|
26
|
+
...(options.lexicon === undefined ? {} : { lexicon: options.lexicon }),
|
|
27
|
+
...(options.featScale === undefined ? {} : { featScale: options.featScale }),
|
|
28
|
+
...(options.tShift === undefined ? {} : { tShift: options.tShift }),
|
|
29
|
+
...(options.targetRms === undefined ? {} : { targetRMS: options.targetRms }),
|
|
30
|
+
...(options.guidanceScale === undefined ? {} : { guidanceScale: options.guidanceScale }),
|
|
31
|
+
},
|
|
32
|
+
}),
|
|
33
|
+
});
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IACnC,GAAG,wBAAwB;IAC3B,MAAM,E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ACnE,GAAG,CAAC,OAAO,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,SAAS,EAAE,CAAC;YAC5E,GAAG,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,OAAO,CAAC,aAAa,EAAE,CAAC;SACzF;KACF,CAAC;CACH,CAAC,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@suitecut/audio-zipvoice",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "ZipVoice WebAssembly text-to-speech plugin for SuiteCut.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"suitecut",
|
|
7
|
+
"zipvoice",
|
|
8
|
+
"webassembly",
|
|
9
|
+
"text-to-speech"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/skyaara/suitecut/tree/main/plugins/zipvoice",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/skyaara/suitecut/issues"
|
|
14
|
+
},
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/skyaara/suitecut.git",
|
|
18
|
+
"directory": "plugins/zipvoice"
|
|
19
|
+
},
|
|
20
|
+
"type": "module",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"sideEffects": false,
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"default": "./dist/index.js"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"README.md"
|
|
34
|
+
],
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "pnpm clean:dist && tsc -p tsconfig.json",
|
|
40
|
+
"check": "tsc --noEmit -p tsconfig.json",
|
|
41
|
+
"clean:dist": "node ../../scripts/clean-plugin-dist.mjs",
|
|
42
|
+
"prepack": "pnpm build"
|
|
43
|
+
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"suitecut": ">=1.0.0 <2"
|
|
46
|
+
},
|
|
47
|
+
"peerDependenciesMeta": {
|
|
48
|
+
"suitecut": {
|
|
49
|
+
"optional": true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@suitecut/audio-sherpa-core": "^1.0.0",
|
|
54
|
+
"zod": "^4.4.3"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"node": ">=22.0.0"
|
|
58
|
+
}
|
|
59
|
+
}
|