import mp3play
filename = r'C:\Users\Public\Music\Sample Music\Kalimba.mp3'
clip = mp3play.load(filename)
clip.play()
import time
time.sleep(min(30, clip.seconds()))
clip.stop()
|
참고 :
https://pypi.python.org/pypi/setuptools#files
https://pypi.python.org/pypi/mp3play/
댓글 없음:
댓글 쓰기