write bytes directly to file.

pull/21/head
Blackbaud-RyanSnedegar 2018-09-28 17:18:55 -05:00
parent 2fe1691b44
commit 7e0f1889a8
1 changed files with 1 additions and 1 deletions

View File

@ -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)