'Recording user audio with HTML+Flask

I am working on a site using python anywhere combining Flask and HTML, I need to get audio input from the user and then save their recordings on a server. Right now I am using <input type=file accept=audio/* function of HTML, however this does not work well on safari and android, it allows users to send videos while I need only the audio. Is there a way that works well with IoS and Android to record users?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source