mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
更新 uploadRecord.js
This commit is contained in:
parent
53b75bf420
commit
17fd8586a8
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ async function uploadRecord (recordUrl, ttsMode = 'vits-uma-genshin-honkai') {
|
|||
return false
|
||||
}
|
||||
let buf = Buffer.from(result.buffer)
|
||||
let seconds = result.time.seconds
|
||||
let seconds = result.time ? result.time.seconds : 0
|
||||
const hash = md5(buf)
|
||||
const codec = String(buf.slice(0, 7)).includes('SILK') ? 1 : 0
|
||||
const body = core.pb.encode({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue