mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
feat: 语音模式下同时发送文字(默认关闭);锅巴中选择语音人物
This commit is contained in:
parent
de5707de2b
commit
58adb3d280
3 changed files with 20 additions and 15 deletions
|
|
@ -622,6 +622,12 @@ export class chatgpt extends plugin {
|
|||
if (Config.ttsSpace && response.length <= 299) {
|
||||
let wav = await generateAudio(response, speaker, '中文')
|
||||
e.reply(segment.record(wav))
|
||||
if (Config.alsoSendText) {
|
||||
await this.reply(`${response}`, e.isGroup)
|
||||
if (quotemessage.length > 0) {
|
||||
this.reply(await makeForwardMsg(this.e, quotemessage))
|
||||
}
|
||||
}
|
||||
} else {
|
||||
await this.reply('你没有配置转语音API或者文字太长了哦,我用文本回复你吧', e.isGroup)
|
||||
await this.reply(`${response}`, e.isGroup)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue