@oxiaom/adoremix 1.0.67 → 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 +6 -17
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)')
|
|
@@ -541,7 +530,7 @@ function buildProgram() {
|
|
|
541
530
|
|
|
542
531
|
const mp3srv = program
|
|
543
532
|
.command('mp3server')
|
|
544
|
-
.description('MP3Server 选装:TCP 分块推流 MP3
|
|
533
|
+
.description('MP3Server 选装:TCP 分块推流 MP3 文件(默认端口 6665、docroot=工作目录/etc/docroot;改端口/目录用 adoremix config set MP3Server.port|docroot 后 systemctl restart adoremix-mp3server)');
|
|
545
534
|
|
|
546
535
|
mp3srv
|
|
547
536
|
.command('install')
|
|
@@ -573,7 +562,7 @@ function buildProgram() {
|
|
|
573
562
|
|
|
574
563
|
mp3srv
|
|
575
564
|
.command('status')
|
|
576
|
-
.description('检查 MP3Server 服务/端口/docroot
|
|
565
|
+
.description('检查 MP3Server 服务/端口/docroot 状态(端口与目录来自 config.ini [MP3Server])')
|
|
577
566
|
.option('--workdir <path>')
|
|
578
567
|
.action(async (opts) => {
|
|
579
568
|
const mod = require('./mp3server');
|