keithito / tacotron

A TensorFlow implementation of Google's Tacotron speech synthesis with pre-trained model (unofficial)
MIT License
2.96k stars 956 forks source link

how to synthesize without browser interface? #339

Closed marshonhuckleberry closed 4 years ago

marshonhuckleberry commented 4 years ago
#synth.py
from synthesizer import Synthesizer

a=Synthesizer()
a.load('tacotron-20180906\model.ckpt')

text='Scientists at the CERN laboratory say they have discovered a new particle.'

with open('out.wav','wb') as f:
    f.write(a.synthesize(text))