mirror of
https://github.com/shivammehta25/Matcha-TTS.git
synced 2026-02-05 02:09:21 +08:00
Adding the possibility of get durations out of pretrained model
This commit is contained in:
@@ -48,7 +48,7 @@ def plot_spectrogram_to_numpy(spectrogram, filename):
|
||||
def process_text(i: int, text: str, device: torch.device):
|
||||
print(f"[{i}] - Input text: {text}")
|
||||
x = torch.tensor(
|
||||
intersperse(text_to_sequence(text, ["english_cleaners2"]), 0),
|
||||
intersperse(text_to_sequence(text, ["english_cleaners2"])[0], 0),
|
||||
dtype=torch.long,
|
||||
device=device,
|
||||
)[None]
|
||||
|
||||
Reference in New Issue
Block a user