Skip to content

Commit

Permalink
Switch to config from CL.
Browse files Browse the repository at this point in the history
  • Loading branch information
cfrancesco committed Mar 11, 2021
1 parent 2838c1e commit 7f9c155
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions notebooks/synthesize_forward_melgan.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
"source": [
"import IPython.display as ipd\n",
"\n",
"ipd.display(ipd.Audio(wav, rate=config_loader.config['sampling_rate']))"
"ipd.display(ipd.Audio(wav, rate=config['sampling_rate']))"
]
},
{
Expand Down Expand Up @@ -191,7 +191,7 @@
"sentence = 'Scientists at the CERN laboratory, say they have discovered a new particle.'\n",
"out = model.predict(sentence, speed_regulator=1.20)\n",
"wav = audio.reconstruct_waveform(out['mel'].numpy().T)\n",
"ipd.display(ipd.Audio(wav, rate=config_loader.config['sampling_rate']))"
"ipd.display(ipd.Audio(wav, rate=config['sampling_rate']))"
]
},
{
Expand All @@ -212,7 +212,7 @@
"sentence = 'Scientists at the CERN laboratory, say they have discovered a new particle.'\n",
"out = model.predict(sentence, speed_regulator=.9)\n",
"wav = audio.reconstruct_waveform(out['mel'].numpy().T)\n",
"ipd.display(ipd.Audio(wav, rate=config_loader.config['sampling_rate']))"
"ipd.display(ipd.Audio(wav, rate=config['sampling_rate']))"
]
},
{
Expand Down

0 comments on commit 7f9c155

Please sign in to comment.