@cartesia/cartesia-js 3.0.0-b3 → 3.0.0-b4
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/CHANGELOG.md +9 -0
- package/README.md +21 -21
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/access-token.d.mts +5 -0
- package/resources/access-token.d.mts.map +1 -1
- package/resources/access-token.d.ts +5 -0
- package/resources/access-token.d.ts.map +1 -1
- package/resources/agents/agents.js +1 -1
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +1 -1
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/metrics/index.d.mts +1 -1
- package/resources/agents/metrics/index.d.mts.map +1 -1
- package/resources/agents/metrics/index.d.ts +1 -1
- package/resources/agents/metrics/index.d.ts.map +1 -1
- package/resources/agents/metrics/index.js.map +1 -1
- package/resources/agents/metrics/index.mjs.map +1 -1
- package/resources/agents/metrics/metrics.d.mts +2 -2
- package/resources/agents/metrics/metrics.d.mts.map +1 -1
- package/resources/agents/metrics/metrics.d.ts +2 -2
- package/resources/agents/metrics/metrics.d.ts.map +1 -1
- package/resources/agents/metrics/metrics.js.map +1 -1
- package/resources/agents/metrics/metrics.mjs.map +1 -1
- package/resources/agents/metrics/results.d.mts +23 -22
- package/resources/agents/metrics/results.d.mts.map +1 -1
- package/resources/agents/metrics/results.d.ts +23 -22
- package/resources/agents/metrics/results.d.ts.map +1 -1
- package/resources/agents/metrics/results.js +4 -5
- package/resources/agents/metrics/results.js.map +1 -1
- package/resources/agents/metrics/results.mjs +4 -5
- package/resources/agents/metrics/results.mjs.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/infill.d.mts +3 -4
- package/resources/infill.d.mts.map +1 -1
- package/resources/infill.d.ts +3 -4
- package/resources/infill.d.ts.map +1 -1
- package/resources/infill.js +0 -2
- package/resources/infill.js.map +1 -1
- package/resources/infill.mjs +0 -2
- package/resources/infill.mjs.map +1 -1
- package/resources/pronunciation-dicts.d.mts +0 -8
- package/resources/pronunciation-dicts.d.mts.map +1 -1
- package/resources/pronunciation-dicts.d.ts +0 -8
- package/resources/pronunciation-dicts.d.ts.map +1 -1
- package/resources/pronunciation-dicts.js +0 -18
- package/resources/pronunciation-dicts.js.map +1 -1
- package/resources/pronunciation-dicts.mjs +0 -18
- package/resources/pronunciation-dicts.mjs.map +1 -1
- package/resources/stt.d.mts +1 -104
- package/resources/stt.d.mts.map +1 -1
- package/resources/stt.d.ts +1 -104
- package/resources/stt.d.ts.map +1 -1
- package/resources/tts/tts.d.mts +79 -115
- package/resources/tts/tts.d.mts.map +1 -1
- package/resources/tts/tts.d.ts +79 -115
- package/resources/tts/tts.d.ts.map +1 -1
- package/resources/voice-changer.d.mts +2 -2
- package/resources/voice-changer.d.mts.map +1 -1
- package/resources/voice-changer.d.ts +2 -2
- package/resources/voice-changer.d.ts.map +1 -1
- package/resources/voices.d.mts +70 -34
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts +70 -34
- package/resources/voices.d.ts.map +1 -1
- package/resources/voices.js +45 -3
- package/resources/voices.js.map +1 -1
- package/resources/voices.mjs +45 -3
- package/resources/voices.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/access-token.ts +6 -0
- package/src/resources/agents/agents.ts +1 -1
- package/src/resources/agents/metrics/index.ts +1 -0
- package/src/resources/agents/metrics/metrics.ts +2 -0
- package/src/resources/agents/metrics/results.ts +27 -23
- package/src/resources/index.ts +1 -0
- package/src/resources/infill.ts +3 -4
- package/src/resources/pronunciation-dicts.ts +0 -20
- package/src/resources/stt.ts +102 -104
- package/src/resources/tts/tts.ts +146 -128
- package/src/resources/voice-changer.ts +2 -2
- package/src/resources/voices.ts +105 -38
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/tts/tts.d.ts
CHANGED
|
@@ -15,39 +15,28 @@ export declare class TTS extends APIResource {
|
|
|
15
15
|
generateSse(body: TTSGenerateSseParams, options?: RequestOptions): APIPromise<void>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
-
* Configure the various attributes of the generated speech. These
|
|
19
|
-
*
|
|
18
|
+
* Configure the various attributes of the generated speech. These are only for
|
|
19
|
+
* `sonic-3` and have no effect on earlier models.
|
|
20
|
+
*
|
|
21
|
+
* See
|
|
22
|
+
* [Volume, Speed, and Emotion in Sonic-3](/build-with-cartesia/sonic-3/volume-speed-emotion)
|
|
23
|
+
* for a guide on this option.
|
|
20
24
|
*/
|
|
21
25
|
export interface GenerationConfig {
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
experimental?: GenerationConfig.Experimental | null;
|
|
26
|
-
/**
|
|
27
|
-
* Adjust the speed of the generated speech between -1.0 (slower) and 1.0 (faster).
|
|
28
|
-
* 0.0 is the default speed.
|
|
27
|
+
* Guide the emotion of the generated speech.
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
emotion?: 'neutral' | 'happy' | 'excited' | 'enthusiastic' | 'elated' | 'euphoric' | 'triumphant' | 'amazed' | 'surprised' | 'flirtatious' | 'curious' | 'content' | 'peaceful' | 'serene' | 'calm' | 'grateful' | 'affectionate' | 'trust' | 'sympathetic' | 'anticipation' | 'mysterious' | 'angry' | 'mad' | 'outraged' | 'frustrated' | 'agitated' | 'threatened' | 'disgusted' | 'contempt' | 'envious' | 'sarcastic' | 'ironic' | 'sad' | 'dejected' | 'melancholic' | 'disappointed' | 'hurt' | 'guilty' | 'bored' | 'tired' | 'rejected' | 'nostalgic' | 'wistful' | 'apologetic' | 'hesitant' | 'insecure' | 'confused' | 'resigned' | 'anxious' | 'panicked' | 'alarmed' | 'scared' | 'proud' | 'confident' | 'distant' | 'skeptical' | 'contemplative' | 'determined';
|
|
31
30
|
/**
|
|
32
|
-
* Adjust the
|
|
33
|
-
* (
|
|
31
|
+
* Adjust the speed of the generated speech between 0.6x and 1.5x the original
|
|
32
|
+
* speed (default is 1.0x). Valid values are between [0.6, 1.5] inclusive.
|
|
34
33
|
*/
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
export declare namespace GenerationConfig {
|
|
34
|
+
speed?: number;
|
|
38
35
|
/**
|
|
39
|
-
*
|
|
36
|
+
* Adjust the volume of the generated speech between 0.5x and 2.0x the original
|
|
37
|
+
* volume (default is 1.0x). Valid values are between [0.5, 2.0] inclusive.
|
|
40
38
|
*/
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Toggle accent localization: 0 (disabled, default) or 1 (enabled). When enabled,
|
|
44
|
-
* the voice adapts to match the transcript language's accent while preserving
|
|
45
|
-
* vocal characteristics. When disabled, maintains the original voice accent. For
|
|
46
|
-
* more information, see
|
|
47
|
-
* [Localize Voices](/build-with-sonic/capabilities/localize-voices).
|
|
48
|
-
*/
|
|
49
|
-
accent_localization?: number | null;
|
|
50
|
-
}
|
|
39
|
+
volume?: number;
|
|
51
40
|
}
|
|
52
41
|
export interface GenerationRequest {
|
|
53
42
|
/**
|
|
@@ -86,27 +75,27 @@ export interface GenerationRequest {
|
|
|
86
75
|
* defaults to `false`.
|
|
87
76
|
*/
|
|
88
77
|
continue?: boolean | null;
|
|
89
|
-
/**
|
|
90
|
-
* The maximum duration of the audio in seconds. You do not usually need to specify
|
|
91
|
-
* this. If the duration is not appropriate for the length of the transcript, the
|
|
92
|
-
* output audio may be truncated.
|
|
93
|
-
*/
|
|
94
|
-
duration?: number | null;
|
|
95
78
|
/**
|
|
96
79
|
* Whether to flush the context.
|
|
97
80
|
*/
|
|
98
81
|
flush?: boolean | null;
|
|
99
82
|
/**
|
|
100
|
-
*
|
|
83
|
+
* Configure the various attributes of the generated speech. These are only for
|
|
84
|
+
* `sonic-3` and have no effect on earlier models.
|
|
101
85
|
*
|
|
102
|
-
*
|
|
103
|
-
*
|
|
104
|
-
*
|
|
86
|
+
* See
|
|
87
|
+
* [Volume, Speed, and Emotion in Sonic-3](/build-with-cartesia/sonic-3/volume-speed-emotion)
|
|
88
|
+
* for a guide on this option.
|
|
105
89
|
*/
|
|
106
|
-
|
|
90
|
+
generation_config?: GenerationConfig;
|
|
91
|
+
/**
|
|
92
|
+
* The language that the given voice should speak the transcript in. For valid
|
|
93
|
+
* options, see [Models](/build-with-cartesia/tts-models).
|
|
94
|
+
*/
|
|
95
|
+
language?: VoicesAPI.SupportedLanguage;
|
|
107
96
|
/**
|
|
108
97
|
* The maximum time in milliseconds to buffer text before starting generation.
|
|
109
|
-
* Values between [0,
|
|
98
|
+
* Values between [0, 5000]ms are supported. Defaults to 3000ms.
|
|
110
99
|
*
|
|
111
100
|
* When set, the model will buffer incoming text chunks until it's confident it has
|
|
112
101
|
* enough context to generate high-quality speech, or the buffer delay elapses,
|
|
@@ -118,21 +107,17 @@ export interface GenerationRequest {
|
|
|
118
107
|
*/
|
|
119
108
|
max_buffer_delay_ms?: number | null;
|
|
120
109
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* element of the list. If there are conflicts with dict items, the latest dict
|
|
124
|
-
* will take precedence.
|
|
110
|
+
* The ID of a pronunciation dictionary to use for the generation. Pronunciation
|
|
111
|
+
* dictionaries are supported by `sonic-3` models and newer.
|
|
125
112
|
*/
|
|
126
|
-
|
|
113
|
+
pronunciation_dict_id?: string | null;
|
|
127
114
|
/**
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* Influences the speed of the generated speech. Faster speeds may reduce
|
|
133
|
-
* hallucination rate.
|
|
115
|
+
* @deprecated Use `generation_config.speed` for sonic-3. Speed setting for the
|
|
116
|
+
* model. Defaults to `normal`. This feature is experimental and may not work for
|
|
117
|
+
* all voices. Influences the speed of the generated speech. Faster speeds may
|
|
118
|
+
* reduce hallucination rate.
|
|
134
119
|
*/
|
|
135
|
-
speed?: ModelSpeed
|
|
120
|
+
speed?: ModelSpeed;
|
|
136
121
|
/**
|
|
137
122
|
* Whether to use normalized timestamps (True) or original timestamps (False).
|
|
138
123
|
*/
|
|
@@ -142,21 +127,19 @@ export declare namespace GenerationRequest {
|
|
|
142
127
|
interface OutputFormat {
|
|
143
128
|
container: 'raw';
|
|
144
129
|
encoding: InfillAPI.RawEncoding;
|
|
145
|
-
sample_rate:
|
|
130
|
+
sample_rate: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
146
131
|
}
|
|
147
132
|
}
|
|
148
133
|
/**
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
*
|
|
153
|
-
* Influences the speed of the generated speech. Faster speeds may reduce
|
|
154
|
-
* hallucination rate.
|
|
134
|
+
* @deprecated Use `generation_config.speed` for sonic-3. Speed setting for the
|
|
135
|
+
* model. Defaults to `normal`. This feature is experimental and may not work for
|
|
136
|
+
* all voices. Influences the speed of the generated speech. Faster speeds may
|
|
137
|
+
* reduce hallucination rate.
|
|
155
138
|
*/
|
|
156
139
|
export type ModelSpeed = 'slow' | 'normal' | 'fast';
|
|
157
140
|
export interface RawOutputFormat {
|
|
158
141
|
encoding: InfillAPI.RawEncoding;
|
|
159
|
-
sample_rate:
|
|
142
|
+
sample_rate: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
160
143
|
}
|
|
161
144
|
export interface VoiceSpecifier {
|
|
162
145
|
/**
|
|
@@ -189,11 +172,8 @@ export declare namespace WebsocketClientEvent {
|
|
|
189
172
|
export type WebsocketResponse = WebsocketResponse.Chunk | WebsocketResponse.FlushDone | WebsocketResponse.Done | WebsocketResponse.Timestamps | WebsocketResponse.Error | WebsocketResponse.PhonemeTimestamps;
|
|
190
173
|
export declare namespace WebsocketResponse {
|
|
191
174
|
interface Chunk {
|
|
192
|
-
data: string;
|
|
193
175
|
done: boolean;
|
|
194
176
|
status_code: number;
|
|
195
|
-
step_time: number;
|
|
196
|
-
type: 'chunk';
|
|
197
177
|
/**
|
|
198
178
|
* A unique identifier for the context. You can use any unique identifier, like a
|
|
199
179
|
* UUID or human ID.
|
|
@@ -202,6 +182,7 @@ export declare namespace WebsocketResponse {
|
|
|
202
182
|
* conversation IDs) as context IDs.
|
|
203
183
|
*/
|
|
204
184
|
context_id?: string | null;
|
|
185
|
+
type?: 'chunk';
|
|
205
186
|
}
|
|
206
187
|
interface FlushDone {
|
|
207
188
|
done: boolean;
|
|
@@ -279,45 +260,36 @@ export interface TTSGenerateParams {
|
|
|
279
260
|
transcript: string;
|
|
280
261
|
voice: VoiceSpecifier;
|
|
281
262
|
/**
|
|
282
|
-
*
|
|
283
|
-
*
|
|
284
|
-
*
|
|
263
|
+
* Configure the various attributes of the generated speech. These are only for
|
|
264
|
+
* `sonic-3` and have no effect on earlier models.
|
|
265
|
+
*
|
|
266
|
+
* See
|
|
267
|
+
* [Volume, Speed, and Emotion in Sonic-3](/build-with-cartesia/sonic-3/volume-speed-emotion)
|
|
268
|
+
* for a guide on this option.
|
|
285
269
|
*/
|
|
286
|
-
|
|
270
|
+
generation_config?: GenerationConfig;
|
|
287
271
|
/**
|
|
288
|
-
*
|
|
289
|
-
*
|
|
290
|
-
*/
|
|
291
|
-
generation_config?: GenerationConfig | null;
|
|
292
|
-
/**
|
|
293
|
-
* The language that the given voice should speak the transcript in.
|
|
294
|
-
*
|
|
295
|
-
* Options: English (en), French (fr), German (de), Spanish (es), Portuguese (pt),
|
|
296
|
-
* Chinese (zh), Japanese (ja), Hindi (hi), Italian (it), Korean (ko), Dutch (nl),
|
|
297
|
-
* Polish (pl), Russian (ru), Swedish (sv), Turkish (tr).
|
|
272
|
+
* The language that the given voice should speak the transcript in. For valid
|
|
273
|
+
* options, see [Models](/build-with-cartesia/tts-models).
|
|
298
274
|
*/
|
|
299
275
|
language?: VoicesAPI.SupportedLanguage | null;
|
|
300
276
|
/**
|
|
301
|
-
*
|
|
302
|
-
*
|
|
303
|
-
* element of the list. If there are conflicts with dict items, the latest dict
|
|
304
|
-
* will take precedence.
|
|
277
|
+
* The ID of a pronunciation dictionary to use for the generation. Pronunciation
|
|
278
|
+
* dictionaries are supported by `sonic-3` models and newer.
|
|
305
279
|
*/
|
|
306
|
-
|
|
280
|
+
pronunciation_dict_id?: string | null;
|
|
307
281
|
/**
|
|
308
282
|
* Whether to save the generated audio file. When true, the response will include a
|
|
309
283
|
* `Cartesia-File-ID` header.
|
|
310
284
|
*/
|
|
311
285
|
save?: boolean | null;
|
|
312
286
|
/**
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
*
|
|
316
|
-
*
|
|
317
|
-
* Influences the speed of the generated speech. Faster speeds may reduce
|
|
318
|
-
* hallucination rate.
|
|
287
|
+
* @deprecated Use `generation_config.speed` for sonic-3. Speed setting for the
|
|
288
|
+
* model. Defaults to `normal`. This feature is experimental and may not work for
|
|
289
|
+
* all voices. Influences the speed of the generated speech. Faster speeds may
|
|
290
|
+
* reduce hallucination rate.
|
|
319
291
|
*/
|
|
320
|
-
speed?: ModelSpeed
|
|
292
|
+
speed?: ModelSpeed;
|
|
321
293
|
}
|
|
322
294
|
export declare namespace TTSGenerateParams {
|
|
323
295
|
interface RawOutputFormat extends TTSAPI.RawOutputFormat {
|
|
@@ -327,12 +299,8 @@ export declare namespace TTSGenerateParams {
|
|
|
327
299
|
container?: 'wav';
|
|
328
300
|
}
|
|
329
301
|
interface MP3OutputFormat {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
* 64000, 96000, 128000, 192000.
|
|
333
|
-
*/
|
|
334
|
-
bit_rate: number;
|
|
335
|
-
sample_rate: number;
|
|
302
|
+
bit_rate: 32000 | 64000 | 96000 | 128000 | 192000;
|
|
303
|
+
sample_rate: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
336
304
|
container?: 'mp3';
|
|
337
305
|
}
|
|
338
306
|
}
|
|
@@ -362,35 +330,31 @@ export interface TTSGenerateSseParams {
|
|
|
362
330
|
*/
|
|
363
331
|
context_id?: string | null;
|
|
364
332
|
/**
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
*
|
|
333
|
+
* Configure the various attributes of the generated speech. These are only for
|
|
334
|
+
* `sonic-3` and have no effect on earlier models.
|
|
335
|
+
*
|
|
336
|
+
* See
|
|
337
|
+
* [Volume, Speed, and Emotion in Sonic-3](/build-with-cartesia/sonic-3/volume-speed-emotion)
|
|
338
|
+
* for a guide on this option.
|
|
368
339
|
*/
|
|
369
|
-
|
|
340
|
+
generation_config?: GenerationConfig;
|
|
370
341
|
/**
|
|
371
|
-
* The language that the given voice should speak the transcript in.
|
|
372
|
-
*
|
|
373
|
-
* Options: English (en), French (fr), German (de), Spanish (es), Portuguese (pt),
|
|
374
|
-
* Chinese (zh), Japanese (ja), Hindi (hi), Italian (it), Korean (ko), Dutch (nl),
|
|
375
|
-
* Polish (pl), Russian (ru), Swedish (sv), Turkish (tr).
|
|
342
|
+
* The language that the given voice should speak the transcript in. For valid
|
|
343
|
+
* options, see [Models](/build-with-cartesia/tts-models).
|
|
376
344
|
*/
|
|
377
|
-
language?: VoicesAPI.SupportedLanguage
|
|
345
|
+
language?: VoicesAPI.SupportedLanguage;
|
|
378
346
|
/**
|
|
379
|
-
*
|
|
380
|
-
*
|
|
381
|
-
* element of the list. If there are conflicts with dict items, the latest dict
|
|
382
|
-
* will take precedence.
|
|
347
|
+
* The ID of a pronunciation dictionary to use for the generation. Pronunciation
|
|
348
|
+
* dictionaries are supported by `sonic-3` models and newer.
|
|
383
349
|
*/
|
|
384
|
-
|
|
350
|
+
pronunciation_dict_id?: string | null;
|
|
385
351
|
/**
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
*
|
|
389
|
-
*
|
|
390
|
-
* Influences the speed of the generated speech. Faster speeds may reduce
|
|
391
|
-
* hallucination rate.
|
|
352
|
+
* @deprecated Use `generation_config.speed` for sonic-3. Speed setting for the
|
|
353
|
+
* model. Defaults to `normal`. This feature is experimental and may not work for
|
|
354
|
+
* all voices. Influences the speed of the generated speech. Faster speeds may
|
|
355
|
+
* reduce hallucination rate.
|
|
392
356
|
*/
|
|
393
|
-
speed?: ModelSpeed
|
|
357
|
+
speed?: ModelSpeed;
|
|
394
358
|
/**
|
|
395
359
|
* Whether to use normalized timestamps (True) or original timestamps (False).
|
|
396
360
|
*/
|
|
@@ -400,7 +364,7 @@ export declare namespace TTSGenerateSseParams {
|
|
|
400
364
|
interface OutputFormat {
|
|
401
365
|
container: 'raw';
|
|
402
366
|
encoding: InfillAPI.RawEncoding;
|
|
403
|
-
sample_rate:
|
|
367
|
+
sample_rate: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
404
368
|
}
|
|
405
369
|
}
|
|
406
370
|
export declare namespace TTS {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tts.d.ts","sourceRoot":"","sources":["../../src/resources/tts/tts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,SAAS;OACd,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAEzB,qBAAa,GAAI,SAAQ,WAAW;IAClC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,QAAQ,CAAC;IASjF;;OAEG;IACH,WAAW,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOpF;AAED
|
|
1
|
+
{"version":3,"file":"tts.d.ts","sourceRoot":"","sources":["../../src/resources/tts/tts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,SAAS;OACd,KAA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,WAAW,GAAG,CAAC;IAC3B,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
|
|
@@ -27,7 +27,7 @@ export interface VoiceChangerChangeVoiceBytesParams {
|
|
|
27
27
|
* Required for `raw` and `wav` containers.
|
|
28
28
|
*/
|
|
29
29
|
'output_format[encoding]'?: InfillAPI.RawEncoding | null;
|
|
30
|
-
'output_format[sample_rate]'?:
|
|
30
|
+
'output_format[sample_rate]'?: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
31
31
|
'voice[id]'?: string;
|
|
32
32
|
}
|
|
33
33
|
export interface VoiceChangerChangeVoiceSseParams {
|
|
@@ -41,7 +41,7 @@ export interface VoiceChangerChangeVoiceSseParams {
|
|
|
41
41
|
* Required for `raw` and `wav` containers.
|
|
42
42
|
*/
|
|
43
43
|
'output_format[encoding]'?: InfillAPI.RawEncoding | null;
|
|
44
|
-
'output_format[sample_rate]'?:
|
|
44
|
+
'output_format[sample_rate]'?: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
45
45
|
'voice[id]'?: string;
|
|
46
46
|
}
|
|
47
47
|
export declare namespace VoiceChanger {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-changer.d.mts","sourceRoot":"","sources":["../src/resources/voice-changer.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAGzB,qBA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SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;IAEzD,4BAA4B,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAE5E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1C,0BAA0B,CAAC,EAAE,SAAS,CAAC,qBAAqB,CAAC;IAE7D;;OAEG;IACH,yBAAyB,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;IAEzD,4BAA4B,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAE5E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
|
@@ -27,7 +27,7 @@ export interface VoiceChangerChangeVoiceBytesParams {
|
|
|
27
27
|
* Required for `raw` and `wav` containers.
|
|
28
28
|
*/
|
|
29
29
|
'output_format[encoding]'?: InfillAPI.RawEncoding | null;
|
|
30
|
-
'output_format[sample_rate]'?:
|
|
30
|
+
'output_format[sample_rate]'?: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
31
31
|
'voice[id]'?: string;
|
|
32
32
|
}
|
|
33
33
|
export interface VoiceChangerChangeVoiceSseParams {
|
|
@@ -41,7 +41,7 @@ export interface VoiceChangerChangeVoiceSseParams {
|
|
|
41
41
|
* Required for `raw` and `wav` containers.
|
|
42
42
|
*/
|
|
43
43
|
'output_format[encoding]'?: InfillAPI.RawEncoding | null;
|
|
44
|
-
'output_format[sample_rate]'?:
|
|
44
|
+
'output_format[sample_rate]'?: 8000 | 16000 | 22050 | 24000 | 44100 | 48000;
|
|
45
45
|
'voice[id]'?: string;
|
|
46
46
|
}
|
|
47
47
|
export declare namespace VoiceChanger {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voice-changer.d.ts","sourceRoot":"","sources":["../src/resources/voice-changer.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,kCAAkC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAUtG;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,gCAAgC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CASnG;AAED,MAAM,WAAW,kCAAkC;IACjD,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1C,0BAA0B,CAAC,EAAE,SAAS,CAAC,qBAAqB,CAAC;IAE7D;;OAEG;IACH,yBAAyB,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;IAEzD,4BAA4B,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"voice-changer.d.ts","sourceRoot":"","sources":["../src/resources/voice-changer.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,UAAU,EAAE;OACd,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,kCAAkC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAUtG;;OAEG;IACH,cAAc,CAAC,IAAI,EAAE,gCAAgC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CASnG;AAED,MAAM,WAAW,kCAAkC;IACjD,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1C,0BAA0B,CAAC,EAAE,SAAS,CAAC,qBAAqB,CAAC;IAE7D;;OAEG;IACH,yBAAyB,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;IAEzD,4BAA4B,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAE5E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,CAAC,EAAE,UAAU,CAAC;IAElB;;OAEG;IACH,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1C,0BAA0B,CAAC,EAAE,SAAS,CAAC,qBAAqB,CAAC;IAE7D;;OAEG;IACH,yBAAyB,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC;IAEzD,4BAA4B,CAAC,EAAE,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;IAE5E,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,gCAAgC,IAAI,gCAAgC,GAC1E,CAAC;CACH"}
|
package/resources/voices.d.mts
CHANGED
|
@@ -8,42 +8,81 @@ export declare class Voices extends APIResource {
|
|
|
8
8
|
* Update the name, description, and gender of a voice. To set the gender back to
|
|
9
9
|
* the default, set the gender to `null`. If gender is not specified, the gender
|
|
10
10
|
* will not be updated.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const voice = await client.voices.update('id', {
|
|
15
|
+
* description: 'description',
|
|
16
|
+
* name: 'name',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
11
19
|
*/
|
|
12
20
|
update(id: string, body: VoiceUpdateParams, options?: RequestOptions): APIPromise<Voice>;
|
|
13
21
|
/**
|
|
14
22
|
* List Voices
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* // Automatically fetches more pages as needed.
|
|
27
|
+
* for await (const voice of client.voices.list()) {
|
|
28
|
+
* // ...
|
|
29
|
+
* }
|
|
30
|
+
* ```
|
|
15
31
|
*/
|
|
16
32
|
list(query?: VoiceListParams | null | undefined, options?: RequestOptions): PagePromise<VoicesCursorIDPage, Voice>;
|
|
17
33
|
/**
|
|
18
34
|
* Delete Voice
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* await client.voices.delete('id');
|
|
39
|
+
* ```
|
|
19
40
|
*/
|
|
20
41
|
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
21
42
|
/**
|
|
22
43
|
* Clone a high similarity voice from an audio clip. Clones are more similar to the
|
|
23
44
|
* source clip, but may reproduce background noise. For these, use an audio clip
|
|
24
45
|
* about 5 seconds long.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const voiceMetadata = await client.voices.clone();
|
|
50
|
+
* ```
|
|
25
51
|
*/
|
|
26
52
|
clone(body: VoiceCloneParams, options?: RequestOptions): APIPromise<VoiceMetadata>;
|
|
27
53
|
/**
|
|
28
54
|
* Get Voice
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const voice = await client.voices.get('id');
|
|
59
|
+
* ```
|
|
29
60
|
*/
|
|
30
|
-
get(id: string, options?: RequestOptions): APIPromise<Voice>;
|
|
61
|
+
get(id: string, query?: VoiceGetParams | null | undefined, options?: RequestOptions): APIPromise<Voice>;
|
|
31
62
|
/**
|
|
32
63
|
* Create a new voice from an existing voice localized to a new language and
|
|
33
64
|
* dialect.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const voiceMetadata = await client.voices.localize({
|
|
69
|
+
* description: 'description',
|
|
70
|
+
* language: 'en',
|
|
71
|
+
* name: 'name',
|
|
72
|
+
* original_speaker_gender: 'male',
|
|
73
|
+
* voice_id: 'voice_id',
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
34
76
|
*/
|
|
35
77
|
localize(body: VoiceLocalizeParams, options?: RequestOptions): APIPromise<VoiceMetadata>;
|
|
36
78
|
}
|
|
37
79
|
export type VoicesCursorIDPage = CursorIDPage<Voice>;
|
|
38
80
|
export type GenderPresentation = 'masculine' | 'feminine' | 'gender_neutral';
|
|
39
81
|
/**
|
|
40
|
-
* The language that the given voice should speak the transcript in.
|
|
41
|
-
*
|
|
42
|
-
* Options: English (en), French (fr), German (de), Spanish (es), Portuguese (pt),
|
|
43
|
-
* Chinese (zh), Japanese (ja), Hindi (hi), Italian (it), Korean (ko), Dutch (nl),
|
|
44
|
-
* Polish (pl), Russian (ru), Swedish (sv), Turkish (tr).
|
|
82
|
+
* The language that the given voice should speak the transcript in. For valid
|
|
83
|
+
* options, see [Models](/build-with-cartesia/tts-models).
|
|
45
84
|
*/
|
|
46
|
-
export type SupportedLanguage = 'en' | 'fr' | 'de' | 'es' | 'pt' | 'zh' | 'ja' | 'hi' | 'it' | 'ko' | 'nl' | 'pl' | 'ru' | 'sv' | 'tr';
|
|
85
|
+
export type SupportedLanguage = 'en' | 'fr' | 'de' | 'es' | 'pt' | 'zh' | 'ja' | 'hi' | 'it' | 'ko' | 'nl' | 'pl' | 'ru' | 'sv' | 'tr' | 'tl' | 'bg' | 'ro' | 'ar' | 'cs' | 'el' | 'fi' | 'hr' | 'ms' | 'sk' | 'da' | 'ta' | 'uk' | 'hu' | 'no' | 'vi' | 'bn' | 'th' | 'he' | 'ka' | 'id' | 'te' | 'gu' | 'kn' | 'ml' | 'mr' | 'pa';
|
|
47
86
|
export interface Voice {
|
|
48
87
|
/**
|
|
49
88
|
* The ID of the voice.
|
|
@@ -58,7 +97,7 @@ export interface Voice {
|
|
|
58
97
|
*/
|
|
59
98
|
description: string;
|
|
60
99
|
/**
|
|
61
|
-
* Whether
|
|
100
|
+
* Whether your organization owns the voice.
|
|
62
101
|
*/
|
|
63
102
|
is_owner: boolean;
|
|
64
103
|
/**
|
|
@@ -66,11 +105,8 @@ export interface Voice {
|
|
|
66
105
|
*/
|
|
67
106
|
is_public: boolean;
|
|
68
107
|
/**
|
|
69
|
-
* The language that the given voice should speak the transcript in.
|
|
70
|
-
*
|
|
71
|
-
* Options: English (en), French (fr), German (de), Spanish (es), Portuguese (pt),
|
|
72
|
-
* Chinese (zh), Japanese (ja), Hindi (hi), Italian (it), Korean (ko), Dutch (nl),
|
|
73
|
-
* Polish (pl), Russian (ru), Swedish (sv), Turkish (tr).
|
|
108
|
+
* The language that the given voice should speak the transcript in. For valid
|
|
109
|
+
* options, see [Models](/build-with-cartesia/tts-models).
|
|
74
110
|
*/
|
|
75
111
|
language: SupportedLanguage;
|
|
76
112
|
/**
|
|
@@ -82,10 +118,13 @@ export interface Voice {
|
|
|
82
118
|
*/
|
|
83
119
|
gender?: GenderPresentation | null;
|
|
84
120
|
/**
|
|
85
|
-
*
|
|
86
|
-
*
|
|
121
|
+
* A URL to download a preview audio file for this voice. Useful to avoid consuming
|
|
122
|
+
* credits when looking for the right voice. The URL requires the same
|
|
123
|
+
* Authorization header. Voice previews may be changed, moved, or deleted so you
|
|
124
|
+
* should avoid storing the URL permanently. This property will be null if there's
|
|
125
|
+
* no preview available. Only included when `expand[]` includes `preview_file_url`.
|
|
87
126
|
*/
|
|
88
|
-
|
|
127
|
+
preview_file_url?: string | null;
|
|
89
128
|
}
|
|
90
129
|
export interface VoiceMetadata {
|
|
91
130
|
/**
|
|
@@ -105,11 +144,8 @@ export interface VoiceMetadata {
|
|
|
105
144
|
*/
|
|
106
145
|
is_public: boolean;
|
|
107
146
|
/**
|
|
108
|
-
* The language that the given voice should speak the transcript in.
|
|
109
|
-
*
|
|
110
|
-
* Options: English (en), French (fr), German (de), Spanish (es), Portuguese (pt),
|
|
111
|
-
* Chinese (zh), Japanese (ja), Hindi (hi), Italian (it), Korean (ko), Dutch (nl),
|
|
112
|
-
* Polish (pl), Russian (ru), Swedish (sv), Turkish (tr).
|
|
147
|
+
* The language that the given voice should speak the transcript in. For valid
|
|
148
|
+
* options, see [Models](/build-with-cartesia/tts-models).
|
|
113
149
|
*/
|
|
114
150
|
language: SupportedLanguage;
|
|
115
151
|
/**
|
|
@@ -136,24 +172,23 @@ export interface VoiceListParams extends CursorIDPageParams {
|
|
|
136
172
|
/**
|
|
137
173
|
* Additional fields to include in the response.
|
|
138
174
|
*/
|
|
139
|
-
expand?: Array<'
|
|
175
|
+
expand?: Array<'preview_file_url'> | null;
|
|
140
176
|
/**
|
|
141
177
|
* The gender presentation of the voices to return.
|
|
142
178
|
*/
|
|
143
179
|
gender?: GenderPresentation | null;
|
|
144
180
|
/**
|
|
145
|
-
* Whether to only return voices owned
|
|
181
|
+
* Whether to only return voices owned your organization.
|
|
146
182
|
*/
|
|
147
183
|
is_owner?: boolean | null;
|
|
148
|
-
/**
|
|
149
|
-
* Whether to only return starred voices.
|
|
150
|
-
*/
|
|
151
|
-
is_starred?: boolean | null;
|
|
152
|
-
language?: string;
|
|
153
184
|
/**
|
|
154
185
|
* The number of Voices to return per page, ranging between 1 and 100.
|
|
155
186
|
*/
|
|
156
187
|
limit?: number | null;
|
|
188
|
+
/**
|
|
189
|
+
* Query string to search for voices by name, description, or Voice ID.
|
|
190
|
+
*/
|
|
191
|
+
q?: string | null;
|
|
157
192
|
}
|
|
158
193
|
export interface VoiceCloneParams {
|
|
159
194
|
/**
|
|
@@ -165,11 +200,6 @@ export interface VoiceCloneParams {
|
|
|
165
200
|
* A description for the voice.
|
|
166
201
|
*/
|
|
167
202
|
description?: string | null;
|
|
168
|
-
/**
|
|
169
|
-
* Whether to apply AI enhancements to the clip to reduce background noise. This is
|
|
170
|
-
* not recommended unless the source clip is extremely low quality.
|
|
171
|
-
*/
|
|
172
|
-
enhance?: boolean | null;
|
|
173
203
|
/**
|
|
174
204
|
* The language of the voice.
|
|
175
205
|
*/
|
|
@@ -179,6 +209,12 @@ export interface VoiceCloneParams {
|
|
|
179
209
|
*/
|
|
180
210
|
name?: string;
|
|
181
211
|
}
|
|
212
|
+
export interface VoiceGetParams {
|
|
213
|
+
/**
|
|
214
|
+
* Additional fields to include in the response.
|
|
215
|
+
*/
|
|
216
|
+
expand?: Array<'preview_file_url'> | null;
|
|
217
|
+
}
|
|
182
218
|
export interface VoiceLocalizeParams {
|
|
183
219
|
/**
|
|
184
220
|
* The description of the new localized voice.
|
|
@@ -208,6 +244,6 @@ export interface VoiceLocalizeParams {
|
|
|
208
244
|
dialect?: 'au' | 'in' | 'so' | 'uk' | 'us' | 'mx' | 'pe' | 'br' | 'eu' | 'ca' | null;
|
|
209
245
|
}
|
|
210
246
|
export declare namespace Voices {
|
|
211
|
-
export { type GenderPresentation as GenderPresentation, type SupportedLanguage as SupportedLanguage, type Voice as Voice, type VoiceMetadata as VoiceMetadata, type VoicesCursorIDPage as VoicesCursorIDPage, type VoiceUpdateParams as VoiceUpdateParams, type VoiceListParams as VoiceListParams, type VoiceCloneParams as VoiceCloneParams, type VoiceLocalizeParams as VoiceLocalizeParams, };
|
|
247
|
+
export { type GenderPresentation as GenderPresentation, type SupportedLanguage as SupportedLanguage, type Voice as Voice, type VoiceMetadata as VoiceMetadata, type VoicesCursorIDPage as VoicesCursorIDPage, type VoiceUpdateParams as VoiceUpdateParams, type VoiceListParams as VoiceListParams, type VoiceCloneParams as VoiceCloneParams, type VoiceGetParams as VoiceGetParams, type VoiceLocalizeParams as VoiceLocalizeParams, };
|
|
212
248
|
}
|
|
213
249
|
//# sourceMappingURL=voices.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"voices.d.mts","sourceRoot":"","sources":["../src/resources/voices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OACtD,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"voices.d.mts","sourceRoot":"","sources":["../src/resources/voices.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,YAAY,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAE;OACtD,EAAE,KAAK,UAAU,EAAE;OAEnB,EAAE,cAAc,EAAE;AAIzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAIxF;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,eAAe,GAAG,IAAI,GAAG,SAAc,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,kBAAkB,EAAE,KAAK,CAAC;IAIzC;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAO9D;;;;;;;;;OASG;IACH,KAAK,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;IAOlF;;;;;;;OAOG;IACH,GAAG,CACD,EAAE,EAAE,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