@oxiaom/adoremix 1.0.51 → 1.0.52
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/tts/providers/audio8.js +2 -2
package/package.json
CHANGED
package/tts/providers/audio8.js
CHANGED
|
@@ -208,7 +208,7 @@ function buildSystemdUnit() {
|
|
|
208
208
|
// Audio8 onnx_runtime 需要 numpy 2.4.3(需 Python ≥ 3.11),Ubuntu 22.04 默认 3.10
|
|
209
209
|
// 自动探测 python3.11(PPA/官方包),fallback 到 python3
|
|
210
210
|
const pyBin = (function(){
|
|
211
|
-
try { execFileSync('command -v python3.11', { stdio: 'pipe' }); return 'python3.11'; }
|
|
211
|
+
try { execFileSync('/bin/bash -c "command -v python3.11"', { stdio: 'pipe' }); return 'python3.11'; }
|
|
212
212
|
catch (e) { return 'python3'; }
|
|
213
213
|
})();
|
|
214
214
|
return `[Unit]
|
|
@@ -345,7 +345,7 @@ function install(opts) {
|
|
|
345
345
|
|
|
346
346
|
// venv + pip install(Python 3.11+,numpy 2.4.3 需要)
|
|
347
347
|
const pyBase = (function(){
|
|
348
|
-
try { execFileSync('command -v python3.11', { stdio: 'pipe' }); return 'python3.11'; }
|
|
348
|
+
try { execFileSync('/bin/bash -c "command -v python3.11"', { stdio: 'pipe' }); return 'python3.11'; }
|
|
349
349
|
catch (e) { return 'python3'; }
|
|
350
350
|
})();
|
|
351
351
|
try {
|