I tried downloading the file and playing it using winsound to play it with the flag SND_MEMORY, but it only accepts str instead of the bytes object I got from urllib.request.urlopen. Using decode() needs a valid encoding, but I don't have one.
CLARIFICATION:downloading the file I mean as using urllib.request.urlopen to do it.
james.lu.75491856 0 Junior Poster
snippsat 661 Master Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.