Stephen Hawking used a computer-based communication system that allowed him to type out words and sentences using a cheek muscle. This system converted his text into synthesized speech, enabling him to communicate with others.