Merge pull request #21 from el-tocino/issue20

write bytes directly to file.
pull/24/head
Michael Nguyen 2018-09-28 17:27:41 -05:00 committed by GitHub
commit f18097ac39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) print('Synthesizing and plotting: %s' % wav_path)
wav, alignment = synth.synthesize(text) wav, alignment = synth.synthesize(text)
with open(wav_path, 'wb') as f: with open(wav_path, 'wb') as f:
f.write(wav.getvalue()) f.write(wav)
plot.plot_alignment( plot.plot_alignment(
alignment, align_path, alignment, align_path,
info='%s' % (text) info='%s' % (text)