mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Return arraybuffer from realistic voice API
This commit is contained in:
parent
7177279951
commit
9d5cb84648
1 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ export class RealisticTextToSpeech implements TextToSpeech {
|
|||
'Content-Type': 'application/json',
|
||||
}
|
||||
|
||||
const requestUrl = `${apiEndpoint}/${voiceId}`
|
||||
const requestUrl = `${apiEndpoint}${voiceId}`
|
||||
const response = await axios.post<Buffer>(
|
||||
requestUrl,
|
||||
{
|
||||
|
|
@ -31,6 +31,7 @@ export class RealisticTextToSpeech implements TextToSpeech {
|
|||
},
|
||||
{
|
||||
headers: HEADERS,
|
||||
responseType: 'arraybuffer',
|
||||
}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue