import { Client, Guild } from "discord.js"; import { resolveSpeechWithGoogleSpeechV2 } from "../speechRecognition/googleV2"; import { SpeechOptions, SpeechRecognition } from "./speechOptions"; /** * Main function, use this to add new events to present [discord.Client](https://discord.js.org/#/docs/main/stable/class/Client) * * Defaults uses `en-US` language and google speech v2 api with generic key, that should be used for personal or testing purposes only, as it may be revoked by Google at any time.\ * You can obtain your own API key here .\ * See [python speech recognition package](https://github.com/Uberi/speech_recognition/blob/c89856088ad81d81d38be314e3db50905481c5fe/speech_recognition/__init__.py#L850) for more details. *
* * Example usage: * ```javascript * const client = new Client({ * intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_VOICE_STATES], * }); * addSpeechEvent(client, { lang: "pl-PL" }); * ``` */ export declare const addSpeechEvent: (client: Client, guild: Guild, options?: SpeechOptions | undefined) => void;