server update for changing r value

This commit is contained in:
Eren Golge
2019-08-23 12:28:05 +02:00
parent 97ffa2b44e
commit e02fc51fde
2 changed files with 23 additions and 31 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ def parse_outputs(postnet_output, decoder_output, alignments):
return postnet_output, decoder_output, alignment
def trim_silence(wav):
def trim_silence(wav, ap):
return wav[:ap.find_endpoint(wav)]
@@ -114,5 +114,5 @@ def synthesis(model,
wav = inv_spectrogram(postnet_output, ap, CONFIG)
# trim silence
if do_trim_silence:
wav = trim_silence(wav)
wav = trim_silence(wav, ap)
return wav, alignment, decoder_output, postnet_output, stop_tokens