mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 05:47:11 +00:00
feat: 添加基于voicevox语音支持
This commit is contained in:
parent
a714c21ffb
commit
94c44068a4
5 changed files with 291 additions and 3 deletions
|
|
@ -108,7 +108,7 @@ async function uploadRecord (recordUrl) {
|
|||
if (!result.buffer) {
|
||||
return false
|
||||
}
|
||||
let buf = result.buffer
|
||||
let buf = Buffer.from(result.buffer)
|
||||
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