speechstate 2.5.0 → 2.5.1-pr7-1-10752610863.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/README.org CHANGED
@@ -28,6 +28,7 @@
28
28
  interface Settings {
29
29
  locale?: string;
30
30
  azureCredentials: string | AzureCredentials;
31
+ azureRegion: string;
31
32
  azureLanguageCredentials?: AzureLanguageCredentials;
32
33
  asrDefaultCompleteTimeout?: number;
33
34
  asrDefaultNoInputTimeout?: number;
@@ -120,7 +121,7 @@ Example action:
120
121
  create SS
121
122
  DM -> SS : **spawn**
122
123
  DM -> SS : PREPARE
123
- SS -> DM : ASRTTS_READY
124
+ SS --> DM : ASRTTS_READY
124
125
  hnote across: Speech Synthesis
125
126
  DM -> SS : SPEAK
126
127
  activate SS
package/dist/asr.js CHANGED
@@ -87,7 +87,7 @@ exports.asrMachine = (0, xstate_1.setup)({
87
87
  // });
88
88
  asr.start();
89
89
  }),
90
- nluPromise: (0, xstate_1.fromPromise)(({ input }) => __awaiter(void 0, void 0, void 0, function* () {
90
+ nluPromise: (0, xstate_1.fromPromise)((_a) => __awaiter(void 0, [_a], void 0, function* ({ input }) {
91
91
  const response = yield fetch(new Request(input.endpoint, {
92
92
  method: "POST",
93
93
  headers: {
package/dist/getToken.js CHANGED
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.getToken = void 0;
13
13
  const xstate_1 = require("xstate");
14
- exports.getToken = (0, xstate_1.fromPromise)(({ input }) => __awaiter(void 0, void 0, void 0, function* () {
14
+ exports.getToken = (0, xstate_1.fromPromise)((_a) => __awaiter(void 0, [_a], void 0, function* ({ input }) {
15
15
  if (typeof input.credentials === "string") {
16
16
  return fetch(new Request(input.credentials)).then((data) => data.text());
17
17
  }