This application provides a
speech processing method and an electronic device. The
speech processing method includes: extracting features from acquired speech to be processed to obtain a speech
signal-to-
noise ratio (SNR);
processing the speech to be processed to obtain feature parameters, including at least one of
pitch period probability, zero-crossing rate, and energy ratio; and denoising the speech to be processed based on a preset
denoising algorithm and the feature parameters to determine the target speech. Thus, during the denoising process of the speech to be processed, at least one of the three parameters—
pitch period probability, zero-crossing rate, and energy ratio—can be introduced to assist in the protection of voiced and unvoiced sounds, based on the SNR, and to effectively identify and distinguish
noise data, thereby maintaining the original fidelity of the speech as much as possible and improving the
speech quality of the target speech.