With binary. Binary sequences can represent any number, which in turn represents letters. The letter A gets translated into the number 65, which gets translated into 01000001.
Computers translate spoken word into digital information by using self-learning software and very complicated algorithms. First, the software has to be calibrated by spaying words presented on the screen.