If you use “OK, Google” for voice commands, you can use Smart Lock to unlock your phone when it recognizes your voice.
Touch Security & location > Smart Lock.
If you don't see Smart Lock, try the following:
At the lock screen, say “OK, Google”.
Your phone unlocks and is ready for commands.
If the phone does not recognize your voice, then unlock it with your password, PIN, or pattern.