Run in Apifox
Request
Example: Bearer {{YOUR_API_KEY}}
Body Params application/json
声の性別。値は任意で、1.male、2.female。
声の年齢。任意値:1.child、2.teenager、3.young、4.middle-aged、5.old。
カスタム入力のトーンスタイル記述子(例:『casual』『fashion』)は、8個以内にしてください。
{
"gender" : "female" ,
"age" : "old" ,
"voice_desc" : [
"Kind and friendly" ,
"Kind and amiable" ,
"Kind hearted" ,
"Calm tone"
] ,
"text" : "真正的危险不是计算机开始像人一样思考,而是人开始像计算机一样思考"
}
Request samples curl --location --request POST 'https://api.302.ai/minimaxi/v1/text2voice' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"gender": "female",
"age": "old",
"voice_desc": [
"Kind and friendly",
"Kind and amiable",
"Kind hearted",
"Calm tone"
],
"text": "真正的危险不是计算机开始像人一样思考,而是人开始像计算机一样思考"
}'
Responses application/json Generate Code
Modified at 2024-10-18 10:51:10