See this topic: Measuring incoming base64 sound files and also How to retrieve audio information like length of audio file from Cloudinary file? Rails App UPDATED - Stack Overflow