PHP implementation of text-to-speech real-time streaming

Hi all,
as the title says do you have any pointers on how to implement a PHP call to real-time text-to-speech API using the streaming=true?
By the way, I have managed to a javascript call to the text-to-speech API with streaming=true and I manage to receive streamed the response, though the quality was not good at all.
Thanks in advance