Back in 1984, I was at Disney world with a school trip. They had an exhibit that looked like an arcade game that had a keyboard. You typed on the keyboard and it would say what you typed. We almost got kicked out of Disney world for making it say rude words. I remember exactly what the employee said. "If I hear one more cuss word out of that thing, you are out of here."
We had SAM for our Commodore128/64 and once you loaded the program, you could write BASIC programs that used it to include speech. Pretty sure I spent way too much time figuring out just the right combination of phonemes and numbers (used to denote accented syllables among other things) to make it swear convincingly.