How to activate Google now voice commands from the lock screen like siri?
In Google Now, click the menu icon on the left of the search bar (it looks like a hamburger).

Then choose Settings -> Voice -> "OK Google" Detection.

(Click image to enlarge)



Flip the three switches on. When you switch on the second one, the app will ask you to say "Okay Google" three times to train the voice model. Flipping the third switch on will prompt you for the password to your phone.

Now, when you say "Okay Google", the screen will be unlocked.