mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
fix: 修正voicevox角色风格设置问题
This commit is contained in:
parent
68ef2d104f
commit
06495c3c59
1 changed files with 2 additions and 2 deletions
|
|
@ -626,8 +626,8 @@ export class chatgpt extends plugin {
|
||||||
await this.reply(`抱歉,没有"${speaker}"这个角色,目前voicevox模式下支持的角色有${VoiceVoxTTS.supportConfigurations.map(item => item.name).join('、')}`)
|
await this.reply(`抱歉,没有"${speaker}"这个角色,目前voicevox模式下支持的角色有${VoiceVoxTTS.supportConfigurations.map(item => item.name).join('、')}`)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if (style && !chosen[0].styles.includes(style)) {
|
if (style && !chosen[0].styles.find(item => item.name === style)) {
|
||||||
await this.reply(`抱歉,"${speaker}"这个角色没有"${style}"这个风格,目前支持的风格有${chosen[0].styles.join('、')}`)
|
await this.reply(`抱歉,"${speaker}"这个角色没有"${style}"这个风格,目前支持的风格有${chosen[0].styles.map(item => item.name).join('、')}`)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
let userSetting = await redis.get(`CHATGPT:USER:${e.sender.user_id}`)
|
let userSetting = await redis.get(`CHATGPT:USER:${e.sender.user_id}`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue