如何从Python中的Mac上WAV或MP3音频文件播放触发? [英] How to trigger from Python playing of a WAV or MP3 audio file on a Mac?
本文介绍了如何从Python中的Mac上WAV或MP3音频文件播放触发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在找一个优雅的方式,没有一吨的依赖在一些解决方案,我用Google搜索了。
I'm looking for an elegant way, without a ton of dependencies as in some of the solutions I googled up.
感谢您的任何想法。
推荐答案
据我所知pygame的是播放音乐最便携的方式:的 http://www.pygame.org/docs/ref/music.html
As far as I know PyGame is the most portable way to play music: http://www.pygame.org/docs/ref/music.html
您可以在这里找到它的包: http://www.pygame.org/download.shtml一>
You can find its package here: http://www.pygame.org/download.shtml
这篇关于如何从Python中的Mac上WAV或MP3音频文件播放触发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文