If you use ‘Ok, Google’ for voice commands, you can use Smart Lock to unlock your phone when it recognises 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 will unlocks and be ready for commands.
If the phone does not recognise your voice, then unlock it with your password, PIN or pattern.