<jupyter_start><jupyter_text>Setup Install dependencies<jupyter_code>import os
import IPython
from IPython.display import Audio
from hyperparams import Hyperparams as hp

from synthesize import Synthesizer
#! ls checkpoints/i-0db58090af9cb95af/LJ01-1
#! ls checkpoints/i-031e73172dafa5ce9/LJ01-2
checkpoint_text2mel = "checkpoints/i-0db58090af9cb95af/LJ01-1/model_gs_820k"
checkpoint_ssrn = "checkpoints/i-031e73172dafa5ce9/LJ01-2/model_gs_773k"
synthesizer = Synthesizer(checkpoint_text2mel, checkpoint_ssrn)
! ls checkpoints/i-031e73172dafa5ce9/LJ01-2/model_gs_747k*
tongue_twisters = [
    "<NAME> picked a peck of pickled peppers",
    "A peck of pickled peppers <NAME> picked",
    "If <NAME> picked a peck of pickled peppers",
    "Where’s the peck of pickled peppers <NAME> picked?",
    "How much wood would a woodchuck chuck if a woodchuck could chuck wood?",
    "He would chuck, he would, as much as he could, and chuck as much wood",
    "As a woodchuck would if a woodchuck could chuck wood",
    "She sells seashells by the seashore",
    "Susie works in a shoeshine shop. Where she shines she sits, and where she sits she shines",
    "Fuzzy Wuzzy was a bear. Fuzzy Wuzzy had no hair. Fuzzy Wuzzy wasn’t fuzzy, was he?"
]
ljset = [
    "The birch canoe slid on the smooth planks",
    "Glue the sheet to the dark blue background",
    "It's easy to tell the depth of a well",
    "These days a chicken leg is a rare dish",
    "Rice is often served in round bowls",
    "The juice of lemons makes fine punch",
    "The box was thrown beside the parked truck",
    "The hogs were fed chopped corn and garbage",
    "Four hours of steady work faced us",
    "Large size in stockings is hard to sell",
    "The boy was there when the sun rose"    
]

sentences = ljset

for i, sentence in enumerate(sentences):
    filename = "test%d.wav" % i
    synthesizer.synthesize(sentence, filename)
    print(sentence)
    IPython.display.display(Audio(filename, rate=hp.sr))
! ls<jupyter_output>checkpoints	       hyperparams.pyc	README.md	  test2.wav  test.wav
data_load.py	       LICENSE		requirements.txt  test3.wav  train.py
data_load.pyc	       modules.py	synthesize.py	  test4.wav  train.pyc
dctts_tf.ipynb	       modules.pyc	synthesize.pyc	  test5.wav  utils.py
fig		       networks.py	test0.wav	  test6.wav  utils.pyc
harvard_sentences.txt  networks.pyc	test10.wav	  test7.wav
horse.ogg	       notebook.ipynb	test11.wav	  test8.wav
hyperparams.py	       prepo.py		test1.wav	  test9.wav
StarcoderdataJupyterStructuredCleanDedup