Actually, none of the responses here are true. Including Phil's. Your phone DOES have to be awake, but you can use "ok google" from the lock screen, home screen, and any other screen..and while web browsing. I know because I can do it with my phone.
Actually, it can be done from the home AND...