@lobehub/tts
Version:
A high-quality & reliable TTS React Hooks library
26 lines (25 loc) • 679 B
text/typescript
import { OpenAISTTRecorderOptions } from "./useOpenAISTTRecorder.mjs";
import * as swr from "swr";
//#region src/react/useOpenAISTT/index.d.ts
interface OpenAISTTOptions extends OpenAISTTRecorderOptions {
autoStop?: boolean;
}
declare const useOpenAISTT: (locale: string, {
autoStop,
...rest
}?: OpenAISTTOptions) => {
blob: Blob | undefined;
error: any;
formattedTime: string;
isLoading: boolean;
isRecording: boolean;
mutate: swr.KeyedMutator<Response>;
response: Response | undefined;
start: () => void;
stop: () => void;
text: string | undefined;
time: number;
url: string | undefined;
};
//#endregion
export { OpenAISTTOptions, useOpenAISTT };