{
"text": "生活就像海洋,只有意志坚强的人才能到达彼岸",
"provider": "openai",
"voice": "alloy"
}
curl --location --request POST 'https://api.302.ai/302/tts/generate' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"text": "生活就像海洋,只有意志坚强的人才能到达彼岸",
"provider": "openai",
"voice": "alloy"
}'