Skip to content

Commit

Permalink
play sounds fixed on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
drfeinberg committed Feb 25, 2022
1 parent 33f7c38 commit 5cfeef3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Voicelab/VoicelabWizard/InputTab.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ def onclick_play(self):
if self.soundfile[-3:].lower() != "wav":
tmp_praat_object = parselmouth.Sound(self.soundfile)
tmp_praat_object.save("tmp.wav", "WAV")
#print(self.soundfile)self.sound = QSound(self.soundfile)
self.sound = QSound("tmp.wav")
self.sound.play()
QSound.play(self.sound)
else:
self.sound = QSound(self.soundfile)
QSound.play(self.sound)
except:
pass

Expand Down

0 comments on commit 5cfeef3

Please sign in to comment.