Home > other >  Under WINDOWS python3. X how to play audio file url?
Under WINDOWS python3. X how to play audio file url?

Time:09-21

What are the modules can be used, I put the audio link
http://117.169.85.19/amobile.music.tc.qq.com/C4000039MnYb0qxYhV.m4a? Guid=5445473344 & amp; Vkey=38 b63efc421b0aa5b202745f4dd84139390dffa242984e6cd368c109be8b244236f1ee0733e67ce6d8c7f2379a00a921b6fc79232a4a5080 & amp; Uin=0 & amp; Fromtag=66
Now find a pygame, then use the urllib request. Urlopen (url), and then the response. The read () as pygame. Mixer. The sound () parameters, an error memoryerror,
Don't know what to do

CodePudding user response:

I also encountered such a problem, you can try using playsound this module, but this module is a simple, cannot be compared with pygame, also does not support mp3play python3, can be used as reference to look at
  • Related