syllable-sdk 1.0.2-rc.9 → 1.0.2

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.
@@ -47,6 +47,14 @@ export type VoiceSampleCreateRequest = {
47
47
  * Pitch of the voice in the range of -20.0 to 20.0. 20 means increase 20 semitones from the original pitch. -20 means decrease 20 semitones from the original pitch. 0 means use the original pitch. Only supported for Google configs.
48
48
  */
49
49
  voicePitch?: number | null | undefined;
50
+ /**
51
+ * Text to generate for this voice.
52
+ */
53
+ text?: string | undefined;
54
+ /**
55
+ * Apply TTS pronunciation fixes.
56
+ */
57
+ applyPronunciationOverrides?: boolean | undefined;
50
58
  };
51
59
 
52
60
  /** @internal */
@@ -60,6 +68,8 @@ export const VoiceSampleCreateRequest$inboundSchema: z.ZodType<
60
68
  voice_display_name: AgentVoiceDisplayName$inboundSchema,
61
69
  voice_speed: z.nullable(z.number()).optional(),
62
70
  voice_pitch: z.nullable(z.number()).optional(),
71
+ text: z.string().default(""),
72
+ apply_pronunciation_overrides: z.boolean().default(false),
63
73
  }).transform((v) => {
64
74
  return remap$(v, {
65
75
  "language_code": "languageCode",
@@ -67,6 +77,7 @@ export const VoiceSampleCreateRequest$inboundSchema: z.ZodType<
67
77
  "voice_display_name": "voiceDisplayName",
68
78
  "voice_speed": "voiceSpeed",
69
79
  "voice_pitch": "voicePitch",
80
+ "apply_pronunciation_overrides": "applyPronunciationOverrides",
70
81
  });
71
82
  });
72
83
 
@@ -77,6 +88,8 @@ export type VoiceSampleCreateRequest$Outbound = {
77
88
  voice_display_name: string;
78
89
  voice_speed?: number | null | undefined;
79
90
  voice_pitch?: number | null | undefined;
91
+ text: string;
92
+ apply_pronunciation_overrides: boolean;
80
93
  };
81
94
 
82
95
  /** @internal */
@@ -90,6 +103,8 @@ export const VoiceSampleCreateRequest$outboundSchema: z.ZodType<
90
103
  voiceDisplayName: AgentVoiceDisplayName$outboundSchema,
91
104
  voiceSpeed: z.nullable(z.number()).optional(),
92
105
  voicePitch: z.nullable(z.number()).optional(),
106
+ text: z.string().default(""),
107
+ applyPronunciationOverrides: z.boolean().default(false),
93
108
  }).transform((v) => {
94
109
  return remap$(v, {
95
110
  languageCode: "language_code",
@@ -97,6 +112,7 @@ export const VoiceSampleCreateRequest$outboundSchema: z.ZodType<
97
112
  voiceDisplayName: "voice_display_name",
98
113
  voiceSpeed: "voice_speed",
99
114
  voicePitch: "voice_pitch",
115
+ applyPronunciationOverrides: "apply_pronunciation_overrides",
100
116
  });
101
117
  });
102
118