open-agents-ai 0.138.59 → 0.138.60
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/dist/index.js +44 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -40439,22 +40439,55 @@ Error: ${err2 instanceof Error ? err2.message : String(err2)}`);
|
|
|
40439
40439
|
}
|
|
40440
40440
|
renderInfo(" Installing LuxTTS dependencies...");
|
|
40441
40441
|
const pipCmd = JSON.stringify(venvPy);
|
|
40442
|
-
const
|
|
40443
|
-
|
|
40444
|
-
|
|
40445
|
-
|
|
40446
|
-
|
|
40447
|
-
|
|
40442
|
+
const isArm = process.arch === "arm64" || process.arch === "arm";
|
|
40443
|
+
const coreDeps = isArm ? `lhotse huggingface_hub safetensors pydub librosa "transformers<=4.57.6" inflect numpy "setuptools<81"` : `lhotse huggingface_hub safetensors pydub onnxruntime librosa "transformers<=4.57.6" inflect numpy vocos "setuptools<81"`;
|
|
40444
|
+
if (isArm) {
|
|
40445
|
+
renderInfo(" ARM device detected \u2014 skipping onnxruntime (no ARM wheels available); vocos install is non-fatal.");
|
|
40446
|
+
}
|
|
40447
|
+
const installSteps = [
|
|
40448
|
+
{
|
|
40449
|
+
cmd: `${pipCmd} -m pip install --quiet ${coreDeps}`,
|
|
40450
|
+
fatal: true,
|
|
40451
|
+
label: "core LuxTTS deps"
|
|
40452
|
+
},
|
|
40453
|
+
// On ARM, vocos is installed separately as non-fatal (may lack prebuilt wheels).
|
|
40454
|
+
// On x86_64 it is already included in coreDeps above and this step is skipped.
|
|
40455
|
+
...isArm ? [{
|
|
40456
|
+
cmd: `${pipCmd} -m pip install --quiet vocos`,
|
|
40457
|
+
fatal: false,
|
|
40458
|
+
label: "vocos"
|
|
40459
|
+
}] : [],
|
|
40460
|
+
{
|
|
40461
|
+
cmd: `${pipCmd} -m pip install --quiet piper-phonemize --find-links https://k2-fsa.github.io/icefall/piper_phonemize.html`,
|
|
40462
|
+
fatal: false,
|
|
40463
|
+
label: "piper-phonemize"
|
|
40464
|
+
},
|
|
40465
|
+
{
|
|
40466
|
+
cmd: `${pipCmd} -m pip install --quiet jieba pypinyin cn2an`,
|
|
40467
|
+
fatal: true,
|
|
40468
|
+
label: "Chinese text processing deps"
|
|
40469
|
+
},
|
|
40470
|
+
{
|
|
40471
|
+
cmd: `${pipCmd} -m pip install --quiet "git+https://github.com/ysharma3501/LinaCodec.git"`,
|
|
40472
|
+
fatal: false,
|
|
40473
|
+
label: "LinaCodec"
|
|
40474
|
+
},
|
|
40475
|
+
{
|
|
40476
|
+
cmd: `${pipCmd} -m pip install --quiet -e ${JSON.stringify(repoDir)}`,
|
|
40477
|
+
fatal: true,
|
|
40478
|
+
label: "LuxTTS (editable install)"
|
|
40479
|
+
}
|
|
40448
40480
|
];
|
|
40449
|
-
for (const
|
|
40481
|
+
for (const step of installSteps) {
|
|
40450
40482
|
try {
|
|
40451
|
-
await this.asyncShell(cmd, 3e5);
|
|
40483
|
+
await this.asyncShell(step.cmd, 3e5);
|
|
40452
40484
|
} catch (err) {
|
|
40453
40485
|
const msg = err instanceof Error ? err.message : String(err);
|
|
40454
|
-
if (
|
|
40455
|
-
|
|
40486
|
+
if (!step.fatal) {
|
|
40487
|
+
const armNote = isArm && (step.label === "piper-phonemize" || step.label === "vocos") ? " (expected on ARM \u2014 no prebuilt wheels)" : "";
|
|
40488
|
+
renderWarning(` Non-critical install warning (${step.label})${armNote}: ${msg.slice(0, 120)}`);
|
|
40456
40489
|
} else {
|
|
40457
|
-
throw new Error(`Failed to install LuxTTS dependencies: ${msg}`);
|
|
40490
|
+
throw new Error(`Failed to install LuxTTS dependencies (${step.label}): ${msg}`);
|
|
40458
40491
|
}
|
|
40459
40492
|
}
|
|
40460
40493
|
}
|
package/package.json
CHANGED