open-agents-ai 0.71.9 → 0.72.0
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 +4 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31284,7 +31284,6 @@ var init_voice = __esm({
|
|
|
31284
31284
|
if (this.ort)
|
|
31285
31285
|
return;
|
|
31286
31286
|
const arch = process.arch;
|
|
31287
|
-
const isArmLinux = (arch === "arm64" || arch === "arm") && process.platform === "linux";
|
|
31288
31287
|
mkdirSync11(voiceDir(), { recursive: true });
|
|
31289
31288
|
const pkgPath = join38(voiceDir(), "package.json");
|
|
31290
31289
|
const expectedDeps = {
|
|
@@ -31312,9 +31311,6 @@ var init_voice = __esm({
|
|
|
31312
31311
|
try {
|
|
31313
31312
|
this.ort = voiceRequire("onnxruntime-node");
|
|
31314
31313
|
} catch {
|
|
31315
|
-
if (isArmLinux) {
|
|
31316
|
-
throw new Error(`Voice synthesis (onnxruntime-node) is not available on ARM Linux (${arch}). Voice feedback is disabled on this architecture.`);
|
|
31317
|
-
}
|
|
31318
31314
|
renderInfo("Installing ONNX runtime for voice synthesis...");
|
|
31319
31315
|
try {
|
|
31320
31316
|
execSync26("npm install --no-audit --no-fund", {
|
|
@@ -31324,8 +31320,8 @@ var init_voice = __esm({
|
|
|
31324
31320
|
});
|
|
31325
31321
|
this.ort = voiceRequire("onnxruntime-node");
|
|
31326
31322
|
} catch (err) {
|
|
31327
|
-
const
|
|
31328
|
-
throw new Error(`Failed to install voice dependencies.${
|
|
31323
|
+
const archHint = arch !== "x64" ? ` onnxruntime-node may not have prebuilt binaries for ${process.platform}-${arch}.` : "";
|
|
31324
|
+
throw new Error(`Failed to install voice dependencies.${archHint} Try manually: cd ${voiceDir()} && npm install
|
|
31329
31325
|
Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
31330
31326
|
}
|
|
31331
31327
|
}
|
|
@@ -31333,9 +31329,6 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
|
31333
31329
|
const phonemizerMod = voiceRequire("phonemizer");
|
|
31334
31330
|
this.phonemizeFn = phonemizerMod.phonemize ?? phonemizerMod.default?.phonemize ?? phonemizerMod;
|
|
31335
31331
|
} catch {
|
|
31336
|
-
if (isArmLinux) {
|
|
31337
|
-
throw new Error(`Phonemizer (espeak-ng WASM) is not available on ARM Linux (${arch}). Voice feedback is disabled on this architecture.`);
|
|
31338
|
-
}
|
|
31339
31332
|
renderInfo("Installing phonemizer for voice synthesis...");
|
|
31340
31333
|
try {
|
|
31341
31334
|
execSync26("npm install --no-audit --no-fund", {
|
|
@@ -31346,8 +31339,8 @@ Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
|
31346
31339
|
const phonemizerMod = voiceRequire("phonemizer");
|
|
31347
31340
|
this.phonemizeFn = phonemizerMod.phonemize ?? phonemizerMod.default?.phonemize ?? phonemizerMod;
|
|
31348
31341
|
} catch (err) {
|
|
31349
|
-
const
|
|
31350
|
-
throw new Error(`Failed to install phonemizer.${
|
|
31342
|
+
const archHint = arch !== "x64" ? ` phonemizer WASM may not support ${process.platform}-${arch}.` : "";
|
|
31343
|
+
throw new Error(`Failed to install phonemizer.${archHint} Try manually: cd ${voiceDir()} && npm install
|
|
31351
31344
|
Error: ${err instanceof Error ? err.message : String(err)}`);
|
|
31352
31345
|
}
|
|
31353
31346
|
}
|
package/package.json
CHANGED