How to Handle MP3 File Format Restrictions in Speakatoo’s API?

I am developing a widget that integrates with Speakatoo’s API. The API requires audio files in MP3 format. Could anyone guide me on how to manage file format restrictions effectively? Specifically, how can I ensure compliance with this requirement and handle scenarios where input files are in other formats? Any best practices or recommendations would be appreciated.