码迷,mamicode.com
首页 > 编程语言 > 详细

python 播放WAV文件

时间:2014-07-22 14:57:44      阅读:256      评论:0      收藏:0      [点我收藏+]

标签:python 播放音频文件

import winsound

winsound.PlaySound("ding.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("ding.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("ding.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("chimes.wav",winsound.SND_FILENAME)

winsound.PlaySound("ding.wav",winsound.SND_FILENAME)

winsound.PlaySound("chord.wav",winsound.SND_FILENAME)


本文出自 “星河码头” 博客,请务必保留此出处http://liy607.blog.51cto.com/2892862/1441121

python 播放WAV文件

标签:python 播放音频文件

原文地址:http://liy607.blog.51cto.com/2892862/1441121

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!