Answer the question
In order to leave comments, you need to log in
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 -
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 questionAsk a Question
731 491 924 answers to any question