Skip to content

Instantly share code, notes, and snippets.

View CorentinJ's full-sized avatar

Corentin Jemine CorentinJ

View GitHub Profile
@CorentinJ
CorentinJ / demo.py
Last active March 10, 2024 11:20
Word-level mappings for phonemizer
## 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
@CorentinJ
CorentinJ / mel_sanity_fat_hparams.py
Created July 4, 2019 11:52
Compare audio preprocessing
# 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'
@CorentinJ
CorentinJ / qt_ui_template.py
Created March 9, 2019 13:31
A simple UI demo with Qt4
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