Operations related to performing gain operations with respect to a receive-path signal of a first device may be performed. The operations may include obtaining the receive-path signal, which includes an echo speech signal and a receive speech signal originating at a second device. In addition, the operations may include identifying a portion of the receive-path signal that includes, at a particular time, a first frequency component that corresponds to the echo speech signal and a second frequency component that corresponds to the receive speech signal in which the first frequency component is different from the second frequency component. Moreover, the operations may include attenuating the first frequency component of the portion while avoiding attenuating the second frequency component of the portion based on the first frequency component corresponding to the echo speech signal and the second frequency component corresponding to the receive speech signal.