zl程序教程

您现在的位置是:首页 >  后端

当前栏目

python播放wav音频文件代码详解编程语言

Python编程语言代码 详解 播放 音频文件 wav
2023-06-13 09:20:24 时间
# pick a wave file supplied by Windows XP or one of your own ... # soundfile = "c://Windows//Media//chimes.wav" # Python also accepts the forward slash soundfile = "c:/Windows/Media/chimes.wav" winsound.PlaySound(soundfile, winsound.SND_FILENAME|winsound.SND_ASYNC) # wait one and a half seconds time.sleep(1.5) # play the system exit sound if set winsound.PlaySound("SystemExit", winsound.SND_ALIAS)

原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/8294.html

cjavapythonwindows