open-agents-ai 0.11.7 → 0.11.8
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 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10143,7 +10143,10 @@ var init_voice = __esm({
|
|
|
10143
10143
|
async synthesizeAndPlay(text) {
|
|
10144
10144
|
if (!this.session || !this.config || !this.ort)
|
|
10145
10145
|
return;
|
|
10146
|
-
const
|
|
10146
|
+
const cleaned = text.replace(/\*/g, "");
|
|
10147
|
+
if (!cleaned.trim())
|
|
10148
|
+
return;
|
|
10149
|
+
const textPhonemes = await this.textToPhonemes(cleaned);
|
|
10147
10150
|
const phonemeIds = this.phonemesToIds(textPhonemes);
|
|
10148
10151
|
if (phonemeIds.length === 0)
|
|
10149
10152
|
return;
|
package/package.json
CHANGED