mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
Merge branch 'v2' into v2
This commit is contained in:
commit
8e50acc146
88 changed files with 18904 additions and 879 deletions
|
|
@ -87,7 +87,8 @@ async function uploadRecord (recordUrl, ttsMode = 'vits-uma-genshin-honkai') {
|
|||
buffer = Buffer.from(arrayBuffer)
|
||||
formData.append('file', new File([buffer], 'audio.wav'))
|
||||
}
|
||||
const resultres = await fetch(`${Config.cloudTranscode}/audio`, {
|
||||
const cloudUrl = new URL(Config.cloudTranscode)
|
||||
const resultres = await fetch(`${cloudUrl}audio`, {
|
||||
method: 'POST',
|
||||
body: formData
|
||||
})
|
||||
|
|
@ -103,7 +104,8 @@ async function uploadRecord (recordUrl, ttsMode = 'vits-uma-genshin-honkai') {
|
|||
throw e
|
||||
}
|
||||
} else {
|
||||
const resultres = await fetch(`${Config.cloudTranscode}/audio`, {
|
||||
const cloudUrl = new URL(Config.cloudTranscode)
|
||||
const resultres = await fetch(`${cloudUrl}audio`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue