mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 13:27:08 +00:00
fix: 解决角色性格切换问题
This commit is contained in:
parent
4a5407502a
commit
78a99801e7
1 changed files with 1 additions and 2 deletions
|
|
@ -26,8 +26,7 @@ const newFetch = (url, options = {}) => {
|
|||
|
||||
async function generateAudio(text, options = {}) {
|
||||
let host = Config.voicevoxSpace
|
||||
logger.info(`用户配置speaker:${options.speaker}`)
|
||||
let speaker = options.speaker?.speaker || '护士机器子T'
|
||||
let speaker = options.speaker || '随机'
|
||||
if (speaker === '随机') {
|
||||
speaker = supportConfigurations[Math.floor(Math.random() * supportConfigurations.length)].name
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue