{
"contentType": "application/json",
"properties": {
"contents": {
"items": {
"properties": {
"parts": {
"items": {
"properties": {
"text": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"type": "array"
},
"generationConfig": {
"properties": {
"responseModalities": {
"items": {
"type": "string"
},
"type": "array"
},
"speechConfig": {
"properties": {
"voiceConfig": {
"description": "指定的声音角色的名字",
"properties": {
"prebuiltVoiceConfig": {
"properties": {
"voiceName": {
"type": "string"
}
},
"required": [
"voiceName"
],
"type": "object"
}
},
"required": [
"prebuiltVoiceConfig"
],
"type": "object"
}
},
"required": [
"voiceConfig"
],
"type": "object"
}
},
"required": [
"responseModalities",
"speechConfig"
],
"type": "object"
}
},
"required": [
"contents",
"generationConfig"
]
}{
"contents": [
{
"parts": [
{
"text": "Say cheerfully: Have a wonderful day!"
}
]
}
],
"generationConfig": {
"responseModalities": [
"AUDIO"
],
"speechConfig": {
"voiceConfig": {
"prebuiltVoiceConfig": {
"voiceName": "Kore"
}
}
}
}
}