콘텐츠로 이동

TextToSpeechArgsSchema

이 콘텐츠는 아직 번역되지 않았습니다.

const TextToSpeechArgsSchema: z.ZodObject<{
format: z.ZodOptional<z.ZodEnum<["wav", "mp3"]>>;
input: z.ZodEffects<z.ZodString, string, string>;
model: z.ZodOptional<z.ZodString>;
voice: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
format?: "wav" | "mp3";
input: string;
model?: string;
voice?: string;
}, {
format?: "wav" | "mp3";
input: string;
model?: string;
voice?: string;
}>;

TextToSpeech 工具参数 schema:模型(可省)、待朗读文本、音色 id 与输出格式。