Generating the waveform for an audio from an S3 bucket #3645
Unanswered
ManimMadhav
asked this question in
Q&A
Replies: 2 comments 10 replies
-
Looks like the files are served without a content type. Google for how to set a MIME type on S3. |
Beta Was this translation helpful? Give feedback.
1 reply
-
@katspaugh is it possible for you to provide some insights (if any), as to why a .mp3 file works from a S3 bucket but not a .wav? We have the same bucket and same permissions set for each file on AWS yet a .mp3 renders but a .wav doesn't. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to plot the waveform of an audio file which is getting retrived from an S3 bucket.
However, when I try to load the URL into
wavesurfer.load()
, I get the following error:So, to try and convert the audio to a format that can be decoded by Wavesurfer.js, I tried to convert the audio from the URL into a
Blob
:When I tried to execute the above code, this is the error I am getting:
To fix this error I have tried to view the Blob that was created in the above code block in
console
:This is the response I am getting in console.
What can I possibly do to load the S3 audio? Because from this screenshot it's evident that the Blob of the audio is getting created successfully but somehow Wavesurfer.js is unable to render it. Any suggestions possible? Thank you.
Beta Was this translation helpful? Give feedback.
All reactions