We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fd3cf9d + c02315b commit ae0a9f9Copy full SHA for ae0a9f9
precise/util.py
@@ -80,8 +80,10 @@ def play_audio(filename: str):
80
import platform
81
from subprocess import Popen
82
83
- player = 'play' if platform.system() == 'Darwin' else 'aplay'
84
- Popen([player, '-q', filename])
+ if platform.system() == 'Darwin':
+ Popen(['afplay', filename])
85
+ else:
86
+ Popen(['aplay', '-q', filename])
87
88
89
def activate_notify():
0 commit comments