How does Voice Recognition Work?

Voice recognition works by recording a voice, and memorizing it for whenever it is used to access something. For example, a computer might lock someone out if their voice does not match the security voice provided.