@pie-players/pie-tool-text-to-speech 0.3.21 → 0.3.23
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.
|
@@ -3053,7 +3053,7 @@ var Va = class {
|
|
|
3053
3053
|
...t,
|
|
3054
3054
|
...r
|
|
3055
3055
|
});
|
|
3056
|
-
}, Cr = (e) => e.backend || "browser", ro = (e, t) =>
|
|
3056
|
+
}, Cr = (e) => e.backend || "browser", ro = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, no = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), tl = (e) => {
|
|
3057
3057
|
const t = Cr(e), r = ro(e, t), n = no(e, r);
|
|
3058
3058
|
return {
|
|
3059
3059
|
voice: e.defaultVoice,
|
|
@@ -3080,6 +3080,7 @@ var Va = class {
|
|
|
3080
3080
|
};
|
|
3081
3081
|
}, kt = /* @__PURE__ */ new Map(), rl = "__pieToolElementUnmount", Fn = Object.freeze([1.5, 2]), nl = (e) => {
|
|
3082
3082
|
if (!Array.isArray(e)) return [...Fn];
|
|
3083
|
+
if (e.length === 0) return [];
|
|
3083
3084
|
const t = /* @__PURE__ */ new Set();
|
|
3084
3085
|
for (const r of e) {
|
|
3085
3086
|
if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-players/pie-tool-text-to-speech",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Text-to-Speech tool for PIE assessment player with word-level highlighting",
|
|
6
6
|
"repository": {
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"unpkg": "./dist/tool-text-to-speech.js",
|
|
36
36
|
"jsdelivr": "./dist/tool-text-to-speech.js",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@pie-players/pie-assessment-toolkit": "0.3.
|
|
39
|
-
"@pie-players/pie-players-shared": "0.3.
|
|
38
|
+
"@pie-players/pie-assessment-toolkit": "0.3.23",
|
|
39
|
+
"@pie-players/pie-players-shared": "0.3.23"
|
|
40
40
|
},
|
|
41
41
|
"types": "./dist/index.d.ts",
|
|
42
42
|
"scripts": {
|