@realtimex/sdk 1.2.1 → 1.2.2
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1034,7 +1034,7 @@ var TTSModule = class {
|
|
|
1034
1034
|
if (!response.ok) {
|
|
1035
1035
|
const data = await response.json();
|
|
1036
1036
|
if (data.code === "PERMISSION_REQUIRED") {
|
|
1037
|
-
const permission = data.permission || "tts.
|
|
1037
|
+
const permission = data.permission || "tts.generate";
|
|
1038
1038
|
const granted = await this.requestPermission(permission);
|
|
1039
1039
|
if (granted) {
|
|
1040
1040
|
return this.request(method, endpoint, body, isStream);
|
package/dist/index.mjs
CHANGED
|
@@ -986,7 +986,7 @@ var TTSModule = class {
|
|
|
986
986
|
if (!response.ok) {
|
|
987
987
|
const data = await response.json();
|
|
988
988
|
if (data.code === "PERMISSION_REQUIRED") {
|
|
989
|
-
const permission = data.permission || "tts.
|
|
989
|
+
const permission = data.permission || "tts.generate";
|
|
990
990
|
const granted = await this.requestPermission(permission);
|
|
991
991
|
if (granted) {
|
|
992
992
|
return this.request(method, endpoint, body, isStream);
|