This repository is based on the paper Corpus design based on the Kullback-Leibler divergence for Text-To-Speech synthesis application and can be used to build a corpus whose unit distribution is approximately the same as a given target distribution. This is achived by using a greedy algorithm with the Kullback-Leibler divergence.