Patent ID: 9552821
Date: 2017-01-24
CPC Classifications: G10L

Claim:
1. An encoding method for an input sample string derived from an input audio signal in a given interval, the encoding method obtaining a gain code corresponding to a gain obtained by a gain update loop processing step of obtaining the gain by loop processing, and an integer signal code obtained by encoding a string of integer value samples obtained by dividing each sample in the sample string by the gain; wherein the gain update loop processing step comprises: a lower limit gain setting step of, when the number of bits or estimated number of bits in a code obtained by encoding a string of integer value samples obtained by dividing each sample in the sample string by a gain before an update is greater than a predetermined number B of allocated bits, setting the gain before the update as a lower limit g an upper limit gain setting step of, when the number of bits or estimated number of bits in a code obtained by encoding a string of integer value samples obtained by dividing each sample in the sample string by the gain before the update is smaller than the predetermined number B of allocated bits, setting the gain before the update as an upper limit g a gain update step of setting a weighted mean of the upper limit of the gain and the lower limit of the gain as an updated gain and outputting the updated gain, where a weight based on at least the predetermined number B of allocated bits, the number c the number c the number c