26. A non-transitory computer-readable storage medium comprising instructions causing at least one processor of an electronic device to perform operations of: receiving an input signal based on an input sound received by a sound sensor, the input signal having an identified first frequency range and an identified second frequency range, the second frequency range differing from the first frequency range; detecting speech spoken by a user in the input signal; determining first characteristics of the input signal associated with the first frequency range and second characteristics of the input signal associated with the second frequency range in response to detecting the speech; determining whether a direction of departure of the speech is toward the electronic device based on the first characteristics of the input signal and based on the second characteristics of the input signal, the instructions configured to cause the at least one processor to recognize a command in the speech based on an indication of speech direction detection; and initiating a function associated with the recognized command at the electronic device in response to determining that the direction of departure of the speech is toward the electronic device based on the first characteristics and based on the second characteristics.
28. The non-transitory computer-readable storage medium of claim 26 , wherein the first characteristics of the input signal include a first energy value associated with the first frequency range, and the second characteristics of the input signal include a second energy value associated with the second frequency range.