Merge pull request #142 from ysak-y/modify_audio_player_command_for_darwin
Modify audio playing command in play_audio() for Darwinpull/170/head
commit
ae0a9f9a05
|
@ -80,8 +80,10 @@ def play_audio(filename: str):
|
|||
import platform
|
||||
from subprocess import Popen
|
||||
|
||||
player = 'play' if platform.system() == 'Darwin' else 'aplay'
|
||||
Popen([player, '-q', filename])
|
||||
if platform.system() == 'Darwin':
|
||||
Popen(['afplay', filename])
|
||||
else:
|
||||
Popen(['aplay', '-q', filename])
|
||||
|
||||
|
||||
def activate_notify():
|
||||
|
|
Loading…
Reference in New Issue