About 309,000 results
Open links in new tab
  1. audio - Play a Sound with Python - Stack Overflow

    Nov 21, 2008 · What's the easiest way to play a sound file (.wav) in Python? By easiest I mean both most platform independent and requiring the least dependencies. pygame is certainly an …

  2. audio - Playing mp3 song on python - Stack Overflow

    I want to play my song (mp3) from python, can you give me a simplest command to do that? This is not correct:

  3. Play audio with Python - Stack Overflow

    How can I play audio (it would be like a 1 second sound) from a Python script? It would be best if it was platform independent, but firstly it needs to work on a Mac. I know I could just execute ...

  4. How can I play audio (playsound) in the background of a Python …

    I am just writing a small Python game for fun and I have a function that does the beginning narrative. I am trying to get the audio to play in the background, but unfortunately the MP3 file …

  5. audio - Play WAV file in Python - Stack Overflow

    import pygame pygame.init() pygame.mixer.music.load("mysound.wav") pygame.mixer.music.play() pygame.event.wait() but It change the voice and I don't know why! …

  6. audio - How to play music sequentially in Python without blocking ...

    Jun 15, 2025 · I'm developing a Python application that needs to play music tracks sequentially. Currently, I'm using pygame.mixer to play the audio like this: from pygame import mixer from …

  7. python - How to play mp3 from URL - Stack Overflow

    Jul 7, 2016 · I'm trying to write a python script that will play mp3 from Soundcloud URL This is what I've already done:

  8. python - How can I play an mp3 with pygame? - Stack Overflow

    The play function starts the music playing, but returns immediately. Then your program reaches it's end, and the pygame object is automatically destroyed which causes the music to stop.

  9. In Python, how do you play musical notes? - Stack Overflow

    Apr 1, 2011 · Possible Duplicate: Python Music Library? Is there a way to play musical notes in Python? Also setting duration would be useful. If there are any built-in modules for it then that …

  10. How can I make a single Button play music, pause music and …

    Aug 15, 2020 · How can I make a single Button play music, pause music and unpause music in Python using tkinter and pygame? Asked 5 years, 3 months ago Modified 4 years, 9 months …