From 7e0f1889a8416704d2de5db817070c19fc9ad7c7 Mon Sep 17 00:00:00 2001 From: Blackbaud-RyanSnedegar Date: Fri, 28 Sep 2018 17:18:55 -0500 Subject: [PATCH] write bytes directly to file. --- eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eval.py b/eval.py index cbba5e2..67b3add 100644 --- a/eval.py +++ b/eval.py @@ -50,7 +50,7 @@ def run_eval(args): print('Synthesizing and plotting: %s' % wav_path) wav, alignment = synth.synthesize(text) with open(wav_path, 'wb') as f: - f.write(wav.getvalue()) + f.write(wav) plot.plot_alignment( alignment, align_path, info='%s' % (text)