From 5f22e2a83a30308d053edbad37e4d0ef6d0caf8e Mon Sep 17 00:00:00 2001 From: Eren Golge Date: Tue, 1 Jan 2019 20:09:34 +0100 Subject: [PATCH] use phoneme to sequence for synthesis --- utils/synthesis.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/synthesis.py b/utils/synthesis.py index 4667335b..9b61773d 100644 --- a/utils/synthesis.py +++ b/utils/synthesis.py @@ -3,7 +3,7 @@ import time import librosa import torch import numpy as np -from .text import text_to_sequence +from .text import text_to_sequence, phoneme_to_sequence from .visual import visualize from matplotlib import pylab as plt @@ -11,7 +11,7 @@ from matplotlib import pylab as plt def synthesis(m, s, CONFIG, use_cuda, ap): """ Given the text, synthesising the audio """ text_cleaner = [CONFIG.text_cleaner] - seq = np.array(text_to_sequence(s, text_cleaner)) + seq = np.array(phoneme_to_sequence(s, text_cleaner)) chars_var = torch.from_numpy(seq).unsqueeze(0) if use_cuda: chars_var = chars_var.cuda()