UNPKG

@lobehub/tts

Version:

A high-quality & reliable TTS React Hooks library

14 lines (13 loc) 535 B
import { type SpeechRecognitionRecorderOptions } from "./useSpeechRecognitionAutoStop"; export declare const useSpeechRecognitionInteractive: (locale: string, { onBlobAvailable, onTextChange, onRecognitionFinish, onStop, onStart, ...rest }?: SpeechRecognitionRecorderOptions) => { blob: Blob | undefined; formattedTime: string; isLoading: boolean; isRecording: boolean; response: Response; start: () => void; stop: () => void; text: string | undefined; time: number; url: string | undefined; };