n8n-nodes-vercel-ai-sdk-universal-temp 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/nodes/UniversalAI/UniversalAI.node.d.ts +2 -2
- package/dist/nodes/UniversalAI/UniversalAI.node.js +41 -791
- package/dist/nodes/UniversalAI/UniversalAI.node.js.map +1 -1
- package/dist/nodes/UniversalEmbedding/UniversalEmbedding.node.d.ts +2 -2
- package/dist/nodes/UniversalEmbedding/UniversalEmbedding.node.js +2 -250
- package/dist/nodes/UniversalEmbedding/UniversalEmbedding.node.js.map +1 -1
- package/dist/nodes/UniversalImageGen/UniversalImageGen.node.d.ts +2 -2
- package/dist/nodes/UniversalImageGen/UniversalImageGen.node.js +2 -220
- package/dist/nodes/UniversalImageGen/UniversalImageGen.node.js.map +1 -1
- package/dist/nodes/UniversalSpeechGen/UniversalSpeechGen.node.d.ts +2 -2
- package/dist/nodes/UniversalSpeechGen/UniversalSpeechGen.node.js +2 -135
- package/dist/nodes/UniversalSpeechGen/UniversalSpeechGen.node.js.map +1 -1
- package/dist/nodes/UniversalTranscription/UniversalTranscription.node.d.ts +2 -2
- package/dist/nodes/UniversalTranscription/UniversalTranscription.node.js +5 -131
- package/dist/nodes/UniversalTranscription/UniversalTranscription.node.js.map +1 -1
- package/dist/nodes/shared/descriptions.d.ts +6 -0
- package/dist/nodes/shared/descriptions.js +1456 -0
- package/dist/nodes/shared/descriptions.js.map +1 -0
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -6,229 +6,11 @@ const { createGoogleGenerativeAI } = require('@ai-sdk/google');
|
|
|
6
6
|
const { createOpenAI } = require('@ai-sdk/openai');
|
|
7
7
|
const ai_1 = require("ai");
|
|
8
8
|
const model_lists_1 = require("../UniversalAI/model-lists");
|
|
9
|
+
const descriptions_1 = require("../shared/descriptions");
|
|
9
10
|
const modelCache = new Map();
|
|
10
11
|
class UniversalImageGen {
|
|
11
12
|
constructor() {
|
|
12
|
-
this.description =
|
|
13
|
-
displayName: 'Universal Image Generation',
|
|
14
|
-
name: 'universalImageGen',
|
|
15
|
-
icon: 'file:icons/UniversalImageGen.svg',
|
|
16
|
-
group: ['transform'],
|
|
17
|
-
version: 2,
|
|
18
|
-
subtitle: '={{$parameter["provider"] + ": " + $parameter["model"]}}',
|
|
19
|
-
description: 'Generate images using multiple AI providers',
|
|
20
|
-
defaults: {
|
|
21
|
-
name: 'Universal Image Gen',
|
|
22
|
-
},
|
|
23
|
-
inputs: ["main"],
|
|
24
|
-
outputs: ["main"],
|
|
25
|
-
credentials: [
|
|
26
|
-
{
|
|
27
|
-
name: 'googleGenerativeAIApi',
|
|
28
|
-
required: false,
|
|
29
|
-
displayOptions: {
|
|
30
|
-
show: {
|
|
31
|
-
provider: ['google'],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
name: 'openAiApi',
|
|
37
|
-
required: false,
|
|
38
|
-
displayOptions: {
|
|
39
|
-
show: {
|
|
40
|
-
provider: ['openai'],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
properties: [
|
|
46
|
-
{
|
|
47
|
-
displayName: 'Resource',
|
|
48
|
-
name: 'resource',
|
|
49
|
-
type: 'options',
|
|
50
|
-
required: true,
|
|
51
|
-
options: [
|
|
52
|
-
{
|
|
53
|
-
name: 'Image Generation',
|
|
54
|
-
value: 'imageGen',
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
default: 'imageGen',
|
|
58
|
-
description: 'The resource to operate on',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
displayName: 'Provider',
|
|
62
|
-
name: 'provider',
|
|
63
|
-
type: 'options',
|
|
64
|
-
required: true,
|
|
65
|
-
displayOptions: {
|
|
66
|
-
show: {
|
|
67
|
-
resource: ['imageGen'],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
options: [
|
|
71
|
-
{
|
|
72
|
-
name: 'Google Generative AI (Imagen)',
|
|
73
|
-
value: 'google',
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
name: 'OpenAI (DALL-E)',
|
|
77
|
-
value: 'openai',
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
default: 'google',
|
|
81
|
-
description: 'Choose which AI provider to use for image generation',
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
displayName: 'Model',
|
|
85
|
-
name: 'model',
|
|
86
|
-
type: 'options',
|
|
87
|
-
required: true,
|
|
88
|
-
typeOptions: {
|
|
89
|
-
loadOptionsMethod: 'getModels',
|
|
90
|
-
loadOptionsDependsOn: ['provider'],
|
|
91
|
-
},
|
|
92
|
-
default: '',
|
|
93
|
-
description: 'The image generation model to use',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
displayName: 'Prompt',
|
|
97
|
-
name: 'prompt',
|
|
98
|
-
type: 'string',
|
|
99
|
-
typeOptions: {
|
|
100
|
-
rows: 4,
|
|
101
|
-
},
|
|
102
|
-
default: '',
|
|
103
|
-
required: true,
|
|
104
|
-
description: 'Description of the image to generate',
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
displayName: 'Options',
|
|
108
|
-
name: 'options',
|
|
109
|
-
type: 'collection',
|
|
110
|
-
placeholder: 'Add Option',
|
|
111
|
-
default: {},
|
|
112
|
-
options: [
|
|
113
|
-
{
|
|
114
|
-
displayName: 'Number of Images',
|
|
115
|
-
name: 'n',
|
|
116
|
-
type: 'number',
|
|
117
|
-
default: 1,
|
|
118
|
-
typeOptions: {
|
|
119
|
-
minValue: 1,
|
|
120
|
-
maxValue: 10,
|
|
121
|
-
},
|
|
122
|
-
description: 'Number of images to generate',
|
|
123
|
-
displayOptions: {
|
|
124
|
-
show: {
|
|
125
|
-
'/provider': ['google', 'openai'],
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
displayName: 'Aspect Ratio',
|
|
131
|
-
name: 'aspectRatio',
|
|
132
|
-
type: 'options',
|
|
133
|
-
options: [
|
|
134
|
-
{ name: '1:1 (Square)', value: '1:1' },
|
|
135
|
-
{ name: '16:9 (Landscape)', value: '16:9' },
|
|
136
|
-
{ name: '9:16 (Portrait)', value: '9:16' },
|
|
137
|
-
{ name: '4:3', value: '4:3' },
|
|
138
|
-
{ name: '3:4', value: '3:4' },
|
|
139
|
-
],
|
|
140
|
-
default: '1:1',
|
|
141
|
-
description: 'Aspect ratio for the generated image',
|
|
142
|
-
displayOptions: {
|
|
143
|
-
show: {
|
|
144
|
-
'/provider': ['google'],
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
displayName: 'Size',
|
|
150
|
-
name: 'size',
|
|
151
|
-
type: 'options',
|
|
152
|
-
options: [
|
|
153
|
-
{ name: '256x256', value: '256x256' },
|
|
154
|
-
{ name: '512x512', value: '512x512' },
|
|
155
|
-
{ name: '1024x1024', value: '1024x1024' },
|
|
156
|
-
{ name: '1792x1024', value: '1792x1024' },
|
|
157
|
-
{ name: '1024x1792', value: '1024x1792' },
|
|
158
|
-
],
|
|
159
|
-
default: '1024x1024',
|
|
160
|
-
description: 'Size of the generated image',
|
|
161
|
-
displayOptions: {
|
|
162
|
-
show: {
|
|
163
|
-
'/provider': ['openai'],
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
displayName: 'Negative Prompt',
|
|
169
|
-
name: 'negativePrompt',
|
|
170
|
-
type: 'string',
|
|
171
|
-
default: '',
|
|
172
|
-
description: 'What to avoid in the generated image',
|
|
173
|
-
displayOptions: {
|
|
174
|
-
show: {
|
|
175
|
-
'/provider': ['google'],
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
displayName: 'Safety Filter Level',
|
|
181
|
-
name: 'safetyFilterLevel',
|
|
182
|
-
type: 'options',
|
|
183
|
-
options: [
|
|
184
|
-
{ name: 'Block Few', value: 'block_few' },
|
|
185
|
-
{ name: 'Block Some', value: 'block_some' },
|
|
186
|
-
{ name: 'Block Most', value: 'block_most' },
|
|
187
|
-
],
|
|
188
|
-
default: 'block_some',
|
|
189
|
-
description: 'Safety filter level for generated images',
|
|
190
|
-
displayOptions: {
|
|
191
|
-
show: {
|
|
192
|
-
'/provider': ['google'],
|
|
193
|
-
},
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
displayName: 'Quality',
|
|
198
|
-
name: 'quality',
|
|
199
|
-
type: 'options',
|
|
200
|
-
options: [
|
|
201
|
-
{ name: 'Standard', value: 'standard' },
|
|
202
|
-
{ name: 'HD', value: 'hd' },
|
|
203
|
-
],
|
|
204
|
-
default: 'standard',
|
|
205
|
-
description: 'Quality of the generated image',
|
|
206
|
-
displayOptions: {
|
|
207
|
-
show: {
|
|
208
|
-
'/provider': ['openai'],
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
displayName: 'Style',
|
|
214
|
-
name: 'style',
|
|
215
|
-
type: 'options',
|
|
216
|
-
options: [
|
|
217
|
-
{ name: 'Vivid', value: 'vivid' },
|
|
218
|
-
{ name: 'Natural', value: 'natural' },
|
|
219
|
-
],
|
|
220
|
-
default: 'vivid',
|
|
221
|
-
description: 'Style of the generated image',
|
|
222
|
-
displayOptions: {
|
|
223
|
-
show: {
|
|
224
|
-
'/provider': ['openai'],
|
|
225
|
-
},
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
],
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
};
|
|
13
|
+
this.description = descriptions_1.UNIVERSAL_IMAGE_GEN_DESCRIPTION;
|
|
232
14
|
this.methods = {
|
|
233
15
|
loadOptions: {
|
|
234
16
|
async getModels() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniversalImageGen.node.js","sourceRoot":"","sources":["../../../nodes/UniversalImageGen/UniversalImageGen.node.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"UniversalImageGen.node.js","sourceRoot":"","sources":["../../../nodes/UniversalImageGen/UniversalImageGen.node.ts"],"names":[],"mappings":";;;AAAA,+CAQsB;AAGtB,MAAM,EAAE,wBAAwB,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC/D,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAEnD,2BAAiE;AACjE,4DAAsF;AACtF,yDAAyE;AAIzE,MAAM,UAAU,GAAG,IAAI,GAAG,EAA6C,CAAC;AAExE,MAAa,iBAAiB;IAA9B;QACC,gBAAW,GAAG,8CAA+B,CAAC;QAE9C,YAAO,GAAG;YACT,WAAW,EAAE;gBACZ,KAAK,CAAC,SAAS;oBACd,MAAM,QAAQ,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAsB,CAAC;oBAE/E,IAAI,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;wBAC9B,OAAO,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAE,CAAC;oBAClC,CAAC;oBAED,IAAI,MAAM,GAA2B,EAAE,CAAC;oBACxC,QAAQ,QAAQ,EAAE,CAAC;wBAClB,KAAK,QAAQ;4BACZ,MAAM,GAAG,iCAAmB,CAAC;4BAC7B,MAAM;wBACP,KAAK,QAAQ;4BACZ,MAAM,GAAG,iCAAmB,CAAC;4BAC7B,MAAM;oBACR,CAAC;oBAED,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;oBACjC,OAAO,MAAM,CAAC;gBACf,CAAC;aACD;SACD,CAAC;IAwHH,CAAC;IAtHA,KAAK,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAA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EAAE,EAAE,KAAc,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;gBAChF,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAlJD,8CAkJC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IExecuteFunctions, INodeExecutionData, INodeType,
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeType, INodePropertyOptions } from 'n8n-workflow';
|
|
2
2
|
export declare class UniversalSpeechGen implements INodeType {
|
|
3
|
-
description: INodeTypeDescription;
|
|
3
|
+
description: import("n8n-workflow").INodeTypeDescription;
|
|
4
4
|
methods: {
|
|
5
5
|
loadOptions: {
|
|
6
6
|
getVoices(this: any): Promise<INodePropertyOptions[]>;
|
|
@@ -5,143 +5,10 @@ const n8n_workflow_1 = require("n8n-workflow");
|
|
|
5
5
|
const { createGoogleGenerativeAI } = require('@ai-sdk/google');
|
|
6
6
|
const { createOpenAI } = require('@ai-sdk/openai');
|
|
7
7
|
const ai_1 = require("ai");
|
|
8
|
+
const descriptions_1 = require("../shared/descriptions");
|
|
8
9
|
class UniversalSpeechGen {
|
|
9
10
|
constructor() {
|
|
10
|
-
this.description =
|
|
11
|
-
displayName: 'Universal Speech Generation',
|
|
12
|
-
name: 'universalSpeechGen',
|
|
13
|
-
icon: 'file:icons/UniversalSpeechGen.svg',
|
|
14
|
-
group: ['transform'],
|
|
15
|
-
version: 2,
|
|
16
|
-
subtitle: '={{$parameter["provider"] + ": " + $parameter["voice"]}}',
|
|
17
|
-
description: 'Generate speech audio from text using multiple AI providers',
|
|
18
|
-
defaults: {
|
|
19
|
-
name: 'Universal Speech Gen',
|
|
20
|
-
},
|
|
21
|
-
inputs: ["main"],
|
|
22
|
-
outputs: ["main"],
|
|
23
|
-
credentials: [
|
|
24
|
-
{
|
|
25
|
-
name: 'googleGenerativeAIApi',
|
|
26
|
-
required: false,
|
|
27
|
-
displayOptions: {
|
|
28
|
-
show: {
|
|
29
|
-
provider: ['google'],
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'openAiApi',
|
|
35
|
-
required: false,
|
|
36
|
-
displayOptions: {
|
|
37
|
-
show: {
|
|
38
|
-
provider: ['openai'],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
properties: [
|
|
44
|
-
{
|
|
45
|
-
displayName: 'Provider',
|
|
46
|
-
name: 'provider',
|
|
47
|
-
type: 'options',
|
|
48
|
-
required: true,
|
|
49
|
-
noDataExpression: true,
|
|
50
|
-
options: [
|
|
51
|
-
{
|
|
52
|
-
name: 'Google Generative AI',
|
|
53
|
-
value: 'google',
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: 'OpenAI',
|
|
57
|
-
value: 'openai',
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
default: 'google',
|
|
61
|
-
description: 'Choose which AI provider to use for speech generation',
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
displayName: 'Text',
|
|
65
|
-
name: 'text',
|
|
66
|
-
type: 'string',
|
|
67
|
-
typeOptions: {
|
|
68
|
-
rows: 4,
|
|
69
|
-
},
|
|
70
|
-
default: '',
|
|
71
|
-
required: true,
|
|
72
|
-
description: 'The text to convert to speech',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
displayName: 'Voice',
|
|
76
|
-
name: 'voice',
|
|
77
|
-
type: 'options',
|
|
78
|
-
required: true,
|
|
79
|
-
typeOptions: {
|
|
80
|
-
loadOptionsMethod: 'getVoices',
|
|
81
|
-
loadOptionsDependsOn: ['provider'],
|
|
82
|
-
},
|
|
83
|
-
default: '',
|
|
84
|
-
description: 'The voice to use for speech generation',
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
displayName: 'Options',
|
|
88
|
-
name: 'options',
|
|
89
|
-
type: 'collection',
|
|
90
|
-
placeholder: 'Add Option',
|
|
91
|
-
default: {},
|
|
92
|
-
options: [
|
|
93
|
-
{
|
|
94
|
-
displayName: 'Output Format',
|
|
95
|
-
name: 'outputFormat',
|
|
96
|
-
type: 'options',
|
|
97
|
-
options: [
|
|
98
|
-
{ name: 'MP3', value: 'mp3' },
|
|
99
|
-
{ name: 'WAV', value: 'wav' },
|
|
100
|
-
{ name: 'FLAC', value: 'flac' },
|
|
101
|
-
{ name: 'AAC', value: 'aac' },
|
|
102
|
-
{ name: 'OGG', value: 'ogg' },
|
|
103
|
-
],
|
|
104
|
-
default: 'mp3',
|
|
105
|
-
description: 'Audio format for the generated speech',
|
|
106
|
-
displayOptions: {
|
|
107
|
-
show: {
|
|
108
|
-
'/provider': ['openai'],
|
|
109
|
-
},
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
displayName: 'Speed',
|
|
114
|
-
name: 'speed',
|
|
115
|
-
type: 'number',
|
|
116
|
-
default: 1.0,
|
|
117
|
-
typeOptions: {
|
|
118
|
-
minValue: 0.25,
|
|
119
|
-
maxValue: 4.0,
|
|
120
|
-
numberPrecision: 2,
|
|
121
|
-
},
|
|
122
|
-
description: 'Speech speed multiplier (0.25-4.0)',
|
|
123
|
-
displayOptions: {
|
|
124
|
-
show: {
|
|
125
|
-
'/provider': ['openai'],
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
displayName: 'Language',
|
|
131
|
-
name: 'language',
|
|
132
|
-
type: 'string',
|
|
133
|
-
default: '',
|
|
134
|
-
description: 'Language code (e.g., "en", "es", "fr") or "auto" for detection',
|
|
135
|
-
displayOptions: {
|
|
136
|
-
show: {
|
|
137
|
-
'/provider': ['openai'],
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
},
|
|
143
|
-
],
|
|
144
|
-
};
|
|
11
|
+
this.description = descriptions_1.UNIVERSAL_SPEECH_GEN_DESCRIPTION;
|
|
145
12
|
this.methods = {
|
|
146
13
|
loadOptions: {
|
|
147
14
|
async getVoices() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniversalSpeechGen.node.js","sourceRoot":"","sources":["../../../nodes/UniversalSpeechGen/UniversalSpeechGen.node.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"UniversalSpeechGen.node.js","sourceRoot":"","sources":["../../../nodes/UniversalSpeechGen/UniversalSpeechGen.node.ts"],"names":[],"mappings":";;;AAAA,+CAOsB;AAGtB,MAAM,EAAE,wBAAwB,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC/D,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAEnD,2BAAmE;AACnE,yDAA0E;AAI1E,MAAa,kBAAkB;IAA/B;QACC,gBAAW,GAAG,+CAAgC,CAAC;QAE/C,YAAO,GAAG;YACT,WAAW,EAAE;gBACZ,KAAK,CAAC,SAAS;oBACd,MAAM,QAAQ,GAAG,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAsB,CAAC;oBAE/E,QAAQ,QAAQ,EAAE,CAAC;wBAClB,KAAK,QAAQ;4BAEZ,OAAO;gCACN;oCACC,IAAI,EAAE,eAAe;oCACrB,KAAK,EAAE,SAAS;oCAChB,WAAW,EAAE,sBAAsB;iCACnC;6BACD,CAAC;wBACH,KAAK,QAAQ;4BACZ,OAAO;gCACN,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,oBAAoB,EAAE;gCACpE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,mCAAmC,EAAE;gCACjF,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,0DAA0D,EAAE;gCAC1G,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK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import { IExecuteFunctions, INodeExecutionData, INodeType
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeType } from 'n8n-workflow';
|
|
2
2
|
export declare class UniversalTranscription implements INodeType {
|
|
3
|
-
description: INodeTypeDescription;
|
|
3
|
+
description: import("n8n-workflow").INodeTypeDescription;
|
|
4
4
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
5
|
}
|
|
@@ -4,135 +4,10 @@ exports.UniversalTranscription = void 0;
|
|
|
4
4
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
5
|
const { createOpenAI } = require('@ai-sdk/openai');
|
|
6
6
|
const ai_1 = require("ai");
|
|
7
|
+
const descriptions_1 = require("../shared/descriptions");
|
|
7
8
|
class UniversalTranscription {
|
|
8
9
|
constructor() {
|
|
9
|
-
this.description =
|
|
10
|
-
displayName: 'Universal Transcription',
|
|
11
|
-
name: 'universalTranscription',
|
|
12
|
-
icon: 'file:icons/UniversalTranscription.svg',
|
|
13
|
-
group: ['transform'],
|
|
14
|
-
version: 2,
|
|
15
|
-
subtitle: '={{$parameter["provider"] + ": " + $parameter["model"]}}',
|
|
16
|
-
description: 'Generate transcripts from audio files using multiple AI providers',
|
|
17
|
-
defaults: {
|
|
18
|
-
name: 'Universal Transcription',
|
|
19
|
-
},
|
|
20
|
-
inputs: ["main"],
|
|
21
|
-
outputs: ["main"],
|
|
22
|
-
credentials: [
|
|
23
|
-
{
|
|
24
|
-
name: 'openAiApi',
|
|
25
|
-
required: false,
|
|
26
|
-
displayOptions: {
|
|
27
|
-
show: {
|
|
28
|
-
provider: ['openai'],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
properties: [
|
|
34
|
-
{
|
|
35
|
-
displayName: 'Provider',
|
|
36
|
-
name: 'provider',
|
|
37
|
-
type: 'options',
|
|
38
|
-
required: true,
|
|
39
|
-
noDataExpression: true,
|
|
40
|
-
options: [
|
|
41
|
-
{
|
|
42
|
-
name: 'OpenAI (Whisper)',
|
|
43
|
-
value: 'openai',
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
default: 'openai',
|
|
47
|
-
description: 'Choose which AI provider to use for transcription',
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
displayName: 'Audio Source',
|
|
51
|
-
name: 'audioSource',
|
|
52
|
-
type: 'options',
|
|
53
|
-
required: true,
|
|
54
|
-
options: [
|
|
55
|
-
{
|
|
56
|
-
name: 'Binary Data',
|
|
57
|
-
value: 'binary',
|
|
58
|
-
description: 'Use binary data from n8n input',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: 'URL',
|
|
62
|
-
value: 'url',
|
|
63
|
-
description: 'Provide a URL to the audio file',
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
default: 'binary',
|
|
67
|
-
description: 'Where the audio file is coming from',
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
displayName: 'Audio Property',
|
|
71
|
-
name: 'audioProperty',
|
|
72
|
-
type: 'string',
|
|
73
|
-
default: 'data',
|
|
74
|
-
required: true,
|
|
75
|
-
displayOptions: {
|
|
76
|
-
show: {
|
|
77
|
-
audioSource: ['binary'],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
description: 'Name of the binary property containing the audio data',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
displayName: 'Audio URL',
|
|
84
|
-
name: 'audioUrl',
|
|
85
|
-
type: 'string',
|
|
86
|
-
default: '',
|
|
87
|
-
required: true,
|
|
88
|
-
displayOptions: {
|
|
89
|
-
show: {
|
|
90
|
-
audioSource: ['url'],
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
description: 'URL of the audio file to transcribe',
|
|
94
|
-
requiresDataPath: 'single',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
displayName: 'Model',
|
|
98
|
-
name: 'model',
|
|
99
|
-
type: 'options',
|
|
100
|
-
required: true,
|
|
101
|
-
options: [
|
|
102
|
-
{
|
|
103
|
-
name: 'Whisper Large v3',
|
|
104
|
-
value: 'whisper-1',
|
|
105
|
-
description: 'OpenAI\'s most advanced Whisper model',
|
|
106
|
-
},
|
|
107
|
-
],
|
|
108
|
-
default: 'whisper-1',
|
|
109
|
-
description: 'The transcription model to use',
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
displayName: 'Options',
|
|
113
|
-
name: 'options',
|
|
114
|
-
type: 'collection',
|
|
115
|
-
placeholder: 'Add Option',
|
|
116
|
-
default: {},
|
|
117
|
-
options: [
|
|
118
|
-
{
|
|
119
|
-
displayName: 'Language',
|
|
120
|
-
name: 'language',
|
|
121
|
-
type: 'string',
|
|
122
|
-
default: '',
|
|
123
|
-
description: 'Language of the audio as ISO-639-1 format (e.g., "en", "es"). Leave empty for auto-detection.',
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
displayName: 'Include Segments',
|
|
127
|
-
name: 'includeSegments',
|
|
128
|
-
type: 'boolean',
|
|
129
|
-
default: false,
|
|
130
|
-
description: 'Whether to include timestamped segments in the output',
|
|
131
|
-
},
|
|
132
|
-
],
|
|
133
|
-
},
|
|
134
|
-
],
|
|
135
|
-
};
|
|
10
|
+
this.description = descriptions_1.UNIVERSAL_TRANSCRIPTION_DESCRIPTION;
|
|
136
11
|
}
|
|
137
12
|
async execute() {
|
|
138
13
|
const items = this.getInputData();
|
|
@@ -165,15 +40,14 @@ class UniversalTranscription {
|
|
|
165
40
|
if (audioSource === 'binary') {
|
|
166
41
|
const audioProperty = this.getNodeParameter('audioProperty', i);
|
|
167
42
|
const itemBinary = items[i].binary;
|
|
168
|
-
if (!itemBinary ||
|
|
43
|
+
if (!(itemBinary === null || itemBinary === void 0 ? void 0 : itemBinary[audioProperty])) {
|
|
169
44
|
throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Binary property "${audioProperty}" not found on item index ${i}`);
|
|
170
45
|
}
|
|
171
46
|
const binaryData = itemBinary[audioProperty];
|
|
172
|
-
audioData = Buffer.from(binaryData.data,
|
|
47
|
+
audioData = Buffer.from(binaryData.data, 'base64');
|
|
173
48
|
}
|
|
174
49
|
else {
|
|
175
|
-
|
|
176
|
-
audioData = audioUrl;
|
|
50
|
+
audioData = this.getNodeParameter('audioUrl', i);
|
|
177
51
|
}
|
|
178
52
|
const transcriptionResult = await (0, ai_1.experimental_transcribe)({
|
|
179
53
|
model: transcriptionModel,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UniversalTranscription.node.js","sourceRoot":"","sources":["../../../nodes/UniversalTranscription/UniversalTranscription.node.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"UniversalTranscription.node.js","sourceRoot":"","sources":["../../../nodes/UniversalTranscription/UniversalTranscription.node.ts"],"names":[],"mappings":";;;AAAA,+CAMsB;AAGtB,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAEnD,2BAA2D;AAC3D,yDAA6E;AAI7E,MAAa,sBAAsB;IAAnC;QACC,gBAAW,GAAG,kDAAmC,CAAC;IAwFnD,CAAC;IAtFA,KAAK,CAAC,OAAO;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC;QAClC,MAAM,UAAU,GAAyB,EAAE,CAAC;QAG5C,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,UAAU,EAAE,CAAC,CAAsB,CAAC;QAC3E,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,CAAW,CAAC;QAChE,MAAM,WAAW,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,EAAE,CAAC,CAAqB,CAAC;QAChF,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAW,CAAC;QAG1D,IAAI,WAAW,GAAQ,IAAI,CAAC;QAC5B,IAAI,CAAC,MAAM,EAA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AE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;gBAChF,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAzFD,wDAyFC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
+
export declare const UNIVERSAL_SPEECH_GEN_DESCRIPTION: INodeTypeDescription;
|
|
3
|
+
export declare const UNIVERSAL_IMAGE_GEN_DESCRIPTION: INodeTypeDescription;
|
|
4
|
+
export declare const UNIVERSAL_EMBEDDING_DESCRIPTION: INodeTypeDescription;
|
|
5
|
+
export declare const UNIVERSAL_AI_DESCRIPTION: INodeTypeDescription;
|
|
6
|
+
export declare const UNIVERSAL_TRANSCRIPTION_DESCRIPTION: INodeTypeDescription;
|