When you speak inside your mind small muscles in your throat mimic the formation of each word, and NASA is working on a machine (Subvocal speech) that would detect these muscle movements and transcribe them to words.