1. A coding method, comprising: acquiring characteristic parameters of an input signal; determining a type of the input signal according to the characteristic parameters; obtaining vectors to be quantified according to the characteristic parameters; and performing a codebook search on the vectors to be quantified with a codebook search algorithm corresponding to the type of the input signal.