A method for controlling a device, which is applicable to a video capture device in a sound source localization system; wherein, the sound source localization system further comprises microphones disposed outside the video capture device, and the method comprises: acquiring a voice signal captured by each of the microphones, and acquiring coordinate information of each of the microphones and coordinate information of each of preset positions; calculating a voice power value corresponding to each of the preset positions based on the voice signal captured by each of the microphones, the coordinate information of each of the microphones and the coordinate information of each of the preset positions; identifying a preset position with a maximum voice power value, determining the preset position as a position of a sound source, and controlling the video capture device to direct at the position of the sound source; wherein, the method further comprises: determining a height of a person at the position of the sound source; calculating, based on coordinate information of the video capture device, a height of the video capture device, coordinate information of the position of the sound source and the height of the person at the position of the sound source, a target distance from the video capture device to the person; identifying, based on a pre-stored correspondence between distances and focal lengths, a target focal length corresponding to the target distance, and adjusting a focal length of the video capture device to the target focal length; wherein, determining a height of a person at the position of the sound source, comprises: capturing an image comprising the person at the position of the sound source, and analyzing the image to obtain the height of the person at the position of the sound source. acquiring a voice signal captured by each of the microphones, and acquiring coordinate information of each of the microphones and coordinate information of each of preset positions; calculating a voice power value corresponding to each of the preset positions based on the voice signal captured by each of the microphones, the coordinate information of each of the microphones and the coordinate information of each of the preset positions; identifying a preset position with a maximum voice power value, determining the preset position as a position of a sound source, and controlling the video capture device to direct at the position of the sound source; wherein, the method further comprises: determining a height of a person at the position of the sound source; calculating, based on coordinate information of the video capture device, a height of the video capture device, coordinate information of the position of the sound source and the height of the person at the position of the sound source, a target distance from the video capture device to the person; identifying, based on a pre-stored correspondence between distances and focal lengths, a target focal length corresponding to the target distance, and adjusting a focal length of the video capture device to the target focal length; wherein, determining a height of a person at the position of the sound source, comprises: capturing an image comprising the person at the position of the sound source, and analyzing the image to obtain the height of the person at the position of the sound source. determining a height of a person at the position of the sound source; calculating, based on coordinate information of the video capture device, a height of the video capture device, coordinate information of the position of the sound source and the height of the person at the position of the sound source, a target distance from the video capture device to the person; identifying, based on a pre-stored correspondence between distances and focal lengths, a target focal length corresponding to the target distance, and adjusting a focal length of the video capture device to the target focal length; wherein, determining a height of a person at the position of the sound source, comprises: capturing an image comprising the person at the position of the sound source, and analyzing the image to obtain the height of the person at the position of the sound source.