my question is similar to Get .wav file length or duration.
- use
MediaRecorder
in js frontend to record audio - send blob to backend
I want to apply a length limit of 30 seconds, but all I have is a blob, should be stored in django BinaryField
.
the frontend blob format is in type: "audio/mp4"
since in backend I don't want to create a file in each request, I only want to access the length of the audio, I am grateful for your suggestions.