Play Ogg File in Python

An example that uses this code Morse Code And Dictionaries In Python.


import pygame
import time
pygame.init()

pygame.mixer.music.load('A_morse_code.ogg')
pygame.mixer.music.play()
time.sleep(1.5)