Change your voice search settings
Open the Google app .
In the top left corner of the page, touch the Menu icon menu icon > Settings > Voice > "Ok Google" Detection.
From here, you can choose when you want your phone to listen when you say "Ok Google."