Skip to content
Advertisement

s3 uploads audio file but it doesn’t play. How to upload audio stream to s3?

I’m trying to upload my Amazon Polly speech files to s3. They upload successfully, so no errors that I can work with but they don’t play.

I have an array of objects which include lyrics which are strings. I loop them and create a mp3 file then upload to s3.


Data structure:

JavaScript

.
Polly and S3 Function:

JavaScript

Polly response:

JavaScript

Advertisement

Answer

JavaScript

So it seems like I tried to upload the whole object to S3. The line above lets me upload the audio stream properly.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement