1. A method for activating a voice assistant function in a mobile device, the method comprising: receiving an input sound stream by a sound sensor; determining a context of the mobile device; adjusting a threshold for activating the voice assistant function based on the context; detecting a target keyword from the input sound stream based on the adjusted threshold; and activating the voice assistant function if the target keyword is detected.