aiwrapper
Version:
A Universal AI Wrapper for JavaScript & TypeScript
21 lines (20 loc) • 552 B
TypeScript
/**
* Speech2Text is a factory class for using speech to text models from different providers.
*/
export declare abstract class Speech2Text {
static openai(options: OpenAISpeech2TextOptions): OpenAISpeech2Text;
}
type OpenAISpeech2TextOptions = {
apiKey: string;
model?: string;
};
type OpenAISpeech2TextConfig = {
apiKey: string;
model: string;
};
export declare class OpenAISpeech2Text {
_config: OpenAISpeech2TextConfig;
constructor(options: OpenAISpeech2TextOptions);
ask(file: any): Promise<string>;
}
export {};