/**
 * OpenAI Node - Version 2
 * Discriminator: resource=audio, operation=translate
 */


interface Credentials {
  openAiApi: CredentialReference;
}

/** Translates audio into text in English */
export type LcOpenAiV2AudioTranslateParams = {
  resource: 'audio';
  operation: 'translate';
/**
 * Name of the binary property which contains the audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm
 * @hint The name of the input field containing the binary file data to be processed
 * @default data
 */
    binaryPropertyName?: string | Expression<string>;
/**
 * Options
 * @default {}
 */
    options?: {
    /** Output Randomness (Temperature)
     * @default 0
     */
    temperature?: number | Expression<number>;
  };
};

export interface LcOpenAiV2AudioTranslateSubnodeConfig {
  tools?: ToolInstance[];
  memory?: MemoryInstance;
}

export type LcOpenAiV2AudioTranslateNode = {
  type: '@n8n/n8n-nodes-langchain.openAi';
  version: 2;
  credentials?: Credentials;
  isTrigger: true;
  config: NodeConfig<LcOpenAiV2AudioTranslateParams> & { subnodes?: LcOpenAiV2AudioTranslateSubnodeConfig };
};