Repository navigation
AnyAudio v0.4.2
这一版修复唱歌环境安装与声库安装报 tar exited with code 1 的问题:子进程输出不再通过管道捕获,避开 DSH 沙箱限制;失败时保留完整错误原因。
中文
修复
- 唱歌安装共用的子进程函数改为把 stdout/stderr 重定向到临时文件,不再用管道捕获。DSH 沙箱会拦截管道捕获子进程输出(EPERM),导致 tar 一启动就被拒、却只报
code 1;改用临时文件后不再触发该限制。 - 子进程失败时,把 tar/pip 写到 stderr 的完整原因拼进错误信息(例如
tar exited with code 1: <真实原因>),不再只有一句退出码掩盖真实原因。 - 改动只涉及唱歌安装,未触碰 ffmpeg、edge TTS、显卡组件等其它子进程调用。
安装
dsh plugin --profile desktop add dsh-any-audio@0.4.2装完重启 DSH。需要 Node.js 22.19+(22.x)或 24+。
English
Fixes
- The shared child-process helper for singing installs now redirects stdout/stderr to temporary files instead of capturing them through pipes. DSH's sandbox blocks pipe-captured child output (EPERM), which made tar fail instantly while only reporting
code 1; temp files avoid that path. - On failure, the full stderr from tar/pip is now included in the error (for example
tar exited with code 1: <real cause>) instead of a bare exit code hiding the real reason. - The change is limited to singing installs; ffmpeg, edge TTS and the GPU component are untouched.
Install
dsh plugin --profile desktop add dsh-any-audio@0.4.2Restart DSH afterwards. Requires Node.js 22.19+ (22.x) or 24+.
- Source and documentation: https://github.com/cloudoyx/any-audio
- npm: https://www.npmjs.com/package/dsh-any-audio
- MIT licensed.