Skip to content

Commit 5cfeef3

Browse files
committed
play sounds fixed on windows
1 parent 33f7c38 commit 5cfeef3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Voicelab/VoicelabWizard/InputTab.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ def onclick_play(self):
106106
if self.soundfile[-3:].lower() != "wav":
107107
tmp_praat_object = parselmouth.Sound(self.soundfile)
108108
tmp_praat_object.save("tmp.wav", "WAV")
109-
#print(self.soundfile)self.sound = QSound(self.soundfile)
110109
self.sound = QSound("tmp.wav")
111-
self.sound.play()
110+
QSound.play(self.sound)
111+
else:
112+
self.sound = QSound(self.soundfile)
113+
QSound.play(self.sound)
112114
except:
113115
pass
114116

0 commit comments

Comments
 (0)