Function useWebSpeech

  • Returns {
        pauseSpeaking: () => void;
        resumeSpeaking: () => void;
        speak: (text: string, options?: SpeechSynthesisUtteranceOptions) => void;
        startListening: (options?: SpeechRecognitionOptions) => void;
        stopListening: () => void;
        stopSpeaking: () => void;
        get state(): WebSpeechState;
        subscribe(callback: (state: WebSpeechState) => void): () => boolean;
    }