reelforge 0.5.1 → 0.5.2
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/dist/commands/tts.js +38 -7
- package/package.json +1 -1
package/dist/commands/tts.js
CHANGED
|
@@ -67,14 +67,45 @@ export function registerTts(program) {
|
|
|
67
67
|
});
|
|
68
68
|
tts
|
|
69
69
|
.command("voices")
|
|
70
|
-
.description("List
|
|
70
|
+
.description("List TTS voices: Edge (built-in 25) or RelayX (live, per-model)")
|
|
71
71
|
.helpOption("-h, --help", "show help")
|
|
72
|
-
.option("--
|
|
72
|
+
.option("--provider <p>", "edge (default) | relayx", "edge")
|
|
73
|
+
.option("--model <id>", "RelayX TTS model id (required when --provider=relayx), e.g. vox/index-tts-2")
|
|
74
|
+
.option("--locale <prefix>", "Edge only: filter by locale prefix, e.g. zh, en-US")
|
|
75
|
+
.option("--refresh", "RelayX only: bypass the 5-minute server-side cache")
|
|
76
|
+
.addHelpText("after", [
|
|
77
|
+
"",
|
|
78
|
+
"Examples:",
|
|
79
|
+
" reelforge tts voices # Edge 25 built-in",
|
|
80
|
+
" reelforge tts voices --locale zh # Edge filtered",
|
|
81
|
+
" reelforge tts voices --provider relayx --model vox/index-tts-2 # 149 vox voices",
|
|
82
|
+
" reelforge tts voices --provider relayx --model minimax/speech-2.6-hd",
|
|
83
|
+
].join("\n"))
|
|
73
84
|
.action(async (opts) => {
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
voices = voices
|
|
78
|
-
|
|
85
|
+
const provider = opts.provider || "edge";
|
|
86
|
+
if (provider === "edge") {
|
|
87
|
+
const r = await get("/api/v1/tts/voices?provider=edge");
|
|
88
|
+
let voices = r.voices;
|
|
89
|
+
if (opts.locale)
|
|
90
|
+
voices = voices.filter((v) => v.locale.startsWith(opts.locale));
|
|
91
|
+
table(voices);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (provider === "relayx") {
|
|
95
|
+
if (!opts.model)
|
|
96
|
+
throw new Error("--model is required when --provider=relayx (e.g. vox/index-tts-2)");
|
|
97
|
+
const qs = new URLSearchParams({ provider: "relayx", model: opts.model });
|
|
98
|
+
if (opts.refresh)
|
|
99
|
+
qs.set("refresh", "1");
|
|
100
|
+
const r = await get(`/api/v1/tts/voices?${qs.toString()}`);
|
|
101
|
+
table(r.voices.map((v) => ({
|
|
102
|
+
id: v.id,
|
|
103
|
+
label: v.label,
|
|
104
|
+
featured: v.featured ? "★" : "",
|
|
105
|
+
demo_url: v.demo_url ?? "",
|
|
106
|
+
})));
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
throw new Error(`Unknown --provider: ${provider} (expected "edge" or "relayx")`);
|
|
79
110
|
});
|
|
80
111
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reelforge",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "CLI for ReelForge Studio — AI video engine. Installs as both `reelforge` and the short alias `rf`. Every REST API exposed as a command, with --help on every level.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|