how to read the response which is a sound file in python?

萝らか妹 提交于 2020-01-25 12:09:48

问题


I am sending a request to the server and server is sending a response back. But the response is in the form of sound file. working - I am sending the request, response is received on the terminal, so I am writing it to text but later how to convert that into a sound file (.wav). The response from the server is as shown below.

The response as a text in the beginning and the binary in the middle and later text in the end. how to get a sound file out of it ? someone help me in this ?

来源:https://stackoverflow.com/questions/35154683/how-to-read-the-response-which-is-a-sound-file-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!