I have some project that need to play sound which can volume it up
import playsound
playsound.playsound(PathToFile)
How can i volume up my sound with playsound library
Or i should use other library ?
I have some project that need to play sound which can volume it up
import playsound
playsound.playsound(PathToFile)
How can i volume up my sound with playsound library
Or i should use other library ?
There isn't much of a documentation for playsound module, but here is how you could do it with pygame
import pygame
pygame.init()
pygame.mixer.init()
sound = pygame.mixer.Sound(thepath)
sound.set_volume(0.9) # Now plays at 90% of full volume.
sound.play()
i got this from pygame official website, you can check it too for more info, pygame website.