Hierarchical coding method and system based on audio attention

The invention relates to the technical field of audio coding, in particular to hierarchical coding method and system based on audio attention. The hierarchical coding method comprises a core layer coding step and an extension layer coding step, and specifically comprises the following steps of: firstly, preprocessing an input signal and coding a core layer and an extension layer, wherein the extension layer is used for dividing sub-bands of the preprocessed signal, calculating an attention value of each sub-band, preferentially extracting the sub-band with largest sub-band attention according to the attention values, and quantifying and coding on the sub-band. The hierarchical coding system comprises a preprocessing module, a core layer coding module, a residual mapping module, a sub-band dividing module, an attention calculating module, a sub-band bit distributing module based on the attention and a quantifying/coding module. The invention preferentially codes the sub-band with high attention and aims at the defect that the quality of an attention sound source is increased step by step, thereby realizing high-efficiency gradable audio coding based on the attention.