diff --git a/AUTHORS b/AUTHORS index dc75fb36..b83c7e27 100644 --- a/AUTHORS +++ b/AUTHORS @@ -98,4 +98,7 @@ Grzegorz Kotfis github: gkotfis Pål Orby - github: orby \ No newline at end of file + github: orby + +Luca Cavasso + github: lcavasso diff --git a/pydub/playback.py b/pydub/playback.py index 72ce4a53..a714e61d 100644 --- a/pydub/playback.py +++ b/pydub/playback.py @@ -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])