This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Get the large corpus here if desired: https://puu.sh/InEMm.txt | |
## Save as "large_corpus.txt" | |
import sys | |
from functools import lru_cache | |
from itertools import groupby | |
from pathlib import Path | |
from typing import List | |
from phonemizer.backend import EspeakBackend |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CONFIG -----------------------------------------------------------------------------------------------------------# | |
# Here are the input and output data paths (Note: you can override wav_path in preprocess.py) | |
wav_path = '/path/to/wav_files/' | |
data_path = 'data/' | |
# model ids are separate - that way you can use a new tts with an old wavernn and vice versa | |
# NB: expect undefined behaviour if models were trained on different DSP settings | |
voc_model_id = 'ljspeech_mol' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas | |
from matplotlib.figure import Figure | |
from PyQt4.QtGui import * | |
import numpy as np | |
import sys | |
class TemplateUI(QDialog): | |
def __init__(self): | |
# Create the ui |