I built this Speech Synthesis kit when I was a kid. It sort of worked - it made vowel-like sounds. It was quite fun.
Here's a speech synthesizer singing, "Daisy, Daisy", ala Hal 9000. I believe this bit of technology is actually what inspired that moment in the film 2001.