19. The method of claim 12 , further comprising: if the direction of the speaker does not corresponds to the beamforming direction, changing the beamforming direction during the first section.
12. A method for recognizing a voice by an electronic device, comprising: detecting an input of a voice signal; determining a direction of a speaker based on the voice signal; determining a beamforming direction of a microphone based on the direction of the speaker; determining whether the direction of the speaker corresponds to the beamforming direction; if the direction of the speaker corresponds to the beamforming direction, performing a voice recognition about the voice signal; if the direction of the speaker does not corresponds to the beamforming direction, dividing a voice recognition section for the voice recognition into a first section and a second section based on a predefined dividing method; processing a voice recognition operation based on a first method for a first voice signal inputted during the first section; and processing the voice recognition operation based on a second method for a second voice signal inputted during the second section.