{
"audioConfig": {
"audioEncoding": "LINEAR16",
"effectsProfileId": [
"headphone-class-device"
],
"pitch": 0,
"speakingRate": 0.96
},
"input": {
"text": "三零二真是个超级棒的平台"
},
"voice": {
"languageCode": "cmn-CN",
"name": "cmn-CN-Chirp3-HD-Schedar"
}
}
curl --location --request POST 'https://api.302.ai/google/v1/text-synthesize?response_format=url' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"audioConfig": {
"audioEncoding": "LINEAR16",
"effectsProfileId": [
"headphone-class-device"
],
"pitch": 0,
"speakingRate": 0.96
},
"input": {
"text": "三零二真是个超级棒的平台"
},
"voice": {
"languageCode": "cmn-CN",
"name": "cmn-CN-Chirp3-HD-Schedar"
}
}'
{
"audioConfig": {
"audioEncoding": "LINEAR16",
"effectsProfileId": [],
"pitch": 0,
"sampleRateHertz": 24000,
"speakingRate": 0.96,
"volumeGainDb": 0
},
"audioContent": "https://file.302.ai/gpt/imgs/20250617/671b1957ba22428abf0a1c9fb9f25241.mp3",
"timepoints": []
}