UNPKG

@lobehub/tts

Version:

A high-quality & reliable TTS React Hooks library

17 lines (16 loc) 563 B
import { SpeechRecognitionRecorderOptions } from './useSpeechRecognitionAutoStop'; export interface SpeechRecognitionOptions extends SpeechRecognitionRecorderOptions { autoStop?: boolean; } export declare const useSpeechRecognition: (locale: string, { autoStop, ...rest }?: SpeechRecognitionOptions) => { blob: Blob | undefined; formattedTime: string; isLoading: boolean; isRecording: boolean; response: Response; start: () => void; stop: () => void; text: string | undefined; time: number; url: string | undefined; };