UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

66 lines (61 loc) 1.93 kB
/** * Google Gemini Node - Version 1 * Discriminator: resource=audio, operation=transcribe */ interface Credentials { googlePalmApi: CredentialReference; } /** Transcribes audio into the text */ export type LcGoogleGeminiV1AudioTranscribeParams = { resource: 'audio'; operation: 'transcribe'; /** * Model * @searchListMethod audioModelSearch * @default {"mode":"list","value":""} */ modelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** * Input Type * @default url */ inputType?: 'url' | 'binary' | Expression<string>; /** * URL(s) of the audio(s) to transcribe, multiple URLs can be added separated by comma * @displayOptions.show { inputType: ["url"] } */ audioUrls?: string | Expression<string> | PlaceholderValue; /** * Name of the binary field(s) which contains the audio(s), seperate multiple field names with commas * @hint The name of the input field containing the binary file data to be processed * @displayOptions.show { inputType: ["binary"] } * @default data */ binaryPropertyName?: string | Expression<string> | PlaceholderValue; /** * Whether to simplify the response or not * @default true */ simplify?: boolean | Expression<boolean>; /** * Options * @default {} */ options?: { /** The start time of the audio in MM:SS or HH:MM:SS format */ startTime?: string | Expression<string> | PlaceholderValue; /** The end time of the audio in MM:SS or HH:MM:SS format */ endTime?: string | Expression<string> | PlaceholderValue; }; }; export interface LcGoogleGeminiV1AudioTranscribeSubnodeConfig { tools?: ToolInstance[]; } export type LcGoogleGeminiV1AudioTranscribeNode = { type: '@n8n/n8n-nodes-langchain.googleGemini'; version: 1; credentials?: Credentials; config: NodeConfig<LcGoogleGeminiV1AudioTranscribeParams> & { subnodes?: LcGoogleGeminiV1AudioTranscribeSubnodeConfig }; };