Audio data processing method and device and storage medium
By using audio data processing methods and the linkage adjustment of audio filters, the compensation values for low-frequency and high-frequency gains are automatically determined, solving the problem of tedious and time-consuming tuning processes and improving tuning efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2026-04-10
AI Technical Summary
In existing technologies, the tuning process is cumbersome and time-consuming. Tuners need to spend a lot of time repeatedly modifying the values of single volume controls and audio filters to determine the compensation values for low-frequency and high-frequency gains.
By acquiring the audio to be debugged and the calibration signal, adjusting the volume and determining the volume value, determining the target index value based on the volume value, controlling the audio filter to compensate for the gain, using the preset DC component for data conversion, and automatically acquiring the target index values of the low-frequency and high-frequency filters, the audio filter can be adjusted in a coordinated manner.
It automatically calculates the compensation values for low-frequency and high-frequency gain under different volume conditions, eliminating the need for a lot of time and manual calibration, thus improving tuning efficiency.
Smart Images

Figure CN121841304A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of audio processing technology, and more specifically to an audio data processing method, apparatus, and storage medium. Background Technology
[0002] During the tuning process, a single volume control can be used to adjust the volume, and two general filters are used to compensate for low-frequency and high-frequency gain, respectively. The sound engineer needs to calibrate the compensation values for low-frequency and high-frequency gain under different volume conditions, ultimately generating a corresponding table to record the data. Because the single volume control and general filters are independent of each other, the sound engineer needs to spend a significant amount of time repeatedly modifying the values of these two modules when adjusting and verifying the compensation values for low-frequency and high-frequency gain at different volumes. Furthermore, each new value overwrites the previous one, making the calibration process extremely tedious, time-consuming, and labor-intensive. Summary of the Invention
[0003] The purpose of this application is to provide an audio data processing method, apparatus, and storage medium to solve the technical problems of complex and time-consuming tuning in the prior art.
[0004] To achieve the above objectives, the first aspect of this application provides a method for processing audio data, the method comprising:
[0005] Acquire the audio and calibration signals to be debugged;
[0006] Adjust the volume of the audio and calibration signals separately, and determine the first volume value of the calibration signal after the volume adjustment;
[0007] Determine the target index value for gain compensation of the audio data based on the first volume value;
[0008] Input the target index value and the adjusted audio into the audio filter;
[0009] The audio filter is controlled to compensate for the gain of the adjusted audio according to the target index value, and the target audio output by the audio filter corresponding to the adjusted audio is obtained.
[0010] In embodiments of this application, determining the target index value for compensating the gain of audio data based on a first volume value includes: determining a first conversion value corresponding to the first volume value through a preset energy control; obtaining a first preset DC component and a second preset DC component; and performing data conversion on the first conversion value according to the first preset DC component and the second preset DC component to determine the target index value for compensating the gain of audio data.
[0011] In embodiments of this application, the audio filter includes a low-frequency filter and a high-frequency filter. The target index value includes a first target index value corresponding to the low-frequency filter and a second target index value corresponding to the high-frequency filter. Determining the target index value for gain compensation of the audio data by performing data conversion on the first conversion value based on a first preset DC component and a second preset DC component includes: performing data conversion on the first conversion value based on the first preset DC component and the second preset DC component to determine a second conversion value for gain compensation of the audio data; searching for the first target index value corresponding to the second conversion value in a first data table corresponding to the low-frequency filter; and searching for the second target index value corresponding to the second conversion value in a second data table corresponding to the high-frequency filter.
[0012] In embodiments of this application, the audio filter includes a low-frequency filter and a high-frequency filter. Controlling the audio filter to compensate the gain of the adjusted audio according to a target index value and obtaining the target audio output by the audio filter corresponding to the adjusted audio includes: determining a first gain value corresponding to the low-frequency filter and a second gain value corresponding to the high-frequency filter according to the target index value; controlling the low-frequency filter to compensate the gain of the adjusted audio according to the first gain value; controlling the high-frequency filter to compensate the gain of the adjusted audio according to the second gain value; and obtaining the target audio output by the audio filter corresponding to the adjusted audio.
[0013] In an embodiment of this application, controlling the low-frequency filter to compensate the gain of the adjusted audio according to the first gain value includes: determining the first target level of the low-frequency filter according to the first gain value; and controlling the level of the low-frequency filter to switch to the first target level to compensate the gain of the adjusted audio.
[0014] In the embodiments of this application, the low-frequency filter has 21 settings, and the adjustment range of the low-frequency filter is from 0dB to 20dB.
[0015] In embodiments of this application, controlling the high-frequency filter to compensate the gain of the adjusted audio according to the second gain value includes: determining the second target level of the high-frequency filter according to the second gain value; and controlling the level of the high-frequency filter to switch to the second target level to compensate the gain of the adjusted audio.
[0016] In the embodiments of this application, the high-frequency filter has 8 settings, and the adjustment range of the high-frequency filter is -4dB to 3dB.
[0017] A second aspect of this application provides an audio data processing apparatus, comprising:
[0018] The memory is configured to store instructions;
[0019] The processor is configured to retrieve instructions from memory and, when executing instructions, to implement the processing method based on the aforementioned audio data.
[0020] A third aspect of this application provides a machine-readable storage medium, characterized in that the machine-readable storage medium stores instructions for causing a machine to perform a processing method based on the aforementioned audio data.
[0021] The above technical solution involves acquiring the audio and calibration signals to be adjusted; adjusting the volumes of both signals and determining the first volume value of the calibration signal after adjustment; determining the target index value for gain compensation based on the first volume value; inputting the target index value and the adjusted audio to an audio filter; controlling the audio filter to compensate for the gain of the adjusted audio according to the target index value; and obtaining the target audio output from the audio filter corresponding to the adjusted audio. This solution obtains the target index value for adjusting the audio filter using a standard signal, automatically deriving the corresponding low and high frequency gain compensation values under different volume conditions. This eliminates the need for significant time and manual labor to calibrate the high and low frequency gains, thus improving the efficiency of audio adjustment.
[0022] Other features and advantages of the embodiments of this application will be described in detail in the following detailed description section. Attached Figure Description
[0023] The accompanying drawings are provided to further illustrate the embodiments of this application and form part of the specification. They are used together with the following detailed description to explain the embodiments of this application, but do not constitute a limitation on the embodiments of this application. In the drawings:
[0024] Figure 1 The illustration shows a flowchart of an audio data processing method according to an embodiment of this application;
[0025] Figure 2 The schematic diagram illustrates the structure of an audio tuning device according to an embodiment of this application;
[0026] Figure 3a The illustration shows a schematic diagram of a first data table corresponding to a low-frequency filter according to an embodiment of the present application;
[0027] Figure 3b The illustration shows a schematic diagram of a second data table corresponding to a high-frequency filter according to an embodiment of the present application;
[0028] Figure 4a The diagram illustrates a curve of the gain compensation value of a low-frequency filter according to an embodiment of this application.
[0029] Figure 4b The diagram illustrates a curve of the gain compensation value of a high-frequency filter according to an embodiment of this application.
[0030] Figure 5 This schematic diagram illustrates a structural block diagram of an audio data processing apparatus according to an embodiment of the present application;
[0031] Figure 6 The illustration shows a schematic diagram of the structure of a computer device according to an embodiment of the present application. Detailed Implementation
[0032] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only for illustration and explanation of the embodiments of this application and are not intended to limit the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0033] It should be noted that if the embodiments of this application involve directional indicators (such as up, down, left, right, front, back, etc.), the directional indicators are only used to explain the relative positional relationship and movement of the components in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indicators will also change accordingly.
[0034] Furthermore, if the embodiments of this application involve descriptions such as "first" or "second," these descriptions are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined with "first" or "second" may explicitly or implicitly include at least one of those features. Additionally, the technical solutions of various embodiments can be combined with each other, but this must be based on the ability of those skilled in the art to implement them. If the combination of technical solutions is contradictory or impossible to implement, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed in this application.
[0035] Figure 1 The illustration shows a flowchart of an audio data processing method according to an embodiment of this application. Figure 1 As shown in the figure, this application provides an audio data processing method, which may include the following steps.
[0036] S102, acquire the audio and calibration signals to be debugged.
[0037] As we understand it, audio to be tuned refers to audio signals or audio files that need to be optimized, calibrated, or repaired to improve their sound quality, clarity, balance, or other audio characteristics. These audio files can originate from various data sources, such as recording equipment, audio processing software, audio playback devices, or digital audio files. During audio tuning, the audio to be tuned undergoes a series of analysis, testing, and adjustment steps to ensure it meets specific sound quality standards or satisfies specific auditory needs. This includes adjusting aspects such as volume, frequency response, dynamic range, noise level, and phase consistency. Specifically, in the design and tuning of audio systems, equal loudness curves are crucial references. Calibration signals refer to sine wave signals, pink noise, white noise, etc. Among these, sine wave signals are relatively simple to test because they concentrate energy at a single point in the frequency spectrum.
[0038] S104, adjust the volume of the audio and calibration signals respectively, and determine the first volume value of the calibration signal after the volume adjustment.
[0039] It's understandable that during audio tuning, adjusting the audio volume can be used to adjust the loudness of the audio at different volume levels. Therefore, the volumes of the audio and the standard signal can be adjusted separately. Specifically, a single volume control can be used to adjust both the audio and the standard signal to the same volume, and the first volume value of the calibration signal after adjustment can be determined. Loudness equalization refers to the subjective loudness produced by sounds of different frequencies at the same volume. Adjusting loudness equalization is usually achieved using loudness equalization curves. These are a series of curves with consistent loudness levels obtained through subjective measurement, indicating that sounds at different frequencies and sound pressure levels sound equally loud to the human ear. Loudness equalization curves are drawn based on the subjective perception of sound loudness. When the loudness of a sound is the same as the loudness of a standard tone, the sound intensity level of the standard tone is the loudness level of that sound. Because the human ear has different sensitivities to different frequencies, the sound pressure level of sounds with the same loudness will vary with frequency. For example, low-frequency sounds usually require a higher sound pressure level to achieve the same perceived loudness as high-frequency sounds. This phenomenon is reflected in equal loudness curves. Although each point on an equal loudness curve represents a sound with different frequencies and sound pressure levels, the perceived loudness is the same.
[0040] S106, determine the target index value for compensating the gain of the audio data based on the first volume value.
[0041] Understandably, during sound tuning, a single volume control can be used to adjust the volume, and two general filters are used to compensate for low-frequency and high-frequency gain, respectively. The sound engineer needs to calibrate the compensation values for low-frequency and high-frequency gain under different volume conditions, ultimately generating a corresponding table to record the data. Because the single volume control and general filters are independent of each other, the sound engineer needs to spend a significant amount of time repeatedly modifying the values of these two modules when adjusting and verifying the compensation values for low-frequency and high-frequency gain at different volumes. Furthermore, each new value overwrites the previous one, making the calibration process extremely tedious, time-consuming, and labor-intensive.
[0042] Therefore, the target index value for gain compensation for the audio data can be determined based on the first volume value of the calibration signal after volume adjustment. The target index value can be understood as the index value used to find the corresponding compensation value for the audio filter gain. Specifically, a table or file containing the index values and corresponding gain data can be stored in the audio filter. Through the linkage between single volume control and indexed general filters, the indexed general filters will automatically apply the corresponding low and high frequency gain compensation values under different volume conditions. The sound engineer can adjust and verify the compensation values for different volume drops and high frequency gains in real time.
[0043] In embodiments of this application, determining the target index value for compensating the gain of audio data based on a first volume value includes: determining a first conversion value corresponding to the first volume value through a preset energy control; obtaining a first preset DC component and a second preset DC component; and performing data conversion on the first conversion value according to the first preset DC component and the second preset DC component to determine the target index value for compensating the gain of audio data.
[0044] The first conversion value refers to the energy value measured by the energy detection control after the sine wave has been adjusted by the volume control. The first preset DC component is the first step conversion parameter used to process the energy value measured by the energy detection control. The second preset DC component is the conversion parameter used for the second step processing of the value after the first conversion.
[0045] In embodiments of this application, the audio filter includes a low-frequency filter and a high-frequency filter. The target index value includes a first target index value corresponding to the low-frequency filter and a second target index value corresponding to the high-frequency filter. Determining the target index value for gain compensation of the audio data by performing data conversion on the first conversion value based on a first preset DC component and a second preset DC component includes: performing data conversion on the first conversion value based on the first preset DC component and the second preset DC component to determine a second conversion value for gain compensation of the audio data; searching for the first target index value corresponding to the second conversion value in a first data table corresponding to the low-frequency filter; and searching for the second target index value corresponding to the second conversion value in a second data table corresponding to the high-frequency filter.
[0046] It is understood that both the first and second data tables are constructed by technicians based on their technical experience. In the first data table, the first conversion value and the first target index value for the low-frequency filter correspond one-to-one. In the second data table, the second conversion value and the second target index value for the high-frequency filter correspond one-to-one. The second conversion value refers to the sequence value of the desired gain set by the sound engineer according to the existing tuning parameter table. The first target index value is the index used to find the compensation value for adjusting the low-frequency filter gain. The second target index value is the index used to find the compensation value for adjusting the high-frequency filter gain.
[0047] S108 inputs the target index value and the adjusted audio to the audio filter.
[0048] S110 controls the audio filter to compensate the gain of the adjusted audio according to the target index value, and obtains the target audio output by the audio filter that corresponds to the adjusted audio.
[0049] It is understandable that the target index value corresponding to the audio filter is obtained based on the first volume value of the standard signal after volume adjustment. The compensation value of the audio filter gain can be controlled based on the target index value. The target index value and the adjusted audio are input to the audio filter. The obtained compensation value is used to perform gain compensation processing on the adjusted audio, and the target audio corresponding to the adjusted audio is obtained from the output of the audio filter.
[0050] In embodiments of this application, the audio filter includes a low-frequency filter and a high-frequency filter. Controlling the audio filter to compensate the gain of the adjusted audio according to a target index value and obtaining the target audio output by the audio filter corresponding to the adjusted audio includes: determining a first gain value corresponding to the low-frequency filter and a second gain value corresponding to the high-frequency filter according to the target index value; controlling the low-frequency filter to compensate the gain of the adjusted audio according to the first gain value; controlling the high-frequency filter to compensate the gain of the adjusted audio according to the second gain value; and obtaining the target audio output by the audio filter corresponding to the adjusted audio.
[0051] Specifically, a first gain value corresponding to the low-frequency filter is determined based on the first target index value. A first target level for the low-frequency filter is then determined based on the first gain value. The low-frequency filter is then switched to the first target level to compensate for the gain of the adjusted audio. Similarly, a second target index value is input to the high-frequency filter. A first gain value corresponding to the high-frequency filter is determined based on the second target index value. A second target level for the low-frequency filter is then determined based on the second gain value. The high-frequency filter is then switched to the second target level to compensate for the gain of the adjusted audio.
[0052] In an embodiment of this application, controlling the low-frequency filter to compensate the gain of the adjusted audio according to the first gain value includes: determining the first target level of the low-frequency filter according to the first gain value; and controlling the level of the low-frequency filter to switch to the first target level to compensate the gain of the adjusted audio.
[0053] In the embodiments of this application, the low-frequency filter has 21 settings, and the adjustment range of the low-frequency filter is from 0dB to 20dB.
[0054] In embodiments of this application, controlling the high-frequency filter to compensate the gain of the adjusted audio according to the second gain value includes: determining the second target level of the high-frequency filter according to the second gain value; and controlling the level of the high-frequency filter to switch to the second target level to compensate the gain of the adjusted audio.
[0055] In the embodiments of this application, the high-frequency filter has 8 settings, and the adjustment range of the high-frequency filter is -4dB to 3dB.
[0056] In one embodiment, such as Figure 2As shown, the standard signal generated by the signal generator 10 first emits a 0dB, 1kHz sine wave, which is input to the volume control 20 to adjust the volume. Simultaneously, the audio stream is also input to the volume control 20 to adjust the volume. Adjusting the volume can simultaneously reduce the volume of both the audio stream and the sine wave. Adjusting the volume to -15dB will output a -15dB sine wave, which is input to the energy detection control 30 for volume detection. The volume detection will output a corresponding value based on the magnitude of the input sine wave; an input -15dB sine wave will output a first conversion value of 24.x (24.x is approximately between 24.1 and 24.3). Then, data conversion is performed based on 24.x. A first preset DC component 3 is input through the first DC component control 40, and a second preset DC component 21 is input through the second DC component control 50. The data conversion calculation is then performed: 3 × 24.x – 21 = 51.x, where 51 is the corresponding second conversion value. Further, refer to... Figure 3a and Figure 3b The system searches for the target index value corresponding to 51 in the first data table 60 and the second data table 70. Specifically, the lookup table converts the second conversion value into a target index value. The second data table starts from 1; inputting 0 will output the value 1, and inputting 51 will output the value 52. The corresponding first target index value is 2, and the second target index value is 4. Therefore, the first target index value 2 can be input into the low-frequency filter 80. Based on the first target index value, the first gain value corresponding to the low-frequency filter 80 is determined. Based on the first gain value, the first target level of the low-frequency filter is determined, and the low-frequency filter is controlled to switch to the first target level to compensate for the gain of the adjusted audio. Similarly, the second target index value is input into the high-frequency filter 90. Based on the second target index value, the first gain value corresponding to the high-frequency filter 90 is determined. Based on the second gain value, the second target level of the low-frequency filter is determined, and the high-frequency filter is controlled to switch to the second target level to compensate for the gain of the adjusted audio.
[0057] Specifically, refer to Figure 4a The low-frequency filter has 21 settings, ranging from 0dB to 20dB, with each setting differing by 1dB. Since the index starts from 0, inputting 0dB will use 0dB, inputting 2dB will use 2dB, thus compensating for bass by 2dB. (Reference) Figure 4b The high-frequency filter has 8 settings, ranging from -4dB to 3dB, with each setting differing by 1dB. Since the index value starts from 0, inputting 0 will call -4dB, inputting 4 will call 0dB, and the high frequencies remain unchanged.
[0058] In one embodiment, an audio filter whose gain can be adjusted by index values can be a parametric audio filter. Alternatively, a graphical audio filter can be used, allowing for more precise parameter adjustment.
[0059] In this way, there is no need to spend a lot of time and manpower to calibrate the gain of high and low frequencies. Through the linkage of Singlevolume control and indexed General filters, the indexed General filters will automatically obtain the corresponding compensation values for low and high frequency gains under different volume conditions. The sound engineer can adjust and verify the compensation values for high frequency gain in real time under different volume drops.
[0060] Figure 1 This is a flowchart illustrating an audio data processing method in one embodiment. It should be understood that, although... Figure 1 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but may be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0061] Figure 5 This schematically illustrates a structural block diagram of an audio data processing apparatus according to an embodiment of this application. Figure 5 As shown in the figure, this application provides an audio data processing apparatus, which may include:
[0062] Memory 510 is configured to store instructions; and
[0063] The processor 520 is configured to retrieve instructions from the memory 510 and, when executing the instructions, to implement the aforementioned audio data processing method.
[0064] Specifically, in this embodiment of the application, the processor 520 can be configured to:
[0065] Acquire the audio and calibration signal to be debugged; adjust the volume of the audio and calibration signal respectively, and determine the first volume value of the calibration signal after adjustment; determine the target index value for gain compensation of the audio data based on the first volume value; input the target index value and the adjusted audio to the audio filter; control the audio filter to compensate the gain of the adjusted audio according to the target index value, and acquire the target audio output by the audio filter corresponding to the adjusted audio.
[0066] In embodiments of this application, determining the target index value for compensating the gain of audio data based on a first volume value includes: determining a first conversion value corresponding to the first volume value through a preset energy control; obtaining a first preset DC component and a second preset DC component; and performing data conversion on the first conversion value according to the first preset DC component and the second preset DC component to determine the target index value for compensating the gain of audio data.
[0067] In embodiments of this application, the audio filter includes a low-frequency filter and a high-frequency filter. The target index value includes a first target index value corresponding to the low-frequency filter and a second target index value corresponding to the high-frequency filter. Determining the target index value for gain compensation of the audio data by performing data conversion on the first conversion value based on a first preset DC component and a second preset DC component includes: performing data conversion on the first conversion value based on the first preset DC component and the second preset DC component to determine a second conversion value for gain compensation of the audio data; searching for the first target index value corresponding to the second conversion value in a first data table corresponding to the low-frequency filter; and searching for the second target index value corresponding to the second conversion value in a second data table corresponding to the high-frequency filter.
[0068] In embodiments of this application, the audio filter includes a low-frequency filter and a high-frequency filter. Controlling the audio filter to compensate the gain of the adjusted audio according to a target index value and obtaining the target audio output by the audio filter corresponding to the adjusted audio includes: determining a first gain value corresponding to the low-frequency filter and a second gain value corresponding to the high-frequency filter according to the target index value; controlling the low-frequency filter to compensate the gain of the adjusted audio according to the first gain value; controlling the high-frequency filter to compensate the gain of the adjusted audio according to the second gain value; and obtaining the target audio output by the audio filter corresponding to the adjusted audio.
[0069] In an embodiment of this application, controlling the low-frequency filter to compensate the gain of the adjusted audio according to the first gain value includes: determining the first target level of the low-frequency filter according to the first gain value; and controlling the level of the low-frequency filter to switch to the first target level to compensate the gain of the adjusted audio.
[0070] In the embodiments of this application, the low-frequency filter has 21 settings, and the adjustment range of the low-frequency filter is from 0dB to 20dB.
[0071] In embodiments of this application, controlling the high-frequency filter to compensate the gain of the adjusted audio according to the second gain value includes: determining the second target level of the high-frequency filter according to the second gain value; and controlling the level of the high-frequency filter to switch to the second target level to compensate the gain of the adjusted audio.
[0072] In the embodiments of this application, the high-frequency filter has 8 settings, and the adjustment range of the high-frequency filter is -4dB to 3dB.
[0073] This application also provides a vehicle audio system, including the aforementioned audio data processing device.
[0074] This application also provides a machine-readable storage medium storing instructions that cause a machine to perform the above-described audio data processing method.
[0075] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor A01, a network interface A02, memory (not shown), and a database (not shown) connected via a system bus. The processor A01 provides computing and control capabilities. The memory includes internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02, and a database (not shown). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 stored in the non-volatile storage medium A04. The database stores data related to audio data processing methods. The network interface A02 communicates with external terminals via a network connection. When the computer program B02 is executed by the processor A01, it implements an audio data processing method.
[0076] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0077] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0078] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0079] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0080] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0081] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0082] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0083] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0084] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0085] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for processing audio data, characterized in that, The processing method includes: Acquire the audio and calibration signals to be debugged; Adjust the volume of the audio and calibration signals respectively, and determine the first volume value of the calibration signal after the volume adjustment; Determine the target index value for compensating the gain of the audio data based on the first volume value; The target index value and the adjusted audio are input into the audio filter; The audio filter is controlled to compensate for the gain of the adjusted audio according to the target index value, and the target audio output by the audio filter corresponding to the adjusted audio is obtained.
2. The method for processing audio data according to claim 1, characterized in that, Determining the target index value for gain compensation of the audio data based on the first volume value includes: The first conversion value corresponding to the first volume value is determined by a preset energy control; Obtain the first preset DC component and the second preset DC component; The first conversion value is converted based on the first preset DC component and the second preset DC component to determine the target index value for compensating the gain of the audio data.
3. The audio data processing method according to claim 2, characterized in that, The audio filter includes a low-frequency filter and a high-frequency filter. The target index value includes a first target index value corresponding to the low-frequency filter and a second target index value corresponding to the high-frequency filter. The step of performing data conversion on the first conversion value based on the first preset DC component and the second preset DC component to determine the target index value for gain compensation of the audio data includes: The first conversion value is converted based on the first preset DC component and the second preset DC component to determine a second conversion value for compensating the gain of the audio data. Search for the first target index value corresponding to the second conversion value in the first data table corresponding to the low-frequency filter; Search for the second target index value corresponding to the second conversion value in the second data table corresponding to the high-frequency filter.
4. The method for processing audio data according to claim 1, characterized in that, The audio filter includes a low-frequency filter and a high-frequency filter. Controlling the audio filter to compensate for the gain of the adjusted audio based on the target index value, and obtaining the target audio output by the audio filter corresponding to the adjusted audio, includes: Determine the first gain value corresponding to the low-frequency filter and the second gain value corresponding to the high-frequency filter based on the target index value; The low-frequency filter is controlled to compensate for the gain of the adjusted audio according to the first gain value; The high-frequency filter is controlled to compensate the gain of the adjusted audio according to the second gain value; Obtain the target audio output by the audio filter that corresponds to the adjusted audio.
5. The method for processing audio data according to claim 4, characterized in that, The step of controlling the low-frequency filter to compensate the adjusted audio gain according to the first gain value includes: The first target gear corresponding to the low-frequency filter is determined based on the first gain value; The low-frequency filter is switched to the first target setting to compensate for the gain of the adjusted audio.
6. The method for processing audio data according to claim 5, characterized in that, The low-frequency filter has 21 settings, and its adjustment range is from 0 dB to 20 dB.
7. The method for processing audio data according to claim 4, characterized in that, The step of controlling the high-frequency filter to compensate the adjusted audio gain according to the second gain value includes: The second target gear corresponding to the high-frequency filter is determined based on the second gain value; The high-frequency filter is switched to the second target setting to compensate for the gain of the adjusted audio.
8. The method for processing audio data according to claim 5, characterized in that, The high-frequency filter has eight settings, and its adjustment range is -4dB to 3dB.
9. An audio data processing apparatus, characterized in that, include: The memory is configured to store instructions; A processor is configured to retrieve the instructions from the memory and, when executing the instructions, to implement a method for processing audio data according to any one of claims 1 to 8.
10. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores instructions for causing the machine to perform a method for processing audio data according to any one of claims 1 to 8.