Skip to content

Commit 96f19a5

Browse files
committed
Fix broken playsound dependency
1 parent 55613b8 commit 96f19a5

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"pathfinding",
7474
"penaltykick",
7575
"penaltyshoot",
76+
"playsound",
7677
"pointcloud",
7778
"pointclouds",
7879
"popen",

bitbots_behavior/bitbots_body_behavior/bitbots_body_behavior/behavior_dsd/actions/speak.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ def __init__(self, blackboard, dsd, parameters):
2626

2727
def perform(self, reevaluate=False):
2828
try:
29-
import playsound
29+
import playsound3
3030
except ImportError:
3131
return self.pop()
3232

3333
try:
34-
playsound.playsound(self.audio_file, block=False)
35-
except playsound.PlaysoundException:
34+
playsound3.playsound(self.audio_file, block=False)
35+
except playsound3.playsound3.PlaysoundException:
3636
pass
3737

3838
return self.pop()

requirements/robot.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This file is used for installation of dependencies on the robot
22
-r common.txt # Includes all common dependencies
33
mycroft-mimic3-tts
4-
protobuf==3.20.3 # Required for mycroft-mimic3-tts, but we want to enshure that the version is compatible binaries build using the system version, but it should also be compatiple with all the python dependencies
4+
protobuf==3.20.3 # Required for mycroft-mimic3-tts, but we want to ensure that the version is compatible binaries build using the system version, but it should also be compatible with all the python dependencies
55
pyttsx3
6-
playsound
6+
playsound3
77
pyamdgpuinfo

0 commit comments

Comments
 (0)