@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
|
@@ -26,7 +26,7 @@ exports.speechDescription = [
|
|
|
26
26
|
{
|
|
27
27
|
displayName: 'Voice ID',
|
|
28
28
|
name: 'voiceId',
|
|
29
|
-
type: '
|
|
29
|
+
type: 'resourceLocator',
|
|
30
30
|
required: true,
|
|
31
31
|
displayOptions: {
|
|
32
32
|
show: {
|
|
@@ -34,9 +34,34 @@ exports.speechDescription = [
|
|
|
34
34
|
operation: ['textToSpeech'],
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
|
-
default: '
|
|
38
|
-
description: '
|
|
39
|
-
|
|
37
|
+
default: { mode: 'list', value: '' },
|
|
38
|
+
description: 'Select a voice from the list or enter a Voice ID directly',
|
|
39
|
+
modes: [
|
|
40
|
+
{
|
|
41
|
+
displayName: 'From List',
|
|
42
|
+
name: 'list',
|
|
43
|
+
type: 'list',
|
|
44
|
+
typeOptions: {
|
|
45
|
+
searchListMethod: 'searchVoices',
|
|
46
|
+
searchable: true,
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
displayName: 'By ID',
|
|
51
|
+
name: 'id',
|
|
52
|
+
type: 'string',
|
|
53
|
+
placeholder: 'e.g., tc_60e5426de8b95f1d3000d7b5',
|
|
54
|
+
validation: [
|
|
55
|
+
{
|
|
56
|
+
type: 'regex',
|
|
57
|
+
properties: {
|
|
58
|
+
regex: '^tc_[a-f0-9]+$',
|
|
59
|
+
errorMessage: 'Voice ID must start with "tc_" followed by hexadecimal characters',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
40
65
|
},
|
|
41
66
|
{
|
|
42
67
|
displayName: 'Text',
|
|
@@ -49,17 +74,18 @@ exports.speechDescription = [
|
|
|
49
74
|
operation: ['textToSpeech'],
|
|
50
75
|
},
|
|
51
76
|
},
|
|
52
|
-
default: '',
|
|
77
|
+
default: 'Hello! Welcome to Typecast text to speech. This is a sample voice generation.',
|
|
53
78
|
typeOptions: {
|
|
54
79
|
rows: 4,
|
|
55
80
|
},
|
|
56
|
-
description: 'Text to convert to speech',
|
|
57
|
-
placeholder: '
|
|
81
|
+
description: 'Text to convert to speech (1-2000 characters) Credits consumed based on text length. Supports multiple languages including English, Korean, Japanese, and Chinese. Special characters and punctuation are handled automatically.',
|
|
82
|
+
placeholder: "Everything is so incredibly perfect that I feel like I'm dreaming.",
|
|
58
83
|
},
|
|
59
84
|
{
|
|
60
85
|
displayName: 'Model',
|
|
61
86
|
name: 'model',
|
|
62
87
|
type: 'options',
|
|
88
|
+
required: true,
|
|
63
89
|
displayOptions: {
|
|
64
90
|
show: {
|
|
65
91
|
resource: ['speech'],
|
|
@@ -67,13 +93,210 @@ exports.speechDescription = [
|
|
|
67
93
|
},
|
|
68
94
|
},
|
|
69
95
|
options: [
|
|
96
|
+
{
|
|
97
|
+
name: 'SSFM-V30 (Latest)',
|
|
98
|
+
value: 'ssfm-v30',
|
|
99
|
+
description: 'Latest model with improved prosody, Smart Emotion, and 37 language support (recommended)',
|
|
100
|
+
},
|
|
70
101
|
{
|
|
71
102
|
name: 'SSFM-V21',
|
|
72
103
|
value: 'ssfm-v21',
|
|
104
|
+
description: 'Stable production model with reliable quality and 27 language support',
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
default: 'ssfm-v30',
|
|
108
|
+
description: 'Voice model to use for speech synthesis ssfm-v30 is recommended for best quality and Smart Emotion features',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
displayName: 'Emotion Type',
|
|
112
|
+
name: 'emotionType',
|
|
113
|
+
type: 'options',
|
|
114
|
+
displayOptions: {
|
|
115
|
+
show: {
|
|
116
|
+
resource: ['speech'],
|
|
117
|
+
operation: ['textToSpeech'],
|
|
118
|
+
model: ['ssfm-v30'],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
options: [
|
|
122
|
+
{
|
|
123
|
+
name: 'Smart (Auto-Detect From Context)',
|
|
124
|
+
value: 'smart',
|
|
125
|
+
description: 'AI automatically infers emotion from text context - best for dialogue and storytelling',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'Preset (Manual Selection)',
|
|
129
|
+
value: 'preset',
|
|
130
|
+
description: 'Manually select emotion preset and intensity - best for precise control',
|
|
73
131
|
},
|
|
74
132
|
],
|
|
75
|
-
default: '
|
|
76
|
-
description: '
|
|
133
|
+
default: 'smart',
|
|
134
|
+
description: 'How to control emotional expression (ssfm-v30 only) Smart: AI detects emotion automatically from context. Preset: Manual selection with 7 emotion options.',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
displayName: 'Previous Text',
|
|
138
|
+
name: 'previousText',
|
|
139
|
+
type: 'string',
|
|
140
|
+
displayOptions: {
|
|
141
|
+
show: {
|
|
142
|
+
resource: ['speech'],
|
|
143
|
+
operation: ['textToSpeech'],
|
|
144
|
+
model: ['ssfm-v30'],
|
|
145
|
+
emotionType: ['smart'],
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
default: '',
|
|
149
|
+
typeOptions: {
|
|
150
|
+
rows: 2,
|
|
151
|
+
},
|
|
152
|
+
description: 'Text that comes BEFORE the main text Provides context for AI to infer appropriate emotion. Optional but helps improve emotional accuracy (max 2000 characters).',
|
|
153
|
+
placeholder: "I feel like I'm walking on air and I just want to scream with joy!",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Next Text',
|
|
157
|
+
name: 'nextText',
|
|
158
|
+
type: 'string',
|
|
159
|
+
displayOptions: {
|
|
160
|
+
show: {
|
|
161
|
+
resource: ['speech'],
|
|
162
|
+
operation: ['textToSpeech'],
|
|
163
|
+
model: ['ssfm-v30'],
|
|
164
|
+
emotionType: ['smart'],
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
default: '',
|
|
168
|
+
typeOptions: {
|
|
169
|
+
rows: 2,
|
|
170
|
+
},
|
|
171
|
+
description: 'Text that comes AFTER the main text Provides context for AI to infer appropriate emotion. Optional but helps improve emotional accuracy (max 2000 characters).',
|
|
172
|
+
placeholder: 'I am literally bursting with happiness and I never want this feeling to end!',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Emotion Preset',
|
|
176
|
+
name: 'emotionPreset',
|
|
177
|
+
type: 'options',
|
|
178
|
+
displayOptions: {
|
|
179
|
+
show: {
|
|
180
|
+
resource: ['speech'],
|
|
181
|
+
operation: ['textToSpeech'],
|
|
182
|
+
model: ['ssfm-v30'],
|
|
183
|
+
emotionType: ['preset'],
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
options: [
|
|
187
|
+
{
|
|
188
|
+
name: 'Angry',
|
|
189
|
+
value: 'angry',
|
|
190
|
+
description: 'Intense, forceful expression',
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'Happy',
|
|
194
|
+
value: 'happy',
|
|
195
|
+
description: 'Joyful, cheerful expression',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'Normal',
|
|
199
|
+
value: 'normal',
|
|
200
|
+
description: 'Neutral, standard tone',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
name: 'Sad',
|
|
204
|
+
value: 'sad',
|
|
205
|
+
description: 'Melancholic, somber tone',
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: 'Tone Down',
|
|
209
|
+
value: 'tonedown',
|
|
210
|
+
description: 'Calm, subdued delivery',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'Tone Up',
|
|
214
|
+
value: 'toneup',
|
|
215
|
+
description: 'Energetic, upbeat delivery',
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
name: 'Whisper',
|
|
219
|
+
value: 'whisper',
|
|
220
|
+
description: 'Soft, intimate speaking style',
|
|
221
|
+
},
|
|
222
|
+
],
|
|
223
|
+
default: 'normal',
|
|
224
|
+
description: 'Emotion preset to apply to the generated speech All 7 emotions are available across all voices. Check specific voice characteristics via the Voices resource.',
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
displayName: 'Emotion Intensity',
|
|
228
|
+
name: 'emotionIntensity',
|
|
229
|
+
type: 'number',
|
|
230
|
+
displayOptions: {
|
|
231
|
+
show: {
|
|
232
|
+
resource: ['speech'],
|
|
233
|
+
operation: ['textToSpeech'],
|
|
234
|
+
model: ['ssfm-v30'],
|
|
235
|
+
emotionType: ['preset'],
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
typeOptions: {
|
|
239
|
+
minValue: 0,
|
|
240
|
+
maxValue: 2,
|
|
241
|
+
numberPrecision: 1,
|
|
242
|
+
},
|
|
243
|
+
default: 1,
|
|
244
|
+
description: 'Controls the strength of emotional expression (0.0 - 2.0) 0.0=completely neutral (no emotion), 0.5=subtle hints, 1.0=standard expression (default), 1.5=strong emphasis, 2.0=maximum intensity (highly expressive)',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
displayName: 'Emotion Preset',
|
|
248
|
+
name: 'emotionPresetV21',
|
|
249
|
+
type: 'options',
|
|
250
|
+
displayOptions: {
|
|
251
|
+
show: {
|
|
252
|
+
resource: ['speech'],
|
|
253
|
+
operation: ['textToSpeech'],
|
|
254
|
+
model: ['ssfm-v21'],
|
|
255
|
+
},
|
|
256
|
+
},
|
|
257
|
+
options: [
|
|
258
|
+
{
|
|
259
|
+
name: 'Normal',
|
|
260
|
+
value: 'normal',
|
|
261
|
+
description: 'Neutral, standard tone',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
name: 'Happy',
|
|
265
|
+
value: 'happy',
|
|
266
|
+
description: 'Joyful, cheerful expression',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
name: 'Sad',
|
|
270
|
+
value: 'sad',
|
|
271
|
+
description: 'Melancholic, somber tone',
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
name: 'Angry',
|
|
275
|
+
value: 'angry',
|
|
276
|
+
description: 'Intense, forceful expression',
|
|
277
|
+
},
|
|
278
|
+
],
|
|
279
|
+
default: 'normal',
|
|
280
|
+
description: 'Emotion preset to apply (ssfm-v21) Supported emotions: normal, happy, sad, angry. Check available emotions for each voice through the /voices API.',
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
displayName: 'Emotion Intensity',
|
|
284
|
+
name: 'emotionIntensityV21',
|
|
285
|
+
type: 'number',
|
|
286
|
+
displayOptions: {
|
|
287
|
+
show: {
|
|
288
|
+
resource: ['speech'],
|
|
289
|
+
operation: ['textToSpeech'],
|
|
290
|
+
model: ['ssfm-v21'],
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
typeOptions: {
|
|
294
|
+
minValue: 0,
|
|
295
|
+
maxValue: 2,
|
|
296
|
+
numberPrecision: 1,
|
|
297
|
+
},
|
|
298
|
+
default: 1,
|
|
299
|
+
description: 'Controls the strength of emotional expression (0.0 - 2.0) 0.0=completely neutral, 1.0=standard expression (default), 2.0=maximum intensity',
|
|
77
300
|
},
|
|
78
301
|
{
|
|
79
302
|
displayName: 'Additional Options',
|
|
@@ -96,14 +319,16 @@ exports.speechDescription = [
|
|
|
96
319
|
{
|
|
97
320
|
name: 'MP3',
|
|
98
321
|
value: 'mp3',
|
|
322
|
+
description: 'MPEG Layer III, 320 kbps, smaller file size - ideal for web streaming',
|
|
99
323
|
},
|
|
100
324
|
{
|
|
101
325
|
name: 'WAV',
|
|
102
326
|
value: 'wav',
|
|
327
|
+
description: 'PCM Uncompressed, 16-bit, higher quality - suitable for professional production',
|
|
103
328
|
},
|
|
104
329
|
],
|
|
105
330
|
default: 'wav',
|
|
106
|
-
description: 'Output audio format',
|
|
331
|
+
description: 'Output audio format WAV: uncompressed 16-bit PCM, mono, 44.1kHz. MP3: 320 kbps, mono, 44.1kHz.',
|
|
107
332
|
},
|
|
108
333
|
{
|
|
109
334
|
displayName: 'Audio Pitch',
|
|
@@ -114,7 +339,7 @@ exports.speechDescription = [
|
|
|
114
339
|
maxValue: 12,
|
|
115
340
|
},
|
|
116
341
|
default: 0,
|
|
117
|
-
description: 'Pitch adjustment in semitones (-12 to +12)',
|
|
342
|
+
description: 'Pitch adjustment in semitones (-12 to +12) -12 (one octave down) to +12 (one octave up). Default: 0 (no adjustment).',
|
|
118
343
|
},
|
|
119
344
|
{
|
|
120
345
|
displayName: 'Audio Tempo',
|
|
@@ -126,77 +351,96 @@ exports.speechDescription = [
|
|
|
126
351
|
numberPrecision: 1,
|
|
127
352
|
},
|
|
128
353
|
default: 1,
|
|
129
|
-
description: 'Speed of speech (0.5x to 2.0x)',
|
|
354
|
+
description: 'Speed of speech playback (0.5x to 2.0x) 0.5x (half speed) to 2.0x (double speed). Default: 1.0 (normal speed).',
|
|
130
355
|
},
|
|
131
356
|
{
|
|
132
357
|
displayName: 'Binary Property',
|
|
133
358
|
name: 'binaryProperty',
|
|
134
359
|
type: 'string',
|
|
135
360
|
default: 'data',
|
|
136
|
-
description: 'Name of the binary property to store the audio file',
|
|
361
|
+
description: 'Name of the binary property to store the generated audio file Default: "data" (recommended for most cases). Use this name to reference the audio in subsequent nodes (e.g., Save to File, Send Email). Only change if you need to handle multiple audio files in the same workflow (e.g., "narration", "background_music").',
|
|
137
362
|
},
|
|
138
363
|
{
|
|
139
|
-
displayName: '
|
|
140
|
-
name: '
|
|
141
|
-
type: 'number',
|
|
142
|
-
typeOptions: {
|
|
143
|
-
minValue: 0,
|
|
144
|
-
maxValue: 2,
|
|
145
|
-
numberPrecision: 1,
|
|
146
|
-
},
|
|
147
|
-
default: 1,
|
|
148
|
-
description: 'Intensity of emotion (0.0 to 2.0)',
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
displayName: 'Emotion Preset',
|
|
152
|
-
name: 'emotionPreset',
|
|
364
|
+
displayName: 'Language',
|
|
365
|
+
name: 'language',
|
|
153
366
|
type: 'options',
|
|
154
367
|
options: [
|
|
155
368
|
{
|
|
156
|
-
name: '
|
|
157
|
-
value: '
|
|
369
|
+
name: 'Arabic',
|
|
370
|
+
value: 'ara',
|
|
158
371
|
},
|
|
159
372
|
{
|
|
160
|
-
name: '
|
|
161
|
-
value: '
|
|
373
|
+
name: 'Auto-Detect',
|
|
374
|
+
value: '',
|
|
162
375
|
},
|
|
163
376
|
{
|
|
164
|
-
name: '
|
|
165
|
-
value: '
|
|
377
|
+
name: 'Bengali',
|
|
378
|
+
value: 'ben',
|
|
166
379
|
},
|
|
167
380
|
{
|
|
168
|
-
name: '
|
|
169
|
-
value: '
|
|
381
|
+
name: 'Bulgarian',
|
|
382
|
+
value: 'bul',
|
|
170
383
|
},
|
|
171
384
|
{
|
|
172
|
-
name: '
|
|
173
|
-
value: '
|
|
385
|
+
name: 'Cantonese',
|
|
386
|
+
value: 'yue',
|
|
174
387
|
},
|
|
175
388
|
{
|
|
176
|
-
name: '
|
|
177
|
-
value: '
|
|
389
|
+
name: 'Chinese (Mandarin)',
|
|
390
|
+
value: 'zho',
|
|
178
391
|
},
|
|
179
|
-
],
|
|
180
|
-
default: 'normal',
|
|
181
|
-
description: 'Emotion type for the generated speech',
|
|
182
|
-
},
|
|
183
|
-
{
|
|
184
|
-
displayName: 'Language',
|
|
185
|
-
name: 'language',
|
|
186
|
-
type: 'options',
|
|
187
|
-
options: [
|
|
188
392
|
{
|
|
189
|
-
name: '
|
|
190
|
-
value: '',
|
|
393
|
+
name: 'Croatian',
|
|
394
|
+
value: 'hrv',
|
|
191
395
|
},
|
|
192
396
|
{
|
|
193
|
-
name: '
|
|
194
|
-
value: '
|
|
397
|
+
name: 'Czech',
|
|
398
|
+
value: 'ces',
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
name: 'Danish',
|
|
402
|
+
value: 'dan',
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
name: 'Dutch',
|
|
406
|
+
value: 'nld',
|
|
195
407
|
},
|
|
196
408
|
{
|
|
197
409
|
name: 'English',
|
|
198
410
|
value: 'eng',
|
|
199
411
|
},
|
|
412
|
+
{
|
|
413
|
+
name: 'Finnish',
|
|
414
|
+
value: 'fin',
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
name: 'French',
|
|
418
|
+
value: 'fra',
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
name: 'German',
|
|
422
|
+
value: 'deu',
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: 'Greek',
|
|
426
|
+
value: 'ell',
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
name: 'Hindi',
|
|
430
|
+
value: 'hin',
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
name: 'Hungarian',
|
|
434
|
+
value: 'hun',
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
name: 'Indonesian',
|
|
438
|
+
value: 'ind',
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
name: 'Italian',
|
|
442
|
+
value: 'ita',
|
|
443
|
+
},
|
|
200
444
|
{
|
|
201
445
|
name: 'Japanese',
|
|
202
446
|
value: 'jpn',
|
|
@@ -205,16 +449,84 @@ exports.speechDescription = [
|
|
|
205
449
|
name: 'Korean',
|
|
206
450
|
value: 'kor',
|
|
207
451
|
},
|
|
452
|
+
{
|
|
453
|
+
name: 'Malay',
|
|
454
|
+
value: 'msa',
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
name: 'Min Nan',
|
|
458
|
+
value: 'nan',
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
name: 'Norwegian',
|
|
462
|
+
value: 'nor',
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
name: 'Polish',
|
|
466
|
+
value: 'pol',
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
name: 'Portuguese',
|
|
470
|
+
value: 'por',
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
name: 'Punjabi',
|
|
474
|
+
value: 'pan',
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
name: 'Romanian',
|
|
478
|
+
value: 'ron',
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
name: 'Russian',
|
|
482
|
+
value: 'rus',
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
name: 'Slovak',
|
|
486
|
+
value: 'slk',
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
name: 'Spanish',
|
|
490
|
+
value: 'spa',
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
name: 'Swedish',
|
|
494
|
+
value: 'swe',
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
name: 'Tagalog',
|
|
498
|
+
value: 'tgl',
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
name: 'Tamil',
|
|
502
|
+
value: 'tam',
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
name: 'Thai',
|
|
506
|
+
value: 'tha',
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
name: 'Turkish',
|
|
510
|
+
value: 'tur',
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
name: 'Ukrainian',
|
|
514
|
+
value: 'ukr',
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
name: 'Vietnamese',
|
|
518
|
+
value: 'vie',
|
|
519
|
+
},
|
|
208
520
|
],
|
|
209
521
|
default: '',
|
|
210
|
-
description: 'Language code
|
|
522
|
+
description: 'Language code following ISO 639-3 standard Case-insensitive (both "ENG" and "eng" are accepted). If not provided, language will be auto-detected based on text content. ssfm-v30 supports 37 languages, ssfm-v21 supports 27 languages.',
|
|
211
523
|
},
|
|
212
524
|
{
|
|
213
525
|
displayName: 'Seed',
|
|
214
526
|
name: 'seed',
|
|
215
527
|
type: 'number',
|
|
216
528
|
default: 42,
|
|
217
|
-
description: 'Random seed for
|
|
529
|
+
description: 'Random seed for controlling speech generation variations Use any integer value. Using the same seed with identical parameters will produce consistent results, useful for reproducibility.',
|
|
218
530
|
},
|
|
219
531
|
{
|
|
220
532
|
displayName: 'Volume',
|
|
@@ -225,7 +537,7 @@ exports.speechDescription = [
|
|
|
225
537
|
maxValue: 200,
|
|
226
538
|
},
|
|
227
539
|
default: 100,
|
|
228
|
-
description: 'Audio volume (0-200)',
|
|
540
|
+
description: 'Audio output volume level (0 - 200) 0 (silent) to 200 (maximum). Default: 100 (normal volume). Values above 100 may cause distortion.',
|
|
229
541
|
},
|
|
230
542
|
],
|
|
231
543
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Typecast/resources/speech/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAAG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Typecast/resources/speech/index.ts"],"names":[],"mappings":";;;AAEA,MAAM,iBAAiB,GAAG;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