Open satpalslabs opened 5 months ago
@satpalslabs Can you show what the response looks like from Postman in comparison? Have you tried treating the response as binary and converting it to base64?
I can confirm this is happening for me as well. I am attempting something similar with the DUBBING API endpoint. Both in the Postman and the ElevanLabs playground the api results work as expected but not in Appsmith.
I have not converted anything to base64 I was hoping to play the file...generated from the API.....which I believe is a byte stream binary mp3?
I'm wonder if Appsmith is seeing the whole result is or is it missing some of the data causing a corruption? I was going to try to store the results in a DB and then see if I can play it from there.
It would be great if we someone would take a look at it. Thank so much.
@LagunaElectric Postman is directly giving the audio file as below, and we do not need to encode or decode the response.
Has anyone found a solution yet? Is it related to the size of the generated file? What would be a good work around? What if you stored the generated results in mondodb then used Appsmith audio widget?
Is there an existing issue for this?
Description
We are trying to create an admin using Appsmith that generates audio files from text using Elevenlabs APIs. The API is returning a response in a corrupted format neither is it a base64 or a binary data.
Expected Response: Response with 200 statusCode and Generated audio file in base64 or binary format.
API Response: Getting Response with 200 statusCode and corrupted file data.
The same API request is working fine on POSTMAN it returns a file and also on Retool the API is returning base64 file data in API response which we are further converting into an audio file.
Steps To Reproduce
API: POST URL:
https://api.elevenlabs.io/v1/text-to-speech/D38z5RcWu1voky8WS1ja
Body:Header:
Response:
Steps to replicate in the Public Sample App added below:
Public Sample App
https://app.appsmith.com/app/generateaudiofiles/page1-661e18db4f5bde36a200395d
Environment
Production
Severity
High (Blocker to building or releasing)
Issue video log
No response
Version
Cloud