web-speech-cognitive-services 8.1.4-main.b358385 → 8.1.5-main.202601022251.9482f74

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.
@@ -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
- "__#8@#continuous": boolean;
174
- "__#8@#eventListenerMap": SpeechRecognitionEventListenerMap;
175
- "__#8@#grammars": SpeechGrammarList;
176
- "__#8@#interimResults": boolean;
177
- "__#8@#lang": string;
178
- "__#8@#maxAlternatives": number;
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
- grammars: SpeechGrammarList;
184
- interimResults: boolean;
185
- maxAlternatives: number;
186
- lang: string;
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
- oncognitiveservices: ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined;
191
- onend: ((event: SpeechRecognitionEvent<"end">) => void) | undefined;
192
- onerror: ((event: SpeechRecognitionErrorEvent) => void) | undefined;
193
- onresult: ((event: SpeechRecognitionEvent<"result">) => void) | undefined;
194
- onsoundend: ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined;
195
- onsoundstart: ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined;
196
- onspeechend: ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined;
197
- onspeechstart: ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined;
198
- onstart: ((event: SpeechRecognitionEvent<"start">) => void) | undefined;
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
- "__#8@#continuous": boolean;
223
- "__#8@#eventListenerMap": SpeechRecognitionEventListenerMap;
224
- "__#8@#grammars": SpeechGrammarList;
225
- "__#8@#interimResults": boolean;
226
- "__#8@#lang": string;
227
- "__#8@#maxAlternatives": number;
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
- grammars: SpeechGrammarList;
233
- interimResults: boolean;
234
- maxAlternatives: number;
235
- lang: string;
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 _default$2 {
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 _default$1 {
310
+ declare class AudioContextQueue {
281
311
  constructor({ audioContext, ponyfill }: {
282
312
  audioContext: any;
283
313
  ponyfill: any;
284
314
  });
285
- consumer: _default$2 | null;
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 _default(options: any): {
345
- speechSynthesis?: never;
346
- SpeechSynthesisEvent?: never;
347
- SpeechSynthesisUtterance?: never;
374
+ declare function createSpeechRecognitionPonyfill(options: any): {
375
+ speechSynthesis?: undefined;
376
+ SpeechSynthesisEvent?: undefined;
377
+ SpeechSynthesisUtterance?: undefined;
348
378
  } | {
349
379
  speechSynthesis: {
350
- queue: _default$1;
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
- readonly speaking: boolean;
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, _default as createSpeechSynthesisPonyfill, fetchAuthorizationToken };
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
- "__#8@#continuous": boolean;
174
- "__#8@#eventListenerMap": SpeechRecognitionEventListenerMap;
175
- "__#8@#grammars": SpeechGrammarList;
176
- "__#8@#interimResults": boolean;
177
- "__#8@#lang": string;
178
- "__#8@#maxAlternatives": number;
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
- grammars: SpeechGrammarList;
184
- interimResults: boolean;
185
- maxAlternatives: number;
186
- lang: string;
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
- oncognitiveservices: ((event: SpeechRecognitionEvent<"cognitiveservices">) => void) | undefined;
191
- onend: ((event: SpeechRecognitionEvent<"end">) => void) | undefined;
192
- onerror: ((event: SpeechRecognitionErrorEvent) => void) | undefined;
193
- onresult: ((event: SpeechRecognitionEvent<"result">) => void) | undefined;
194
- onsoundend: ((event: SpeechRecognitionEvent<"soundend">) => void) | undefined;
195
- onsoundstart: ((event: SpeechRecognitionEvent<"soundstart">) => void) | undefined;
196
- onspeechend: ((event: SpeechRecognitionEvent<"speechend">) => void) | undefined;
197
- onspeechstart: ((event: SpeechRecognitionEvent<"speechstart">) => void) | undefined;
198
- onstart: ((event: SpeechRecognitionEvent<"start">) => void) | undefined;
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
- "__#8@#continuous": boolean;
223
- "__#8@#eventListenerMap": SpeechRecognitionEventListenerMap;
224
- "__#8@#grammars": SpeechGrammarList;
225
- "__#8@#interimResults": boolean;
226
- "__#8@#lang": string;
227
- "__#8@#maxAlternatives": number;
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
- grammars: SpeechGrammarList;
233
- interimResults: boolean;
234
- maxAlternatives: number;
235
- lang: string;
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 _default$2 {
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 _default$1 {
310
+ declare class AudioContextQueue {
281
311
  constructor({ audioContext, ponyfill }: {
282
312
  audioContext: any;
283
313
  ponyfill: any;
284
314
  });
285
- consumer: _default$2 | null;
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 _default(options: any): {
345
- speechSynthesis?: never;
346
- SpeechSynthesisEvent?: never;
347
- SpeechSynthesisUtterance?: never;
374
+ declare function createSpeechRecognitionPonyfill(options: any): {
375
+ speechSynthesis?: undefined;
376
+ SpeechSynthesisEvent?: undefined;
377
+ SpeechSynthesisUtterance?: undefined;
348
378
  } | {
349
379
  speechSynthesis: {
350
- queue: _default$1;
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
- readonly speaking: boolean;
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, _default as createSpeechSynthesisPonyfill, fetchAuthorizationToken };
402
+ export { createSpeechRecognitionPonyfill$1 as createSpeechRecognitionPonyfill, createSpeechRecognitionPonyfillFromRecognizer, createSpeechServicesPonyfill, createSpeechRecognitionPonyfill as createSpeechSynthesisPonyfill, fetchAuthorizationToken };