///
import { User } from "discord.js";
import { resolveSpeechWithGoogleSpeechV2 } from "../speechRecognition/googleV2";
/**
* Speech recognition function, you can create your own and specify it in addSpeechEvent
*
* All options that you pass to addSpeechEvent function, will be later passed to this function.
*/
export interface SpeechRecognition {
(audioBuffer: Buffer, options?: Record): Promise;
}
export interface CommonSpeechOptions {
group?: string;
shouldProcessSpeech?: (user: User) => boolean;
/**
* Defaults to true
*/
ignoreBots?: boolean;
}
/**
* Options that will be passed to SpeechRecognition function
*
* Usage: `SpeechOptions`
*/
export declare type SpeechOptions = CommonSpeechOptions & {
speechRecognition?: T;
} & Parameters[1];