UNPKG

speech-to-element

Version:

Add real-time speech to text functionality into your website with no effort

20 lines (19 loc) 570 B
import { Options, WebSpeechOptions } from '../../types/options'; import { Speech } from '../../speech'; export declare class WebSpeech extends Speech { private _stopping?; private _service?; private _translations?; private _extractText?; constructor(); start(options?: Options & WebSpeechOptions): void; private validate; private instantiateService; private setEvents; stop(isDuringReset?: boolean): void; static getAPI(): { new (): SpeechRecognition; prototype: SpeechRecognition; }; private error; }