@supertone/supertone 0.1.4 → 0.1.5
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 +281 -9
- package/custom_test/test_real_api.ts +149 -13
- 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 +3 -0
- package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.d.ts.map +1 -1
- package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.js +1 -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 +3 -0
- package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.d.ts.map +1 -1
- package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.js +1 -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 +85 -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 +1 -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
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type GetCustomVoiceResponseData = {
|
|
12
|
-
/**
|
|
13
|
-
* Unique identifier for the custom voice
|
|
14
|
-
*/
|
|
15
|
-
voiceId: string;
|
|
16
|
-
/**
|
|
17
|
-
* Name of the custom voice
|
|
18
|
-
*/
|
|
19
|
-
name: string;
|
|
20
|
-
/**
|
|
21
|
-
* Description of the custom voice
|
|
22
|
-
*/
|
|
23
|
-
description: string;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const GetCustomVoiceResponseData$inboundSchema: z.ZodType<
|
|
28
|
-
GetCustomVoiceResponseData,
|
|
29
|
-
z.ZodTypeDef,
|
|
30
|
-
unknown
|
|
31
|
-
> = z.object({
|
|
32
|
-
voice_id: z.string(),
|
|
33
|
-
name: z.string(),
|
|
34
|
-
description: z.string(),
|
|
35
|
-
}).transform((v) => {
|
|
36
|
-
return remap$(v, {
|
|
37
|
-
"voice_id": "voiceId",
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export type GetCustomVoiceResponseData$Outbound = {
|
|
43
|
-
voice_id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const GetCustomVoiceResponseData$outboundSchema: z.ZodType<
|
|
50
|
-
GetCustomVoiceResponseData$Outbound,
|
|
51
|
-
z.ZodTypeDef,
|
|
52
|
-
GetCustomVoiceResponseData
|
|
53
|
-
> = z.object({
|
|
54
|
-
voiceId: z.string(),
|
|
55
|
-
name: z.string(),
|
|
56
|
-
description: z.string(),
|
|
57
|
-
}).transform((v) => {
|
|
58
|
-
return remap$(v, {
|
|
59
|
-
voiceId: "voice_id",
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
export namespace GetCustomVoiceResponseData$ {
|
|
68
|
-
/** @deprecated use `GetCustomVoiceResponseData$inboundSchema` instead. */
|
|
69
|
-
export const inboundSchema = GetCustomVoiceResponseData$inboundSchema;
|
|
70
|
-
/** @deprecated use `GetCustomVoiceResponseData$outboundSchema` instead. */
|
|
71
|
-
export const outboundSchema = GetCustomVoiceResponseData$outboundSchema;
|
|
72
|
-
/** @deprecated use `GetCustomVoiceResponseData$Outbound` instead. */
|
|
73
|
-
export type Outbound = GetCustomVoiceResponseData$Outbound;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function getCustomVoiceResponseDataToJSON(
|
|
77
|
-
getCustomVoiceResponseData: GetCustomVoiceResponseData,
|
|
78
|
-
): string {
|
|
79
|
-
return JSON.stringify(
|
|
80
|
-
GetCustomVoiceResponseData$outboundSchema.parse(getCustomVoiceResponseData),
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function getCustomVoiceResponseDataFromJSON(
|
|
85
|
-
jsonString: string,
|
|
86
|
-
): SafeParseResult<GetCustomVoiceResponseData, SDKValidationError> {
|
|
87
|
-
return safeParse(
|
|
88
|
-
jsonString,
|
|
89
|
-
(x) => GetCustomVoiceResponseData$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
-
`Failed to parse 'GetCustomVoiceResponseData' from JSON`,
|
|
91
|
-
);
|
|
92
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type GetSingleClonedVoiceResponse = {
|
|
12
|
-
/**
|
|
13
|
-
* Unique identifier for the voice
|
|
14
|
-
*/
|
|
15
|
-
voiceId: string;
|
|
16
|
-
/**
|
|
17
|
-
* Name of the voice
|
|
18
|
-
*/
|
|
19
|
-
name: string;
|
|
20
|
-
/**
|
|
21
|
-
* Description of the voice
|
|
22
|
-
*/
|
|
23
|
-
description: string;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
/** @internal */
|
|
27
|
-
export const GetSingleClonedVoiceResponse$inboundSchema: z.ZodType<
|
|
28
|
-
GetSingleClonedVoiceResponse,
|
|
29
|
-
z.ZodTypeDef,
|
|
30
|
-
unknown
|
|
31
|
-
> = z.object({
|
|
32
|
-
voice_id: z.string(),
|
|
33
|
-
name: z.string(),
|
|
34
|
-
description: z.string(),
|
|
35
|
-
}).transform((v) => {
|
|
36
|
-
return remap$(v, {
|
|
37
|
-
"voice_id": "voiceId",
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
/** @internal */
|
|
42
|
-
export type GetSingleClonedVoiceResponse$Outbound = {
|
|
43
|
-
voice_id: string;
|
|
44
|
-
name: string;
|
|
45
|
-
description: string;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const GetSingleClonedVoiceResponse$outboundSchema: z.ZodType<
|
|
50
|
-
GetSingleClonedVoiceResponse$Outbound,
|
|
51
|
-
z.ZodTypeDef,
|
|
52
|
-
GetSingleClonedVoiceResponse
|
|
53
|
-
> = z.object({
|
|
54
|
-
voiceId: z.string(),
|
|
55
|
-
name: z.string(),
|
|
56
|
-
description: z.string(),
|
|
57
|
-
}).transform((v) => {
|
|
58
|
-
return remap$(v, {
|
|
59
|
-
voiceId: "voice_id",
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
export namespace GetSingleClonedVoiceResponse$ {
|
|
68
|
-
/** @deprecated use `GetSingleClonedVoiceResponse$inboundSchema` instead. */
|
|
69
|
-
export const inboundSchema = GetSingleClonedVoiceResponse$inboundSchema;
|
|
70
|
-
/** @deprecated use `GetSingleClonedVoiceResponse$outboundSchema` instead. */
|
|
71
|
-
export const outboundSchema = GetSingleClonedVoiceResponse$outboundSchema;
|
|
72
|
-
/** @deprecated use `GetSingleClonedVoiceResponse$Outbound` instead. */
|
|
73
|
-
export type Outbound = GetSingleClonedVoiceResponse$Outbound;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function getSingleClonedVoiceResponseToJSON(
|
|
77
|
-
getSingleClonedVoiceResponse: GetSingleClonedVoiceResponse,
|
|
78
|
-
): string {
|
|
79
|
-
return JSON.stringify(
|
|
80
|
-
GetSingleClonedVoiceResponse$outboundSchema.parse(
|
|
81
|
-
getSingleClonedVoiceResponse,
|
|
82
|
-
),
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function getSingleClonedVoiceResponseFromJSON(
|
|
87
|
-
jsonString: string,
|
|
88
|
-
): SafeParseResult<GetSingleClonedVoiceResponse, SDKValidationError> {
|
|
89
|
-
return safeParse(
|
|
90
|
-
jsonString,
|
|
91
|
-
(x) => GetSingleClonedVoiceResponse$inboundSchema.parse(JSON.parse(x)),
|
|
92
|
-
`Failed to parse 'GetSingleClonedVoiceResponse' from JSON`,
|
|
93
|
-
);
|
|
94
|
-
}
|
|
@@ -1,276 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
|
-
import {
|
|
11
|
-
ConvertTextToSpeechParameters,
|
|
12
|
-
ConvertTextToSpeechParameters$inboundSchema,
|
|
13
|
-
ConvertTextToSpeechParameters$Outbound,
|
|
14
|
-
ConvertTextToSpeechParameters$outboundSchema,
|
|
15
|
-
} from "./converttexttospeechparameters.js";
|
|
16
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Language code of the voice
|
|
20
|
-
*/
|
|
21
|
-
export const PredictTTSDurationUsingCharacterRequestLanguage = {
|
|
22
|
-
En: "en",
|
|
23
|
-
Ko: "ko",
|
|
24
|
-
Ja: "ja",
|
|
25
|
-
Bg: "bg",
|
|
26
|
-
Cs: "cs",
|
|
27
|
-
Da: "da",
|
|
28
|
-
El: "el",
|
|
29
|
-
Es: "es",
|
|
30
|
-
Et: "et",
|
|
31
|
-
Fi: "fi",
|
|
32
|
-
Hu: "hu",
|
|
33
|
-
It: "it",
|
|
34
|
-
Nl: "nl",
|
|
35
|
-
Pl: "pl",
|
|
36
|
-
Pt: "pt",
|
|
37
|
-
Ro: "ro",
|
|
38
|
-
Ar: "ar",
|
|
39
|
-
De: "de",
|
|
40
|
-
Fr: "fr",
|
|
41
|
-
Hi: "hi",
|
|
42
|
-
Id: "id",
|
|
43
|
-
Ru: "ru",
|
|
44
|
-
Vi: "vi",
|
|
45
|
-
} as const;
|
|
46
|
-
/**
|
|
47
|
-
* Language code of the voice
|
|
48
|
-
*/
|
|
49
|
-
export type PredictTTSDurationUsingCharacterRequestLanguage = ClosedEnum<
|
|
50
|
-
typeof PredictTTSDurationUsingCharacterRequestLanguage
|
|
51
|
-
>;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* The model type to use for the text-to-speech conversion
|
|
55
|
-
*/
|
|
56
|
-
export const PredictTTSDurationUsingCharacterRequestModel = {
|
|
57
|
-
SonaSpeech1: "sona_speech_1",
|
|
58
|
-
SonaSpeech2: "sona_speech_2",
|
|
59
|
-
SonaSpeech2t: "sona_speech_2t",
|
|
60
|
-
SupertonicApi1: "supertonic_api_1",
|
|
61
|
-
} as const;
|
|
62
|
-
/**
|
|
63
|
-
* The model type to use for the text-to-speech conversion
|
|
64
|
-
*/
|
|
65
|
-
export type PredictTTSDurationUsingCharacterRequestModel = ClosedEnum<
|
|
66
|
-
typeof PredictTTSDurationUsingCharacterRequestModel
|
|
67
|
-
>;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* The desired output format of the audio file (wav, mp3). Default is wav.
|
|
71
|
-
*/
|
|
72
|
-
export const PredictTTSDurationUsingCharacterRequestOutputFormat = {
|
|
73
|
-
Wav: "wav",
|
|
74
|
-
Mp3: "mp3",
|
|
75
|
-
} as const;
|
|
76
|
-
/**
|
|
77
|
-
* The desired output format of the audio file (wav, mp3). Default is wav.
|
|
78
|
-
*/
|
|
79
|
-
export type PredictTTSDurationUsingCharacterRequestOutputFormat = ClosedEnum<
|
|
80
|
-
typeof PredictTTSDurationUsingCharacterRequestOutputFormat
|
|
81
|
-
>;
|
|
82
|
-
|
|
83
|
-
export type PredictTTSDurationUsingCharacterRequest = {
|
|
84
|
-
/**
|
|
85
|
-
* The text to convert to speech. Max length is 300 characters.
|
|
86
|
-
*/
|
|
87
|
-
text: string;
|
|
88
|
-
/**
|
|
89
|
-
* Language code of the voice
|
|
90
|
-
*/
|
|
91
|
-
language: PredictTTSDurationUsingCharacterRequestLanguage;
|
|
92
|
-
/**
|
|
93
|
-
* The style of character to use for the text-to-speech conversion
|
|
94
|
-
*/
|
|
95
|
-
style?: string | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* The model type to use for the text-to-speech conversion
|
|
98
|
-
*/
|
|
99
|
-
model?: PredictTTSDurationUsingCharacterRequestModel | undefined;
|
|
100
|
-
/**
|
|
101
|
-
* The desired output format of the audio file (wav, mp3). Default is wav.
|
|
102
|
-
*/
|
|
103
|
-
outputFormat?:
|
|
104
|
-
| PredictTTSDurationUsingCharacterRequestOutputFormat
|
|
105
|
-
| undefined;
|
|
106
|
-
voiceSettings?: ConvertTextToSpeechParameters | undefined;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
/** @internal */
|
|
110
|
-
export const PredictTTSDurationUsingCharacterRequestLanguage$inboundSchema:
|
|
111
|
-
z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestLanguage> = z
|
|
112
|
-
.nativeEnum(PredictTTSDurationUsingCharacterRequestLanguage);
|
|
113
|
-
|
|
114
|
-
/** @internal */
|
|
115
|
-
export const PredictTTSDurationUsingCharacterRequestLanguage$outboundSchema:
|
|
116
|
-
z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestLanguage> =
|
|
117
|
-
PredictTTSDurationUsingCharacterRequestLanguage$inboundSchema;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* @internal
|
|
121
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
122
|
-
*/
|
|
123
|
-
export namespace PredictTTSDurationUsingCharacterRequestLanguage$ {
|
|
124
|
-
/** @deprecated use `PredictTTSDurationUsingCharacterRequestLanguage$inboundSchema` instead. */
|
|
125
|
-
export const inboundSchema =
|
|
126
|
-
PredictTTSDurationUsingCharacterRequestLanguage$inboundSchema;
|
|
127
|
-
/** @deprecated use `PredictTTSDurationUsingCharacterRequestLanguage$outboundSchema` instead. */
|
|
128
|
-
export const outboundSchema =
|
|
129
|
-
PredictTTSDurationUsingCharacterRequestLanguage$outboundSchema;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
/** @internal */
|
|
133
|
-
export const PredictTTSDurationUsingCharacterRequestModel$inboundSchema:
|
|
134
|
-
z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestModel> = z
|
|
135
|
-
.nativeEnum(PredictTTSDurationUsingCharacterRequestModel);
|
|
136
|
-
|
|
137
|
-
/** @internal */
|
|
138
|
-
export const PredictTTSDurationUsingCharacterRequestModel$outboundSchema:
|
|
139
|
-
z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestModel> =
|
|
140
|
-
PredictTTSDurationUsingCharacterRequestModel$inboundSchema;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
145
|
-
*/
|
|
146
|
-
export namespace PredictTTSDurationUsingCharacterRequestModel$ {
|
|
147
|
-
/** @deprecated use `PredictTTSDurationUsingCharacterRequestModel$inboundSchema` instead. */
|
|
148
|
-
export const inboundSchema =
|
|
149
|
-
PredictTTSDurationUsingCharacterRequestModel$inboundSchema;
|
|
150
|
-
/** @deprecated use `PredictTTSDurationUsingCharacterRequestModel$outboundSchema` instead. */
|
|
151
|
-
export const outboundSchema =
|
|
152
|
-
PredictTTSDurationUsingCharacterRequestModel$outboundSchema;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/** @internal */
|
|
156
|
-
export const PredictTTSDurationUsingCharacterRequestOutputFormat$inboundSchema:
|
|
157
|
-
z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestOutputFormat> =
|
|
158
|
-
z.nativeEnum(PredictTTSDurationUsingCharacterRequestOutputFormat);
|
|
159
|
-
|
|
160
|
-
/** @internal */
|
|
161
|
-
export const PredictTTSDurationUsingCharacterRequestOutputFormat$outboundSchema:
|
|
162
|
-
z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestOutputFormat> =
|
|
163
|
-
PredictTTSDurationUsingCharacterRequestOutputFormat$inboundSchema;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* @internal
|
|
167
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
168
|
-
*/
|
|
169
|
-
export namespace PredictTTSDurationUsingCharacterRequestOutputFormat$ {
|
|
170
|
-
/** @deprecated use `PredictTTSDurationUsingCharacterRequestOutputFormat$inboundSchema` instead. */
|
|
171
|
-
export const inboundSchema =
|
|
172
|
-
PredictTTSDurationUsingCharacterRequestOutputFormat$inboundSchema;
|
|
173
|
-
/** @deprecated use `PredictTTSDurationUsingCharacterRequestOutputFormat$outboundSchema` instead. */
|
|
174
|
-
export const outboundSchema =
|
|
175
|
-
PredictTTSDurationUsingCharacterRequestOutputFormat$outboundSchema;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/** @internal */
|
|
179
|
-
export const PredictTTSDurationUsingCharacterRequest$inboundSchema: z.ZodType<
|
|
180
|
-
PredictTTSDurationUsingCharacterRequest,
|
|
181
|
-
z.ZodTypeDef,
|
|
182
|
-
unknown
|
|
183
|
-
> = z.object({
|
|
184
|
-
text: z.string(),
|
|
185
|
-
language: PredictTTSDurationUsingCharacterRequestLanguage$inboundSchema,
|
|
186
|
-
style: z.string().optional(),
|
|
187
|
-
model: PredictTTSDurationUsingCharacterRequestModel$inboundSchema.default(
|
|
188
|
-
"sona_speech_1",
|
|
189
|
-
),
|
|
190
|
-
output_format:
|
|
191
|
-
PredictTTSDurationUsingCharacterRequestOutputFormat$inboundSchema.default(
|
|
192
|
-
"wav",
|
|
193
|
-
),
|
|
194
|
-
voice_settings: ConvertTextToSpeechParameters$inboundSchema.optional(),
|
|
195
|
-
}).transform((v) => {
|
|
196
|
-
return remap$(v, {
|
|
197
|
-
"output_format": "outputFormat",
|
|
198
|
-
"voice_settings": "voiceSettings",
|
|
199
|
-
});
|
|
200
|
-
});
|
|
201
|
-
|
|
202
|
-
/** @internal */
|
|
203
|
-
export type PredictTTSDurationUsingCharacterRequest$Outbound = {
|
|
204
|
-
text: string;
|
|
205
|
-
language: string;
|
|
206
|
-
style?: string | undefined;
|
|
207
|
-
model: string;
|
|
208
|
-
output_format: string;
|
|
209
|
-
voice_settings?: ConvertTextToSpeechParameters$Outbound | undefined;
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
/** @internal */
|
|
213
|
-
export const PredictTTSDurationUsingCharacterRequest$outboundSchema: z.ZodType<
|
|
214
|
-
PredictTTSDurationUsingCharacterRequest$Outbound,
|
|
215
|
-
z.ZodTypeDef,
|
|
216
|
-
PredictTTSDurationUsingCharacterRequest
|
|
217
|
-
> = z.object({
|
|
218
|
-
text: z.string(),
|
|
219
|
-
language: PredictTTSDurationUsingCharacterRequestLanguage$outboundSchema,
|
|
220
|
-
style: z.string().optional(),
|
|
221
|
-
model: PredictTTSDurationUsingCharacterRequestModel$outboundSchema.default(
|
|
222
|
-
"sona_speech_1",
|
|
223
|
-
),
|
|
224
|
-
outputFormat:
|
|
225
|
-
PredictTTSDurationUsingCharacterRequestOutputFormat$outboundSchema.default(
|
|
226
|
-
"wav",
|
|
227
|
-
),
|
|
228
|
-
voiceSettings: ConvertTextToSpeechParameters$outboundSchema.optional(),
|
|
229
|
-
}).transform((v) => {
|
|
230
|
-
return remap$(v, {
|
|
231
|
-
outputFormat: "output_format",
|
|
232
|
-
voiceSettings: "voice_settings",
|
|
233
|
-
});
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
/**
|
|
237
|
-
* @internal
|
|
238
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
239
|
-
*/
|
|
240
|
-
export namespace PredictTTSDurationUsingCharacterRequest$ {
|
|
241
|
-
/** @deprecated use `PredictTTSDurationUsingCharacterRequest$inboundSchema` instead. */
|
|
242
|
-
export const inboundSchema =
|
|
243
|
-
PredictTTSDurationUsingCharacterRequest$inboundSchema;
|
|
244
|
-
/** @deprecated use `PredictTTSDurationUsingCharacterRequest$outboundSchema` instead. */
|
|
245
|
-
export const outboundSchema =
|
|
246
|
-
PredictTTSDurationUsingCharacterRequest$outboundSchema;
|
|
247
|
-
/** @deprecated use `PredictTTSDurationUsingCharacterRequest$Outbound` instead. */
|
|
248
|
-
export type Outbound = PredictTTSDurationUsingCharacterRequest$Outbound;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export function predictTTSDurationUsingCharacterRequestToJSON(
|
|
252
|
-
predictTTSDurationUsingCharacterRequest:
|
|
253
|
-
PredictTTSDurationUsingCharacterRequest,
|
|
254
|
-
): string {
|
|
255
|
-
return JSON.stringify(
|
|
256
|
-
PredictTTSDurationUsingCharacterRequest$outboundSchema.parse(
|
|
257
|
-
predictTTSDurationUsingCharacterRequest,
|
|
258
|
-
),
|
|
259
|
-
);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
export function predictTTSDurationUsingCharacterRequestFromJSON(
|
|
263
|
-
jsonString: string,
|
|
264
|
-
): SafeParseResult<
|
|
265
|
-
PredictTTSDurationUsingCharacterRequest,
|
|
266
|
-
SDKValidationError
|
|
267
|
-
> {
|
|
268
|
-
return safeParse(
|
|
269
|
-
jsonString,
|
|
270
|
-
(x) =>
|
|
271
|
-
PredictTTSDurationUsingCharacterRequest$inboundSchema.parse(
|
|
272
|
-
JSON.parse(x),
|
|
273
|
-
),
|
|
274
|
-
`Failed to parse 'PredictTTSDurationUsingCharacterRequest' from JSON`,
|
|
275
|
-
);
|
|
276
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type UpdateClonedVoiceRequest = {
|
|
11
|
-
/**
|
|
12
|
-
* Name of the voice
|
|
13
|
-
*/
|
|
14
|
-
name?: string | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Description of the voice
|
|
17
|
-
*/
|
|
18
|
-
description?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const UpdateClonedVoiceRequest$inboundSchema: z.ZodType<
|
|
23
|
-
UpdateClonedVoiceRequest,
|
|
24
|
-
z.ZodTypeDef,
|
|
25
|
-
unknown
|
|
26
|
-
> = z.object({
|
|
27
|
-
name: z.string().optional(),
|
|
28
|
-
description: z.string().optional(),
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type UpdateClonedVoiceRequest$Outbound = {
|
|
33
|
-
name?: string | undefined;
|
|
34
|
-
description?: string | undefined;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const UpdateClonedVoiceRequest$outboundSchema: z.ZodType<
|
|
39
|
-
UpdateClonedVoiceRequest$Outbound,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
UpdateClonedVoiceRequest
|
|
42
|
-
> = z.object({
|
|
43
|
-
name: z.string().optional(),
|
|
44
|
-
description: z.string().optional(),
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export namespace UpdateClonedVoiceRequest$ {
|
|
52
|
-
/** @deprecated use `UpdateClonedVoiceRequest$inboundSchema` instead. */
|
|
53
|
-
export const inboundSchema = UpdateClonedVoiceRequest$inboundSchema;
|
|
54
|
-
/** @deprecated use `UpdateClonedVoiceRequest$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema = UpdateClonedVoiceRequest$outboundSchema;
|
|
56
|
-
/** @deprecated use `UpdateClonedVoiceRequest$Outbound` instead. */
|
|
57
|
-
export type Outbound = UpdateClonedVoiceRequest$Outbound;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function updateClonedVoiceRequestToJSON(
|
|
61
|
-
updateClonedVoiceRequest: UpdateClonedVoiceRequest,
|
|
62
|
-
): string {
|
|
63
|
-
return JSON.stringify(
|
|
64
|
-
UpdateClonedVoiceRequest$outboundSchema.parse(updateClonedVoiceRequest),
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function updateClonedVoiceRequestFromJSON(
|
|
69
|
-
jsonString: string,
|
|
70
|
-
): SafeParseResult<UpdateClonedVoiceRequest, SDKValidationError> {
|
|
71
|
-
return safeParse(
|
|
72
|
-
jsonString,
|
|
73
|
-
(x) => UpdateClonedVoiceRequest$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
-
`Failed to parse 'UpdateClonedVoiceRequest' from JSON`,
|
|
75
|
-
);
|
|
76
|
-
}
|