Questions and answers by myself. I hope it will be helpful to those who encounter the same situation. You are also welcome to suggest modifications or better solutions. According to searches in the past few days, few modules explicitly support audio stream format conversion. Find an available module io, the sound processing module can refer to https://wiki.python.org/moin/...
Questions and answers by myself. I hope it will be helpful to those who encounter the same situation. You are also welcome to suggest modifications or better solutions.
According to searches in the past few days, few modules explicitly support audio stream format conversion.
Find an available module io, the sound processing module can refer to https://wiki.python.org/moin/...
Then you can use this stream data like a file, and then you can use the mp3 file to wav module instead of writing to the file and reading it again.
The following is the verification process combined with pydub: