A
A
AlexMajestic2019-02-16 17:29:49
PHP
AlexMajestic, 2019-02-16 17:29:49

How to save byte collection to WAV file using PHP methods?

I am working on an educational project related to the translation of foreign words. I ran into a problem when getting a WAV file through the LINGVO API.
In response to the request, a string of the form comes - vAWWxVMI1bYgLA.jpg
According to the description of the developers, this is a json string with a byte collection.
More about the method and a complete example here - Official Lingvo Documentation
I've looked a lot, but I can't find how to translate this into a working WAV file using PHP methods (standard or not). Simply writing this line to a file other than WAV format did not help, the file is not played (standard HTML5 audio and desktop players do not eat it). Please tell me how to process such a response from the API.
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question