UNPKG

@promptbook/remote-client

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

18 lines (17 loc) 679 B
import type { SpeechRecognition, SpeechRecognitionEvent, SpeechRecognitionStartOptions, SpeechRecognitionState } from '../types/SpeechRecognition'; /** * Speech recognition using Web Speech API `SpeechRecognition` available in modern browsers * * @public exported from `@promptbook/browser` */ export declare class BrowserSpeechRecognition implements SpeechRecognition { private recognition; private callbacks; private _state; get state(): SpeechRecognitionState; constructor(); $start(options?: SpeechRecognitionStartOptions): void; $stop(): void; subscribe(callback: (event: SpeechRecognitionEvent) => void): () => void; private emit; }