web-speech-cognitive-services 8.1.4-main.b358385 → 8.1.4
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/web-speech-cognitive-services.d.mts +83 -53
- package/dist/web-speech-cognitive-services.d.ts +83 -53
- package/dist/web-speech-cognitive-services.development.js +4429 -6776
- package/dist/web-speech-cognitive-services.development.js.map +1 -1
- package/dist/web-speech-cognitive-services.js +26 -23
- package/dist/web-speech-cognitive-services.js.map +1 -1
- package/dist/web-speech-cognitive-services.mjs +26 -23
- package/dist/web-speech-cognitive-services.mjs.map +1 -1
- package/dist/web-speech-cognitive-services.production.min.js +12 -12
- package/dist/web-speech-cognitive-services.production.min.js.map +1 -1
- package/package.json +29 -27
|
@@ -166,36 +166,51 @@ type PatchOptionsInit = {
|
|
|
166
166
|
textNormalization?: 'display' | 'itn' | 'lexical' | 'maskeditn' | undefined;
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
declare function createSpeechRecognitionPonyfill(options: PatchOptionsInit): {
|
|
169
|
+
declare function createSpeechRecognitionPonyfill$1(options: PatchOptionsInit): {
|
|
170
170
|
SpeechGrammarList: typeof SpeechGrammarList;
|
|
171
171
|
SpeechRecognition: {
|
|
172
172
|
new (): {
|
|
173
|
-
"__#
|
|
174
|
-
"__#
|
|
175
|
-
"__#
|
|
176
|
-
"__#
|
|
177
|
-
"__#
|
|
178
|
-
"__#
|
|
173
|
+
"__#private@#continuous": boolean;
|
|
174
|
+
"__#private@#eventListenerMap": SpeechRecognitionEventListenerMap;
|
|
175
|
+
"__#private@#grammars": SpeechGrammarList;
|
|
176
|
+
"__#private@#interimResults": boolean;
|
|
177
|
+
"__#private@#lang": string;
|
|
178
|
+
"__#private@#maxAlternatives": number;
|
|
179
179
|
emitCognitiveServices<T extends {
|
|
180
180
|
type: string;
|
|
181
181
|
}>(type: string, event: T): void;
|
|
182
|
-
continuous: boolean;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
get continuous(): boolean;
|
|
183
|
+
set continuous(value: boolean);
|
|
184
|
+
get grammars(): SpeechGrammarList;
|
|
185
|
+
set grammars(value: SpeechGrammarList);
|
|
186
|
+
get interimResults(): boolean;
|
|
187
|
+
set interimResults(value: boolean);
|
|
188
|
+
get maxAlternatives(): number;
|
|
189
|
+
set maxAlternatives(value: number);
|
|
190
|
+
get lang(): string;
|
|
191
|
+
set lang(value: string);
|
|
187
192
|
get onaudioend(): ((event: SpeechRecognitionEvent<"audioend">) => void) | undefined;
|
|
188
193
|
set onaudioend(value: ((event: SpeechRecognitionEvent<"audioend">) => void) | undefined);
|
|
189
|
-
onaudiostart: ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
194
|
+
get onaudiostart(): ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined;
|
|
195
|
+
set onaudiostart(value: ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined);
|
|
196
|
+
get oncognitiveservices(): ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined;
|
|
197
|
+
set oncognitiveservices(value: ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined);
|
|
198
|
+
get onend(): ((event: SpeechRecognitionEvent<"end">) => void) | undefined;
|
|
199
|
+
set onend(value: ((event: SpeechRecognitionEvent<"end">) => void) | undefined);
|
|
200
|
+
get onerror(): ((event: SpeechRecognitionErrorEvent) => void) | undefined;
|
|
201
|
+
set onerror(value: ((event: SpeechRecognitionErrorEvent) => void) | undefined);
|
|
202
|
+
get onresult(): ((event: SpeechRecognitionEvent<"result">) => void) | undefined;
|
|
203
|
+
set onresult(value: ((event: SpeechRecognitionEvent<"result">) => void) | undefined);
|
|
204
|
+
get onsoundend(): ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined;
|
|
205
|
+
set onsoundend(value: ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined);
|
|
206
|
+
get onsoundstart(): ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined;
|
|
207
|
+
set onsoundstart(value: ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined);
|
|
208
|
+
get onspeechend(): ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined;
|
|
209
|
+
set onspeechend(value: ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined);
|
|
210
|
+
get onspeechstart(): ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined;
|
|
211
|
+
set onspeechstart(value: ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined);
|
|
212
|
+
get onstart(): ((event: SpeechRecognitionEvent<"start">) => void) | undefined;
|
|
213
|
+
set onstart(value: ((event: SpeechRecognitionEvent<"start">) => void) | undefined);
|
|
199
214
|
abort: (() => void) | undefined;
|
|
200
215
|
stop: (() => void) | undefined;
|
|
201
216
|
start(): void;
|
|
@@ -219,42 +234,57 @@ declare function createSpeechRecognitionPonyfillFromRecognizer({ createRecognize
|
|
|
219
234
|
SpeechGrammarList: typeof SpeechGrammarList;
|
|
220
235
|
SpeechRecognition: {
|
|
221
236
|
new (): {
|
|
222
|
-
"__#
|
|
223
|
-
"__#
|
|
224
|
-
"__#
|
|
225
|
-
"__#
|
|
226
|
-
"__#
|
|
227
|
-
"__#
|
|
237
|
+
"__#private@#continuous": boolean;
|
|
238
|
+
"__#private@#eventListenerMap": SpeechRecognitionEventListenerMap;
|
|
239
|
+
"__#private@#grammars": SpeechGrammarList;
|
|
240
|
+
"__#private@#interimResults": boolean;
|
|
241
|
+
"__#private@#lang": string;
|
|
242
|
+
"__#private@#maxAlternatives": number;
|
|
228
243
|
emitCognitiveServices<T extends {
|
|
229
244
|
type: string;
|
|
230
245
|
}>(type: string, event: T): void;
|
|
231
|
-
continuous: boolean;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
246
|
+
get continuous(): boolean;
|
|
247
|
+
set continuous(value: boolean);
|
|
248
|
+
get grammars(): SpeechGrammarList;
|
|
249
|
+
set grammars(value: SpeechGrammarList);
|
|
250
|
+
get interimResults(): boolean;
|
|
251
|
+
set interimResults(value: boolean);
|
|
252
|
+
get maxAlternatives(): number;
|
|
253
|
+
set maxAlternatives(value: number);
|
|
254
|
+
get lang(): string;
|
|
255
|
+
set lang(value: string);
|
|
236
256
|
get onaudioend(): ((event: SpeechRecognitionEvent<"audioend">) => void) | undefined;
|
|
237
257
|
set onaudioend(value: ((event: SpeechRecognitionEvent<"audioend">) => void) | undefined);
|
|
238
258
|
/** @type { ((event: SpeechRecognitionEvent<'audiostart'>) => void) | undefined } */
|
|
239
|
-
onaudiostart: ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined;
|
|
259
|
+
get onaudiostart(): ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined;
|
|
260
|
+
set onaudiostart(value: ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined);
|
|
240
261
|
/** @type { ((event: SpeechRecognitionEvent<'cognitiveservices'>) => void) | undefined } */
|
|
241
|
-
oncognitiveservices: ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined;
|
|
262
|
+
get oncognitiveservices(): ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined;
|
|
263
|
+
set oncognitiveservices(value: ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined);
|
|
242
264
|
/** @type { ((event: SpeechRecognitionEvent<'end'>) => void) | undefined } */
|
|
243
|
-
onend: ((event: SpeechRecognitionEvent<"end">) => void) | undefined;
|
|
265
|
+
get onend(): ((event: SpeechRecognitionEvent<"end">) => void) | undefined;
|
|
266
|
+
set onend(value: ((event: SpeechRecognitionEvent<"end">) => void) | undefined);
|
|
244
267
|
/** @type { ((event: SpeechRecognitionErrorEvent) => void) | undefined } */
|
|
245
|
-
onerror: ((event: SpeechRecognitionErrorEvent) => void) | undefined;
|
|
268
|
+
get onerror(): ((event: SpeechRecognitionErrorEvent) => void) | undefined;
|
|
269
|
+
set onerror(value: ((event: SpeechRecognitionErrorEvent) => void) | undefined);
|
|
246
270
|
/** @type { ((event: SpeechRecognitionEvent<'result'>) => void) | undefined } */
|
|
247
|
-
onresult: ((event: SpeechRecognitionEvent<"result">) => void) | undefined;
|
|
271
|
+
get onresult(): ((event: SpeechRecognitionEvent<"result">) => void) | undefined;
|
|
272
|
+
set onresult(value: ((event: SpeechRecognitionEvent<"result">) => void) | undefined);
|
|
248
273
|
/** @type { ((event: SpeechRecognitionEvent<'soundend'>) => void) | undefined } */
|
|
249
|
-
onsoundend: ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined;
|
|
274
|
+
get onsoundend(): ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined;
|
|
275
|
+
set onsoundend(value: ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined);
|
|
250
276
|
/** @type { ((event: SpeechRecognitionEvent<'soundstart'>) => void) | undefined } */
|
|
251
|
-
onsoundstart: ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined;
|
|
277
|
+
get onsoundstart(): ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined;
|
|
278
|
+
set onsoundstart(value: ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined);
|
|
252
279
|
/** @type { ((event: SpeechRecognitionEvent<'speechend'>) => void) | undefined } */
|
|
253
|
-
onspeechend: ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined;
|
|
280
|
+
get onspeechend(): ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined;
|
|
281
|
+
set onspeechend(value: ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined);
|
|
254
282
|
/** @type { ((event: SpeechRecognitionEvent<'speechstart'>) => void) | undefined } */
|
|
255
|
-
onspeechstart: ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined;
|
|
283
|
+
get onspeechstart(): ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined;
|
|
284
|
+
set onspeechstart(value: ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined);
|
|
256
285
|
/** @type { ((event: SpeechRecognitionEvent<'start'>) => void) | undefined } */
|
|
257
|
-
onstart: ((event: SpeechRecognitionEvent<"start">) => void) | undefined;
|
|
286
|
+
get onstart(): ((event: SpeechRecognitionEvent<"start">) => void) | undefined;
|
|
287
|
+
set onstart(value: ((event: SpeechRecognitionEvent<"start">) => void) | undefined);
|
|
258
288
|
abort: (() => void) | undefined;
|
|
259
289
|
stop: (() => void) | undefined;
|
|
260
290
|
start(): void;
|
|
@@ -267,7 +297,7 @@ declare function createSpeechRecognitionPonyfillFromRecognizer({ createRecognize
|
|
|
267
297
|
SpeechRecognitionEvent: typeof SpeechRecognitionEvent;
|
|
268
298
|
};
|
|
269
299
|
|
|
270
|
-
declare class
|
|
300
|
+
declare class AudioContextConsumer {
|
|
271
301
|
constructor(audioContext: any);
|
|
272
302
|
audioContext: any;
|
|
273
303
|
pause(): void;
|
|
@@ -277,12 +307,12 @@ declare class _default$2 {
|
|
|
277
307
|
stop(): void;
|
|
278
308
|
}
|
|
279
309
|
|
|
280
|
-
declare class
|
|
310
|
+
declare class AudioContextQueue {
|
|
281
311
|
constructor({ audioContext, ponyfill }: {
|
|
282
312
|
audioContext: any;
|
|
283
313
|
ponyfill: any;
|
|
284
314
|
});
|
|
285
|
-
consumer:
|
|
315
|
+
consumer: AudioContextConsumer | null;
|
|
286
316
|
paused: boolean;
|
|
287
317
|
queue: any[];
|
|
288
318
|
getAudioContext: memoize_one.MemoizedFn<() => any>;
|
|
@@ -341,20 +371,20 @@ declare class SpeechSynthesisUtterance {
|
|
|
341
371
|
stop(): void;
|
|
342
372
|
}
|
|
343
373
|
|
|
344
|
-
declare function
|
|
345
|
-
speechSynthesis?:
|
|
346
|
-
SpeechSynthesisEvent?:
|
|
347
|
-
SpeechSynthesisUtterance?:
|
|
374
|
+
declare function createSpeechRecognitionPonyfill(options: any): {
|
|
375
|
+
speechSynthesis?: undefined;
|
|
376
|
+
SpeechSynthesisEvent?: undefined;
|
|
377
|
+
SpeechSynthesisUtterance?: undefined;
|
|
348
378
|
} | {
|
|
349
379
|
speechSynthesis: {
|
|
350
|
-
queue:
|
|
380
|
+
queue: AudioContextQueue;
|
|
351
381
|
cancel(): void;
|
|
352
382
|
getVoices(): any[];
|
|
353
383
|
onvoiceschanged: any;
|
|
354
384
|
pause(): void;
|
|
355
385
|
resume(): void;
|
|
356
386
|
speak(utterance: any): Promise<any>;
|
|
357
|
-
|
|
387
|
+
get speaking(): boolean;
|
|
358
388
|
updateVoices(): Promise<void>;
|
|
359
389
|
};
|
|
360
390
|
SpeechSynthesisEvent: typeof SpeechSynthesisEvent;
|
|
@@ -369,4 +399,4 @@ declare function fetchAuthorizationToken({ region, subscriptionKey }: FetchAutho
|
|
|
369
399
|
|
|
370
400
|
declare function createSpeechServicesPonyfill(options?: any): any;
|
|
371
401
|
|
|
372
|
-
export { createSpeechRecognitionPonyfill, createSpeechRecognitionPonyfillFromRecognizer, createSpeechServicesPonyfill,
|
|
402
|
+
export { createSpeechRecognitionPonyfill$1 as createSpeechRecognitionPonyfill, createSpeechRecognitionPonyfillFromRecognizer, createSpeechServicesPonyfill, createSpeechRecognitionPonyfill as createSpeechSynthesisPonyfill, fetchAuthorizationToken };
|
|
@@ -166,36 +166,51 @@ type PatchOptionsInit = {
|
|
|
166
166
|
textNormalization?: 'display' | 'itn' | 'lexical' | 'maskeditn' | undefined;
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
declare function createSpeechRecognitionPonyfill(options: PatchOptionsInit): {
|
|
169
|
+
declare function createSpeechRecognitionPonyfill$1(options: PatchOptionsInit): {
|
|
170
170
|
SpeechGrammarList: typeof SpeechGrammarList;
|
|
171
171
|
SpeechRecognition: {
|
|
172
172
|
new (): {
|
|
173
|
-
"__#
|
|
174
|
-
"__#
|
|
175
|
-
"__#
|
|
176
|
-
"__#
|
|
177
|
-
"__#
|
|
178
|
-
"__#
|
|
173
|
+
"__#private@#continuous": boolean;
|
|
174
|
+
"__#private@#eventListenerMap": SpeechRecognitionEventListenerMap;
|
|
175
|
+
"__#private@#grammars": SpeechGrammarList;
|
|
176
|
+
"__#private@#interimResults": boolean;
|
|
177
|
+
"__#private@#lang": string;
|
|
178
|
+
"__#private@#maxAlternatives": number;
|
|
179
179
|
emitCognitiveServices<T extends {
|
|
180
180
|
type: string;
|
|
181
181
|
}>(type: string, event: T): void;
|
|
182
|
-
continuous: boolean;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
182
|
+
get continuous(): boolean;
|
|
183
|
+
set continuous(value: boolean);
|
|
184
|
+
get grammars(): SpeechGrammarList;
|
|
185
|
+
set grammars(value: SpeechGrammarList);
|
|
186
|
+
get interimResults(): boolean;
|
|
187
|
+
set interimResults(value: boolean);
|
|
188
|
+
get maxAlternatives(): number;
|
|
189
|
+
set maxAlternatives(value: number);
|
|
190
|
+
get lang(): string;
|
|
191
|
+
set lang(value: string);
|
|
187
192
|
get onaudioend(): ((event: SpeechRecognitionEvent<"audioend">) => void) | undefined;
|
|
188
193
|
set onaudioend(value: ((event: SpeechRecognitionEvent<"audioend">) => void) | undefined);
|
|
189
|
-
onaudiostart: ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined;
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
194
|
+
get onaudiostart(): ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined;
|
|
195
|
+
set onaudiostart(value: ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined);
|
|
196
|
+
get oncognitiveservices(): ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined;
|
|
197
|
+
set oncognitiveservices(value: ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined);
|
|
198
|
+
get onend(): ((event: SpeechRecognitionEvent<"end">) => void) | undefined;
|
|
199
|
+
set onend(value: ((event: SpeechRecognitionEvent<"end">) => void) | undefined);
|
|
200
|
+
get onerror(): ((event: SpeechRecognitionErrorEvent) => void) | undefined;
|
|
201
|
+
set onerror(value: ((event: SpeechRecognitionErrorEvent) => void) | undefined);
|
|
202
|
+
get onresult(): ((event: SpeechRecognitionEvent<"result">) => void) | undefined;
|
|
203
|
+
set onresult(value: ((event: SpeechRecognitionEvent<"result">) => void) | undefined);
|
|
204
|
+
get onsoundend(): ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined;
|
|
205
|
+
set onsoundend(value: ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined);
|
|
206
|
+
get onsoundstart(): ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined;
|
|
207
|
+
set onsoundstart(value: ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined);
|
|
208
|
+
get onspeechend(): ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined;
|
|
209
|
+
set onspeechend(value: ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined);
|
|
210
|
+
get onspeechstart(): ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined;
|
|
211
|
+
set onspeechstart(value: ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined);
|
|
212
|
+
get onstart(): ((event: SpeechRecognitionEvent<"start">) => void) | undefined;
|
|
213
|
+
set onstart(value: ((event: SpeechRecognitionEvent<"start">) => void) | undefined);
|
|
199
214
|
abort: (() => void) | undefined;
|
|
200
215
|
stop: (() => void) | undefined;
|
|
201
216
|
start(): void;
|
|
@@ -219,42 +234,57 @@ declare function createSpeechRecognitionPonyfillFromRecognizer({ createRecognize
|
|
|
219
234
|
SpeechGrammarList: typeof SpeechGrammarList;
|
|
220
235
|
SpeechRecognition: {
|
|
221
236
|
new (): {
|
|
222
|
-
"__#
|
|
223
|
-
"__#
|
|
224
|
-
"__#
|
|
225
|
-
"__#
|
|
226
|
-
"__#
|
|
227
|
-
"__#
|
|
237
|
+
"__#private@#continuous": boolean;
|
|
238
|
+
"__#private@#eventListenerMap": SpeechRecognitionEventListenerMap;
|
|
239
|
+
"__#private@#grammars": SpeechGrammarList;
|
|
240
|
+
"__#private@#interimResults": boolean;
|
|
241
|
+
"__#private@#lang": string;
|
|
242
|
+
"__#private@#maxAlternatives": number;
|
|
228
243
|
emitCognitiveServices<T extends {
|
|
229
244
|
type: string;
|
|
230
245
|
}>(type: string, event: T): void;
|
|
231
|
-
continuous: boolean;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
246
|
+
get continuous(): boolean;
|
|
247
|
+
set continuous(value: boolean);
|
|
248
|
+
get grammars(): SpeechGrammarList;
|
|
249
|
+
set grammars(value: SpeechGrammarList);
|
|
250
|
+
get interimResults(): boolean;
|
|
251
|
+
set interimResults(value: boolean);
|
|
252
|
+
get maxAlternatives(): number;
|
|
253
|
+
set maxAlternatives(value: number);
|
|
254
|
+
get lang(): string;
|
|
255
|
+
set lang(value: string);
|
|
236
256
|
get onaudioend(): ((event: SpeechRecognitionEvent<"audioend">) => void) | undefined;
|
|
237
257
|
set onaudioend(value: ((event: SpeechRecognitionEvent<"audioend">) => void) | undefined);
|
|
238
258
|
/** @type { ((event: SpeechRecognitionEvent<'audiostart'>) => void) | undefined } */
|
|
239
|
-
onaudiostart: ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined;
|
|
259
|
+
get onaudiostart(): ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined;
|
|
260
|
+
set onaudiostart(value: ((event: SpeechRecognitionEvent<"audiostart">) => void) | undefined);
|
|
240
261
|
/** @type { ((event: SpeechRecognitionEvent<'cognitiveservices'>) => void) | undefined } */
|
|
241
|
-
oncognitiveservices: ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined;
|
|
262
|
+
get oncognitiveservices(): ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined;
|
|
263
|
+
set oncognitiveservices(value: ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined);
|
|
242
264
|
/** @type { ((event: SpeechRecognitionEvent<'end'>) => void) | undefined } */
|
|
243
|
-
onend: ((event: SpeechRecognitionEvent<"end">) => void) | undefined;
|
|
265
|
+
get onend(): ((event: SpeechRecognitionEvent<"end">) => void) | undefined;
|
|
266
|
+
set onend(value: ((event: SpeechRecognitionEvent<"end">) => void) | undefined);
|
|
244
267
|
/** @type { ((event: SpeechRecognitionErrorEvent) => void) | undefined } */
|
|
245
|
-
onerror: ((event: SpeechRecognitionErrorEvent) => void) | undefined;
|
|
268
|
+
get onerror(): ((event: SpeechRecognitionErrorEvent) => void) | undefined;
|
|
269
|
+
set onerror(value: ((event: SpeechRecognitionErrorEvent) => void) | undefined);
|
|
246
270
|
/** @type { ((event: SpeechRecognitionEvent<'result'>) => void) | undefined } */
|
|
247
|
-
onresult: ((event: SpeechRecognitionEvent<"result">) => void) | undefined;
|
|
271
|
+
get onresult(): ((event: SpeechRecognitionEvent<"result">) => void) | undefined;
|
|
272
|
+
set onresult(value: ((event: SpeechRecognitionEvent<"result">) => void) | undefined);
|
|
248
273
|
/** @type { ((event: SpeechRecognitionEvent<'soundend'>) => void) | undefined } */
|
|
249
|
-
onsoundend: ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined;
|
|
274
|
+
get onsoundend(): ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined;
|
|
275
|
+
set onsoundend(value: ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined);
|
|
250
276
|
/** @type { ((event: SpeechRecognitionEvent<'soundstart'>) => void) | undefined } */
|
|
251
|
-
onsoundstart: ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined;
|
|
277
|
+
get onsoundstart(): ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined;
|
|
278
|
+
set onsoundstart(value: ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined);
|
|
252
279
|
/** @type { ((event: SpeechRecognitionEvent<'speechend'>) => void) | undefined } */
|
|
253
|
-
onspeechend: ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined;
|
|
280
|
+
get onspeechend(): ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined;
|
|
281
|
+
set onspeechend(value: ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined);
|
|
254
282
|
/** @type { ((event: SpeechRecognitionEvent<'speechstart'>) => void) | undefined } */
|
|
255
|
-
onspeechstart: ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined;
|
|
283
|
+
get onspeechstart(): ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined;
|
|
284
|
+
set onspeechstart(value: ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined);
|
|
256
285
|
/** @type { ((event: SpeechRecognitionEvent<'start'>) => void) | undefined } */
|
|
257
|
-
onstart: ((event: SpeechRecognitionEvent<"start">) => void) | undefined;
|
|
286
|
+
get onstart(): ((event: SpeechRecognitionEvent<"start">) => void) | undefined;
|
|
287
|
+
set onstart(value: ((event: SpeechRecognitionEvent<"start">) => void) | undefined);
|
|
258
288
|
abort: (() => void) | undefined;
|
|
259
289
|
stop: (() => void) | undefined;
|
|
260
290
|
start(): void;
|
|
@@ -267,7 +297,7 @@ declare function createSpeechRecognitionPonyfillFromRecognizer({ createRecognize
|
|
|
267
297
|
SpeechRecognitionEvent: typeof SpeechRecognitionEvent;
|
|
268
298
|
};
|
|
269
299
|
|
|
270
|
-
declare class
|
|
300
|
+
declare class AudioContextConsumer {
|
|
271
301
|
constructor(audioContext: any);
|
|
272
302
|
audioContext: any;
|
|
273
303
|
pause(): void;
|
|
@@ -277,12 +307,12 @@ declare class _default$2 {
|
|
|
277
307
|
stop(): void;
|
|
278
308
|
}
|
|
279
309
|
|
|
280
|
-
declare class
|
|
310
|
+
declare class AudioContextQueue {
|
|
281
311
|
constructor({ audioContext, ponyfill }: {
|
|
282
312
|
audioContext: any;
|
|
283
313
|
ponyfill: any;
|
|
284
314
|
});
|
|
285
|
-
consumer:
|
|
315
|
+
consumer: AudioContextConsumer | null;
|
|
286
316
|
paused: boolean;
|
|
287
317
|
queue: any[];
|
|
288
318
|
getAudioContext: memoize_one.MemoizedFn<() => any>;
|
|
@@ -341,20 +371,20 @@ declare class SpeechSynthesisUtterance {
|
|
|
341
371
|
stop(): void;
|
|
342
372
|
}
|
|
343
373
|
|
|
344
|
-
declare function
|
|
345
|
-
speechSynthesis?:
|
|
346
|
-
SpeechSynthesisEvent?:
|
|
347
|
-
SpeechSynthesisUtterance?:
|
|
374
|
+
declare function createSpeechRecognitionPonyfill(options: any): {
|
|
375
|
+
speechSynthesis?: undefined;
|
|
376
|
+
SpeechSynthesisEvent?: undefined;
|
|
377
|
+
SpeechSynthesisUtterance?: undefined;
|
|
348
378
|
} | {
|
|
349
379
|
speechSynthesis: {
|
|
350
|
-
queue:
|
|
380
|
+
queue: AudioContextQueue;
|
|
351
381
|
cancel(): void;
|
|
352
382
|
getVoices(): any[];
|
|
353
383
|
onvoiceschanged: any;
|
|
354
384
|
pause(): void;
|
|
355
385
|
resume(): void;
|
|
356
386
|
speak(utterance: any): Promise<any>;
|
|
357
|
-
|
|
387
|
+
get speaking(): boolean;
|
|
358
388
|
updateVoices(): Promise<void>;
|
|
359
389
|
};
|
|
360
390
|
SpeechSynthesisEvent: typeof SpeechSynthesisEvent;
|
|
@@ -369,4 +399,4 @@ declare function fetchAuthorizationToken({ region, subscriptionKey }: FetchAutho
|
|
|
369
399
|
|
|
370
400
|
declare function createSpeechServicesPonyfill(options?: any): any;
|
|
371
401
|
|
|
372
|
-
export { createSpeechRecognitionPonyfill, createSpeechRecognitionPonyfillFromRecognizer, createSpeechServicesPonyfill,
|
|
402
|
+
export { createSpeechRecognitionPonyfill$1 as createSpeechRecognitionPonyfill, createSpeechRecognitionPonyfillFromRecognizer, createSpeechServicesPonyfill, createSpeechRecognitionPonyfill as createSpeechSynthesisPonyfill, fetchAuthorizationToken };
|