jfsantos / phaseaug

Submitted to ICASSP 2023

Home Page:https://mindslab-ai.github.io/phaseaug/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhaseAug

PhaseAug: A Differentiable Augmentation for Speech Synthesis to Simulate One-to-Many Mapping
Junhyeok Lee, Seungu Han, Hyunjae Cho, Wonbin Jung @ MINDsLab Inc., SNU, KAIST

arXiv GitHub Repo stars githubio

Abstract : Previous generative adversarial network (GAN)-based neural vocoders are trained to reconstruct the exact ground truth waveform from the paired mel-spectrogram and do not consider the one-to-many relationship of speech synthesis. This conventional training causes overfitting for both the discriminators and the generator, leading to the periodicity artifacts in the generated audio signal. In this work, we present PhaseAug, the first differentiable augmentation for speech synthesis that rotates the phase of each frequency bin to simulate one-to-many mapping. With our proposed method, we outperform baselines without any architecture modification. Code and audio samples will be available at https://github.com/mindslab-ai/phaseaug.

Submitted to ICASSP 2023

phasor

TODO

  • Errata in paper will be fixed. Section 2.5 in paper, transition band half-width 0.06-> 0.012
  • Section 2.5, mention about multiplyinng rotation matrix to "the left side of F(x)" will be added.
  • We will uplade PhaseAug to pypi.

Requirements

docker build -t=phaseaug --build-arg USER_ID=$(id -u) --build-arg GROUP_ID=$(id -g) --build-arg USER_NAME=$USER

Training

  1. Clone this repository and copy python files to hifi-gan folder
git clone --recursive https://github.com/mindslab-ai/phaseaug
cp ./phaseaug/*.py ./phaseaug/hifi-gan/
cd ./phaseaug/hifi-gan
  • optional: MelGAN generator
cp ./phaseaug/config_v1_melgan.json ./phaseaug/hifi-gan/
  • Change generator to MelGAN generator at train.py
# import MelGanGenerator as Generator at [train.py](./train.py)
#from models import Generator # remove original import Generator
from models import MelGANGenerator as Generator
  1. Modify dataset path at train.py
     parser.add_argument('--input_wavs_dir',
                         default='path/LJSpeech-1.1/wavs_22k')
     parser.add_argument('--input_mels_dir',
                         default='path/LJSpeech-1.1/wavs_22k')
  1. Run train.py
python train.py --config config_v1.json --aug --filter --data_ratio {0.01/0.1/1.} --name phaseaug_hifigan
python train.py --config config_v1_melgan.json --aug --filter --data_ratio {0.01/0.1/1.} --name phaseaug_melgan

References

This implementation uses code from following repositories:

This README and the webpage for the audio samples are inspired by:

Citation & Contact

If this repostory useful for yout research, please consider citing!

@inproceedings{phaseaug,
  author={Lee, Junhyeok and Han, Seungu and Cho, Hyunjae and Jung, Wonbin},
  title={{PhaseAug: A Differentiable Augmentation for Speech Synthesis to Simulate One-to-Many Mapping}},
  journal = {arXiv preprint arXiv:2211.04610},
  year=2022,
}

If you have a question or any kind of inquiries, please contact Junhyeok Lee at jun3518@mindslab.ai

About

Submitted to ICASSP 2023

https://mindslab-ai.github.io/phaseaug/

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 97.7%Language:Dockerfile 2.3%