That is known as speech-to-text technology. There are a number of companies that market applications that will do this. One of the best is Nuance. They put out products such as Dragon Naturally Speaking. Apple has incorporated speech-to-text features into the Siri digital assistant on its iPhone 4S. I am using that feature to send this reply.