-2

How would I be able to play a .wma file in Python? Let's just say the file name is Scream.wma

Name McChange
  • 2,750
  • 5
  • 27
  • 46
Ethan Bacon
  • 233
  • 1
  • 2
  • 7

1 Answers1

0

http://wiki.python.org/moin/Audio/ has a long list of audio libraries. There's even one on the list called wave, which is just for WAV files. Besides those you can use PyGame:

import pygame
import pygame.mixer
pygame.mixer.music.load('file.wav')
pygame.mixer.music.play()
kirbyfan64sos
  • 10,377
  • 6
  • 54
  • 75