UNPKG

@lobehub/tts

Version:

A high-quality & reliable TTS React Hooks library

16 lines (15 loc) 708 B
import { type OpenAISTTRecorderOptions } from './useOpenAISTTRecorder'; export declare const useOpenAISTTInteractive: (locale: string, { onBlobAvailable, onTextChange, onSuccess, onError, onFinished, onStart, onStop, options, onRecognitionStop, onRecognitionStart, onRecognitionError, onRecognitionFinish, ...restConfig }?: OpenAISTTRecorderOptions) => { blob: Blob | undefined; error: any; formattedTime: string; isLoading: boolean; isRecording: boolean; mutate: import("swr/dist/_internal/types").KeyedMutator<Response>; response: Response | undefined; start: () => void; stop: () => void; text: string | undefined; time: number; url: string | undefined; };