UNPKG

speech-to-element

Version:

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

11 lines (10 loc) 517 B
import { AzureOptions, Options, WebSpeechOptions } from './types/options'; export default class SpeechToElement { static toggle(service: 'webspeech', options?: Options & WebSpeechOptions): void; static toggle(service: 'azure', options: Options & AzureOptions): void; static startWebSpeech(options?: Options & WebSpeechOptions): void; static isWebSpeechSupported(): boolean; static startAzure(options: Options & AzureOptions): void; static stop(): boolean; static endCommandMode(): void; }