UNPKG

illyria-scraper

Version:

Google Translate scraper for Illyria Translate

10 lines (9 loc) 536 B
import { type LangCode } from './utils/language.js'; /** * Retrieves an audio buffer of the given text in the given language * @param lang - The code of the language to be used as the TTS voice * @param text - The text to be converted into speech * @param [isSlow=false] - Whether the audio should be slowed down or not * @returns An array of numbers that represents a {@link Uint8Array} of the audio buffer */ export declare const getAudio: (lang: LangCode<"target">, text: string, isSlow?: boolean) => Promise<number[] | null>;