mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
feat: 语音支持中日结合
This commit is contained in:
parent
4a94241f15
commit
b212fcf87e
4 changed files with 91 additions and 6 deletions
|
|
@ -619,7 +619,7 @@ export class chatgpt extends plugin {
|
|||
}
|
||||
if (useTTS) {
|
||||
if (Config.ttsSpace && response.length <= 299) {
|
||||
let wav = await generateAudio(response, speaker, '中文')
|
||||
let wav = await generateAudio(response, speaker, '中日混合(中文用[ZH][ZH]包裹起来,日文用[JA][JA]包裹起来)')
|
||||
await e.reply(segment.record(wav))
|
||||
if (Config.alsoSendText) {
|
||||
await this.reply(`${response}`, e.isGroup)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue