Skip to content

Commit

Permalink
wav
Browse files Browse the repository at this point in the history
  • Loading branch information
webbrowser11 authored Oct 20, 2024
1 parent 31f1e61 commit 2c7d195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
def play_audio():
global stop_flag
stop_flag = False
file = filedialog.askopenfilename(filetypes=[("Audio Files", "*.wav;*.mp3"), ("WAV files", "*.wav"), ("MP3 files", "*.mp3")])
file = filedialog.askopenfilename(filetypes=[("WAV files", "*.wav")])
if not file:
return

Expand Down Expand Up @@ -80,4 +80,4 @@ def stop_audio_playback():
root.mainloop()

# Clean up PyAudio resources when done
p.terminate()
p.terminate()

0 comments on commit 2c7d195

Please sign in to comment.