Both of them are based on corpus and the quality of the produced voice depends heavily on the variety and quality of the corpus.
it is essential to have a suitable database of singing voice that is sufficiently representative to obtain good synthesis results.