Many games supported digitized output over a DAC on the LPT port. I remember building one myself. There are many tutorials. A moderately fast 486 can output CD-Quality sample rates with such a thing.
Covox had one in the 80s: https://en.wikipedia.org/wiki/Covox_Speech_Thing