@oxiaom/adoremix 1.0.68 → 1.0.69
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 +1 -1
- package/src/cli.js +4 -15
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -498,7 +498,7 @@ function buildProgram() {
|
|
|
498
498
|
|
|
499
499
|
audio8
|
|
500
500
|
.command('status')
|
|
501
|
-
.description('检查本机 Audio8 TTS 服务健康(GET /
|
|
501
|
+
.description('检查本机 Audio8 TTS 服务健康(GET /api/health)')
|
|
502
502
|
.option('--url <url>', '自定义 base_url,默认 http://127.0.0.1:8024')
|
|
503
503
|
.action(async (opts) => {
|
|
504
504
|
const mod = require('../tts/providers/audio8');
|
|
@@ -510,21 +510,10 @@ function buildProgram() {
|
|
|
510
510
|
}
|
|
511
511
|
});
|
|
512
512
|
|
|
513
|
-
audio8
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
.option('--registration', '同时下载声音克隆注册子模型(约 +396MB,基础 TTS 不需要)')
|
|
517
|
-
.action(async (url, opts) => {
|
|
518
|
-
const mod = require('../tts/providers/audio8');
|
|
519
|
-
try {
|
|
520
|
-
process.exitCode = await mod.fetchModel({ url, registration: !!opts.registration });
|
|
521
|
-
} catch (e) {
|
|
522
|
-
logger.error(e.message);
|
|
523
|
-
process.exitCode = 1;
|
|
524
|
-
}
|
|
525
|
-
});
|
|
513
|
+
// 顶级命令(不依赖 audio8 group)。
|
|
514
|
+
// 注:不能挂到 audio8 group 下——commander 在 group 之后又注册了其它 group 时,
|
|
515
|
+
// 该子命令会被静默丢弃(实测 audio8 fetch-model 不出现在 audio8 --help 里)。
|
|
526
516
|
|
|
527
|
-
// 顶级命令(不依赖 audio8 group)
|
|
528
517
|
program
|
|
529
518
|
.command('audio8-fetch-model [url]')
|
|
530
519
|
.description('下载 Audio8 TTS 模型(单独使用,不依赖 audio8 install)')
|