speechstate 2.6.0 → 2.6.1-pr7-1-11399376019.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 +4 -0
- package/dist/asr.d.ts +202 -251
- package/dist/asr.d.ts.map +1 -1
- package/dist/asr.js +202 -197
- package/dist/getToken.js +1 -1
- package/dist/speechstate.d.ts +3556 -2700
- package/dist/speechstate.d.ts.map +1 -1
- package/dist/speechstate.js +62 -29
- package/dist/tts.d.ts +140 -25
- package/dist/tts.d.ts.map +1 -1
- package/dist/tts.js +27 -9
- package/dist/types.d.ts +34 -11
- package/dist/types.d.ts.map +1 -1
- package/dist/visemes.d.ts +35 -0
- package/dist/visemes.d.ts.map +1 -0
- package/dist/visemes.js +147 -0
- package/package.json +10 -4
package/README.org
CHANGED
package/dist/asr.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { ASRContext, ASREvent, ASRInit, ASRPonyfillInput, Hypothesis, AzureLanguageCredentials } from "./types";
|
|
2
2
|
export declare const asrMachine: import("xstate").StateMachine<ASRContext, ASREvent, {
|
|
3
|
-
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").
|
|
3
|
+
[x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>> | import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
4
4
|
query: string;
|
|
5
|
+
locale: string;
|
|
5
6
|
}, import("xstate").EventObject>>;
|
|
6
7
|
}, import("xstate").Values<{
|
|
7
8
|
getToken: {
|
|
@@ -9,33 +10,40 @@ export declare const asrMachine: import("xstate").StateMachine<ASRContext, ASREv
|
|
|
9
10
|
logic: import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>;
|
|
10
11
|
id: string;
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
src: "
|
|
13
|
+
new_ponyfill: {
|
|
14
|
+
src: "new_ponyfill";
|
|
14
15
|
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
15
16
|
id: string;
|
|
16
17
|
};
|
|
17
|
-
recStart: {
|
|
18
|
-
src: "recStart";
|
|
19
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, any, import("xstate").EventObject>;
|
|
20
|
-
id: string;
|
|
21
|
-
};
|
|
22
18
|
nluPromise: {
|
|
23
19
|
src: "nluPromise";
|
|
24
20
|
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
25
21
|
query: string;
|
|
22
|
+
locale: string;
|
|
26
23
|
}, import("xstate").EventObject>;
|
|
27
24
|
id: string;
|
|
28
25
|
};
|
|
26
|
+
}>, import("xstate").Values<{
|
|
27
|
+
raise_noinput_after_timeout: {
|
|
28
|
+
type: "raise_noinput_after_timeout";
|
|
29
|
+
params: {};
|
|
30
|
+
};
|
|
31
|
+
cancel_noinput_timeout: {
|
|
32
|
+
type: "cancel_noinput_timeout";
|
|
33
|
+
params: {};
|
|
34
|
+
};
|
|
29
35
|
}>, {
|
|
30
|
-
type: "
|
|
36
|
+
type: "nlu_is_activated";
|
|
31
37
|
params: unknown;
|
|
32
|
-
},
|
|
33
|
-
Recognising
|
|
38
|
+
}, "noinputTimeout", "GetToken" | "Ready" | "Fail" | "NLURequest" | {
|
|
39
|
+
Recognising: "WaitForRecogniser" | "NoInput" | "InProgress" | "WaitToStop" | "Stopped" | {
|
|
40
|
+
Pausing: "Paused" | "WaitToPause" | "Continue";
|
|
41
|
+
};
|
|
34
42
|
}, string, ASRInit, {}, import("xstate").EventObject, import("xstate").MetaObject, {
|
|
35
43
|
readonly id: "asr";
|
|
36
44
|
readonly context: ({ input }: {
|
|
37
45
|
spawn: {
|
|
38
|
-
<TSrc extends "getToken" | "
|
|
46
|
+
<TSrc extends "getToken" | "new_ponyfill" | "nluPromise">(logic: TSrc, ...[options]: ({
|
|
39
47
|
src: "getToken";
|
|
40
48
|
logic: import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>;
|
|
41
49
|
id: string;
|
|
@@ -51,11 +59,11 @@ export declare const asrMachine: import("xstate").StateMachine<ASRContext, ASREv
|
|
|
51
59
|
input?: import("xstate").InputFrom<T["logic"]>;
|
|
52
60
|
syncSnapshot?: boolean;
|
|
53
61
|
} & { [K in import("xstate").RequiredActorOptions<T>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T>>> : never : never : never) | ({
|
|
54
|
-
src: "
|
|
62
|
+
src: "new_ponyfill";
|
|
55
63
|
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
56
64
|
id: string;
|
|
57
65
|
} extends infer T_1 ? T_1 extends {
|
|
58
|
-
src: "
|
|
66
|
+
src: "new_ponyfill";
|
|
59
67
|
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
60
68
|
id: string;
|
|
61
69
|
} ? T_1 extends {
|
|
@@ -66,59 +74,42 @@ export declare const asrMachine: import("xstate").StateMachine<ASRContext, ASREv
|
|
|
66
74
|
input?: import("xstate").InputFrom<T_1["logic"]>;
|
|
67
75
|
syncSnapshot?: boolean;
|
|
68
76
|
} & { [K_1 in import("xstate").RequiredActorOptions<T_1>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
69
|
-
src: "recStart";
|
|
70
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, any, import("xstate").EventObject>;
|
|
71
|
-
id: string;
|
|
72
|
-
} extends infer T_2 ? T_2 extends {
|
|
73
|
-
src: "recStart";
|
|
74
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, any, import("xstate").EventObject>;
|
|
75
|
-
id: string;
|
|
76
|
-
} ? T_2 extends {
|
|
77
|
-
src: TSrc;
|
|
78
|
-
} ? import("xstate").ConditionalRequired<[options?: {
|
|
79
|
-
id?: T_2["id"];
|
|
80
|
-
systemId?: string;
|
|
81
|
-
input?: import("xstate").InputFrom<T_2["logic"]>;
|
|
82
|
-
syncSnapshot?: boolean;
|
|
83
|
-
} & { [K_2 in import("xstate").RequiredActorOptions<T_2>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_2>>> : never : never : never) | ({
|
|
84
77
|
src: "nluPromise";
|
|
85
78
|
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
86
79
|
query: string;
|
|
80
|
+
locale: string;
|
|
87
81
|
}, import("xstate").EventObject>;
|
|
88
82
|
id: string;
|
|
89
|
-
} extends infer
|
|
83
|
+
} extends infer T_2 ? T_2 extends {
|
|
90
84
|
src: "nluPromise";
|
|
91
85
|
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
92
86
|
query: string;
|
|
87
|
+
locale: string;
|
|
93
88
|
}, import("xstate").EventObject>;
|
|
94
89
|
id: string;
|
|
95
|
-
} ?
|
|
90
|
+
} ? T_2 extends {
|
|
96
91
|
src: TSrc;
|
|
97
92
|
} ? import("xstate").ConditionalRequired<[options?: {
|
|
98
|
-
id?:
|
|
93
|
+
id?: T_2["id"];
|
|
99
94
|
systemId?: string;
|
|
100
|
-
input?: import("xstate").InputFrom<
|
|
95
|
+
input?: import("xstate").InputFrom<T_2["logic"]>;
|
|
101
96
|
syncSnapshot?: boolean;
|
|
102
|
-
} & { [
|
|
97
|
+
} & { [K_2 in import("xstate").RequiredActorOptions<T_2>]: unknown; }], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_2>>> : never : never : never)): import("xstate").ActorRefFromLogic<import("xstate").GetConcreteByKey<import("xstate").Values<{
|
|
103
98
|
getToken: {
|
|
104
99
|
src: "getToken";
|
|
105
100
|
logic: import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>;
|
|
106
101
|
id: string;
|
|
107
102
|
};
|
|
108
|
-
|
|
109
|
-
src: "
|
|
103
|
+
new_ponyfill: {
|
|
104
|
+
src: "new_ponyfill";
|
|
110
105
|
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
111
106
|
id: string;
|
|
112
107
|
};
|
|
113
|
-
recStart: {
|
|
114
|
-
src: "recStart";
|
|
115
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, any, import("xstate").EventObject>;
|
|
116
|
-
id: string;
|
|
117
|
-
};
|
|
118
108
|
nluPromise: {
|
|
119
109
|
src: "nluPromise";
|
|
120
110
|
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
121
111
|
query: string;
|
|
112
|
+
locale: string;
|
|
122
113
|
}, import("xstate").EventObject>;
|
|
123
114
|
id: string;
|
|
124
115
|
};
|
|
@@ -143,310 +134,270 @@ export declare const asrMachine: import("xstate").StateMachine<ASRContext, ASREv
|
|
|
143
134
|
speechRecognitionEndpointId: string;
|
|
144
135
|
};
|
|
145
136
|
readonly initial: "GetToken";
|
|
146
|
-
readonly on: {
|
|
147
|
-
readonly READY: {
|
|
148
|
-
readonly target: ".Ready";
|
|
149
|
-
readonly actions: readonly [import("xstate").ActionFunction<ASRContext, {
|
|
150
|
-
type: "READY";
|
|
151
|
-
value: {
|
|
152
|
-
wsaASR: import("./types").MySpeechRecognition;
|
|
153
|
-
wsaGrammarList: import("./types").MySpeechGrammarList;
|
|
154
|
-
};
|
|
155
|
-
}, ASREvent, undefined, import("xstate").Values<{
|
|
156
|
-
getToken: {
|
|
157
|
-
src: "getToken";
|
|
158
|
-
logic: import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>;
|
|
159
|
-
id: string;
|
|
160
|
-
};
|
|
161
|
-
ponyfill: {
|
|
162
|
-
src: "ponyfill";
|
|
163
|
-
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
164
|
-
id: string;
|
|
165
|
-
};
|
|
166
|
-
recStart: {
|
|
167
|
-
src: "recStart";
|
|
168
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, any, import("xstate").EventObject>;
|
|
169
|
-
id: string;
|
|
170
|
-
};
|
|
171
|
-
nluPromise: {
|
|
172
|
-
src: "nluPromise";
|
|
173
|
-
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
174
|
-
query: string;
|
|
175
|
-
}, import("xstate").EventObject>;
|
|
176
|
-
id: string;
|
|
177
|
-
};
|
|
178
|
-
}>, never, never, never, never>, import("xstate").ActionFunction<ASRContext, {
|
|
179
|
-
type: "READY";
|
|
180
|
-
value: {
|
|
181
|
-
wsaASR: import("./types").MySpeechRecognition;
|
|
182
|
-
wsaGrammarList: import("./types").MySpeechGrammarList;
|
|
183
|
-
};
|
|
184
|
-
}, ASREvent, undefined, never, never, never, never, never>];
|
|
185
|
-
};
|
|
186
|
-
};
|
|
187
137
|
readonly states: {
|
|
188
138
|
readonly Fail: {};
|
|
189
|
-
readonly
|
|
190
|
-
readonly
|
|
191
|
-
readonly
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
139
|
+
readonly GetToken: {
|
|
140
|
+
readonly invoke: {
|
|
141
|
+
readonly id: "getAuthorizationToken";
|
|
142
|
+
readonly input: ({ context }: {
|
|
143
|
+
context: any;
|
|
144
|
+
}) => {
|
|
145
|
+
credentials: any;
|
|
146
|
+
};
|
|
147
|
+
readonly src: "getToken";
|
|
148
|
+
readonly onDone: {
|
|
149
|
+
readonly target: "Ready";
|
|
150
|
+
readonly actions: readonly [import("xstate").ActionFunction<ASRContext, import("xstate").DoneActorEvent<string, string>, ASREvent, undefined, import("xstate").Values<{
|
|
197
151
|
getToken: {
|
|
198
152
|
src: "getToken";
|
|
199
153
|
logic: import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>;
|
|
200
154
|
id: string;
|
|
201
155
|
};
|
|
202
|
-
|
|
203
|
-
src: "
|
|
156
|
+
new_ponyfill: {
|
|
157
|
+
src: "new_ponyfill";
|
|
204
158
|
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
205
159
|
id: string;
|
|
206
160
|
};
|
|
207
|
-
recStart: {
|
|
208
|
-
src: "recStart";
|
|
209
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, any, import("xstate").EventObject>;
|
|
210
|
-
id: string;
|
|
211
|
-
};
|
|
212
161
|
nluPromise: {
|
|
213
162
|
src: "nluPromise";
|
|
214
163
|
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
215
164
|
query: string;
|
|
165
|
+
locale: string;
|
|
216
166
|
}, import("xstate").EventObject>;
|
|
217
167
|
id: string;
|
|
218
168
|
};
|
|
219
|
-
}>, never, never, never, never
|
|
169
|
+
}>, never, never, never, never>];
|
|
220
170
|
};
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
readonly initial: "WaitForRecogniser";
|
|
225
|
-
readonly invoke: {
|
|
226
|
-
readonly id: "recStart";
|
|
227
|
-
readonly input: ({ context }: {
|
|
228
|
-
context: any;
|
|
229
|
-
}) => {
|
|
230
|
-
wsaASR: any;
|
|
231
|
-
wsaGrammarList: any;
|
|
232
|
-
locale: any;
|
|
233
|
-
phrases: any;
|
|
171
|
+
readonly onError: {
|
|
172
|
+
readonly actions: ({ event }: import("xstate").ActionArgs<ASRContext, import("xstate").ErrorActorEvent<unknown, string>, ASREvent>) => void;
|
|
173
|
+
readonly target: "Fail";
|
|
234
174
|
};
|
|
235
|
-
readonly src: "recStart";
|
|
236
175
|
};
|
|
237
|
-
|
|
176
|
+
};
|
|
177
|
+
readonly Ready: {
|
|
178
|
+
readonly entry: import("xstate").ActionFunction<ASRContext, ASREvent, ASREvent, undefined, never, never, never, "noinputTimeout", never>;
|
|
238
179
|
readonly on: {
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
|
|
242
|
-
|
|
180
|
+
readonly START: {
|
|
181
|
+
readonly target: "Recognising";
|
|
182
|
+
readonly actions: import("xstate").ActionFunction<ASRContext, {
|
|
183
|
+
type: "START";
|
|
184
|
+
value?: import("./types").RecogniseParameters;
|
|
243
185
|
}, ASREvent, undefined, import("xstate").Values<{
|
|
244
186
|
getToken: {
|
|
245
187
|
src: "getToken";
|
|
246
188
|
logic: import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>;
|
|
247
189
|
id: string;
|
|
248
190
|
};
|
|
249
|
-
|
|
250
|
-
src: "
|
|
191
|
+
new_ponyfill: {
|
|
192
|
+
src: "new_ponyfill";
|
|
251
193
|
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
252
194
|
id: string;
|
|
253
195
|
};
|
|
254
|
-
recStart: {
|
|
255
|
-
src: "recStart";
|
|
256
|
-
logic: import("xstate").CallbackActorLogic<import("xstate").EventObject, any, import("xstate").EventObject>;
|
|
257
|
-
id: string;
|
|
258
|
-
};
|
|
259
196
|
nluPromise: {
|
|
260
197
|
src: "nluPromise";
|
|
261
198
|
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
262
199
|
query: string;
|
|
200
|
+
locale: string;
|
|
263
201
|
}, import("xstate").EventObject>;
|
|
264
202
|
id: string;
|
|
265
203
|
};
|
|
266
|
-
}>, never, never, never, never
|
|
267
|
-
type: "RESULT";
|
|
268
|
-
value: Hypothesis[];
|
|
269
|
-
}, undefined, ASREvent>];
|
|
270
|
-
readonly target: ".Match";
|
|
204
|
+
}>, never, never, never, never>;
|
|
271
205
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
readonly Recognising: {
|
|
209
|
+
readonly onDone: "Ready";
|
|
210
|
+
readonly invoke: {
|
|
211
|
+
readonly id: "asr";
|
|
212
|
+
readonly src: "new_ponyfill";
|
|
213
|
+
readonly input: ({ context }: {
|
|
214
|
+
context: ASRContext;
|
|
215
|
+
event: ASREvent;
|
|
216
|
+
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<ASRContext, ASREvent, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, ASREvent, import("xstate").AnyEventObject>;
|
|
217
|
+
}) => {
|
|
218
|
+
azureRegion: string;
|
|
219
|
+
audioContext: AudioContext;
|
|
220
|
+
azureAuthorizationToken: string;
|
|
221
|
+
locale: string;
|
|
222
|
+
speechRecognitionEndpointId: string;
|
|
223
|
+
completeTimeout: number;
|
|
224
|
+
hints: string[];
|
|
285
225
|
};
|
|
226
|
+
};
|
|
227
|
+
readonly on: {
|
|
286
228
|
readonly STOP: {
|
|
287
|
-
readonly target: "
|
|
229
|
+
readonly target: ".WaitToStop";
|
|
230
|
+
};
|
|
231
|
+
readonly CONTROL: {
|
|
232
|
+
readonly target: ".Pausing";
|
|
288
233
|
};
|
|
289
234
|
readonly NOINPUT: {
|
|
290
235
|
readonly actions: import("xstate").ActionFunction<ASRContext, {
|
|
291
236
|
type: "NOINPUT";
|
|
292
|
-
}, ASREvent, undefined, never, never, never,
|
|
293
|
-
readonly target: "
|
|
237
|
+
}, ASREvent, undefined, never, never, never, "noinputTimeout", never>;
|
|
238
|
+
readonly target: ".WaitToStop";
|
|
294
239
|
};
|
|
295
240
|
};
|
|
241
|
+
readonly initial: "WaitForRecogniser";
|
|
296
242
|
readonly states: {
|
|
297
243
|
readonly WaitForRecogniser: {
|
|
298
244
|
readonly on: {
|
|
299
245
|
readonly STARTED: {
|
|
300
246
|
readonly target: "NoInput";
|
|
301
|
-
readonly actions: readonly [import("xstate").ActionFunction<ASRContext, {
|
|
247
|
+
readonly actions: readonly [() => void, import("xstate").ActionFunction<ASRContext, {
|
|
302
248
|
type: "STARTED";
|
|
303
249
|
value: {
|
|
304
250
|
wsaASRinstance: import("./types").MySpeechRecognition;
|
|
305
251
|
};
|
|
252
|
+
}, ASREvent, undefined, never, never, never, "noinputTimeout", never>];
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
readonly NoInput: {
|
|
257
|
+
readonly entry: {
|
|
258
|
+
readonly type: "raise_noinput_after_timeout";
|
|
259
|
+
};
|
|
260
|
+
readonly on: {
|
|
261
|
+
readonly STARTSPEECH: {
|
|
262
|
+
readonly target: "InProgress";
|
|
263
|
+
readonly actions: import("xstate").CancelAction<ASRContext, {
|
|
264
|
+
type: "STARTSPEECH";
|
|
265
|
+
}, undefined, ASREvent>;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
readonly exit: {
|
|
269
|
+
readonly type: "cancel_noinput_timeout";
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
readonly InProgress: {
|
|
273
|
+
readonly entry: () => void;
|
|
274
|
+
readonly on: {
|
|
275
|
+
readonly RECOGNISED: readonly [{
|
|
276
|
+
readonly target: "#asr.NLURequest";
|
|
277
|
+
readonly guard: {
|
|
278
|
+
readonly type: "nlu_is_activated";
|
|
279
|
+
};
|
|
280
|
+
readonly actions: import("xstate").ActionFunction<ASRContext, {
|
|
281
|
+
type: "RECOGNISED";
|
|
282
|
+
value: Hypothesis[];
|
|
306
283
|
}, ASREvent, undefined, import("xstate").Values<{
|
|
307
284
|
getToken: {
|
|
308
285
|
src: "getToken";
|
|
309
286
|
logic: import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>;
|
|
310
287
|
id: string;
|
|
311
288
|
};
|
|
312
|
-
|
|
313
|
-
src: "
|
|
289
|
+
new_ponyfill: {
|
|
290
|
+
src: "new_ponyfill";
|
|
314
291
|
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
315
292
|
id: string;
|
|
316
293
|
};
|
|
317
|
-
|
|
318
|
-
src: "
|
|
319
|
-
logic: import("xstate").
|
|
294
|
+
nluPromise: {
|
|
295
|
+
src: "nluPromise";
|
|
296
|
+
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
297
|
+
query: string;
|
|
298
|
+
locale: string;
|
|
299
|
+
}, import("xstate").EventObject>;
|
|
300
|
+
id: string;
|
|
301
|
+
};
|
|
302
|
+
}>, never, never, never, never>;
|
|
303
|
+
}, {
|
|
304
|
+
readonly target: "WaitToStop";
|
|
305
|
+
readonly actions: readonly [import("xstate").ActionFunction<ASRContext, {
|
|
306
|
+
type: "RECOGNISED";
|
|
307
|
+
value: Hypothesis[];
|
|
308
|
+
}, ASREvent, undefined, import("xstate").Values<{
|
|
309
|
+
getToken: {
|
|
310
|
+
src: "getToken";
|
|
311
|
+
logic: import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>;
|
|
312
|
+
id: string;
|
|
313
|
+
};
|
|
314
|
+
new_ponyfill: {
|
|
315
|
+
src: "new_ponyfill";
|
|
316
|
+
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
320
317
|
id: string;
|
|
321
318
|
};
|
|
322
319
|
nluPromise: {
|
|
323
320
|
src: "nluPromise";
|
|
324
321
|
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
325
322
|
query: string;
|
|
323
|
+
locale: string;
|
|
326
324
|
}, import("xstate").EventObject>;
|
|
327
325
|
id: string;
|
|
328
326
|
};
|
|
329
327
|
}>, never, never, never, never>, import("xstate").ActionFunction<ASRContext, {
|
|
330
|
-
type: "
|
|
331
|
-
value:
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
}, ASREvent, undefined, never, never, never, never, never>];
|
|
335
|
-
};
|
|
328
|
+
type: "RECOGNISED";
|
|
329
|
+
value: Hypothesis[];
|
|
330
|
+
}, ASREvent, undefined, never, never, never, "noinputTimeout", never>];
|
|
331
|
+
}];
|
|
336
332
|
};
|
|
337
333
|
};
|
|
338
|
-
readonly
|
|
339
|
-
readonly entry:
|
|
334
|
+
readonly WaitToStop: {
|
|
335
|
+
readonly entry: import("xstate").ActionFunction<ASRContext, ASREvent, ASREvent, undefined, never, never, never, "noinputTimeout", never>;
|
|
340
336
|
readonly on: {
|
|
341
|
-
readonly
|
|
342
|
-
readonly
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
};
|
|
347
|
-
};
|
|
348
|
-
readonly exit: readonly [import("xstate").CancelAction<ASRContext, ASREvent, undefined, ASREvent>];
|
|
349
|
-
};
|
|
350
|
-
readonly InProgress: {
|
|
351
|
-
readonly entry: () => void;
|
|
352
|
-
};
|
|
353
|
-
readonly Match: {
|
|
354
|
-
readonly entry: readonly [({ context }: import("xstate").ActionArgs<ASRContext, ASREvent, ASREvent>) => void, import("xstate").ActionFunction<ASRContext, ASREvent, ASREvent, undefined, never, never, never, never, never>];
|
|
355
|
-
};
|
|
356
|
-
readonly NLURequest: {
|
|
357
|
-
readonly invoke: {
|
|
358
|
-
readonly src: "nluPromise";
|
|
359
|
-
readonly input: ({ context }: {
|
|
360
|
-
context: ASRContext;
|
|
361
|
-
event: ASREvent;
|
|
362
|
-
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<ASRContext, ASREvent, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, ASREvent, import("xstate").AnyEventObject>;
|
|
363
|
-
}) => {
|
|
364
|
-
endpoint: string;
|
|
365
|
-
key: string;
|
|
366
|
-
projectName: string;
|
|
367
|
-
deploymentName: string;
|
|
368
|
-
query: string;
|
|
369
|
-
};
|
|
370
|
-
readonly onDone: readonly [{
|
|
371
|
-
readonly actions: readonly [({ event }: import("xstate").ActionArgs<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent>) => void, import("xstate").ActionFunction<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent, undefined, never, never, never, never, never>];
|
|
372
|
-
readonly target: "#asr.Ready";
|
|
373
|
-
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards").GuardArgs<ASRContext, import("xstate").DoneActorEvent<any, string>>) => boolean;
|
|
374
|
-
}, {
|
|
375
|
-
readonly actions: readonly [({ event }: import("xstate").ActionArgs<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent>) => void, import("xstate").ActionFunction<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent, undefined, never, never, never, never, never>];
|
|
376
|
-
readonly target: "#asr.Ready";
|
|
377
|
-
}];
|
|
378
|
-
readonly onError: {
|
|
379
|
-
readonly actions: readonly [({ event }: import("xstate").ActionArgs<ASRContext, import("xstate").ErrorActorEvent<unknown, string>, ASREvent>) => void, import("xstate").ActionFunction<ASRContext, import("xstate").ErrorActorEvent<unknown, string>, ASREvent, undefined, never, never, never, never, never>];
|
|
380
|
-
readonly target: "#asr.Ready";
|
|
337
|
+
readonly LISTEN_COMPLETE: {
|
|
338
|
+
readonly actions: import("xstate").ActionFunction<ASRContext, {
|
|
339
|
+
type: "LISTEN_COMPLETE";
|
|
340
|
+
}, ASREvent, undefined, never, never, never, "noinputTimeout", never>;
|
|
341
|
+
readonly target: "Stopped";
|
|
381
342
|
};
|
|
382
343
|
};
|
|
383
344
|
};
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
readonly invoke: {
|
|
396
|
-
readonly id: "getAuthorizationToken";
|
|
397
|
-
readonly input: ({ context }: {
|
|
398
|
-
context: any;
|
|
399
|
-
}) => {
|
|
400
|
-
credentials: any;
|
|
401
|
-
};
|
|
402
|
-
readonly src: "getToken";
|
|
403
|
-
readonly onDone: {
|
|
404
|
-
readonly target: "Ponyfill";
|
|
405
|
-
readonly actions: readonly [import("xstate").ActionFunction<ASRContext, import("xstate").DoneActorEvent<string, string>, ASREvent, undefined, import("xstate").Values<{
|
|
406
|
-
getToken: {
|
|
407
|
-
src: "getToken";
|
|
408
|
-
logic: import("xstate").PromiseActorLogic<string, any, import("xstate").EventObject>;
|
|
409
|
-
id: string;
|
|
410
|
-
};
|
|
411
|
-
ponyfill: {
|
|
412
|
-
src: "ponyfill";
|
|
413
|
-
logic: import("xstate").CallbackActorLogic<null, ASRPonyfillInput, import("xstate").EventObject>;
|
|
414
|
-
id: string;
|
|
345
|
+
readonly Pausing: {
|
|
346
|
+
readonly onDone: "#asr.Recognising";
|
|
347
|
+
readonly initial: "WaitToPause";
|
|
348
|
+
readonly states: {
|
|
349
|
+
readonly WaitToPause: {
|
|
350
|
+
readonly entry: import("xstate").ActionFunction<ASRContext, ASREvent, ASREvent, undefined, never, never, never, "noinputTimeout", never>;
|
|
351
|
+
readonly on: {
|
|
352
|
+
readonly LISTEN_COMPLETE: {
|
|
353
|
+
readonly target: "Paused";
|
|
354
|
+
};
|
|
355
|
+
};
|
|
415
356
|
};
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
357
|
+
readonly Paused: {
|
|
358
|
+
readonly entry: import("xstate").ActionFunction<ASRContext, ASREvent, ASREvent, undefined, never, never, never, "noinputTimeout", never>;
|
|
359
|
+
readonly on: {
|
|
360
|
+
readonly CONTROL: {
|
|
361
|
+
readonly target: "Continue";
|
|
362
|
+
};
|
|
363
|
+
};
|
|
420
364
|
};
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
logic: import("xstate").PromiseActorLogic<any, AzureLanguageCredentials & {
|
|
424
|
-
query: string;
|
|
425
|
-
}, import("xstate").EventObject>;
|
|
426
|
-
id: string;
|
|
365
|
+
readonly Continue: {
|
|
366
|
+
readonly type: "final";
|
|
427
367
|
};
|
|
428
|
-
}
|
|
368
|
+
};
|
|
429
369
|
};
|
|
430
|
-
readonly
|
|
431
|
-
readonly
|
|
432
|
-
readonly target: "Fail";
|
|
370
|
+
readonly Stopped: {
|
|
371
|
+
readonly type: "final";
|
|
433
372
|
};
|
|
434
373
|
};
|
|
435
374
|
};
|
|
436
|
-
readonly
|
|
375
|
+
readonly NLURequest: {
|
|
437
376
|
readonly invoke: {
|
|
438
|
-
readonly
|
|
439
|
-
readonly src: "ponyfill";
|
|
377
|
+
readonly src: "nluPromise";
|
|
440
378
|
readonly input: ({ context }: {
|
|
441
379
|
context: ASRContext;
|
|
442
380
|
event: ASREvent;
|
|
443
381
|
self: import("xstate").ActorRef<import("xstate").MachineSnapshot<ASRContext, ASREvent, Record<string, import("xstate").AnyActorRef>, import("xstate").StateValue, string, unknown, any, any>, ASREvent, import("xstate").AnyEventObject>;
|
|
444
382
|
}) => {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
383
|
+
endpoint: string;
|
|
384
|
+
key: string;
|
|
385
|
+
projectName: string;
|
|
386
|
+
deploymentName: string;
|
|
387
|
+
query: string;
|
|
448
388
|
locale: string;
|
|
449
|
-
|
|
389
|
+
};
|
|
390
|
+
readonly onDone: readonly [{
|
|
391
|
+
readonly actions: readonly [({ event }: import("xstate").ActionArgs<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent>) => void, import("xstate").ActionFunction<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent, undefined, never, never, never, "noinputTimeout", never>, import("xstate").ActionFunction<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent, undefined, never, never, never, "noinputTimeout", never>];
|
|
392
|
+
readonly target: "Ready";
|
|
393
|
+
readonly guard: ({ event }: import("xstate/dist/declarations/src/guards").GuardArgs<ASRContext, import("xstate").DoneActorEvent<any, string>>) => boolean;
|
|
394
|
+
}, {
|
|
395
|
+
readonly actions: readonly [({ event }: import("xstate").ActionArgs<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent>) => void, import("xstate").ActionFunction<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent, undefined, never, never, never, "noinputTimeout", never>, import("xstate").ActionFunction<ASRContext, import("xstate").DoneActorEvent<any, string>, ASREvent, undefined, never, never, never, "noinputTimeout", never>];
|
|
396
|
+
readonly target: "Ready";
|
|
397
|
+
}];
|
|
398
|
+
readonly onError: {
|
|
399
|
+
readonly actions: readonly [({ event }: import("xstate").ActionArgs<ASRContext, import("xstate").ErrorActorEvent<unknown, string>, ASREvent>) => void, import("xstate").ActionFunction<ASRContext, import("xstate").ErrorActorEvent<unknown, string>, ASREvent, undefined, never, never, never, "noinputTimeout", never>, import("xstate").ActionFunction<ASRContext, import("xstate").ErrorActorEvent<unknown, string>, ASREvent, undefined, never, never, never, "noinputTimeout", never>];
|
|
400
|
+
readonly target: "Ready";
|
|
450
401
|
};
|
|
451
402
|
};
|
|
452
403
|
};
|