@supertone/supertone 0.1.4 → 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 +15 -44
- package/custom_test/test_real_api.ts +289 -14
- package/dist/commonjs/funcs/customVoicesCreateClonedVoice.d.ts +1 -1
- package/dist/commonjs/funcs/customVoicesCreateClonedVoice.d.ts.map +1 -1
- package/dist/commonjs/funcs/customVoicesCreateClonedVoice.js +6 -2
- package/dist/commonjs/funcs/customVoicesCreateClonedVoice.js.map +1 -1
- package/dist/commonjs/funcs/customVoicesEditCustomVoice.d.ts +1 -1
- package/dist/commonjs/funcs/customVoicesEditCustomVoice.js +2 -2
- package/dist/commonjs/funcs/customVoicesGetCustomVoice.d.ts +1 -1
- package/dist/commonjs/funcs/customVoicesGetCustomVoice.d.ts.map +1 -1
- package/dist/commonjs/funcs/customVoicesGetCustomVoice.js +1 -1
- package/dist/commonjs/funcs/customVoicesGetCustomVoice.js.map +1 -1
- package/dist/commonjs/funcs/textToSpeechPredictDuration.js +3 -1
- package/dist/commonjs/funcs/textToSpeechPredictDuration.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.d.ts +8 -0
- package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.d.ts.map +1 -1
- package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.js +5 -0
- package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.js.map +1 -1
- package/dist/commonjs/models/createcustomvoiceresponse.d.ts +32 -0
- package/dist/commonjs/models/createcustomvoiceresponse.d.ts.map +1 -0
- package/dist/commonjs/models/{createclonedvoiceuploadresponse.js → createcustomvoiceresponse.js} +17 -17
- package/dist/commonjs/models/createcustomvoiceresponse.js.map +1 -0
- package/dist/commonjs/models/getcustomvoicelistresponse.d.ts +3 -3
- package/dist/commonjs/models/getcustomvoicelistresponse.d.ts.map +1 -1
- package/dist/commonjs/models/getcustomvoicelistresponse.js +3 -3
- package/dist/commonjs/models/getcustomvoicelistresponse.js.map +1 -1
- package/dist/commonjs/models/getcustomvoiceresponse.d.ts +42 -0
- package/dist/commonjs/models/getcustomvoiceresponse.d.ts.map +1 -0
- package/dist/commonjs/models/{getcustomvoiceresponsedata.js → getcustomvoiceresponse.js} +17 -17
- package/dist/commonjs/models/getcustomvoiceresponse.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +5 -6
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +5 -6
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/operations/editcustomvoice.d.ts +2 -2
- package/dist/commonjs/models/operations/editcustomvoice.js +4 -4
- package/dist/commonjs/models/operations/predictduration.d.ts +2 -2
- package/dist/commonjs/models/operations/predictduration.d.ts.map +1 -1
- package/dist/commonjs/models/operations/predictduration.js +4 -4
- package/dist/commonjs/models/operations/predictduration.js.map +1 -1
- package/dist/commonjs/models/{predictttsdurationusingcharacterrequest.d.ts → predictttsdurationrequest.d.ts} +41 -38
- package/dist/commonjs/models/predictttsdurationrequest.d.ts.map +1 -0
- package/dist/commonjs/models/predictttsdurationrequest.js +181 -0
- package/dist/commonjs/models/predictttsdurationrequest.js.map +1 -0
- package/dist/commonjs/models/updatecustomvoicerequest.d.ts +37 -0
- package/dist/commonjs/models/{updateclonedvoicerequest.d.ts.map → updatecustomvoicerequest.d.ts.map} +1 -1
- package/dist/commonjs/models/{updateclonedvoicerequest.js → updatecustomvoicerequest.js} +17 -17
- package/dist/commonjs/models/{updateclonedvoicerequest.js.map → updatecustomvoicerequest.js.map} +1 -1
- package/dist/commonjs/models/updatecustomvoiceresponse.d.ts +42 -0
- package/dist/commonjs/models/{updateclonedvoiceresponse.d.ts.map → updatecustomvoiceresponse.d.ts.map} +1 -1
- package/dist/commonjs/models/{updateclonedvoiceresponse.js → updatecustomvoiceresponse.js} +17 -17
- package/dist/commonjs/models/{updateclonedvoiceresponse.js.map → updatecustomvoiceresponse.js.map} +1 -1
- package/dist/commonjs/sdk/customvoices.d.ts +3 -3
- package/dist/commonjs/sdk/customvoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/texttospeech.d.ts +6 -13
- package/dist/commonjs/sdk/texttospeech.d.ts.map +1 -1
- package/dist/commonjs/sdk/texttospeech.js +12 -9
- package/dist/commonjs/sdk/texttospeech.js.map +1 -1
- package/dist/esm/funcs/customVoicesCreateClonedVoice.d.ts +1 -1
- package/dist/esm/funcs/customVoicesCreateClonedVoice.d.ts.map +1 -1
- package/dist/esm/funcs/customVoicesCreateClonedVoice.js +6 -2
- package/dist/esm/funcs/customVoicesCreateClonedVoice.js.map +1 -1
- package/dist/esm/funcs/customVoicesEditCustomVoice.d.ts +1 -1
- package/dist/esm/funcs/customVoicesEditCustomVoice.js +2 -2
- package/dist/esm/funcs/customVoicesGetCustomVoice.d.ts +1 -1
- package/dist/esm/funcs/customVoicesGetCustomVoice.d.ts.map +1 -1
- package/dist/esm/funcs/customVoicesGetCustomVoice.js +1 -1
- package/dist/esm/funcs/customVoicesGetCustomVoice.js.map +1 -1
- package/dist/esm/funcs/textToSpeechPredictDuration.js +3 -1
- package/dist/esm/funcs/textToSpeechPredictDuration.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.d.ts +8 -0
- package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.d.ts.map +1 -1
- package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.js +5 -0
- package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.js.map +1 -1
- package/dist/esm/models/createcustomvoiceresponse.d.ts +32 -0
- package/dist/esm/models/createcustomvoiceresponse.d.ts.map +1 -0
- package/dist/esm/models/createcustomvoiceresponse.js +40 -0
- package/dist/esm/models/createcustomvoiceresponse.js.map +1 -0
- package/dist/esm/models/getcustomvoicelistresponse.d.ts +3 -3
- package/dist/esm/models/getcustomvoicelistresponse.d.ts.map +1 -1
- package/dist/esm/models/getcustomvoicelistresponse.js +3 -3
- package/dist/esm/models/getcustomvoicelistresponse.js.map +1 -1
- package/dist/esm/models/getcustomvoiceresponse.d.ts +42 -0
- package/dist/esm/models/getcustomvoiceresponse.d.ts.map +1 -0
- package/dist/esm/models/getcustomvoiceresponse.js +44 -0
- package/dist/esm/models/getcustomvoiceresponse.js.map +1 -0
- package/dist/esm/models/index.d.ts +5 -6
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +5 -6
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/operations/editcustomvoice.d.ts +2 -2
- package/dist/esm/models/operations/editcustomvoice.js +4 -4
- package/dist/esm/models/operations/predictduration.d.ts +2 -2
- package/dist/esm/models/operations/predictduration.d.ts.map +1 -1
- package/dist/esm/models/operations/predictduration.js +4 -4
- package/dist/esm/models/operations/predictduration.js.map +1 -1
- package/dist/esm/models/{predictttsdurationusingcharacterrequest.d.ts → predictttsdurationrequest.d.ts} +41 -38
- package/dist/esm/models/predictttsdurationrequest.d.ts.map +1 -0
- package/dist/esm/models/predictttsdurationrequest.js +143 -0
- package/dist/esm/models/predictttsdurationrequest.js.map +1 -0
- package/dist/esm/models/updatecustomvoicerequest.d.ts +37 -0
- package/dist/esm/models/{updateclonedvoicerequest.d.ts.map → updatecustomvoicerequest.d.ts.map} +1 -1
- package/dist/esm/models/updatecustomvoicerequest.js +33 -0
- package/dist/esm/models/{updateclonedvoicerequest.js.map → updatecustomvoicerequest.js.map} +1 -1
- package/dist/esm/models/updatecustomvoiceresponse.d.ts +42 -0
- package/dist/esm/models/{updateclonedvoiceresponse.d.ts.map → updatecustomvoiceresponse.d.ts.map} +1 -1
- package/dist/esm/models/updatecustomvoiceresponse.js +44 -0
- package/dist/esm/models/{updateclonedvoiceresponse.js.map → updatecustomvoiceresponse.js.map} +1 -1
- package/dist/esm/sdk/customvoices.d.ts +3 -3
- package/dist/esm/sdk/customvoices.d.ts.map +1 -1
- package/dist/esm/sdk/texttospeech.d.ts +6 -13
- package/dist/esm/sdk/texttospeech.d.ts.map +1 -1
- package/dist/esm/sdk/texttospeech.js +13 -10
- package/dist/esm/sdk/texttospeech.js.map +1 -1
- package/jsr.json +1 -1
- package/openapi.json +89 -49
- package/package.json +1 -1
- package/src/funcs/customVoicesCreateClonedVoice.ts +9 -5
- package/src/funcs/customVoicesEditCustomVoice.ts +5 -5
- package/src/funcs/customVoicesGetCustomVoice.ts +4 -4
- package/src/funcs/textToSpeechPredictDuration.ts +3 -5
- package/src/lib/config.ts +41 -41
- package/src/models/apiconverttexttospeechusingcharacterrequest.ts +10 -0
- package/src/models/createcustomvoiceresponse.ts +78 -0
- package/src/models/getcustomvoicelistresponse.ts +9 -9
- package/src/models/getcustomvoiceresponse.ts +92 -0
- package/src/models/index.ts +5 -6
- package/src/models/operations/editcustomvoice.ts +6 -6
- package/src/models/operations/predictduration.ts +6 -12
- package/src/models/predictttsdurationrequest.ts +256 -0
- package/src/models/updatecustomvoicerequest.ts +76 -0
- package/src/models/{updateclonedvoiceresponse.ts → updatecustomvoiceresponse.ts} +21 -21
- package/src/sdk/customvoices.ts +3 -3
- package/src/sdk/texttospeech.ts +54 -40
- package/dist/commonjs/models/createclonedvoiceuploadresponse.d.ts +0 -32
- package/dist/commonjs/models/createclonedvoiceuploadresponse.d.ts.map +0 -1
- package/dist/commonjs/models/createclonedvoiceuploadresponse.js.map +0 -1
- package/dist/commonjs/models/getcustomvoiceresponsedata.d.ts +0 -42
- package/dist/commonjs/models/getcustomvoiceresponsedata.d.ts.map +0 -1
- package/dist/commonjs/models/getcustomvoiceresponsedata.js.map +0 -1
- package/dist/commonjs/models/getsingleclonedvoiceresponse.d.ts +0 -42
- package/dist/commonjs/models/getsingleclonedvoiceresponse.d.ts.map +0 -1
- package/dist/commonjs/models/getsingleclonedvoiceresponse.js +0 -82
- package/dist/commonjs/models/getsingleclonedvoiceresponse.js.map +0 -1
- package/dist/commonjs/models/predictttsdurationusingcharacterrequest.d.ts.map +0 -1
- package/dist/commonjs/models/predictttsdurationusingcharacterrequest.js +0 -182
- package/dist/commonjs/models/predictttsdurationusingcharacterrequest.js.map +0 -1
- package/dist/commonjs/models/updateclonedvoicerequest.d.ts +0 -37
- package/dist/commonjs/models/updateclonedvoiceresponse.d.ts +0 -42
- package/dist/esm/models/createclonedvoiceuploadresponse.d.ts +0 -32
- package/dist/esm/models/createclonedvoiceuploadresponse.d.ts.map +0 -1
- package/dist/esm/models/createclonedvoiceuploadresponse.js +0 -40
- package/dist/esm/models/createclonedvoiceuploadresponse.js.map +0 -1
- package/dist/esm/models/getcustomvoiceresponsedata.d.ts +0 -42
- package/dist/esm/models/getcustomvoiceresponsedata.d.ts.map +0 -1
- package/dist/esm/models/getcustomvoiceresponsedata.js +0 -44
- package/dist/esm/models/getcustomvoiceresponsedata.js.map +0 -1
- package/dist/esm/models/getsingleclonedvoiceresponse.d.ts +0 -42
- package/dist/esm/models/getsingleclonedvoiceresponse.d.ts.map +0 -1
- package/dist/esm/models/getsingleclonedvoiceresponse.js +0 -44
- package/dist/esm/models/getsingleclonedvoiceresponse.js.map +0 -1
- package/dist/esm/models/predictttsdurationusingcharacterrequest.d.ts.map +0 -1
- package/dist/esm/models/predictttsdurationusingcharacterrequest.js +0 -144
- package/dist/esm/models/predictttsdurationusingcharacterrequest.js.map +0 -1
- package/dist/esm/models/updateclonedvoicerequest.d.ts +0 -37
- package/dist/esm/models/updateclonedvoicerequest.js +0 -33
- package/dist/esm/models/updateclonedvoiceresponse.d.ts +0 -42
- package/dist/esm/models/updateclonedvoiceresponse.js +0 -44
- package/src/models/createclonedvoiceuploadresponse.ts +0 -80
- package/src/models/getcustomvoiceresponsedata.ts +0 -92
- package/src/models/getsingleclonedvoiceresponse.ts +0 -94
- package/src/models/predictttsdurationusingcharacterrequest.ts +0 -276
- package/src/models/updateclonedvoicerequest.ts +0 -76
|
@@ -6,7 +6,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* Language code of the voice
|
|
8
8
|
*/
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const PredictTTSDurationRequestLanguage: {
|
|
10
10
|
readonly En: "en";
|
|
11
11
|
readonly Ko: "ko";
|
|
12
12
|
readonly Ja: "ja";
|
|
@@ -34,32 +34,33 @@ export declare const PredictTTSDurationUsingCharacterRequestLanguage: {
|
|
|
34
34
|
/**
|
|
35
35
|
* Language code of the voice
|
|
36
36
|
*/
|
|
37
|
-
export type
|
|
37
|
+
export type PredictTTSDurationRequestLanguage = ClosedEnum<typeof PredictTTSDurationRequestLanguage>;
|
|
38
38
|
/**
|
|
39
39
|
* The model type to use for the text-to-speech conversion
|
|
40
40
|
*/
|
|
41
|
-
export declare const
|
|
41
|
+
export declare const PredictTTSDurationRequestModel: {
|
|
42
42
|
readonly SonaSpeech1: "sona_speech_1";
|
|
43
43
|
readonly SonaSpeech2: "sona_speech_2";
|
|
44
44
|
readonly SonaSpeech2t: "sona_speech_2t";
|
|
45
|
+
readonly SonaSpeech2Flash: "sona_speech_2_flash";
|
|
45
46
|
readonly SupertonicApi1: "supertonic_api_1";
|
|
46
47
|
};
|
|
47
48
|
/**
|
|
48
49
|
* The model type to use for the text-to-speech conversion
|
|
49
50
|
*/
|
|
50
|
-
export type
|
|
51
|
+
export type PredictTTSDurationRequestModel = ClosedEnum<typeof PredictTTSDurationRequestModel>;
|
|
51
52
|
/**
|
|
52
53
|
* The desired output format of the audio file (wav, mp3). Default is wav.
|
|
53
54
|
*/
|
|
54
|
-
export declare const
|
|
55
|
+
export declare const PredictTTSDurationRequestOutputFormat: {
|
|
55
56
|
readonly Wav: "wav";
|
|
56
57
|
readonly Mp3: "mp3";
|
|
57
58
|
};
|
|
58
59
|
/**
|
|
59
60
|
* The desired output format of the audio file (wav, mp3). Default is wav.
|
|
60
61
|
*/
|
|
61
|
-
export type
|
|
62
|
-
export type
|
|
62
|
+
export type PredictTTSDurationRequestOutputFormat = ClosedEnum<typeof PredictTTSDurationRequestOutputFormat>;
|
|
63
|
+
export type PredictTTSDurationRequest = {
|
|
63
64
|
/**
|
|
64
65
|
* The text to convert to speech. Max length is 300 characters.
|
|
65
66
|
*/
|
|
@@ -67,7 +68,7 @@ export type PredictTTSDurationUsingCharacterRequest = {
|
|
|
67
68
|
/**
|
|
68
69
|
* Language code of the voice
|
|
69
70
|
*/
|
|
70
|
-
language:
|
|
71
|
+
language: PredictTTSDurationRequestLanguage;
|
|
71
72
|
/**
|
|
72
73
|
* The style of character to use for the text-to-speech conversion
|
|
73
74
|
*/
|
|
@@ -75,23 +76,23 @@ export type PredictTTSDurationUsingCharacterRequest = {
|
|
|
75
76
|
/**
|
|
76
77
|
* The model type to use for the text-to-speech conversion
|
|
77
78
|
*/
|
|
78
|
-
model?:
|
|
79
|
+
model?: PredictTTSDurationRequestModel | undefined;
|
|
79
80
|
/**
|
|
80
81
|
* The desired output format of the audio file (wav, mp3). Default is wav.
|
|
81
82
|
*/
|
|
82
|
-
outputFormat?:
|
|
83
|
+
outputFormat?: PredictTTSDurationRequestOutputFormat | undefined;
|
|
83
84
|
voiceSettings?: ConvertTextToSpeechParameters | undefined;
|
|
84
85
|
};
|
|
85
86
|
/** @internal */
|
|
86
|
-
export declare const
|
|
87
|
+
export declare const PredictTTSDurationRequestLanguage$inboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestLanguage>;
|
|
87
88
|
/** @internal */
|
|
88
|
-
export declare const
|
|
89
|
+
export declare const PredictTTSDurationRequestLanguage$outboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestLanguage>;
|
|
89
90
|
/**
|
|
90
91
|
* @internal
|
|
91
92
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
93
|
*/
|
|
93
|
-
export declare namespace
|
|
94
|
-
/** @deprecated use `
|
|
94
|
+
export declare namespace PredictTTSDurationRequestLanguage$ {
|
|
95
|
+
/** @deprecated use `PredictTTSDurationRequestLanguage$inboundSchema` instead. */
|
|
95
96
|
const inboundSchema: z.ZodNativeEnum<{
|
|
96
97
|
readonly En: "en";
|
|
97
98
|
readonly Ko: "ko";
|
|
@@ -117,7 +118,7 @@ export declare namespace PredictTTSDurationUsingCharacterRequestLanguage$ {
|
|
|
117
118
|
readonly Ru: "ru";
|
|
118
119
|
readonly Vi: "vi";
|
|
119
120
|
}>;
|
|
120
|
-
/** @deprecated use `
|
|
121
|
+
/** @deprecated use `PredictTTSDurationRequestLanguage$outboundSchema` instead. */
|
|
121
122
|
const outboundSchema: z.ZodNativeEnum<{
|
|
122
123
|
readonly En: "en";
|
|
123
124
|
readonly Ko: "ko";
|
|
@@ -145,53 +146,55 @@ export declare namespace PredictTTSDurationUsingCharacterRequestLanguage$ {
|
|
|
145
146
|
}>;
|
|
146
147
|
}
|
|
147
148
|
/** @internal */
|
|
148
|
-
export declare const
|
|
149
|
+
export declare const PredictTTSDurationRequestModel$inboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestModel>;
|
|
149
150
|
/** @internal */
|
|
150
|
-
export declare const
|
|
151
|
+
export declare const PredictTTSDurationRequestModel$outboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestModel>;
|
|
151
152
|
/**
|
|
152
153
|
* @internal
|
|
153
154
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
154
155
|
*/
|
|
155
|
-
export declare namespace
|
|
156
|
-
/** @deprecated use `
|
|
156
|
+
export declare namespace PredictTTSDurationRequestModel$ {
|
|
157
|
+
/** @deprecated use `PredictTTSDurationRequestModel$inboundSchema` instead. */
|
|
157
158
|
const inboundSchema: z.ZodNativeEnum<{
|
|
158
159
|
readonly SonaSpeech1: "sona_speech_1";
|
|
159
160
|
readonly SonaSpeech2: "sona_speech_2";
|
|
160
161
|
readonly SonaSpeech2t: "sona_speech_2t";
|
|
162
|
+
readonly SonaSpeech2Flash: "sona_speech_2_flash";
|
|
161
163
|
readonly SupertonicApi1: "supertonic_api_1";
|
|
162
164
|
}>;
|
|
163
|
-
/** @deprecated use `
|
|
165
|
+
/** @deprecated use `PredictTTSDurationRequestModel$outboundSchema` instead. */
|
|
164
166
|
const outboundSchema: z.ZodNativeEnum<{
|
|
165
167
|
readonly SonaSpeech1: "sona_speech_1";
|
|
166
168
|
readonly SonaSpeech2: "sona_speech_2";
|
|
167
169
|
readonly SonaSpeech2t: "sona_speech_2t";
|
|
170
|
+
readonly SonaSpeech2Flash: "sona_speech_2_flash";
|
|
168
171
|
readonly SupertonicApi1: "supertonic_api_1";
|
|
169
172
|
}>;
|
|
170
173
|
}
|
|
171
174
|
/** @internal */
|
|
172
|
-
export declare const
|
|
175
|
+
export declare const PredictTTSDurationRequestOutputFormat$inboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestOutputFormat>;
|
|
173
176
|
/** @internal */
|
|
174
|
-
export declare const
|
|
177
|
+
export declare const PredictTTSDurationRequestOutputFormat$outboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestOutputFormat>;
|
|
175
178
|
/**
|
|
176
179
|
* @internal
|
|
177
180
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
178
181
|
*/
|
|
179
|
-
export declare namespace
|
|
180
|
-
/** @deprecated use `
|
|
182
|
+
export declare namespace PredictTTSDurationRequestOutputFormat$ {
|
|
183
|
+
/** @deprecated use `PredictTTSDurationRequestOutputFormat$inboundSchema` instead. */
|
|
181
184
|
const inboundSchema: z.ZodNativeEnum<{
|
|
182
185
|
readonly Wav: "wav";
|
|
183
186
|
readonly Mp3: "mp3";
|
|
184
187
|
}>;
|
|
185
|
-
/** @deprecated use `
|
|
188
|
+
/** @deprecated use `PredictTTSDurationRequestOutputFormat$outboundSchema` instead. */
|
|
186
189
|
const outboundSchema: z.ZodNativeEnum<{
|
|
187
190
|
readonly Wav: "wav";
|
|
188
191
|
readonly Mp3: "mp3";
|
|
189
192
|
}>;
|
|
190
193
|
}
|
|
191
194
|
/** @internal */
|
|
192
|
-
export declare const
|
|
195
|
+
export declare const PredictTTSDurationRequest$inboundSchema: z.ZodType<PredictTTSDurationRequest, z.ZodTypeDef, unknown>;
|
|
193
196
|
/** @internal */
|
|
194
|
-
export type
|
|
197
|
+
export type PredictTTSDurationRequest$Outbound = {
|
|
195
198
|
text: string;
|
|
196
199
|
language: string;
|
|
197
200
|
style?: string | undefined;
|
|
@@ -200,19 +203,19 @@ export type PredictTTSDurationUsingCharacterRequest$Outbound = {
|
|
|
200
203
|
voice_settings?: ConvertTextToSpeechParameters$Outbound | undefined;
|
|
201
204
|
};
|
|
202
205
|
/** @internal */
|
|
203
|
-
export declare const
|
|
206
|
+
export declare const PredictTTSDurationRequest$outboundSchema: z.ZodType<PredictTTSDurationRequest$Outbound, z.ZodTypeDef, PredictTTSDurationRequest>;
|
|
204
207
|
/**
|
|
205
208
|
* @internal
|
|
206
209
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
207
210
|
*/
|
|
208
|
-
export declare namespace
|
|
209
|
-
/** @deprecated use `
|
|
210
|
-
const inboundSchema: z.ZodType<
|
|
211
|
-
/** @deprecated use `
|
|
212
|
-
const outboundSchema: z.ZodType<
|
|
213
|
-
/** @deprecated use `
|
|
214
|
-
type Outbound =
|
|
211
|
+
export declare namespace PredictTTSDurationRequest$ {
|
|
212
|
+
/** @deprecated use `PredictTTSDurationRequest$inboundSchema` instead. */
|
|
213
|
+
const inboundSchema: z.ZodType<PredictTTSDurationRequest, z.ZodTypeDef, unknown>;
|
|
214
|
+
/** @deprecated use `PredictTTSDurationRequest$outboundSchema` instead. */
|
|
215
|
+
const outboundSchema: z.ZodType<PredictTTSDurationRequest$Outbound, z.ZodTypeDef, PredictTTSDurationRequest>;
|
|
216
|
+
/** @deprecated use `PredictTTSDurationRequest$Outbound` instead. */
|
|
217
|
+
type Outbound = PredictTTSDurationRequest$Outbound;
|
|
215
218
|
}
|
|
216
|
-
export declare function
|
|
217
|
-
export declare function
|
|
218
|
-
//# sourceMappingURL=
|
|
219
|
+
export declare function predictTTSDurationRequestToJSON(predictTTSDurationRequest: PredictTTSDurationRequest): string;
|
|
220
|
+
export declare function predictTTSDurationRequestFromJSON(jsonString: string): SafeParseResult<PredictTTSDurationRequest, SDKValidationError>;
|
|
221
|
+
//# sourceMappingURL=predictttsdurationrequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictttsdurationrequest.d.ts","sourceRoot":"","sources":["../../../src/models/predictttsdurationrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,6BAA6B,EAE7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;CAwBpC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,UAAU,CACxD,OAAO,iCAAiC,CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;CAMjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;CAGxC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,UAAU,CAC5D,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAA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
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ConvertTextToSpeechParameters$inboundSchema, ConvertTextToSpeechParameters$outboundSchema, } from "./converttexttospeechparameters.js";
|
|
8
|
+
/**
|
|
9
|
+
* Language code of the voice
|
|
10
|
+
*/
|
|
11
|
+
export const PredictTTSDurationRequestLanguage = {
|
|
12
|
+
En: "en",
|
|
13
|
+
Ko: "ko",
|
|
14
|
+
Ja: "ja",
|
|
15
|
+
Bg: "bg",
|
|
16
|
+
Cs: "cs",
|
|
17
|
+
Da: "da",
|
|
18
|
+
El: "el",
|
|
19
|
+
Es: "es",
|
|
20
|
+
Et: "et",
|
|
21
|
+
Fi: "fi",
|
|
22
|
+
Hu: "hu",
|
|
23
|
+
It: "it",
|
|
24
|
+
Nl: "nl",
|
|
25
|
+
Pl: "pl",
|
|
26
|
+
Pt: "pt",
|
|
27
|
+
Ro: "ro",
|
|
28
|
+
Ar: "ar",
|
|
29
|
+
De: "de",
|
|
30
|
+
Fr: "fr",
|
|
31
|
+
Hi: "hi",
|
|
32
|
+
Id: "id",
|
|
33
|
+
Ru: "ru",
|
|
34
|
+
Vi: "vi",
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The model type to use for the text-to-speech conversion
|
|
38
|
+
*/
|
|
39
|
+
export const PredictTTSDurationRequestModel = {
|
|
40
|
+
SonaSpeech1: "sona_speech_1",
|
|
41
|
+
SonaSpeech2: "sona_speech_2",
|
|
42
|
+
SonaSpeech2t: "sona_speech_2t",
|
|
43
|
+
SonaSpeech2Flash: "sona_speech_2_flash",
|
|
44
|
+
SupertonicApi1: "supertonic_api_1",
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* The desired output format of the audio file (wav, mp3). Default is wav.
|
|
48
|
+
*/
|
|
49
|
+
export const PredictTTSDurationRequestOutputFormat = {
|
|
50
|
+
Wav: "wav",
|
|
51
|
+
Mp3: "mp3",
|
|
52
|
+
};
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const PredictTTSDurationRequestLanguage$inboundSchema = z.nativeEnum(PredictTTSDurationRequestLanguage);
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const PredictTTSDurationRequestLanguage$outboundSchema = PredictTTSDurationRequestLanguage$inboundSchema;
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export var PredictTTSDurationRequestLanguage$;
|
|
62
|
+
(function (PredictTTSDurationRequestLanguage$) {
|
|
63
|
+
/** @deprecated use `PredictTTSDurationRequestLanguage$inboundSchema` instead. */
|
|
64
|
+
PredictTTSDurationRequestLanguage$.inboundSchema = PredictTTSDurationRequestLanguage$inboundSchema;
|
|
65
|
+
/** @deprecated use `PredictTTSDurationRequestLanguage$outboundSchema` instead. */
|
|
66
|
+
PredictTTSDurationRequestLanguage$.outboundSchema = PredictTTSDurationRequestLanguage$outboundSchema;
|
|
67
|
+
})(PredictTTSDurationRequestLanguage$ || (PredictTTSDurationRequestLanguage$ = {}));
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const PredictTTSDurationRequestModel$inboundSchema = z.nativeEnum(PredictTTSDurationRequestModel);
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const PredictTTSDurationRequestModel$outboundSchema = PredictTTSDurationRequestModel$inboundSchema;
|
|
72
|
+
/**
|
|
73
|
+
* @internal
|
|
74
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
+
*/
|
|
76
|
+
export var PredictTTSDurationRequestModel$;
|
|
77
|
+
(function (PredictTTSDurationRequestModel$) {
|
|
78
|
+
/** @deprecated use `PredictTTSDurationRequestModel$inboundSchema` instead. */
|
|
79
|
+
PredictTTSDurationRequestModel$.inboundSchema = PredictTTSDurationRequestModel$inboundSchema;
|
|
80
|
+
/** @deprecated use `PredictTTSDurationRequestModel$outboundSchema` instead. */
|
|
81
|
+
PredictTTSDurationRequestModel$.outboundSchema = PredictTTSDurationRequestModel$outboundSchema;
|
|
82
|
+
})(PredictTTSDurationRequestModel$ || (PredictTTSDurationRequestModel$ = {}));
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const PredictTTSDurationRequestOutputFormat$inboundSchema = z.nativeEnum(PredictTTSDurationRequestOutputFormat);
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const PredictTTSDurationRequestOutputFormat$outboundSchema = PredictTTSDurationRequestOutputFormat$inboundSchema;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export var PredictTTSDurationRequestOutputFormat$;
|
|
92
|
+
(function (PredictTTSDurationRequestOutputFormat$) {
|
|
93
|
+
/** @deprecated use `PredictTTSDurationRequestOutputFormat$inboundSchema` instead. */
|
|
94
|
+
PredictTTSDurationRequestOutputFormat$.inboundSchema = PredictTTSDurationRequestOutputFormat$inboundSchema;
|
|
95
|
+
/** @deprecated use `PredictTTSDurationRequestOutputFormat$outboundSchema` instead. */
|
|
96
|
+
PredictTTSDurationRequestOutputFormat$.outboundSchema = PredictTTSDurationRequestOutputFormat$outboundSchema;
|
|
97
|
+
})(PredictTTSDurationRequestOutputFormat$ || (PredictTTSDurationRequestOutputFormat$ = {}));
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const PredictTTSDurationRequest$inboundSchema = z.object({
|
|
100
|
+
text: z.string(),
|
|
101
|
+
language: PredictTTSDurationRequestLanguage$inboundSchema,
|
|
102
|
+
style: z.string().optional(),
|
|
103
|
+
model: PredictTTSDurationRequestModel$inboundSchema.default("sona_speech_1"),
|
|
104
|
+
output_format: PredictTTSDurationRequestOutputFormat$inboundSchema.default("wav"),
|
|
105
|
+
voice_settings: ConvertTextToSpeechParameters$inboundSchema.optional(),
|
|
106
|
+
}).transform((v) => {
|
|
107
|
+
return remap$(v, {
|
|
108
|
+
"output_format": "outputFormat",
|
|
109
|
+
"voice_settings": "voiceSettings",
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const PredictTTSDurationRequest$outboundSchema = z.object({
|
|
114
|
+
text: z.string(),
|
|
115
|
+
language: PredictTTSDurationRequestLanguage$outboundSchema,
|
|
116
|
+
style: z.string().optional(),
|
|
117
|
+
model: PredictTTSDurationRequestModel$outboundSchema.default("sona_speech_1"),
|
|
118
|
+
outputFormat: PredictTTSDurationRequestOutputFormat$outboundSchema.default("wav"),
|
|
119
|
+
voiceSettings: ConvertTextToSpeechParameters$outboundSchema.optional(),
|
|
120
|
+
}).transform((v) => {
|
|
121
|
+
return remap$(v, {
|
|
122
|
+
outputFormat: "output_format",
|
|
123
|
+
voiceSettings: "voice_settings",
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
/**
|
|
127
|
+
* @internal
|
|
128
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
|
+
*/
|
|
130
|
+
export var PredictTTSDurationRequest$;
|
|
131
|
+
(function (PredictTTSDurationRequest$) {
|
|
132
|
+
/** @deprecated use `PredictTTSDurationRequest$inboundSchema` instead. */
|
|
133
|
+
PredictTTSDurationRequest$.inboundSchema = PredictTTSDurationRequest$inboundSchema;
|
|
134
|
+
/** @deprecated use `PredictTTSDurationRequest$outboundSchema` instead. */
|
|
135
|
+
PredictTTSDurationRequest$.outboundSchema = PredictTTSDurationRequest$outboundSchema;
|
|
136
|
+
})(PredictTTSDurationRequest$ || (PredictTTSDurationRequest$ = {}));
|
|
137
|
+
export function predictTTSDurationRequestToJSON(predictTTSDurationRequest) {
|
|
138
|
+
return JSON.stringify(PredictTTSDurationRequest$outboundSchema.parse(predictTTSDurationRequest));
|
|
139
|
+
}
|
|
140
|
+
export function predictTTSDurationRequestFromJSON(jsonString) {
|
|
141
|
+
return safeParse(jsonString, (x) => PredictTTSDurationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PredictTTSDurationRequest' from JSON`);
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=predictttsdurationrequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"predictttsdurationrequest.js","sourceRoot":"","sources":["../../../src/models/predictttsdurationrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAEL,2CAA2C,EAE3C,4CAA4C,GAC7C,MAAM,oCAAoC,CAAC;AAG5C;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACA,CAAC;AAQX;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,eAAe;IAC5B,YAAY,EAAE,gBAAgB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,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,uCAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,wCAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,KAA1B,0BAA0B,QAO1C;AAED,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type UpdateCustomVoiceRequest = {
|
|
5
|
+
/**
|
|
6
|
+
* Name of the voice
|
|
7
|
+
*/
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Description of the voice
|
|
11
|
+
*/
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const UpdateCustomVoiceRequest$inboundSchema: z.ZodType<UpdateCustomVoiceRequest, z.ZodTypeDef, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type UpdateCustomVoiceRequest$Outbound = {
|
|
18
|
+
name?: string | undefined;
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const UpdateCustomVoiceRequest$outboundSchema: z.ZodType<UpdateCustomVoiceRequest$Outbound, z.ZodTypeDef, UpdateCustomVoiceRequest>;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
|
+
*/
|
|
27
|
+
export declare namespace UpdateCustomVoiceRequest$ {
|
|
28
|
+
/** @deprecated use `UpdateCustomVoiceRequest$inboundSchema` instead. */
|
|
29
|
+
const inboundSchema: z.ZodType<UpdateCustomVoiceRequest, z.ZodTypeDef, unknown>;
|
|
30
|
+
/** @deprecated use `UpdateCustomVoiceRequest$outboundSchema` instead. */
|
|
31
|
+
const outboundSchema: z.ZodType<UpdateCustomVoiceRequest$Outbound, z.ZodTypeDef, UpdateCustomVoiceRequest>;
|
|
32
|
+
/** @deprecated use `UpdateCustomVoiceRequest$Outbound` instead. */
|
|
33
|
+
type Outbound = UpdateCustomVoiceRequest$Outbound;
|
|
34
|
+
}
|
|
35
|
+
export declare function updateCustomVoiceRequestToJSON(updateCustomVoiceRequest: UpdateCustomVoiceRequest): string;
|
|
36
|
+
export declare function updateCustomVoiceRequestFromJSON(jsonString: string): SafeParseResult<UpdateCustomVoiceRequest, SDKValidationError>;
|
|
37
|
+
//# sourceMappingURL=updatecustomvoicerequest.d.ts.map
|
package/dist/esm/models/{updateclonedvoicerequest.d.ts.map → updatecustomvoicerequest.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"updatecustomvoicerequest.d.ts","sourceRoot":"","sources":["../../../src/models/updatecustomvoicerequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAIxB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const UpdateCustomVoiceRequest$inboundSchema = z.object({
|
|
8
|
+
name: z.string().optional(),
|
|
9
|
+
description: z.string().optional(),
|
|
10
|
+
});
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const UpdateCustomVoiceRequest$outboundSchema = z.object({
|
|
13
|
+
name: z.string().optional(),
|
|
14
|
+
description: z.string().optional(),
|
|
15
|
+
});
|
|
16
|
+
/**
|
|
17
|
+
* @internal
|
|
18
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
19
|
+
*/
|
|
20
|
+
export var UpdateCustomVoiceRequest$;
|
|
21
|
+
(function (UpdateCustomVoiceRequest$) {
|
|
22
|
+
/** @deprecated use `UpdateCustomVoiceRequest$inboundSchema` instead. */
|
|
23
|
+
UpdateCustomVoiceRequest$.inboundSchema = UpdateCustomVoiceRequest$inboundSchema;
|
|
24
|
+
/** @deprecated use `UpdateCustomVoiceRequest$outboundSchema` instead. */
|
|
25
|
+
UpdateCustomVoiceRequest$.outboundSchema = UpdateCustomVoiceRequest$outboundSchema;
|
|
26
|
+
})(UpdateCustomVoiceRequest$ || (UpdateCustomVoiceRequest$ = {}));
|
|
27
|
+
export function updateCustomVoiceRequestToJSON(updateCustomVoiceRequest) {
|
|
28
|
+
return JSON.stringify(UpdateCustomVoiceRequest$outboundSchema.parse(updateCustomVoiceRequest));
|
|
29
|
+
}
|
|
30
|
+
export function updateCustomVoiceRequestFromJSON(jsonString) {
|
|
31
|
+
return safeParse(jsonString, (x) => UpdateCustomVoiceRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCustomVoiceRequest' from JSON`);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=updatecustomvoicerequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"updatecustomvoicerequest.js","sourceRoot":"","sources":["../../../src/models/updatecustomvoicerequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAe9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,sCAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,uCAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,KAAzB,yBAAyB,QAOzC;AAED,MAAM,UAAU,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,uCAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
export type UpdateCustomVoiceResponse = {
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier for the voice
|
|
7
|
+
*/
|
|
8
|
+
voiceId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the voice
|
|
11
|
+
*/
|
|
12
|
+
name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Description of the voice
|
|
15
|
+
*/
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const UpdateCustomVoiceResponse$inboundSchema: z.ZodType<UpdateCustomVoiceResponse, z.ZodTypeDef, unknown>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type UpdateCustomVoiceResponse$Outbound = {
|
|
22
|
+
voice_id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const UpdateCustomVoiceResponse$outboundSchema: z.ZodType<UpdateCustomVoiceResponse$Outbound, z.ZodTypeDef, UpdateCustomVoiceResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* @internal
|
|
30
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
|
+
*/
|
|
32
|
+
export declare namespace UpdateCustomVoiceResponse$ {
|
|
33
|
+
/** @deprecated use `UpdateCustomVoiceResponse$inboundSchema` instead. */
|
|
34
|
+
const inboundSchema: z.ZodType<UpdateCustomVoiceResponse, z.ZodTypeDef, unknown>;
|
|
35
|
+
/** @deprecated use `UpdateCustomVoiceResponse$outboundSchema` instead. */
|
|
36
|
+
const outboundSchema: z.ZodType<UpdateCustomVoiceResponse$Outbound, z.ZodTypeDef, UpdateCustomVoiceResponse>;
|
|
37
|
+
/** @deprecated use `UpdateCustomVoiceResponse$Outbound` instead. */
|
|
38
|
+
type Outbound = UpdateCustomVoiceResponse$Outbound;
|
|
39
|
+
}
|
|
40
|
+
export declare function updateCustomVoiceResponseToJSON(updateCustomVoiceResponse: UpdateCustomVoiceResponse): string;
|
|
41
|
+
export declare function updateCustomVoiceResponseFromJSON(jsonString: string): SafeParseResult<UpdateCustomVoiceResponse, SDKValidationError>;
|
|
42
|
+
//# sourceMappingURL=updatecustomvoiceresponse.d.ts.map
|
package/dist/esm/models/{updateclonedvoiceresponse.d.ts.map → updatecustomvoiceresponse.d.ts.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"updatecustomvoiceresponse.d.ts","sourceRoot":"","sources":["../../../src/models/updatecustomvoiceresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CASzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D;AAED,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const UpdateCustomVoiceResponse$inboundSchema = z.object({
|
|
9
|
+
voice_id: z.string(),
|
|
10
|
+
name: z.string(),
|
|
11
|
+
description: z.string(),
|
|
12
|
+
}).transform((v) => {
|
|
13
|
+
return remap$(v, {
|
|
14
|
+
"voice_id": "voiceId",
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const UpdateCustomVoiceResponse$outboundSchema = z.object({
|
|
19
|
+
voiceId: z.string(),
|
|
20
|
+
name: z.string(),
|
|
21
|
+
description: z.string(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
voiceId: "voice_id",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export var UpdateCustomVoiceResponse$;
|
|
32
|
+
(function (UpdateCustomVoiceResponse$) {
|
|
33
|
+
/** @deprecated use `UpdateCustomVoiceResponse$inboundSchema` instead. */
|
|
34
|
+
UpdateCustomVoiceResponse$.inboundSchema = UpdateCustomVoiceResponse$inboundSchema;
|
|
35
|
+
/** @deprecated use `UpdateCustomVoiceResponse$outboundSchema` instead. */
|
|
36
|
+
UpdateCustomVoiceResponse$.outboundSchema = UpdateCustomVoiceResponse$outboundSchema;
|
|
37
|
+
})(UpdateCustomVoiceResponse$ || (UpdateCustomVoiceResponse$ = {}));
|
|
38
|
+
export function updateCustomVoiceResponseToJSON(updateCustomVoiceResponse) {
|
|
39
|
+
return JSON.stringify(UpdateCustomVoiceResponse$outboundSchema.parse(updateCustomVoiceResponse));
|
|
40
|
+
}
|
|
41
|
+
export function updateCustomVoiceResponseFromJSON(jsonString) {
|
|
42
|
+
return safeParse(jsonString, (x) => UpdateCustomVoiceResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCustomVoiceResponse' from JSON`);
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=updatecustomvoiceresponse.js.map
|
package/dist/esm/models/{updateclonedvoiceresponse.js.map → updatecustomvoiceresponse.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"updatecustomvoiceresponse.js","sourceRoot":"","sources":["../../../src/models/updatecustomvoiceresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAmB9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,uCAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,wCAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,KAA1B,0BAA0B,QAO1C;AAED,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -8,7 +8,7 @@ export declare class CustomVoices extends ClientSDK {
|
|
|
8
8
|
* @remarks
|
|
9
9
|
* Creates a custom (cloned) voice from uploaded audio files.
|
|
10
10
|
*/
|
|
11
|
-
createClonedVoice(request: operations.CreateClonedVoiceRequest, options?: RequestOptions): Promise<models.
|
|
11
|
+
createClonedVoice(request: operations.CreateClonedVoiceRequest, options?: RequestOptions): Promise<models.CreateCustomVoiceResponse>;
|
|
12
12
|
/**
|
|
13
13
|
* Gets custom (cloned) voices
|
|
14
14
|
*
|
|
@@ -29,14 +29,14 @@ export declare class CustomVoices extends ClientSDK {
|
|
|
29
29
|
* @remarks
|
|
30
30
|
* Gets details of a specific custom (cloned) voice by ID.
|
|
31
31
|
*/
|
|
32
|
-
getCustomVoice(request: operations.GetCustomVoiceRequest, options?: RequestOptions): Promise<models.
|
|
32
|
+
getCustomVoice(request: operations.GetCustomVoiceRequest, options?: RequestOptions): Promise<models.GetCustomVoiceResponse>;
|
|
33
33
|
/**
|
|
34
34
|
* Update cloned voice (partial update)
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
37
|
* Partially updates properties of a custom (cloned) voice by ID.
|
|
38
38
|
*/
|
|
39
|
-
editCustomVoice(request: operations.EditCustomVoiceRequest, options?: RequestOptions): Promise<models.
|
|
39
|
+
editCustomVoice(request: operations.EditCustomVoiceRequest, options?: RequestOptions): Promise<models.UpdateCustomVoiceResponse>;
|
|
40
40
|
/**
|
|
41
41
|
* Delete cloned voice
|
|
42
42
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customvoices.d.ts","sourceRoot":"","sources":["../../../src/sdk/customvoices.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"customvoices.d.ts","sourceRoot":"","sources":["../../../src/sdk/customvoices.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAAC;IAQ5C;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,CAAC,EAAE,UAAU,CAAC,uBAAuB,GAAG,SAAS,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC;IAQ7C;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,CAAC,EAAE,UAAU,CAAC,yBAAyB,GAAG,SAAS,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC;IAQ7C;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,sBAAsB,CAAC;IAQzC;;;;;OAKG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAAC;IAQ5C;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAOjB"}
|
|
@@ -2,17 +2,6 @@ import { CreateSpeechAcceptEnum } from "../funcs/textToSpeechCreateSpeech.js";
|
|
|
2
2
|
import { StreamSpeechAcceptEnum } from "../funcs/textToSpeechStreamSpeech.js";
|
|
3
3
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
4
4
|
import * as operations from "../models/operations/index.js";
|
|
5
|
-
import { type PronunciationDictionaryEntry } from "../lib/custom_utils/index.js";
|
|
6
|
-
type CreateSpeechOptions = RequestOptions & {
|
|
7
|
-
acceptHeaderOverride?: CreateSpeechAcceptEnum;
|
|
8
|
-
maxTextLength?: number;
|
|
9
|
-
pronunciationDictionary?: PronunciationDictionaryEntry[];
|
|
10
|
-
};
|
|
11
|
-
type StreamSpeechOptions = RequestOptions & {
|
|
12
|
-
acceptHeaderOverride?: StreamSpeechAcceptEnum;
|
|
13
|
-
maxTextLength?: number;
|
|
14
|
-
pronunciationDictionary?: PronunciationDictionaryEntry[];
|
|
15
|
-
};
|
|
16
5
|
export { CreateSpeechAcceptEnum } from "../funcs/textToSpeechCreateSpeech.js";
|
|
17
6
|
export { StreamSpeechAcceptEnum } from "../funcs/textToSpeechStreamSpeech.js";
|
|
18
7
|
export declare class TextToSpeech extends ClientSDK {
|
|
@@ -54,14 +43,18 @@ export declare class TextToSpeech extends ClientSDK {
|
|
|
54
43
|
* @remarks
|
|
55
44
|
* Convert text to speech using the specified voice
|
|
56
45
|
*/
|
|
57
|
-
createSpeech(request: operations.CreateSpeechRequest, options?:
|
|
46
|
+
createSpeech(request: operations.CreateSpeechRequest, options?: RequestOptions & {
|
|
47
|
+
acceptHeaderOverride?: CreateSpeechAcceptEnum;
|
|
48
|
+
}): Promise<operations.CreateSpeechResponse>;
|
|
58
49
|
/**
|
|
59
50
|
* Convert text to speech with streaming response
|
|
60
51
|
*
|
|
61
52
|
* @remarks
|
|
62
53
|
* Convert text to speech using the specified voice with streaming response. Returns binary audio stream.
|
|
63
54
|
*/
|
|
64
|
-
streamSpeech(request: operations.StreamSpeechRequest, options?:
|
|
55
|
+
streamSpeech(request: operations.StreamSpeechRequest, options?: RequestOptions & {
|
|
56
|
+
acceptHeaderOverride?: StreamSpeechAcceptEnum;
|
|
57
|
+
}): Promise<operations.StreamSpeechResponse>;
|
|
65
58
|
/**
|
|
66
59
|
* Predict text-to-speech duration
|
|
67
60
|
*
|