CN-121985253-A - Digital audio definition control method and device, electronic equipment and storage medium
Abstract
The application belongs to the technical field of digital audio processing, and discloses a digital audio definition control method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining original digital audio information, determining target definition of the original digital audio information, determining a filter calculation precision parameter during definition adjustment according to the target definition, performing filtering processing on an original digital audio signal by using a fixed point number adjustment method based on the filter calculation precision parameter, and enabling the filtered digital audio signal to tend to the target definition. The accuracy parameters are calculated through the filter determined by the target definition, and the original digital audio information is filtered by using a fixed point number adjusting method, so that the definition control accuracy of the digital audio is improved.
Inventors
- WU DAN
Assignees
- 广州雷萌科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251231
Claims (10)
- 1. A digital audio sharpness control method for sharpness control of digital audio, comprising the steps of: Acquiring original digital audio information; Determining a target definition of the original digital audio information; Determining a filter calculation precision parameter during definition adjustment according to the target definition; And based on the filter calculation precision parameter, performing filtering processing on the original digital audio signal by using a fixed point number adjusting method, so that the filtered digital audio signal tends to the target definition.
- 2. The digital audio sharpness control method according to claim 1, wherein determining the target sharpness of the original digital audio information comprises: Acquiring current application scene information; and determining and obtaining the target definition of the original digital audio information according to the current application scene information.
- 3. The digital audio sharpness control method according to claim 1, wherein the filter calculation accuracy parameters include a total word length value, an integer digit value, a decimal digit value, and a preset sign digit value.
- 4. A digital audio sharpness control method according to claim 3, characterized in that determining a filter calculation accuracy parameter at sharpness adjustment according to the target sharpness comprises: Determining the integer bit number value according to the maximum amplitude of the signal of the original digital audio information; according to the target definition, combining the preset sign bit value and the integer bit value to determine and obtain the total word length value and the decimal bit value; and determining a filter calculation precision parameter when the definition is regulated by combining the preset sign bit value based on the integer bit value, the total word length value and the decimal place value.
- 5. The method of claim 4, wherein determining the integer bit number value based on the signal maximum amplitude of the original digital audio information comprises: determining and obtaining a signal control dynamic range according to the signal maximum amplitude of the original digital audio information; and controlling the dynamic range based on the signal, and determining to obtain the integer bit numerical value.
- 6. The method according to claim 4, wherein determining the total word length value and the decimal place value in combination with the preset sign place value and the integer place value according to the target definition includes: Determining and obtaining the total word length value according to the target definition; and subtracting the sum of the preset sign bit value and the whole digit value from the total word length value, and calculating to obtain the decimal value.
- 7. The digital audio sharpness control method according to claim 1, wherein the filtering of the original digital audio signal based on the filter calculation accuracy parameter using a fixed point number adjustment method to cause the filtered digital audio signal to tend toward the target sharpness, comprising: quantizing a preset filter coefficient of the digital filter according to the filter calculation precision parameter to obtain a quantized filter coefficient; Based on the quantized filter coefficients, performing fixed-point multiply-accumulate operation on the original digital audio signal by using the preset digital filter; Based on the filter calculation precision parameter, the word length, integer digit, decimal digit and sign digit of the intermediate result and the final result of the fixed point multiply-accumulate operation are truncated or rounded, so that the original digital audio signal is subjected to filtering treatment, and the filtered digital audio signal tends to the target definition.
- 8. A digital audio sharpness control apparatus for sharpness control of digital audio, comprising: the acquisition module is used for acquiring the original digital audio information; The first determining module is used for determining the target definition of the original digital audio information; the second determining module is used for determining a filter calculation precision parameter during definition adjustment according to the target definition; and the filtering module is used for filtering the original digital audio signal by using a fixed point number adjusting method based on the filter calculation precision parameter so that the filtered digital audio signal tends to the target definition.
- 9. An electronic device comprising a processor and a memory, the memory storing a computer program executable by the processor, when executing the computer program, running the steps of the digital audio sharpness control method according to any of claims 1-7.
- 10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, runs the steps in the digital audio sharpness control method according to any of claims 1-7.
Description
Digital audio definition control method and device, electronic equipment and storage medium Technical Field The present application relates to the technical field of digital audio processing, and in particular, to a digital audio definition control method, a digital audio definition control device, an electronic device, and a storage medium. Background In the field of digital audio processing, digital filters are one of the key components to implement audio signal processing. The second-order IIR (Infinite Impulse Response) digital filter is particularly suitable for real-time processing application because of low calculation amount, and is widely adopted. In practical applications, existing implementations of digital filters typically employ floating point designs. Rounding errors and accumulated errors are inevitably generated during the digital filter calculation process. These calculation errors directly affect the sharpness of the processed digital audio signal. For a floating-point filter, due to the characteristics of its data representation, errors generated during the calculation process are often difficult to control and predict accurately, although the dynamic range is large, which makes the floating-point filter likely to be unsatisfactory in a scene requiring high-definition audio output. To solve the problem of floating-point filter errors that are difficult to control, fixed-point digital filters are introduced. The fixed point number filter represents numbers through preset word length, integer digits, decimal digits and sign digits, so that calculation errors can be controlled better to a certain extent. However, the design and implementation of fixed point filters requires accurate determination of these parameters to ensure adequate dynamic range and to control the computational errors within acceptable limits under limited resources, thereby ensuring the clarity of the digital audio. The prior art still has the defects in the self-adaptive determination of the parameters of the fixed point number filter, and particularly how to efficiently and accurately determine the calculation precision parameters of the filter to optimize the filtering effect and improve the audio definition when facing different original digital audio information and target definition requirements is a technical challenge to be solved. In view of the above, there is a need in the art for improvements. Disclosure of Invention The application aims to provide a digital audio definition control method, a device, electronic equipment and a storage medium, which are used for filtering original digital audio information by utilizing a fixed point number adjusting method through calculating precision parameters of a filter determined by target definition so as to improve the definition of digital audio, solve the technical problem that the existing digital audio definition control method is difficult to control errors generated by the filter and cannot accurately control the definition of the audio, effectively control rounding errors and accumulated errors generated by the digital filter in the calculation process through the calculation precision parameters of the filter, and improve the definition control precision of the digital audio. In a first aspect, the present application provides a digital audio sharpness control method for sharpness control of digital audio, including the steps of: Acquiring original digital audio information; Determining a target definition of the original digital audio information; Determining a filter calculation precision parameter during definition adjustment according to the target definition; And based on the filter calculation precision parameter, performing filtering processing on the original digital audio signal by using a fixed point number adjusting method, so that the filtered digital audio signal tends to the target definition. The digital audio definition control method provided by the application can realize definition control of digital audio, the filter which is determined by the target definition calculates the precision parameter, and the fixed point number adjusting method is utilized to carry out filtering treatment on the original digital audio information so as to improve the definition of the digital audio, so that the technical problem that the existing digital audio definition control method is difficult to control the error generated by the filter and cannot accurately control the audio definition is solved, the rounding error and the accumulated error generated by the digital filter in the calculation process can be effectively controlled through the filter calculation precision parameter, and the definition control precision of the digital audio is improved. Optionally, determining the target definition for obtaining the original digital audio information includes: Acquiring current application scene information; and determining and obtaining the target definition