what if it only plays the windows sound and not the desired sound? -------------------------------------------------------- import winsound winsound.PlaySound("E:\Projects\Python\lego.mp3", winsound.SND_ASYNC) print("test")
What happens if you try using a wav file? This method of playing music doesn't work with mp3s. Secondly, after the line that plays the music, could you do 'val = input("Waiting for input before closing")' Since you are you are trying to play this sound asynchronously, we need to give the main thread something to do while the music is being played.
Hello
Is it possible to start, stop, control next music from soundcloud with python via voice recognition?
Is it possible to setting time so it would play every minutes? If it yes, can u give me the example for the time script
this very helpful but i cant play anything else after stopping it, the program just stops.
what if it only plays the windows sound and not the desired sound?
--------------------------------------------------------
import winsound
winsound.PlaySound("E:\Projects\Python\lego.mp3", winsound.SND_ASYNC)
print("test")
What happens if you try using a wav file? This method of playing music doesn't work with mp3s.
Secondly, after the line that plays the music, could you do 'val = input("Waiting for input before closing")'
Since you are you are trying to play this sound asynchronously, we need to give the main thread something to do while the music is being played.
@@maxodidily i tried all of it and still didnt work but i tried later using "playsound" module it worked
Thankyy