Skip to main content

Aliyun Text to Sound Configuration

caution

支持阿里云平台官方模型和自己训练的个性化模型

Configurable parameters:

Parameter NameParameter DescriptionDefault Value
access_key_idFor more information, refer to:Access Key Idnone
access_key_secretFor more information, refer to:Access Key Secretnone
region_idRegion Idcn-shanghai
app_keyFor more information, refer to:App Keynone
voice_idThe configuration here takes precedence over project settings. If it is not a custom model, please do not add this configuration.none
volumeThe configuration here takes precedence over project settings. If it is not a custom model, please do not add this configuration.none
speech_rateThe configuration here takes precedence over project settings. If it is not a custom model, please do not add this configuration.none
pitch_rateThe configuration here takes precedence over project settings. If it is not a custom model, please do not add this configuration.none

Configuration example:

roles.json
{
"1": {
"start_text": "你好,我是小兔兔,请问有什么我可以帮助你的吗?",
"prompt": "你扮演一个孩子的小伙伴,名字叫小兔兔,性格和善,说话活泼可爱,对孩子充满爱心,经常赞赏和鼓励孩子,用5岁孩子容易理解语言提供有趣和创新的回答,每次回复根据聊天主题询问她的看法以激发她的思考和好奇心,现在她来到了你身边问了第一个问题:[你是谁]",
"tts_type": "aliyun-tts",
"tts_config": {
"app_key": "Lxxxxxxxx904N7XJN",
"access_key_secret": "xxxx",
"access_key_secret": "xxxx"
}
}
}