Hello Team, I am using JavaScript SDK and using getArchitectPromptResource web API to get prompt details. In the API response, I am getting mediaUri and able to play it but not able to download it.
using below logic to download audio file
var element = document.createElement('a');
var file = new Blob([mediaUri ], { type: 'audio/x-wav' }); // will accept any audio file
element.href = URL.createObjectURL(file);
element.download = 'audio.wav'; // file name
element.click();
Hi @Ambuj_Dubey
Can you try to download using the Uri in Browser if it is working in browser then
you need to enable Response DeCompression using gzip, deflate and brotli.
Reference example from .NET Code AutomaticDecompression is the line which fixed my issue.