Skip to content

Commit

Permalink
Update playback.py
Browse files Browse the repository at this point in the history
per jiaaro#209 (comment)
Recent Windows update brought this issue back, this change resolves it.
  • Loading branch information
lcavasso authored Jul 11, 2023
1 parent 996cec4 commit cdffd45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pydub/playback.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
def _play_with_ffplay(seg):
PLAYER = get_player_name()
with NamedTemporaryFile("w+b", suffix=".wav") as f:
f.close()
seg.export(f.name, "wav")
subprocess.call([PLAYER, "-nodisp", "-autoexit", "-hide_banner", f.name])

Expand Down

0 comments on commit cdffd45

Please sign in to comment.