php – How can we recover the user to play audio on the server via text-to-speech

I have hosted voice synthesis files on the server. If I run a query from my browser, it must be read on the server. I use XAMP on the server. The port is open too.

I want to send this request from my browser:

and he must play on the server ( is the server on which I stored the text2speech files).

Thanks for the help

my code:



PHP text to speech script

Enter your text: