1
0
mirror of https://github.com/malarinv/tacotron2 synced 2026-03-08 01:32:35 +00:00

update tempo and output sample rate

This commit is contained in:
2019-10-09 17:25:51 +05:30
parent dcc9ab3625
commit 5a30069f0a

View File

@@ -16,7 +16,8 @@ from .denoiser import Denoiser
from .audio_processing import griffin_lim, postprocess_audio from .audio_processing import griffin_lim, postprocess_audio
TTS_SAMPLE_RATE = 22050 TTS_SAMPLE_RATE = 22050
OUTPUT_SAMPLE_RATE = 16000 OUTPUT_SAMPLE_RATE = 22050
# OUTPUT_SAMPLE_RATE = 16000
# config from # config from
# https://github.com/NVIDIA/waveglow/blob/master/config.json # https://github.com/NVIDIA/waveglow/blob/master/config.json
@@ -118,7 +119,7 @@ class TTSModel(object):
audio = audio.cpu().numpy() audio = audio.cpu().numpy()
return postprocess_audio( return postprocess_audio(
audio, src_rate=TTS_SAMPLE_RATE, dst_rate=OUTPUT_SAMPLE_RATE audio, tempo=0.6, src_rate=TTS_SAMPLE_RATE, dst_rate=OUTPUT_SAMPLE_RATE
) )