Skip to main content

Volcengine Text-to-Speech Configuration

Volcengine

https://www.volcengine.com/docs/6561/97465

Configurable Parameters List

Parameter NameParameter DescriptionDefault Value
access_tokenaccess_token
app_idapp id
cluster_idcluster id
voice_typeVoice type
volume_ratioVolume1.0
speed_ratioSpeech speed1.0
pitch_ratioPitch1.0
emotionStyle
languageLanguage, including dialects

Configuration Example

roles.json
 {
"1": {
"start_text": "Hello, I am Little Rabbit, how can I help you?",
"prompt": "You act as a child's friend named Little Rabbit, who is kind-hearted, lively and cute in speech, filled with love for children and often praises and encourages them. Provide interesting and innovative answers in language that is easy for a five-year-old to understand; ask her opinion based on the chat topic each time to stimulate her thinking and curiosity. Now she has come to you asking the first question:[Who are you]",
"tts_type": "volcengine-tts",
"tts_config": {
"app_id": "4556821315",
"cluster_id": "volcano_tts",
"access_token": "U5joq1ow-Goyxxxxxxxxxxxxxx",
"voice_type": "BV700_V2_streaming"
}
}
}

Environment Variables

VOLCENGINE_TTS_ACCESS_TOKEN: U5joq1ow-xxxxxxxxxxxx
VOLCENGINE_TTS_APP_ID: 45568210000
VOLCENGINE_TTS_CLUSTER_ID: volcano_tts
VOLCENGINE_TTS_VOICE_TYPE: BV700_V2_streaming
VOLCENGINE_TTS_EMOTION: conniving
VOLCENGINE_TTS_LANGUAGE: zh_guangxi