@@ -16,6 +16,23 @@ export const TalkConfigParamsSchema = Type.Object(
1616 { additionalProperties : false } ,
1717) ;
1818
19+ export const TalkSpeakParamsSchema = Type . Object (
20+ {
21+ text : NonEmptyString ,
22+ voiceId : Type . Optional ( Type . String ( ) ) ,
23+ modelId : Type . Optional ( Type . String ( ) ) ,
24+ speed : Type . Optional ( Type . Number ( ) ) ,
25+ stability : Type . Optional ( Type . Number ( ) ) ,
26+ similarity : Type . Optional ( Type . Number ( ) ) ,
27+ style : Type . Optional ( Type . Number ( ) ) ,
28+ speakerBoost : Type . Optional ( Type . Boolean ( ) ) ,
29+ seed : Type . Optional ( Type . Integer ( { minimum : 0 } ) ) ,
30+ normalize : Type . Optional ( Type . String ( ) ) ,
31+ language : Type . Optional ( Type . String ( ) ) ,
32+ } ,
33+ { additionalProperties : false } ,
34+ ) ;
35+
1936const talkProviderFieldSchemas = {
2037 voiceId : Type . Optional ( Type . String ( ) ) ,
2138 voiceAliases : Type . Optional ( Type . Record ( Type . String ( ) , Type . String ( ) ) ) ,
@@ -85,6 +102,18 @@ export const TalkConfigResultSchema = Type.Object(
85102 { additionalProperties : false } ,
86103) ;
87104
105+ export const TalkSpeakResultSchema = Type . Object (
106+ {
107+ audioBase64 : NonEmptyString ,
108+ provider : NonEmptyString ,
109+ outputFormat : Type . Optional ( Type . String ( ) ) ,
110+ voiceCompatible : Type . Optional ( Type . Boolean ( ) ) ,
111+ mimeType : Type . Optional ( Type . String ( ) ) ,
112+ fileExtension : Type . Optional ( Type . String ( ) ) ,
113+ } ,
114+ { additionalProperties : false } ,
115+ ) ;
116+
88117export const ChannelsStatusParamsSchema = Type . Object (
89118 {
90119 probe : Type . Optional ( Type . Boolean ( ) ) ,
0 commit comments