@lobehub/tts
Version:
A high-quality & reliable TTS React Hooks library
23 lines (22 loc) • 659 B
text/typescript
import { SpeechRecognitionRecorderOptions } from "./useSpeechRecognitionAutoStop.mjs";
//#region src/react/useSpeechRecognition/index.d.ts
interface SpeechRecognitionOptions extends SpeechRecognitionRecorderOptions {
autoStop?: boolean;
}
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;
};
//#endregion
export { SpeechRecognitionOptions, useSpeechRecognition };