@suitecut/audio-supertonic 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 +23 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/package.json +59 -0
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Supertonic audio plugin
|
|
2
|
+
|
|
3
|
+
Install only this adapter when SuiteCut narration uses a Supertonic model.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install --save-dev @suitecut/audio-supertonic
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
{
|
|
11
|
+
provider: 'supertonic',
|
|
12
|
+
module: '@suitecut/audio-supertonic',
|
|
13
|
+
options: {
|
|
14
|
+
durationPredictor: './models/supertonic/duration-predictor.onnx',
|
|
15
|
+
textEncoder: './models/supertonic/text-encoder.onnx',
|
|
16
|
+
vectorEstimator: './models/supertonic/vector-estimator.onnx',
|
|
17
|
+
vocoder: './models/supertonic/vocoder.onnx',
|
|
18
|
+
ttsJson: './models/supertonic/tts.json',
|
|
19
|
+
unicodeIndexer: './models/supertonic/unicode-indexer.json',
|
|
20
|
+
voiceStyle: './models/supertonic/voice-style.json',
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
```
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAkBA,wBAcE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createSherpaAudioPlugin, sherpaCommonOptionsShape, sherpaFilePathSchema, } from '@suitecut/audio-sherpa-core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
const OptionsSchema = z.strictObject({
|
|
4
|
+
...sherpaCommonOptionsShape,
|
|
5
|
+
durationPredictor: sherpaFilePathSchema,
|
|
6
|
+
textEncoder: sherpaFilePathSchema,
|
|
7
|
+
vectorEstimator: sherpaFilePathSchema,
|
|
8
|
+
vocoder: sherpaFilePathSchema,
|
|
9
|
+
ttsJson: sherpaFilePathSchema,
|
|
10
|
+
unicodeIndexer: sherpaFilePathSchema,
|
|
11
|
+
voiceStyle: sherpaFilePathSchema,
|
|
12
|
+
});
|
|
13
|
+
export default createSherpaAudioPlugin({
|
|
14
|
+
family: 'supertonic',
|
|
15
|
+
schema: OptionsSchema,
|
|
16
|
+
model: (options) => ({
|
|
17
|
+
supertonic: {
|
|
18
|
+
durationPredictor: options.durationPredictor,
|
|
19
|
+
textEncoder: options.textEncoder,
|
|
20
|
+
vectorEstimator: options.vectorEstimator,
|
|
21
|
+
vocoder: options.vocoder,
|
|
22
|
+
ttsJson: options.ttsJson,
|
|
23
|
+
unicodeIndexer: options.unicodeIndexer,
|
|
24
|
+
voiceStyle: options.voiceStyle,
|
|
25
|
+
},
|
|
26
|
+
}),
|
|
27
|
+
});
|
|
28
|
+
//# 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,GACrB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,aAAa,GAAG,CAAC,CAAC,YAAY,CAAC;IACnC,GAAG,wBAAwB;IAC3B,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,oBAAoB;IACjC,eAAe,EAAE,oBAAoB;IACrC,OAAO,EAAE,oBAAoB;IAC7B,OAAO,EAAE,oBAAoB;IAC7B,cAAc,EAAE,oBAAoB;IACpC,UAAU,EAAE,oBAAoB;CACjC,CAAC,CAAA;AAEF,eAAe,uBAAuB,CAAC;IACrC,MAAM,EAAE,YAAY;IACpB,MAAM,EAAE,aAAa;IACrB,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACnB,UAAU,EAAE;YACV,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;YAC5C,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,eAAe,EAAE,OAAO,CAAC,eAAe;YACxC,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,cAAc,EAAE,OAAO,CAAC,cAAc;YACtC,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF,CAAC;CACH,CAAC,CAAA"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@suitecut/audio-supertonic",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Supertonic WebAssembly text-to-speech plugin for SuiteCut.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"suitecut",
|
|
7
|
+
"supertonic",
|
|
8
|
+
"webassembly",
|
|
9
|
+
"text-to-speech"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/skyaara/suitecut/tree/main/plugins/supertonic",
|
|
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/supertonic"
|
|
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
|
+
}
|