A method for obtaining a target voice based on a microphone array, the method comprising: receiving a voice signal collected based on the microphone array; determining a pre-selected target voice signal and a direction of the preselected target voice signal based on the received voice signal; performing strong directional gaining processing and weak directional gaining processing on the pre-selected target voice signal to respectively obtain a strong gained signal and a weak gained signal; performing an endpoint detection based on the strong gained signal, to obtain an endpoint detection result, wherein the endpoint detection determines start and end points of a voice in the strong gained signal; and performing endpoint processing on the weak gained signal according to the endpoint detection result, to obtain a final target voice signal, wherein performing the strong directional gaining processing and the weak directional gaining processing on the pre-selected target voice signal to obtain respectively the strong gained signal and the weak gained signal comprises: setting a pickup zone angle and a transition zone angle of a strong directional gain, and a pickup zone angle and a transition zone angle of a weak directional gain, wherein the pickup zone angle of the strong directional gain is smaller than the pickup zone angle of the weak directional gain, and the transition zone angle of the strong directional gain is smaller than the transition zone angle of the weak directional gain; determining, based on the pickup zone angle and transition zone angle of the strong directional gain, the strong directional gain that is based on an azimuth angle of a sound source, and determining, based on the pickup zone angle and transition zone angle of the weak directional gain, the weak directional gain that is based on the azimuth angle of the sound source, wherein the azimuth angle of the sound source refers to an azimuth angle of the pre-selected target voice signal; and obtaining the strong gained signal and the weak gained signal according to the strong directional gain and the weak directional gain that are based on the azimuth angle of the sound source, respectively. receiving a voice signal collected based on the microphone array; determining a pre-selected target voice signal and a direction of the preselected target voice signal based on the received voice signal; performing strong directional gaining processing and weak directional gaining processing on the pre-selected target voice signal to respectively obtain a strong gained signal and a weak gained signal; performing an endpoint detection based on the strong gained signal, to obtain an endpoint detection result, wherein the endpoint detection determines start and end points of a voice in the strong gained signal; and performing endpoint processing on the weak gained signal according to the endpoint detection result, to obtain a final target voice signal, wherein performing the strong directional gaining processing and the weak directional gaining processing on the pre-selected target voice signal to obtain respectively the strong gained signal and the weak gained signal comprises: setting a pickup zone angle and a transition zone angle of a strong directional gain, and a pickup zone angle and a transition zone angle of a weak directional gain, wherein the pickup zone angle of the strong directional gain is smaller than the pickup zone angle of the weak directional gain, and the transition zone angle of the strong directional gain is smaller than the transition zone angle of the weak directional gain; determining, based on the pickup zone angle and transition zone angle of the strong directional gain, the strong directional gain that is based on an azimuth angle of a sound source, and determining, based on the pickup zone angle and transition zone angle of the weak directional gain, the weak directional gain that is based on the azimuth angle of the sound source, wherein the azimuth angle of the sound source refers to an azimuth angle of the pre-selected target voice signal; and obtaining the strong gained signal and the weak gained signal according to the strong directional gain and the weak directional gain that are based on the azimuth angle of the sound source, respectively. setting a pickup zone angle and a transition zone angle of a strong directional gain, and a pickup zone angle and a transition zone angle of a weak directional gain, wherein the pickup zone angle of the strong directional gain is smaller than the pickup zone angle of the weak directional gain, and the transition zone angle of the strong directional gain is smaller than the transition zone angle of the weak directional gain; determining, based on the pickup zone angle and transition zone angle of the strong directional gain, the strong directional gain that is based on an azimuth angle of a sound source, and determining, based on the pickup zone angle and transition zone angle of the weak directional gain, the weak directional gain that is based on the azimuth angle of the sound source, wherein the azimuth angle of the sound source refers to an azimuth angle of the pre-selected target voice signal; and obtaining the strong gained signal and the weak gained signal according to the strong directional gain and the weak directional gain that are based on the azimuth angle of the sound source, respectively.