摘要 |
A signal encoding method and device are disclosed. The method includes: in a case in which an encoding manner of a previous frame of a currently-input frame is a continuous encoding manner, predicting a comfort noise that is generated by a decoder according to the currently-input frame in a case in which the currently-input frame is encoded into an SID frame, and determining an actual silence signal (210), where the currently-input frame is a silence frame; determining a deviation degree between the comfort noise and the actual silence signal (220); determining an encoding manner of the currently-input frame according to the deviation degree, where the encoding manner of the currently-input frame includes a hangover frame encoding manner or an SID frame encoding manner (230); and encoding the currently-input frame according to the encoding manner of the currently-input frame (240). It is determined, according to the deviation degree between the comfort noise and the actual silence signal, that the encoding manner of the currently-input frame is the hangover frame encoding manner or the SID frame encoding manner, which can save communication bandwidth. |