mirror of https://github.com/MycroftAI/mimic2.git
write bytes directly to file.
parent
2fe1691b44
commit
7e0f1889a8
2
eval.py
2
eval.py
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue