Good Speech Recognition API for PHP

I am working on a project (see here: https://support.glitch.com/t/mhira-app-the-app-that-helps-children-with-mental-health-issues-or-just-a-bad-day) and I am using the WebKit SpeechRecognition API, but it isn’t supported on Safari (only Google Chrome, Opera, Edge and a few others). Does anyone know of a more flexible API I could use that would work on more browsers? Or a service? I am coding with HTML, PHP and Javascript. I am not sure if Python is an option, but if I can get it into the PHP, then maybe?

Any help is appreciated in advance,
Eddie