@neosapience/n8n-nodes-typecast 1.0.2 → 1.0.4
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/README.md +7 -8
- package/credentials/TypecastApi.credentials.ts +37 -36
- package/dist/credentials/TypecastApi.credentials.js.map +1 -1
- package/dist/nodes/Typecast/Typecast.node.d.ts +6 -1
- package/dist/nodes/Typecast/Typecast.node.js +139 -19
- package/dist/nodes/Typecast/Typecast.node.js.map +1 -1
- package/dist/nodes/Typecast/resources/speech/index.js +367 -55
- package/dist/nodes/Typecast/resources/speech/index.js.map +1 -1
- package/dist/nodes/Typecast/resources/voice/index.js +152 -48
- package/dist/nodes/Typecast/resources/voice/index.js.map +1 -1
- package/dist/nodes/Typecast/shared/transport.d.ts +2 -2
- package/dist/nodes/Typecast/shared/transport.js +20 -6
- package/dist/nodes/Typecast/shared/transport.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/nodes/Typecast/Typecast.node.ts +358 -199
- package/nodes/Typecast/resources/speech/index.ts +563 -228
- package/nodes/Typecast/resources/voice/index.ts +189 -88
- package/nodes/Typecast/shared/transport.ts +72 -44
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,22 +8,21 @@ Integrate [Typecast](https://typecast.ai/) AI TTS into your [n8n](https://n8n.io
|
|
|
8
8
|
## Features
|
|
9
9
|
|
|
10
10
|
- **Voice Resource**
|
|
11
|
-
|
|
12
|
-
- Get: Retrieve details of a specific voice model
|
|
11
|
+
- Get All Voices: List all available voice models
|
|
13
12
|
- **Speech Resource**
|
|
14
|
-
|
|
13
|
+
- Text to Speech: Convert text to speech using a selected voice
|
|
15
14
|
|
|
16
15
|
## Node Structure
|
|
17
16
|
|
|
18
17
|
- Node: `Typecast`
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
18
|
+
- Resources: `voice`, `speech`
|
|
19
|
+
- Operations:
|
|
20
|
+
- `voice`: `getMany`
|
|
21
|
+
- `speech`: `textToSpeech`
|
|
23
22
|
|
|
24
23
|
## Credentials Setup
|
|
25
24
|
|
|
26
|
-
1. Get your API key from [Typecast Dashboard](https://typecast.ai/developers)
|
|
25
|
+
1. Get your API key from [Typecast Dashboard](https://typecast.ai/developers/api/api-key)
|
|
27
26
|
2. In n8n, add new credentials of type **Typecast API**
|
|
28
27
|
3. Enter your API key
|
|
29
28
|
|
|
@@ -1,43 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
IAuthenticateGeneric,
|
|
3
|
+
Icon,
|
|
4
|
+
ICredentialTestRequest,
|
|
5
|
+
ICredentialType,
|
|
6
|
+
INodeProperties,
|
|
7
7
|
} from 'n8n-workflow';
|
|
8
8
|
|
|
9
9
|
export class TypecastApi implements ICredentialType {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
name = 'typecastApi';
|
|
11
|
+
displayName = 'Typecast API';
|
|
12
|
+
icon: Icon = 'file:../icons/typecast.svg';
|
|
13
|
+
documentationUrl =
|
|
14
|
+
'https://typecast.ai/docs/api-reference/endpoint/text-to-speech/text-to-speech';
|
|
15
|
+
properties: INodeProperties[] = [
|
|
16
|
+
{
|
|
17
|
+
displayName: 'API Key',
|
|
18
|
+
name: 'apiKey',
|
|
19
|
+
type: 'string',
|
|
20
|
+
typeOptions: {
|
|
21
|
+
password: true,
|
|
22
|
+
},
|
|
23
|
+
default: '',
|
|
24
|
+
required: true,
|
|
25
|
+
description: 'API key from Typecast dashboard',
|
|
26
|
+
},
|
|
27
|
+
];
|
|
27
28
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
authenticate: IAuthenticateGeneric = {
|
|
30
|
+
type: 'generic',
|
|
31
|
+
properties: {
|
|
32
|
+
headers: {
|
|
33
|
+
'X-API-KEY': '={{$credentials.apiKey}}',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
};
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
test: ICredentialTestRequest = {
|
|
39
|
+
request: {
|
|
40
|
+
baseURL: 'https://api.typecast.ai/v1',
|
|
41
|
+
url: '/voices',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
43
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypecastApi.credentials.js","sourceRoot":"","sources":["../../credentials/TypecastApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,WAAW;IAAxB;
|
|
1
|
+
{"version":3,"file":"TypecastApi.credentials.js","sourceRoot":"","sources":["../../credentials/TypecastApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,WAAW;IAAxB;QACE,SAAI,GAAG,aAAa,CAAC;QACrB,gBAAW,GAAG,cAAc,CAAC;QAC7B,SAAI,GAAS,4BAA4B,CAAC;QAC1C,qBAAgB,GACd,+EAA+E,CAAC;QAClF,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE;oBACX,QAAQ,EAAE,IAAI;iBACf;gBACD,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,iCAAiC;aAC/C;SACF,CAAC;QAEF,iBAAY,GAAyB;YACnC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACV,OAAO,EAAE;oBACP,WAAW,EAAE,0BAA0B;iBACxC;aACF;SACF,CAAC;QAEF,SAAI,GAA2B;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,4BAA4B;gBACrC,GAAG,EAAE,SAAS;aACf;SACF,CAAC;IACJ,CAAC;CAAA;AAnCD,kCAmCC"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { type IExecuteFunctions, type INodeExecutionData, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
|
|
1
|
+
import { type IExecuteFunctions, type ILoadOptionsFunctions, type INodeExecutionData, type INodeListSearchResult, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
|
|
2
2
|
export declare class Typecast implements INodeType {
|
|
3
3
|
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
listSearch: {
|
|
6
|
+
searchVoices(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
5
10
|
}
|
|
@@ -15,6 +15,7 @@ class Typecast {
|
|
|
15
15
|
version: 1,
|
|
16
16
|
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
17
17
|
description: 'Interact with Typecast TTS API',
|
|
18
|
+
documentationUrl: 'https://typecast.ai/docs/integrations/n8n',
|
|
18
19
|
usableAsTool: true,
|
|
19
20
|
defaults: {
|
|
20
21
|
name: 'Typecast',
|
|
@@ -49,6 +50,99 @@ class Typecast {
|
|
|
49
50
|
...speech_1.speechDescription,
|
|
50
51
|
],
|
|
51
52
|
};
|
|
53
|
+
this.methods = {
|
|
54
|
+
listSearch: {
|
|
55
|
+
async searchVoices(filter) {
|
|
56
|
+
const results = {
|
|
57
|
+
results: [],
|
|
58
|
+
};
|
|
59
|
+
try {
|
|
60
|
+
const model = this.getNodeParameter('model', 0) || 'ssfm-v30';
|
|
61
|
+
const qs = {};
|
|
62
|
+
if (model) {
|
|
63
|
+
qs.model = model;
|
|
64
|
+
}
|
|
65
|
+
const response = await transport_1.typecastApiRequest.call(this, 'GET', '/voices', {}, qs, 'v2');
|
|
66
|
+
const voices = Array.isArray(response) ? response : response.result || [];
|
|
67
|
+
for (const voice of voices) {
|
|
68
|
+
const voiceId = voice.voice_id;
|
|
69
|
+
const voiceName = voice.voice_name || voiceId;
|
|
70
|
+
const gender = voice.gender
|
|
71
|
+
? voice.gender.charAt(0).toUpperCase() + voice.gender.slice(1)
|
|
72
|
+
: 'Unknown';
|
|
73
|
+
const age = voice.age
|
|
74
|
+
? voice.age.replace(/_/g, ' ').replace(/\b\w/g, (c) => c.toUpperCase())
|
|
75
|
+
: 'Unknown';
|
|
76
|
+
let emotions = [];
|
|
77
|
+
if (voice.models && Array.isArray(voice.models)) {
|
|
78
|
+
const v30Model = voice.models.find((m) => m.version === 'ssfm-v30');
|
|
79
|
+
const modelToUse = v30Model || voice.models[0];
|
|
80
|
+
if (modelToUse && Array.isArray(modelToUse.emotions)) {
|
|
81
|
+
emotions = modelToUse.emotions;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const emotionList = emotions.join(', ');
|
|
85
|
+
const emotionDisplay = emotionList || 'N/A';
|
|
86
|
+
const useCases = voice.use_cases || [];
|
|
87
|
+
const useCaseList = Array.isArray(useCases) ? useCases.join(', ') : '';
|
|
88
|
+
const useCaseDisplay = useCaseList || 'N/A';
|
|
89
|
+
const displayName = `${voiceName} | ${gender} | ${age} | ${emotionDisplay}`;
|
|
90
|
+
const description = `ID: ${voiceId} | Use Cases: ${useCaseDisplay}`;
|
|
91
|
+
if (filter) {
|
|
92
|
+
const searchLower = filter.toLowerCase();
|
|
93
|
+
const matchesName = voiceName.toLowerCase().includes(searchLower);
|
|
94
|
+
const matchesId = voiceId.toLowerCase().includes(searchLower);
|
|
95
|
+
const matchesGender = gender.toLowerCase().includes(searchLower);
|
|
96
|
+
const matchesAge = age.toLowerCase().includes(searchLower);
|
|
97
|
+
const matchesEmotion = emotions.some((e) => e.toLowerCase().includes(searchLower));
|
|
98
|
+
const matchesUseCase = useCases.some((u) => u.toLowerCase().includes(searchLower));
|
|
99
|
+
if (!matchesName &&
|
|
100
|
+
!matchesId &&
|
|
101
|
+
!matchesGender &&
|
|
102
|
+
!matchesAge &&
|
|
103
|
+
!matchesEmotion &&
|
|
104
|
+
!matchesUseCase) {
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
results.results.push({
|
|
109
|
+
name: displayName,
|
|
110
|
+
value: voiceId,
|
|
111
|
+
url: `https://typecast.ai/developers/api/voices/${voiceId}`,
|
|
112
|
+
description,
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
results.results.sort((a, b) => a.name.localeCompare(b.name));
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
const errorMessage = error.message || 'Unknown error';
|
|
119
|
+
let hint = 'Check your Typecast API credentials';
|
|
120
|
+
if (errorMessage.includes('401') || errorMessage.includes('Unauthorized')) {
|
|
121
|
+
hint = 'Invalid API key - update your credentials';
|
|
122
|
+
}
|
|
123
|
+
else if (errorMessage.includes('403') || errorMessage.includes('Forbidden')) {
|
|
124
|
+
hint = 'API key has no permission - check credentials';
|
|
125
|
+
}
|
|
126
|
+
else if (errorMessage.includes('network') || errorMessage.includes('ENOTFOUND')) {
|
|
127
|
+
hint = 'Network error - check internet connection';
|
|
128
|
+
}
|
|
129
|
+
results.results = [
|
|
130
|
+
{
|
|
131
|
+
name: `⚠️ ${hint}`,
|
|
132
|
+
value: '',
|
|
133
|
+
description: 'Use "By ID" mode to enter Voice ID directly',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: '💡 Switch to "By ID" Mode to Enter Voice ID Manually',
|
|
137
|
+
value: '',
|
|
138
|
+
description: 'Click the dropdown on the left and select "By ID"',
|
|
139
|
+
},
|
|
140
|
+
];
|
|
141
|
+
}
|
|
142
|
+
return results;
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
};
|
|
52
146
|
}
|
|
53
147
|
async execute() {
|
|
54
148
|
const items = this.getInputData();
|
|
@@ -59,28 +153,31 @@ class Typecast {
|
|
|
59
153
|
try {
|
|
60
154
|
if (resource === 'voice') {
|
|
61
155
|
if (operation === 'getMany') {
|
|
62
|
-
const
|
|
156
|
+
const filters = this.getNodeParameter('filters', i, {});
|
|
63
157
|
const qs = {};
|
|
64
|
-
if (model) {
|
|
65
|
-
qs.model = model;
|
|
158
|
+
if (filters.model) {
|
|
159
|
+
qs.model = filters.model;
|
|
66
160
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
qs.model = model;
|
|
161
|
+
if (filters.gender) {
|
|
162
|
+
qs.gender = filters.gender;
|
|
163
|
+
}
|
|
164
|
+
if (filters.age) {
|
|
165
|
+
qs.age = filters.age;
|
|
166
|
+
}
|
|
167
|
+
if (filters.use_cases) {
|
|
168
|
+
qs.use_cases = filters.use_cases;
|
|
76
169
|
}
|
|
77
|
-
const response = await transport_1.typecastApiRequest.call(this, 'GET',
|
|
78
|
-
returnData.push(...this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), {
|
|
170
|
+
const response = await transport_1.typecastApiRequest.call(this, 'GET', '/voices', {}, qs, 'v2');
|
|
171
|
+
returnData.push(...this.helpers.constructExecutionMetaData(this.helpers.returnJsonArray(response), {
|
|
172
|
+
itemData: { item: i },
|
|
173
|
+
}));
|
|
79
174
|
}
|
|
80
175
|
}
|
|
81
176
|
if (resource === 'speech') {
|
|
82
177
|
if (operation === 'textToSpeech') {
|
|
83
|
-
const voiceId = this.getNodeParameter('voiceId', i
|
|
178
|
+
const voiceId = this.getNodeParameter('voiceId', i, '', {
|
|
179
|
+
extractValue: true,
|
|
180
|
+
});
|
|
84
181
|
const text = this.getNodeParameter('text', i);
|
|
85
182
|
const model = this.getNodeParameter('model', i);
|
|
86
183
|
const additionalOptions = this.getNodeParameter('additionalOptions', i, {});
|
|
@@ -93,11 +190,34 @@ class Typecast {
|
|
|
93
190
|
body.language = additionalOptions.language;
|
|
94
191
|
}
|
|
95
192
|
const prompt = {};
|
|
96
|
-
if (
|
|
97
|
-
|
|
193
|
+
if (model === 'ssfm-v30') {
|
|
194
|
+
const emotionType = this.getNodeParameter('emotionType', i, 'preset');
|
|
195
|
+
if (emotionType === 'smart') {
|
|
196
|
+
prompt.emotion_type = 'smart';
|
|
197
|
+
const previousText = this.getNodeParameter('previousText', i, '');
|
|
198
|
+
const nextText = this.getNodeParameter('nextText', i, '');
|
|
199
|
+
if (previousText) {
|
|
200
|
+
prompt.previous_text = previousText;
|
|
201
|
+
}
|
|
202
|
+
if (nextText) {
|
|
203
|
+
prompt.next_text = nextText;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
else {
|
|
207
|
+
prompt.emotion_type = 'preset';
|
|
208
|
+
const emotionPreset = this.getNodeParameter('emotionPreset', i, 'normal');
|
|
209
|
+
const emotionIntensity = this.getNodeParameter('emotionIntensity', i, 1);
|
|
210
|
+
prompt.emotion_preset = emotionPreset;
|
|
211
|
+
prompt.emotion_intensity = emotionIntensity;
|
|
212
|
+
}
|
|
98
213
|
}
|
|
99
|
-
|
|
100
|
-
|
|
214
|
+
else {
|
|
215
|
+
if (additionalOptions.emotionPresetV21) {
|
|
216
|
+
prompt.emotion_preset = additionalOptions.emotionPresetV21;
|
|
217
|
+
}
|
|
218
|
+
if (additionalOptions.emotionIntensityV21 !== undefined) {
|
|
219
|
+
prompt.emotion_intensity = additionalOptions.emotionIntensityV21;
|
|
220
|
+
}
|
|
101
221
|
}
|
|
102
222
|
if (Object.keys(prompt).length > 0) {
|
|
103
223
|
body.prompt = prompt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typecast.node.js","sourceRoot":"","sources":["../../../nodes/Typecast/Typecast.node.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,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