1
alphab OP 有人知道吗?
|
2
Liyuu 2017-11-18 07:11:40 +08:00
可以试试 subprocess
import subprocess audio_file = "/full/path/to/audio.wav" return_code = subprocess.call(["afplay", audio_file]) 出处: https://stackoverflow.com/questions/3498313/how-to-trigger-from-python-playing-of-a-wav-or-mp3-audio-file-on-a-mac |