UNPKG

anylang

Version:

A translator's kit that uses the free APIs of Google Translate, Yandex, Bing, ChatGPT, and other LLMs

13 lines (12 loc) 460 B
import { Fetcher } from '../../utils/fetcher/types'; import { TTSAudioBuffer, TTSProviderProps } from '../types'; export declare class LingvaTTS implements TTSProviderProps { private readonly host; private readonly fetcher; constructor({ fetcher, apiHost, }?: { fetcher?: Fetcher; apiHost?: string; }); getAudioBuffer(text: string, language: string): Promise<TTSAudioBuffer>; static getSupportedLanguages(): string[]; }