@superdurable/connector-elevenlabs 0.1.0 → 0.2.0
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 +4 -19
- package/dex-connector.json +492 -4
- package/dist/chunk-UBMQRHWH.js +481 -0
- package/dist/connection-BWnmpStG.d.ts +347 -0
- package/dist/index.d.ts +460 -8
- package/dist/index.js +693 -28
- package/dist/mock.d.ts +159 -5
- package/dist/mock.js +385 -4
- package/package.json +4 -3
- package/dist/chunk-GIQKY62E.js +0 -134
- package/dist/connection-DFnhV-HC.d.ts +0 -117
package/README.md
CHANGED
|
@@ -1,24 +1,9 @@
|
|
|
1
1
|
# ElevenLabs TypeScript connector
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
`listVoices` and `createSpeech`. The manifest generates the public models,
|
|
5
|
-
operation definitions, Step factories, connection bindings, and scripted mocks.
|
|
6
|
-
The provider client resolves the API key for each attempt and never puts it in
|
|
7
|
-
Flow input or results.
|
|
3
|
+
Install with `npm install @superdurable/connector-elevenlabs@0.2.0`. The package provides all ten [ElevenLabs operations](../README.md). The manifest generates public models, operation definitions, typed Step factories, connection bindings, and scripted mocks. Configure the required API key using the [connection guide](../README.md#authorization-and-configuration).
|
|
8
4
|
|
|
9
|
-
|
|
10
|
-
wiring. `listVoices` returns a bounded voice page. `createSpeech` returns
|
|
11
|
-
base64 MP3 data; it uses a three-attempt retry budget because generation may
|
|
12
|
-
be billed again. Both operations retry transport failures, 408, 429, and 5xx.
|
|
13
|
-
Other HTTP rejections select `providerRejected`, malformed or oversized 200
|
|
14
|
-
responses select `invalidResponse`, and invalid local input or credentials
|
|
15
|
-
select `defect`. Unwired optional branches fail the Flow.
|
|
5
|
+
Run `npm run check` to verify types, lint, conformance replay, tests, and package build. With a local Dex server running, set `DEX_FLOW_SERVICE_ADDRESS` and run `npm run test:integration` to exercise the Worker and Client with recorded provider responses.
|
|
16
6
|
|
|
17
|
-
|
|
18
|
-
tests, and the package build. With `dexcli dev` running, set
|
|
19
|
-
`DEX_FLOW_SERVICE_ADDRESS` and run `npm run test:integration` for a real Worker
|
|
20
|
-
and Client test against a local provider fixture. The checked-in Go conformance
|
|
21
|
-
recording supplies exact request and output parity for both operations.
|
|
7
|
+
The [operation Flows](examples/demo/operations.ts) exercise model discovery, history metadata and deletion, and voice reads, edits, settings, and deletion. History results contain operational metadata. Voice metadata edits send multipart fields, and updating settings replaces the five supplied values.
|
|
22
8
|
|
|
23
|
-
|
|
24
|
-
Dex Web Connections form have not been verified with a live provider key.
|
|
9
|
+
Custom connections passed to `newConnectionWithOperations` must provide all ten operations. Live ElevenLabs authorization and provider behavior remain unverified.
|
package/dex-connector.json
CHANGED
|
@@ -1,16 +1,464 @@
|
|
|
1
1
|
{
|
|
2
2
|
"connectorId": "elevenlabs",
|
|
3
|
-
"releaseTag": "connectors/elevenlabs/go/v0.
|
|
3
|
+
"releaseTag": "connectors/elevenlabs/go/v0.3.0",
|
|
4
4
|
"package": {
|
|
5
5
|
"ecosystem": "npm",
|
|
6
6
|
"name": "@superdurable/connector-elevenlabs",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.2.0"
|
|
8
8
|
},
|
|
9
9
|
"factories": [
|
|
10
|
+
{
|
|
11
|
+
"name": "newListModelsStep",
|
|
12
|
+
"kind": "query",
|
|
13
|
+
"operationId": "listModels",
|
|
14
|
+
"inputType": "ListModelsInput",
|
|
15
|
+
"description": "List available model IDs, names, text-to-speech support, and input limits.",
|
|
16
|
+
"fields": {
|
|
17
|
+
"stepType": "stepType",
|
|
18
|
+
"annotations": "annotations",
|
|
19
|
+
"connectionName": "connectionName",
|
|
20
|
+
"resultAttribute": "resultAttribute"
|
|
21
|
+
},
|
|
22
|
+
"branches": [
|
|
23
|
+
{
|
|
24
|
+
"id": "listed",
|
|
25
|
+
"field": "listed",
|
|
26
|
+
"optional": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "providerRejected",
|
|
30
|
+
"field": "providerRejected",
|
|
31
|
+
"optional": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"id": "invalidResponse",
|
|
35
|
+
"field": "invalidResponse",
|
|
36
|
+
"optional": true
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "defect",
|
|
40
|
+
"field": "defect",
|
|
41
|
+
"optional": true
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"inputSchema": {
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"description": "ListModelsInput selects the account's available model catalog.",
|
|
47
|
+
"properties": {},
|
|
48
|
+
"type": "object"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "newListHistoryItemsStep",
|
|
53
|
+
"kind": "query",
|
|
54
|
+
"operationId": "listHistoryItems",
|
|
55
|
+
"inputType": "ListHistoryItemsInput",
|
|
56
|
+
"description": "List generated item IDs and operational metadata without text or audio.",
|
|
57
|
+
"fields": {
|
|
58
|
+
"stepType": "stepType",
|
|
59
|
+
"annotations": "annotations",
|
|
60
|
+
"connectionName": "connectionName",
|
|
61
|
+
"resultAttribute": "resultAttribute"
|
|
62
|
+
},
|
|
63
|
+
"branches": [
|
|
64
|
+
{
|
|
65
|
+
"id": "listed",
|
|
66
|
+
"field": "listed",
|
|
67
|
+
"optional": false
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "providerRejected",
|
|
71
|
+
"field": "providerRejected",
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"id": "invalidResponse",
|
|
76
|
+
"field": "invalidResponse",
|
|
77
|
+
"optional": true
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "defect",
|
|
81
|
+
"field": "defect",
|
|
82
|
+
"optional": true
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"inputSchema": {
|
|
86
|
+
"additionalProperties": false,
|
|
87
|
+
"description": "ListHistoryItemsInput selects a bounded page of generated items.",
|
|
88
|
+
"properties": {
|
|
89
|
+
"modelId": {
|
|
90
|
+
"description": "ModelID optionally filters to one model and requires Source.",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"pageSize": {
|
|
94
|
+
"description": "PageSize is from 1 to 1000; zero uses ElevenLabs' default.",
|
|
95
|
+
"type": "integer"
|
|
96
|
+
},
|
|
97
|
+
"source": {
|
|
98
|
+
"description": "Source is TTS, STS, or Flows; blank includes all sources.",
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"startAfterHistoryItemId": {
|
|
102
|
+
"description": "StartAfterHistoryItemID resumes after an ID from the preceding page.",
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"voiceId": {
|
|
106
|
+
"description": "VoiceID optionally filters history to one voice.",
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"type": "object"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "newGetHistoryItemStep",
|
|
115
|
+
"kind": "query",
|
|
116
|
+
"operationId": "getHistoryItem",
|
|
117
|
+
"inputType": "HistoryItemIdentityInput",
|
|
118
|
+
"description": "Read one generated item's operational metadata without text or audio.",
|
|
119
|
+
"fields": {
|
|
120
|
+
"stepType": "stepType",
|
|
121
|
+
"annotations": "annotations",
|
|
122
|
+
"connectionName": "connectionName",
|
|
123
|
+
"resultAttribute": "resultAttribute"
|
|
124
|
+
},
|
|
125
|
+
"branches": [
|
|
126
|
+
{
|
|
127
|
+
"id": "found",
|
|
128
|
+
"field": "found",
|
|
129
|
+
"optional": false
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "notFound",
|
|
133
|
+
"field": "notFound",
|
|
134
|
+
"optional": true
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "providerRejected",
|
|
138
|
+
"field": "providerRejected",
|
|
139
|
+
"optional": true
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"id": "invalidResponse",
|
|
143
|
+
"field": "invalidResponse",
|
|
144
|
+
"optional": true
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"id": "defect",
|
|
148
|
+
"field": "defect",
|
|
149
|
+
"optional": true
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"inputSchema": {
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"description": "HistoryItemIdentityInput selects one generated item by provider ID.",
|
|
155
|
+
"properties": {
|
|
156
|
+
"historyItemId": {
|
|
157
|
+
"description": "HistoryItemID is returned by ListHistoryItems.",
|
|
158
|
+
"type": "string"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"required": [
|
|
162
|
+
"historyItemId"
|
|
163
|
+
],
|
|
164
|
+
"type": "object"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "newDeleteHistoryItemStep",
|
|
169
|
+
"kind": "mutation",
|
|
170
|
+
"operationId": "deleteHistoryItem",
|
|
171
|
+
"inputType": "HistoryItemIdentityInput",
|
|
172
|
+
"description": "Permanently delete one generated history item by ID.",
|
|
173
|
+
"fields": {
|
|
174
|
+
"stepType": "stepType",
|
|
175
|
+
"annotations": "annotations",
|
|
176
|
+
"connectionName": "connectionName",
|
|
177
|
+
"resultAttribute": "resultAttribute"
|
|
178
|
+
},
|
|
179
|
+
"branches": [
|
|
180
|
+
{
|
|
181
|
+
"id": "deleted",
|
|
182
|
+
"field": "deleted",
|
|
183
|
+
"optional": false
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "providerRejected",
|
|
187
|
+
"field": "providerRejected",
|
|
188
|
+
"optional": true
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"id": "invalidResponse",
|
|
192
|
+
"field": "invalidResponse",
|
|
193
|
+
"optional": true
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"id": "defect",
|
|
197
|
+
"field": "defect",
|
|
198
|
+
"optional": true
|
|
199
|
+
}
|
|
200
|
+
],
|
|
201
|
+
"inputSchema": {
|
|
202
|
+
"additionalProperties": false,
|
|
203
|
+
"description": "HistoryItemIdentityInput selects one generated item by provider ID.",
|
|
204
|
+
"properties": {
|
|
205
|
+
"historyItemId": {
|
|
206
|
+
"description": "HistoryItemID is returned by ListHistoryItems.",
|
|
207
|
+
"type": "string"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"required": [
|
|
211
|
+
"historyItemId"
|
|
212
|
+
],
|
|
213
|
+
"type": "object"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "newGetVoiceStep",
|
|
218
|
+
"kind": "query",
|
|
219
|
+
"operationId": "getVoice",
|
|
220
|
+
"inputType": "GetVoiceInput",
|
|
221
|
+
"description": "Read one voice's stable ID and display name.",
|
|
222
|
+
"fields": {
|
|
223
|
+
"stepType": "stepType",
|
|
224
|
+
"annotations": "annotations",
|
|
225
|
+
"connectionName": "connectionName",
|
|
226
|
+
"resultAttribute": "resultAttribute"
|
|
227
|
+
},
|
|
228
|
+
"branches": [
|
|
229
|
+
{
|
|
230
|
+
"id": "found",
|
|
231
|
+
"field": "found",
|
|
232
|
+
"optional": false
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"id": "notFound",
|
|
236
|
+
"field": "notFound",
|
|
237
|
+
"optional": true
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"id": "providerRejected",
|
|
241
|
+
"field": "providerRejected",
|
|
242
|
+
"optional": true
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": "invalidResponse",
|
|
246
|
+
"field": "invalidResponse",
|
|
247
|
+
"optional": true
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"id": "defect",
|
|
251
|
+
"field": "defect",
|
|
252
|
+
"optional": true
|
|
253
|
+
}
|
|
254
|
+
],
|
|
255
|
+
"inputSchema": {
|
|
256
|
+
"additionalProperties": false,
|
|
257
|
+
"description": "GetVoiceInput identifies one provider voice.",
|
|
258
|
+
"properties": {
|
|
259
|
+
"voiceId": {
|
|
260
|
+
"description": "VoiceID is returned by listVoices or shown in the ElevenLabs voice library.",
|
|
261
|
+
"type": "string"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
"required": [
|
|
265
|
+
"voiceId"
|
|
266
|
+
],
|
|
267
|
+
"type": "object"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "newEditVoiceMetadataStep",
|
|
272
|
+
"kind": "mutation",
|
|
273
|
+
"operationId": "editVoiceMetadata",
|
|
274
|
+
"inputType": "EditVoiceMetadataInput",
|
|
275
|
+
"description": "Replace a voice's display name and optionally its description without changing samples.",
|
|
276
|
+
"fields": {
|
|
277
|
+
"stepType": "stepType",
|
|
278
|
+
"annotations": "annotations",
|
|
279
|
+
"connectionName": "connectionName",
|
|
280
|
+
"resultAttribute": "resultAttribute"
|
|
281
|
+
},
|
|
282
|
+
"branches": [
|
|
283
|
+
{
|
|
284
|
+
"id": "edited",
|
|
285
|
+
"field": "edited",
|
|
286
|
+
"optional": false
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"id": "notFound",
|
|
290
|
+
"field": "notFound",
|
|
291
|
+
"optional": true
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": "providerRejected",
|
|
295
|
+
"field": "providerRejected",
|
|
296
|
+
"optional": true
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "invalidResponse",
|
|
300
|
+
"field": "invalidResponse",
|
|
301
|
+
"optional": true
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"id": "defect",
|
|
305
|
+
"field": "defect",
|
|
306
|
+
"optional": true
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"inputSchema": {
|
|
310
|
+
"additionalProperties": false,
|
|
311
|
+
"description": "EditVoiceMetadataInput replaces a voice name and optionally its description.",
|
|
312
|
+
"properties": {
|
|
313
|
+
"description": {
|
|
314
|
+
"description": "Description replaces the description when nonempty; blank leaves it unchanged.",
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
"name": {
|
|
318
|
+
"description": "Name is the replacement display name.",
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
"voiceId": {
|
|
322
|
+
"description": "VoiceID is the owned voice returned by ListVoices.",
|
|
323
|
+
"type": "string"
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
"required": [
|
|
327
|
+
"name",
|
|
328
|
+
"voiceId"
|
|
329
|
+
],
|
|
330
|
+
"type": "object"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"name": "newDeleteVoiceStep",
|
|
335
|
+
"kind": "mutation",
|
|
336
|
+
"operationId": "deleteVoice",
|
|
337
|
+
"inputType": "GetVoiceInput",
|
|
338
|
+
"description": "Permanently delete a voice by ID; a missing voice is already absent.",
|
|
339
|
+
"fields": {
|
|
340
|
+
"stepType": "stepType",
|
|
341
|
+
"annotations": "annotations",
|
|
342
|
+
"connectionName": "connectionName",
|
|
343
|
+
"resultAttribute": "resultAttribute"
|
|
344
|
+
},
|
|
345
|
+
"branches": [
|
|
346
|
+
{
|
|
347
|
+
"id": "deleted",
|
|
348
|
+
"field": "deleted",
|
|
349
|
+
"optional": false
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"id": "providerRejected",
|
|
353
|
+
"field": "providerRejected",
|
|
354
|
+
"optional": true
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"id": "invalidResponse",
|
|
358
|
+
"field": "invalidResponse",
|
|
359
|
+
"optional": true
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"id": "defect",
|
|
363
|
+
"field": "defect",
|
|
364
|
+
"optional": true
|
|
365
|
+
}
|
|
366
|
+
],
|
|
367
|
+
"inputSchema": {
|
|
368
|
+
"additionalProperties": false,
|
|
369
|
+
"description": "GetVoiceInput identifies one provider voice.",
|
|
370
|
+
"properties": {
|
|
371
|
+
"voiceId": {
|
|
372
|
+
"description": "VoiceID is returned by listVoices or shown in the ElevenLabs voice library.",
|
|
373
|
+
"type": "string"
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"required": [
|
|
377
|
+
"voiceId"
|
|
378
|
+
],
|
|
379
|
+
"type": "object"
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"name": "newUpdateVoiceSettingsStep",
|
|
384
|
+
"kind": "mutation",
|
|
385
|
+
"operationId": "updateVoiceSettings",
|
|
386
|
+
"inputType": "UpdateVoiceSettingsInput",
|
|
387
|
+
"description": "Replace a voice's five primary generation settings with absolute values.",
|
|
388
|
+
"fields": {
|
|
389
|
+
"stepType": "stepType",
|
|
390
|
+
"annotations": "annotations",
|
|
391
|
+
"connectionName": "connectionName",
|
|
392
|
+
"resultAttribute": "resultAttribute"
|
|
393
|
+
},
|
|
394
|
+
"branches": [
|
|
395
|
+
{
|
|
396
|
+
"id": "updated",
|
|
397
|
+
"field": "updated",
|
|
398
|
+
"optional": false
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
"id": "notFound",
|
|
402
|
+
"field": "notFound",
|
|
403
|
+
"optional": true
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"id": "providerRejected",
|
|
407
|
+
"field": "providerRejected",
|
|
408
|
+
"optional": true
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"id": "defect",
|
|
412
|
+
"field": "defect",
|
|
413
|
+
"optional": true
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"inputSchema": {
|
|
417
|
+
"additionalProperties": false,
|
|
418
|
+
"description": "UpdateVoiceSettingsInput absolutely replaces five generation settings.",
|
|
419
|
+
"properties": {
|
|
420
|
+
"similarityBoost": {
|
|
421
|
+
"description": "SimilarityBoost is a value from zero to one.",
|
|
422
|
+
"type": "number"
|
|
423
|
+
},
|
|
424
|
+
"speed": {
|
|
425
|
+
"description": "Speed is a positive playback speed multiplier.",
|
|
426
|
+
"type": "number"
|
|
427
|
+
},
|
|
428
|
+
"stability": {
|
|
429
|
+
"description": "Stability is a value from zero to one.",
|
|
430
|
+
"type": "number"
|
|
431
|
+
},
|
|
432
|
+
"style": {
|
|
433
|
+
"description": "Style is a value from zero to one.",
|
|
434
|
+
"type": "number"
|
|
435
|
+
},
|
|
436
|
+
"useSpeakerBoost": {
|
|
437
|
+
"description": "UseSpeakerBoost enables extra speaker similarity processing.",
|
|
438
|
+
"type": "boolean"
|
|
439
|
+
},
|
|
440
|
+
"voiceId": {
|
|
441
|
+
"description": "VoiceID identifies the voice owned by the connection.",
|
|
442
|
+
"type": "string"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"required": [
|
|
446
|
+
"similarityBoost",
|
|
447
|
+
"speed",
|
|
448
|
+
"stability",
|
|
449
|
+
"style",
|
|
450
|
+
"useSpeakerBoost",
|
|
451
|
+
"voiceId"
|
|
452
|
+
],
|
|
453
|
+
"type": "object"
|
|
454
|
+
}
|
|
455
|
+
},
|
|
10
456
|
{
|
|
11
457
|
"name": "newListVoicesStep",
|
|
12
458
|
"kind": "query",
|
|
13
459
|
"operationId": "listVoices",
|
|
460
|
+
"inputType": "ListVoicesInput",
|
|
461
|
+
"description": "List available voices and their identifiers for speech generation.",
|
|
14
462
|
"fields": {
|
|
15
463
|
"stepType": "stepType",
|
|
16
464
|
"annotations": "annotations",
|
|
@@ -38,12 +486,29 @@
|
|
|
38
486
|
"field": "defect",
|
|
39
487
|
"optional": true
|
|
40
488
|
}
|
|
41
|
-
]
|
|
489
|
+
],
|
|
490
|
+
"inputSchema": {
|
|
491
|
+
"additionalProperties": false,
|
|
492
|
+
"description": "ListVoicesInput selects one page of account voices.",
|
|
493
|
+
"properties": {
|
|
494
|
+
"nextPageToken": {
|
|
495
|
+
"description": "NextPageToken is a token returned by the preceding page; blank starts at page one.",
|
|
496
|
+
"type": "string"
|
|
497
|
+
},
|
|
498
|
+
"pageSize": {
|
|
499
|
+
"description": "PageSize is the requested page size; zero uses the provider default.",
|
|
500
|
+
"type": "integer"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
"type": "object"
|
|
504
|
+
}
|
|
42
505
|
},
|
|
43
506
|
{
|
|
44
507
|
"name": "newCreateSpeechStep",
|
|
45
508
|
"kind": "query",
|
|
46
509
|
"operationId": "createSpeech",
|
|
510
|
+
"inputType": "CreateSpeechInput",
|
|
511
|
+
"description": "Generate bounded MP3 speech audio from text with a selected voice.",
|
|
47
512
|
"fields": {
|
|
48
513
|
"stepType": "stepType",
|
|
49
514
|
"annotations": "annotations",
|
|
@@ -71,7 +536,30 @@
|
|
|
71
536
|
"field": "defect",
|
|
72
537
|
"optional": true
|
|
73
538
|
}
|
|
74
|
-
]
|
|
539
|
+
],
|
|
540
|
+
"inputSchema": {
|
|
541
|
+
"additionalProperties": false,
|
|
542
|
+
"description": "CreateSpeechInput selects a voice and the text to synthesize.",
|
|
543
|
+
"properties": {
|
|
544
|
+
"modelId": {
|
|
545
|
+
"description": "ModelID selects a text-to-speech model; blank uses eleven_multilingual_v2.",
|
|
546
|
+
"type": "string"
|
|
547
|
+
},
|
|
548
|
+
"text": {
|
|
549
|
+
"description": "Text is the text to speak.",
|
|
550
|
+
"type": "string"
|
|
551
|
+
},
|
|
552
|
+
"voiceId": {
|
|
553
|
+
"description": "VoiceID is returned by listVoices or shown in the ElevenLabs voice library.",
|
|
554
|
+
"type": "string"
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
"required": [
|
|
558
|
+
"text",
|
|
559
|
+
"voiceId"
|
|
560
|
+
],
|
|
561
|
+
"type": "object"
|
|
562
|
+
}
|
|
75
563
|
}
|
|
76
564
|
]
|
|
77
565
|
}
|