fix: azure默认角色bug

This commit is contained in:
ikechan8370 2023-04-22 23:01:57 +08:00
parent cf992bbc2c
commit a714c21ffb
2 changed files with 3 additions and 2 deletions

View file

@ -693,7 +693,7 @@ export class chatgpt extends plugin {
if (Config.ttsMode === 'vits-uma-genshin-honkai') {
speaker = convertSpeaker(userSetting.ttsRole || Config.defaultTTSRole)
} else if (Config.ttsMode === 'azure') {
speaker = userSetting.ttsRoleAzure || Config.defaultTTSRole
speaker = userSetting.ttsRoleAzure || Config.azureTTSSpeaker
}
// 每个回答可以指定
let trySplit = prompt.split('回答:')