xxxxxxxxxx
from playsound import playsound
playsound('audio _file _place/file name')
xxxxxxxxxx
import vlc
import time
p = vlc.MediaPlayer("fade music.mp3")
p.play()
time.sleep(60)
p.stop()
xxxxxxxxxx
import pygame
# Initialize Pygame
pygame.init()
# Load sound file
sound = pygame.mixer.Sound('path/to/sound/file.wav')
# Play the sound
sound.play()
# Wait for the sound to finish playing
pygame.time.wait(int(sound.get_length() * 1000))
# Quit Pygame
pygame.quit()