Audio parameter optimization method and operation device related to audio parameter
By dividing the audio number into multiple frames and adjusting the wide dynamic range compression parameters according to the maximum root mean square and average root mean square, the problem that audio adjustments in the prior art cannot be applied to different audio sources, and the appropriate music listening is achieved The audio parameters are optimized to avoid amplification distortion and equipment damage.
Patent Information
- Application Number
- CN202310496708.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2024-11-05
AI Technical Summary
Existing audio systems cannot be adapted to different sound characteristics of different audio sources when adjusting audio, resulting in a single audio adjustment not meeting the needs of all audio signals.
By dividing the sound audio number into multiple sound frames in the time domain, and adjusting the wide dynamic range compression parameters according to the maximum root mean square and average root mean square of the sound frame, increasing the output power corresponding to the input power to define suitable music listening wide dynamic range compression parameters.
The audio parameter optimization based on sound characteristics is realized, and a wide dynamic range compression parameter suitable for music listening is provided, which avoids amplification distortion and damage to the back-end output device, and is suitable for different audio signals.
Smart Images

Figure CN118900382A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a sound signal processing, and in particular, also relates to an audio parameter optimization method and a computing device related to the audio parameters. Background Art
[0002] After the mobile device is connected to the smart speaker group, the audio signal can be transmitted to the smart speaker. After the smart speaker decodes the audio signal and performs sound effect processing, the music can be played.
[0003] It is worth noting that the audio adjustment of the audio system is usually targeted at the part of the sound that the user wants to enhance. However, different audio sources may have different sound characteristics. Therefore, a single audio adjustment is not suitable for all audio signals. Summary of the invention
[0004] The present invention is directed to an audio parameter optimization method and a computing device related to the audio parameters, and provides suitable audio parameters.
[0005] According to an embodiment of the present invention, the audio parameter optimization method includes (but is not limited to) the following steps: dividing the audio signal into a plurality of audio frames in the time domain; and adjusting the wide dynamic range compression (WDRC) parameters corresponding to the audio signal according to the maximum root mean square (RMS) and average root mean square of those audio frames. Increasing the output power corresponding to the input power between the maximum root mean square and the average root mean square in the wide dynamic range compression parameter.
[0006] According to an embodiment of the present invention, a computing device related to audio parameters includes (but is not limited to) a memory and a processor. The memory is used to store program code. The processor is coupled to the memory. The processor is configured to load the program code to execute: split the audio signal into multiple audio frames in the time domain, and adjust the wide dynamic range compression parameters corresponding to the audio signal according to the maximum root mean square and average root mean square of those audio frames. The processor is also used to increase the output power corresponding to the input power between the maximum root mean square and the average root mean square in the wide dynamic range compression parameter.
[0007] Based on the above, the audio parameter optimization method and related audio parameters according to the embodiments of the present invention can define wide dynamic range compression parameters suitable for music listening based on sound characteristics (eg, maximum RMS and average RMS). BRIEF DESCRIPTION OF THE DRAWINGS
[0008] The accompanying drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this specification. The drawings illustrate embodiments of the present invention and together with the description serve to explain the principles of the present invention.
[0009] Figure 1 is a block diagram of components of a computing device according to an embodiment of the present invention;
[0010] Figure 2 is a flow chart of an audio parameter optimization method according to an embodiment of the present invention;
[0011] Figure 3 is a schematic diagram illustrating signal segmentation according to an embodiment of the present invention;
[0012] Figure 4 is a schematic diagram illustrating parameter adjustment according to an embodiment of the present invention;
[0013] Figure 5 is a schematic diagram illustrating parameters of different music according to an embodiment of the present invention.
[0014] Description of Figure Numbers
[0015] 10: computing device;
[0016] 11: memory;
[0017] 12: Processor;
[0018] S210~S220: step;
[0019] SS, MS1~MS3: audio signal;
[0020] SF: sound frame;
[0021] NC: Unadjusted wide dynamic range compression parameters;
[0022] S1: wide dynamic range compression parameters;
[0023] p1~p3: turning point;
[0024] s0~s3: slope;
[0025] Δ: Difference. DETAILED DESCRIPTION
[0026] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.
[0027] Figure 1 is a block diagram of components of a computing device 10 according to an embodiment of the present invention. Figure 1The computing device 10 includes (but is not limited to) a memory 11 and a processor 12. The computing device 10 may be a desktop computer, a laptop computer, an AIO computer, a smart phone, a tablet computer, a smart speaker, a smart assistant device, a server, or other electronic devices.
[0028] The memory 11 may be any type of fixed or removable random access memory (RAM), read only memory (ROM), flash memory, hard disk drive (HDD), solid-state drive (SSD) or similar components. In one embodiment, the memory 11 is used to record program codes, software modules, configurations, data or files (e.g., audio signals, audio features, or parameters), and will be described in detail in subsequent embodiments.
[0029] The processor 12 is coupled to the memory 11. The processor 12 may be a central processing unit (CPU), a graphics processing unit (GPU), or other programmable general-purpose or special-purpose microprocessor (Microprocessor), a digital signal processor (Digital Signal Processor, DSP), a programmable controller, a field programmable gate array (Field Programmable Gate Array, FPGA), an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a neural network accelerator or other similar components or a combination of the above components. In one embodiment, the processor 12 is used to perform all or part of the operations of the computing device 10, and can load and execute software modules, files and / or data stored in the memory 11. In some embodiments, the functions of the processor 12 can be implemented by software.
[0030] Hereinafter, the method described in the embodiment of the present invention will be described with reference to various components, modules and signals in the computing device 10. Each process of the method can be adjusted according to the implementation situation and is not limited thereto.
[0031] Figure 2 is a flow chart of an audio parameter optimization method according to an embodiment of the present invention. Figure 2, the processor 12 divides the audio signal into multiple audio frames in the time domain (step S210). In one embodiment, the audio signal can be a sound frequency of music. In other embodiments, the audio signal can be a sound frequency of speech, animal sound, environmental sound, machine operation sound, synthetic sound or a combination thereof. The time length of these audio frames is, for example, 50, 100 or 500 milliseconds (ms), but is not limited thereto. The processor 12 can take out a sound frame for the (digital) audio signal at the same time length. These audio frames can be arranged in order to form the audio signal.
[0032] For example, Figure 3 is a schematic diagram illustrating signal segmentation according to an embodiment of the present invention. Figure 3 The time length of the sound frame SF is 50 ms for example. A sound frame SF can be cut out from the sound signal SS at every 50 ms interval.
[0033] According to different design requirements, in some embodiments, the processor 12 may select some of the sound frames for subsequent use. Alternatively, the time lengths of different sound frames may be different.
[0034] In one embodiment, the processor 12 can divide the left channel and the right channel of the audio signal into multiple sound frames respectively. The audio signal is a two-channel stereo signal. In some application scenarios, the contents of the left and right channels of a single audio signal may be different. For example, the sound of string instruments in the left channel of a symphony accounts for a larger proportion, while the sound of wind instruments in the right channel accounts for a larger proportion. The audio signals of the left channel and the right channel can be regarded as two audio signals. The processor 12 can divide the two audio signals into sound frames of the left channel and sound frames of the right channel respectively. Assuming that each channel can be divided into M sound frames (M is a positive integer), there are a total of 2M audio signals in the two channels.
[0035] Please refer to Figure 2 , the processor 12 can adjust the wide dynamic range compression parameter corresponding to the sound signal according to the maximum root mean square and the average root mean square of the multiple sound frames divided (step S220). Specifically, the root mean square is a calculation method for measuring the sound pressure of a sound wave. The processor 12 can sample each sound signal at a specific sampling time interval and measure the intensity of multiple sampling points. That is, the intensity of multiple sampling points in the waveform of the sound signal.
[0036] The processor 12 may calculate the power of each sound frame according to the following formula (1) (ie, root mean square):
[0037]
[0038] where x RMSis the power of a single sound frame (i.e., RMS), and n is the total number of sampling points in a sound frame. 1 is the intensity of a sound frame at the first sampling point (for example, the first sampling value), x 2 is the intensity of a sound frame at the second sampling point (for example, the second sampling value), x n It is the intensity of a certain sound frame at the nth sampling point (for example, the nth sampling value), and the rest are similar.
[0039] In addition, the maximum root mean square is the maximum power in multiple sound frames divided from a single sound signal. The average root mean square is the power average of multiple sound frames divided from a single sound signal. Based on the experimental results, for the sound frequency of music listening, the (input) power interval between the maximum root mean square and the average root mean square can be regarded as an important interval. For this important interval, the output power can be appropriately amplified. For music listening, it can mean that the sound signal is of music type, or the sound signal is expected to be played through a home audio, a smart speaker, or headphones.
[0040] On the other hand, wide dynamic range compression can adjust the output power as the input power of the audio signal changes, and is suitable for a specific or limited hearing dynamic range. However, different audio signals have different crest factors (the peak value of the waveform divided by the mean root of the waveform), which also makes a single wide dynamic range compression parameter unable to be applied to all audio signals. In one embodiment, the wide dynamic range compression parameter is the corresponding relationship between input power and output power. For example, an input power of -10 decibels (dB) corresponds to an output power of -8dB. This corresponding relationship can be represented or recorded by a comparison table or function.
[0041] The wide dynamic range compression parameter is determined, for example, by the processor 12 regarding the power interval between the maximum RMS and the average RMS of the input power as an important interval, and accordingly amplifying the output power corresponding to the important interval. Assume that the ratio of the input power in the original wide dynamic range compression parameter to the corresponding output power is 1:1. For the aforementioned important area, the processor 12 may adjust the ratio of the input power in the wide dynamic range compression parameter to the corresponding output power to (for example) 1:1.2 to 1.5, but is not limited thereto, and the upper limit of the output power is 0 dB.
[0042] In one embodiment, the processor 12 may make the change in output power corresponding to the input power interval between the maximum RMS and the average RMS in the adjusted wide dynamic range compression parameter the same as the change in output power corresponding to the input power interval in the wide dynamic range compression parameter before adjustment. Specifically, the wide dynamic range compression parameter is a correspondence between input power and output power. When this correspondence is mapped to an XY coordinate system (for example, input power corresponds to the X-axis, and output power corresponds to the Y-axis), this correspondence may be represented by a linear, a curve, and / or other functions.
[0043] For example, Figure 4 is a schematic diagram illustrating parameter adjustment according to an embodiment of the present invention. Figure 4 , the ratio of the input power to the corresponding output power in the unadjusted wide dynamic range compression parameter NC is , so the corresponding relationship between the input power and the output power can be expressed by a linear function with a slope s0=1.
[0044] On the other hand, the part of the wide dynamic range compression parameter S1 for music listening that is enhanced is the input power range from the average root mean square Avg Rms to the maximum root mean square Max Rms. Enhancement here means that the value of the output power is greater than the corresponding value of the input power. Therefore, compared with the unadjusted wide dynamic range compression parameter NC, the output power of the wide dynamic range compression parameter S1 from the turning point p1 to the turning point p3 is larger. That is, the output power value between the turning point p1 (the input power corresponds to the X-axis and the output power corresponds to the Y-axis with the coordinates (Avg Rms, Avg Rms)) and the turning point p3 (the coordinates are (Max Rms, 0)) is greater than the corresponding input power value. The turning point indicates that the linear functions of adjacent input and output powers have different slopes.
[0045] For other input power intervals (e.g., whose values are less than the average root mean square AvgRms corresponding to the turning point p1) (considered as unimportant intervals, such as noise), the wide dynamic range compression parameter S1 can be made the same as the unadjusted wide dynamic range compression parameter NC. That is, the value of the output power between the turning point p1 to the turning point p3 is equal to the corresponding value of the input power.
[0046] In order to reduce distortion (for example, discontinuous amplification), the slope s2 of the input power interval from the turning point p2 to the turning point p3 in the wide dynamic range compression parameter S1 can be equal to the slope s0 = 1. That is, compared with the unadjusted wide dynamic range compression parameter NC, the change in the output power of the wide dynamic range compression parameter S1 from the turning point p2 to the turning point p3 is the same.
[0047] In one embodiment, the processor 12 may define the starting point of the input power interval of the linear function with the same slope or the input power interval with the same output power variation within the unit interval according to the average RMS. The difference between the starting point and the average RMS is 0 to 6 decibels (dB). Figure 4 For example, the turning point p2 is the starting point, and the difference Δ in input power between the turning point p2 and the turning point p1 (corresponding to the average root mean square Avg Rms) is 3dB. In addition, the coordinates of the turning point p2 are (Avg Rms+Δ, AvgRms+Δ-Max Rms). In this way, the discontinuity of the amplification degree caused by the slope s1 being too high can be avoided.
[0048] In one embodiment, the processor 12 may increase the output power corresponding to the input power between the maximum RMS and the average RMS in the wide dynamic range compression parameter to at most 0 dB. That is, the maximum value of the output power in the wide dynamic range compression parameter is 0 dB. Thus, damage to the rear speaker caused by excessive output power can be avoided.
[0049] by Figure 4 For example, assuming that the output power at the turning point p3 (corresponding to the maximum root mean square Max Rms) has reached 0dB, the output power corresponding to other input powers between the maximum root mean square Max Rms and 0dB is 0dB, and the slope of the linear function corresponding to this power range is s3=0.
[0050] Figure 5 is a schematic diagram illustrating parameters of different music according to an embodiment of the present invention, and Table (1) shows the maximum RMS and average RMS of the sound frequency numbers MS1, MS2, and MS3 of three music. Figure 5 As shown in Table (1), for audio signal MS1, the output power in the power range between -30.725dB and -13.92dB is amplified. For audio signal MS2, the output power in the power range between -15.505dB and -6.83dB is amplified. For audio signal MS3, the output power in the power range between -11.645dB and -3.38dB is amplified. The output power in the input power range can be maintained the same as the input power.
[0051] Table (1)
[0052] Maximum RMS(dB) Average RMS(dB) MS1 -13.92 -30.725 MS2 -6.83 -15.505 MS3 -3.38 -11.645
[0053] In one embodiment, the processor 12 may also play the sound signal adjusted by the corresponding wide dynamic range compression parameter through the speaker. For example, a digital signal processor, a digital to analog converter or other components adjust the sound signal according to the determined wide dynamic range compression parameter, and then the digital sound signal is converted into an analog sound signal and output through the speaker. In addition, as long as the input power of the sound signal is within the aforementioned key range, the corresponding output power can be amplified.
[0054] In summary, the audio parameter optimization method and the audio parameter computing device according to the embodiment of the present invention provide suitable wide dynamic range compression parameters for music listening and can avoid amplification distortion and damage to the back-end output device.
[0055] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. An audio parameter optimization method, characterized in that: include: Divide the audio signal into multiple audio frames in the time domain; as well as The wide dynamic range compression parameter corresponding to the sound signal is adjusted according to the maximum root mean square and the average root mean square of the sound frame, wherein the output power corresponding to the input power between the maximum root mean square and the average root mean square in the wide dynamic range compression parameter is increased.
2. The audio parameter optimization method according to claim 1, characterized in that The step of adjusting the wide dynamic range compression parameter corresponding to the audio signal according to the maximum root mean square and the average root mean square of the audio frame comprises: The change in output power corresponding to the input power interval between the maximum RMS and the average RMS in the adjusted wide dynamic range compression parameter is made equal to the change in output power corresponding to the input power interval in the wide dynamic range compression parameter before adjustment.
3. The audio parameter optimization method according to claim 2, characterized in that: The audio parameter optimization method further includes: A starting point of the input power interval is defined according to the average root mean square, wherein a difference between the starting point and the average root mean square is 0 to 6 decibels.
4. The audio parameter optimization method according to claim 1, characterized in that: The step of adjusting the wide dynamic range compression parameter corresponding to the audio signal according to the maximum root mean square and the average root mean square of the audio frame comprises: The output power corresponding to the input power between the maximum RMS and the average RMS in the wide dynamic range compression parameter is increased to at most 0 decibel.
5. The audio parameter optimization method according to claim 1, characterized in that: The step of dividing the audio signal into the audio frames in the time domain comprises: The left channel and the right channel of the audio signal are respectively divided into the audio frames.
6. A computing device related to audio parameters, characterized in that: include: A memory for storing program codes; as well as A processor, coupled to the memory, is configured to load the program code to execute: Divide the audio signal into multiple audio frames in the time domain; as well as The wide dynamic range compression parameter corresponding to the sound signal is adjusted according to the maximum root mean square and the average root mean square of the sound frame, wherein the output power corresponding to the input power between the maximum root mean square and the average root mean square in the wide dynamic range compression parameter is increased.
7. The computing device according to claim 6, characterized in that: The processor is also used to: The change in output power corresponding to the input power interval between the maximum RMS and the average RMS in the adjusted wide dynamic range compression parameter is made equal to the change in output power corresponding to the input power interval in the wide dynamic range compression parameter before adjustment.
8. The computing device according to claim 7, characterized in that: The processor is also used to: A starting point of the input power interval is defined according to the average root mean square, wherein a difference between the starting point and the average root mean square is 0 to 6 decibels.
9. The computing device according to claim 6, wherein: The processor is also used to: The output power corresponding to the input power between the maximum RMS and the average RMS in the wide dynamic range compression parameter is increased to at most 0 decibel.
10. The computing device according to claim 6, wherein: The processor is also used to: The left channel and the right channel of the audio signal are respectively divided into the audio frames.
