mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
fix: 随机打招呼使用默认tts角色
This commit is contained in:
parent
2c5d573ec2
commit
55c5112d1c
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ export class Entertainment extends plugin {
|
|||
let sendable = message
|
||||
logger.info(`打招呼给群聊${groupId}:` + message)
|
||||
if (Config.defaultUseTTS) {
|
||||
let audio = await generateAudio(message, '随机')
|
||||
let audio = await generateAudio(message, Config.defaultTTSRole)
|
||||
console.log(audio)
|
||||
sendable = segment.record(audio)
|
||||
}
|
||||
|
|
@ -56,7 +56,7 @@ export class Entertainment extends plugin {
|
|||
let message = await generateHello()
|
||||
logger.info(`打招呼给群聊${groupId}:` + message)
|
||||
if (Config.defaultUseTTS) {
|
||||
let audio = await generateAudio(message, '随机')
|
||||
let audio = await generateAudio(message, Config.defaultTTSRole)
|
||||
await Bot.sendGroupMsg(groupId, segment.record(audio))
|
||||
} else {
|
||||
await Bot.sendGroupMsg(groupId, message)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue