a example of this is mark rober's talking piano
it uses fourier analysis to break down voice lines into those simple waves, and then using precise acutators on the piano keys, recreates a rough approximation of speech using only waves produced by the notes of a piano
it's also how vocaloids work