@oxiaom/adoremix 1.0.20 → 1.0.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxiaom/adoremix",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "AdoreMix broadcast server - cross-platform installer, runner and service manager",
5
5
  "bin": {
6
6
  "adoremix": "./bin/adoremix.js"
@@ -17,7 +17,9 @@ const svc = new Service({
17
17
  description: SVC_DESC,
18
18
  script: CLI,
19
19
  execPath: NODE,
20
- args: ['start', '--daemon', '--workdir', WORKDIR],
20
+ // 用前台模式(不加 --daemon):node 持续运行作为服务主进程,winsw 才能正确跟踪/重启/停止。
21
+ // daemon 模式 node 会 unref 后退出,winsw 认为服务停了(跟 systemd 同 bug)。
22
+ args: ['start', '--workdir', WORKDIR],
21
23
  cwd: WORKDIR,
22
24
  env: [{
23
25
  name: 'NODE_ENV',
@@ -43,10 +43,10 @@ const VOICES = {
43
43
  yunfeng: 'zh-CN-YunxiNeural',
44
44
  yunhao: 'zh-CN-YunxiNeural',
45
45
  yunxiang: 'zh-CN-YunjianNeural',
46
- // 讯飞原生发音人(Qt/WebUI 可能直接传讯飞名 aisxxx)→ 就近映射到 edge 有效 voice
47
- aisjiuxu: 'zh-CN-YunxiNeural', // 许久(男)→ 云希
48
- aisbabyxu: 'zh-CN-YunxiaNeural', // 男童 → 云夏
49
- aisxuxin: 'zh-CN-YunxiNeural' // 晓旭(男)→ 云希
46
+ // 讯飞原生发音人(WebUI 音色选项:小燕/许久/小萍/小婧)→ 映射到 edge 有效 voice
47
+ aisjiuxu: 'zh-CN-YunxiNeural', // 许久(男)→ 云希
48
+ aisxping: 'zh-CN-XiaoxiaoNeural', // 小萍(女)→ 晓晓
49
+ aisjinger: 'zh-CN-XiaoyiNeural' // 小婧(女)→ 晓伊
50
50
  };
51
51
 
52
52
  function findPython() {