The method, apparatus, device, and medium for converting linear values of audio to
decibel values provided in this disclosure include: determining a target conversion relationship between a natural logarithmic linear value and a
decibel value based on an initial conversion relationship between linear values and
decibel values and a conversion relationship between the natural logarithm and a
common logarithm; determining the natural logarithmic linear value and a linear value in the target conversion relationship based on a coordinate rotation digital
calculation algorithm; and determining the decibel value based on the correspondence between the linear value in the target conversion relationship and a preset linear value. In the process of calculating the decibel value of audio based on the linear values of audio, the calculation of the natural logarithmic linear value does not require the use of a multiplier; it can be achieved through a coordinate rotation digital
calculation algorithm, which offers high accuracy in calculating the natural logarithmic linear value. Furthermore, the
data processing method based on the coordinate rotation digital
calculation algorithm can be directly implemented through hardware (digital circuits), resulting in lower
resource consumption.