Audio anti-clipping control method and device, vehicle-mounted audio system, equipment and medium
By statistically analyzing and sorting audio link gain terms in real time, an anti-distortion control architecture is constructed, which solves the distortion problem when adjusting traditional audio devices, maximizes the loudness and sound quality of the audio signal, and improves the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA FAW CO LTD
- Filing Date
- 2026-04-03
- Publication Date
- 2026-06-19
AI Technical Summary
Traditional audio playback devices are prone to distortion when adjusting the audio link gain, leading to a decline in user experience, especially since low-performance devices cannot meet playback requirements.
An audio anti-clipping control method is provided. By real-time statistics and sorting of gain terms in the audio link, an anti-clipping control architecture is constructed, which automatically coordinates the output gain of each module to ensure that the signal is never clipped, and maximizes loudness and sound quality performance when adjusted by the user.
While ensuring safety, the system maximizes the loudness and sound quality of the audio signal, improves the user experience, and avoids distortion.
Smart Images

Figure CN122245328A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of audio technology, and in particular to an audio anti-distortion control method, device, vehicle audio system, equipment, and medium. Background Technology
[0002] Traditional audio playback devices typically contain multiple modules that affect the audio link gain, and these module parameters are linearly superimposed when adjusted by the user. If the amplifier can only withstand an input gain of 0dB, then an input exceeding 0dB will cause clipping distortion, resulting in audio distortion.
[0003] Currently, to avoid this problem, engineers in actual calibration need to find an extremely conservative gain to ensure that even if all gain modules on the audio link are set to maximum gain, the signal output to the power amplifier will not be clipped. However, this approach severely impacts the lower limit of the user experience. For example, without considering the gain modules, the power amplifier can receive a maximum of 0dB of signal. However, to reserve a gain margin for the gain modules (let's say -12dB), the maximum signal input to the power amplifier, again without the gain modules in use, can only be -12dB. This results in a loss of 12dB of dynamic range. The most direct effect is that the maximum volume the device can produce becomes lower.
[0004] The practice of reserving gain margin is acceptable for devices with sufficiently powerful amplifiers and speakers. For example, a high-performance device can produce a sufficiently loud sound even with a -12dB input signal to the amplifier, meeting the user's needs. However, for lower-performance devices, a 0dB input signal to the amplifier is barely sufficient for playback. In this case, further reducing the gain by -12dB would be far from adequate for playback. Summary of the Invention
[0005] The purpose of this invention is to provide an audio anti-clipping control method, device, vehicle audio system, equipment, and medium, which can at least provide an intelligent audio anti-clipping dynamic linkage control mechanism. With "no clipping" as the highest control criterion, it automatically and in real time coordinates the output gain of each module when the user makes multiple audio adjustments, ensuring that the final output signal is never clipped. Under the premise of ensuring safety, it maximizes loudness and sound quality performance, which helps to improve the user experience.
[0006] To address the aforementioned technical problems, in a first aspect, the present invention provides an audio anti-distortion control method, comprising at least:
[0007] Each gain term involved in the audio link is statistically analyzed, and a preset sorting operation is performed on all the gain terms to obtain the gain term priority sort in real time;
[0008] An anti-clipping control architecture is constructed based on the priority order of the gain terms, such that the dynamic adjustment modules corresponding to each gain term in the anti-clipping control architecture are connected in series sequentially according to the priority order of the gain terms.
[0009] In response to the user's adjustment of at least one of the gain terms and the input of any non-distorted signal, the total signal gain of the non-distorted signal after passing through each of the dynamic adjustment modules is determined sequentially until the total signal gain of the non-distorted signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition. The corresponding dynamic adjustment module is marked as a distortion adjustment module, and the sub-signal gain corresponding to the distortion adjustment module, each dynamic adjustment module through which the non-distorted signal passes before the distortion adjustment module, and each dynamic adjustment module connected in series after the distortion adjustment module is determined.
[0010] Based on the non-distorted signal and the gain of all the sub-signals, an output gain audio signal is generated.
[0011] Optionally, the step of statistically analyzing each gain term involved in the audio link and performing a preset sorting operation on all gain terms to obtain a real-time priority order of the gain terms includes at least the following:
[0012] Statistically analyze each of the gain terms involved in the audio link and determine the initial priority score for each of the gain terms;
[0013] Obtain the audio adjustment function corresponding to each gain term, and at least determine the number of times each audio adjustment function is used by the user, the frequency of user use, the function usage time, and the usage interval time.
[0014] The usage count score, usage frequency score, and time decay weight of each gain item are determined based on the number of times the user uses the product, the user usage frequency, the function usage time, and the usage interval.
[0015] The final priority score of each gain item is calculated based on at least the initial priority score, the number of times the user uses the item, the usage frequency score, the usage frequency score, and the time decay weight. The priority ranking of the gain items is obtained in real time by sorting the final scores of all the gain items.
[0016] Optionally, each of the aforementioned dynamic adjustment modules is configured with a gain adjustment range.
[0017] Optionally, the sub-signal gain does not exceed the gain adjustment range.
[0018] Based on the same concept, in a second aspect, the present invention also provides an audio anti-distortion control device for performing the audio anti-distortion control method described in any one of the first aspects;
[0019] The audio anti-distortion control device includes at least:
[0020] The gain item sorting module is used to count each gain item involved in the audio link and perform a preset sorting operation on all the gain items to obtain the gain item priority sorting in real time.
[0021] An architecture construction module is used to construct an anti-clipping control architecture based on the priority order of the gain terms, so that the dynamic adjustment modules corresponding to each gain term in the anti-clipping control architecture are connected in series according to the priority order of the gain terms.
[0022] A gain determination module is used to respond to the input of any non-distorted signal after the user adjusts at least one of the gain terms, sequentially determine the total signal gain of the non-distorted signal after passing through each of the dynamic adjustment modules, until the total signal gain of the non-distorted signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition, mark the corresponding dynamic adjustment module as a distortion adjustment module, and determine the sub-signal gain corresponding to the distortion adjustment module, each of the dynamic adjustment modules through which the non-distorted signal passes before the distortion adjustment module, and each of the dynamic adjustment modules connected in series after the distortion adjustment module;
[0023] The signal output module is used to output a gain audio signal based on the non-distorted signal and the gain of all the sub-signals.
[0024] Optionally, the gain term sorting module is specifically used for at least:
[0025] Statistically analyze each of the gain terms involved in the audio link and determine the initial priority score for each of the gain terms;
[0026] Obtain the audio adjustment function corresponding to each gain term, and at least determine the number of times each audio adjustment function is used by the user, the frequency of user use, the function usage time, and the usage interval time.
[0027] The usage count score, usage frequency score, and time decay weight of each gain item are determined based on the number of times the user uses the product, the user usage frequency, the function usage time, and the usage interval.
[0028] The final priority score of each gain item is calculated based on at least the initial priority score, the number of times the user uses the item, the usage frequency score, the usage frequency score, and the time decay weight. The priority ranking of the gain items is obtained in real time by sorting the final scores of all the gain items.
[0029] Optionally, each of the aforementioned dynamic adjustment modules is configured with a gain adjustment range.
[0030] Based on the same concept, in a third aspect, the present invention also provides an in-vehicle audio system that integrates at least the audio anti-distortion control device described in any one of the second aspects.
[0031] Based on the same concept, in a fourth aspect, the present invention also provides an electronic device, including a memory and a processor, the memory storing a computer program executable on the processor, wherein the processor, when executing the program, implements the steps of the audio anti-distortion control method according to any one of the first aspects.
[0032] Based on the same concept, in a fifth aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the audio anti-distortion control method according to any one of the first aspects.
[0033] The technical solution provided by this invention firstly involves statistically analyzing each gain term involved in the audio link and performing a preset sorting operation on all gain terms to obtain a real-time priority ranking of the gain terms. Further, an anti-distortion control architecture is constructed based on the gain term priority ranking, so that the dynamic adjustment modules corresponding to each gain term in the anti-distortion control architecture are sequentially connected in series according to the gain term priority ranking. Further, in response to the user adjusting at least one gain term and inputting any non-distorted signal, the total signal gain of the non-distorted signal after passing through each dynamic adjustment module is sequentially determined until the total signal gain of the non-distorted signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition. The corresponding dynamic adjustment module is then marked as a distortion adjustment module, and the sub-signal gain corresponding to the distortion adjustment module, each dynamic adjustment module through which the non-distorted signal passes before the distortion adjustment module, and each dynamic adjustment module connected in series after the distortion adjustment module is determined. Finally, based on the non-distorted signal and all sub-signal gains, a gain audio signal is output.
[0034] Therefore, the embodiments of the present invention can provide at least one intelligent audio anti-clipping dynamic linkage control mechanism, with "no clipping" as the highest control criterion. When the user makes multiple audio adjustments, it automatically and in real time coordinates the output gain of each module to ensure that the final output signal is never clipped. Under the premise of ensuring safety, it maximizes loudness and sound quality performance, which is conducive to improving the user experience. Attached Figure Description
[0035] Figure 1 This is a flowchart of an audio anti-distortion control method provided in an embodiment of the present invention;
[0036] Figure 2This is a schematic diagram of the structure of an audio anti-distortion control device provided in an embodiment of the present invention;
[0037] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention;
[0038] Figure 4 This is a schematic diagram of an anti-distortion control architecture provided in an embodiment of the present invention. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0040] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms “a,” “said,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms, and “multiple” generally includes at least two unless the context clearly indicates otherwise.
[0041] It should be understood that the term "and / or" used in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0042] It should be understood that although the terms first, second, third, etc., may be used in the embodiments of this application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, first may also be referred to as second without departing from the scope of the embodiments of this application, and similarly, second may also be referred to as first.
[0043] Depending on the context, the words “if” or “suppose” as used here can be interpreted as “when” or “in response to determination” or “in response to detection.” Similarly, depending on the context, the phrases “if determination” or “if detection (of the stated condition or event)” can be interpreted as “when determination” or “in response to determination” or “when detection (of the stated condition or event)” or “in response to detection (of the stated condition or event).”
[0044] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that an article or device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such an article or device. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the article or device that includes said element.
[0045] It should be noted that any symbols and / or numbers present in the specification that are not marked in the accompanying drawings are not reference numerals.
[0046] Figure 1 This is a flowchart of an audio anti-distortion control method provided by an embodiment of the present invention. This embodiment is applicable to at least any audio playback device (e.g., a car audio system) audio control scenario. The audio anti-distortion control method can be, but is not limited to, executed by the audio anti-distortion control device in this embodiment of the present invention as the execution subject. This execution subject can be implemented in software and / or hardware. Figure 1 As shown, this audio anti-distortion control method includes at least the following steps:
[0047] S1. Count each gain item involved in the audio link and perform a preset sorting operation on all gain items to obtain the priority sort of gain items in real time.
[0048] Taking in-vehicle audio equipment as an example, its corresponding audio link may involve gain items such as volume control, speed-sensitive compensation adjustment, and timbre adjustment.
[0049] For example, for the volume control gain term: when the volume step size is 0, the volume control gain is -100dB; when the volume step size is 1, the volume control gain is -67dB; when the volume step size is 2, the volume control gain is -57dB; when the volume step size is 3, the volume control gain is -51dB; when the volume step size is 4, the volume control gain is -46dB; when the volume step size is 5, the volume control gain is -43dB; when the volume step size is 6, the volume control gain is -40dB; when the volume step size is 7... At volume step size 8, the volume control gain is -37dB; at volume step size 9, the volume control gain is -34dB; at volume step size 10, the volume control gain is -28dB; at volume step size 11, the volume control gain is -26dB; at volume step size 12, the volume control gain is -24dB; at volume step size 13, the volume control gain is -22dB; at volume step size 14, the volume control gain is -20dB; when the volume step size is ...4, the volume control gain is -28dB; at volume step size 15, the volume control gain is -28dB; at volume step size 16, the volume control gain is -28dB; at volume step size 17, the volume control gain is -28dB; at volume step size 18, the volume control gain is -28dB; at volume step size 19, the volume control gain is -24dB; at volume step size 19, the volume control gain is -24dB; at volume step size 19, the volume control gain is -22dB; at volume step size 19, the volume control gain is When the volume step size is 15, the volume control gain is -18dB; when the volume step size is 16, the volume control gain is -16dB; when the volume step size is 17, the volume control gain is -14.5dB; when the volume step size is 18, the volume control gain is -13dB; when the volume step size is 19, the volume control gain is -12dB; when the volume step size is 20, the volume control gain is -11dB; when the volume step size is 21, the volume control gain is -9.5dB; and when the volume step size is 22, the volume control gain is -8dB. 5dB; when the volume step size is 23, the volume control gain is -7dB; when the volume step size is 24, the volume control gain is -6dB; when the volume step size is 25, the volume control gain is -5dB; when the volume step size is 26, the volume control gain is -4dB; when the volume step size is 27, the volume control gain is -3dB; when the volume step size is 28, the volume control gain is -2dB; when the volume step size is 29, the volume control gain is -1dB; when the volume step size is 30, the volume control gain is 0dB.
[0050] Regarding the speed-sensitive compensation gain: The speed-sensitive compensation gain is 1dB at 70km / h; 2dB at 85km / h; 3dB at 100km / h; 4dB at 115km / h; 5dB at 130km / h; and 5dB at 145km / h. At a speed of 100 km / h, the speed-sensitive compensation gain is 6 dB; at a speed of 160 km / h, the speed-sensitive compensation gain is 7 dB; at a speed of 175 km / h, the speed-sensitive compensation gain is 8 dB; at a speed of 190 km / h, the speed-sensitive compensation gain is 9 dB; at a speed of 205 km / h, the speed-sensitive compensation gain is 10 dB; and at a speed of 220 km / h, the speed-sensitive compensation gain is 11 dB.
[0051] For the tone adjustment gain: when the tone adjustment step size is 7, the tone adjustment gain is 8dB; when the tone adjustment step size is 6, the tone adjustment gain is 6dB; when the tone adjustment step size is 5, the tone adjustment gain is 5dB; when the tone adjustment step size is 4, the tone adjustment gain is 4dB; when the tone adjustment step size is 3, the tone adjustment gain is 3dB; when the tone adjustment step size is 2, the tone adjustment gain is 2dB; when the tone adjustment step size is 1, the tone adjustment gain is 1dB; when the tone adjustment step size is 0 ...2, the tone adjustment gain is 2dB; when the tone adjustment step size is 1, the tone adjustment gain is 1dB; when the tone adjustment step size is 0, the tone adjustment gain is 8dB; when the tone adjustment step size is 3, the tone adjustment gain is 3dB; when the tone adjustment step size is 2, the tone adjustment gain is 2dB; when the tone adjustment step size is 1, the tone adjustment gain is 1dB; when the tone adjustment step size is 0, the tone adjustment gain is 8dB; when the tone adjustment step size is 6, the tone adjustment gain is 8dB; when the tone adjustment step size is 2, the tone adjustment gain is 2dB; when the tone adjustment step size is 1, the tone adjustment gain is 1dB; when the tone adjustment step The timbre adjustment gain is 0dB; when the timbre adjustment step size is -1, the timbre adjustment gain is -1dB; when the timbre adjustment step size is -2, the timbre adjustment gain is -2dB; when the timbre adjustment step size is -3, the timbre adjustment gain is -3dB; when the timbre adjustment step size is -4, the timbre adjustment gain is -4dB; when the timbre adjustment step size is -5, the timbre adjustment gain is -5dB; when the timbre adjustment step size is -6, the timbre adjustment gain is -6dB; and when the timbre adjustment step size is -7, the timbre adjustment gain is -8dB.
[0052] In one specific implementation, step S1 specifically includes at least:
[0053] (1-1) Statistically analyze each gain term involved in the audio link and determine the initial priority score for each gain term;
[0054] (1-2) Obtain the audio adjustment function corresponding to each gain term, and at least determine the number of times each audio adjustment function is used by the user, the frequency of user use, the time of function use, and the time of use interval;
[0055] (1-3) Determine the usage count score, usage frequency score, and time decay weight for each gain item based on the number of times the user uses the product, the user's usage frequency, the function usage time, and the usage interval.
[0056] (1-4) Calculate the final priority score of each gain item based at least on the initial priority score, number of times the user uses the item, the score of the number of times the item is used, the score of the frequency of use, and the time decay weight. Obtain the priority ranking of the gain items in real time by sorting the final scores of all gain items.
[0057] It is known that the initial priority score can be configured by the user or set by the vehicle manufacturer. For example, for the volume control gain, speed-sensitive compensation adjustment gain, and timbre adjustment gain, the order of their initial priority scores can be: volume control gain > speed-sensitive compensation adjustment gain > timbre adjustment gain.
[0058] In addition, different gain parameters can correspond to different audio adjustment functions. For example, the volume control gain parameter can correspond to the car's volume adjustment function, the speed-sensitive compensation adjustment gain parameter can correspond to the vehicle speed volume compensation function, and the timbre adjustment gain parameter can correspond to the user eq function (eq is also known as Equalization Table).
[0059] Furthermore, the function usage time can refer to the time point at which a user performs an operation on any audio adjustment function; the usage interval time can refer to the time interval between the time point of the first operation and the time point of the second operation when the user performs two adjacent operations on any audio adjustment function.
[0060] In another specific implementation, the usage count score, usage frequency score, and time decay weight of each gain item can be determined by a pre-calibrated lookup table based on the number of times the user uses the product, the user's usage frequency, the function usage time, and the usage interval.
[0061] In yet another specific implementation, the final priority score for each gain term is calculated at least in the following manner:
[0062] C zz =(C1+C2+C3-αC1)×e -βk ;
[0063] In the above formula, C zz C1 represents the initial priority score, C2 represents the usage count score, C3 represents the usage frequency score, α represents the time decay weight, β represents the preset usage count decay weight (e.g., 0.1), and k represents the number of times the user uses the device.
[0064] Understandably, the time decay weight and the preset number decay weight can at least make the sorting of gain items more in line with the actual needs of users, and can prevent a certain gain item from being at the top of the sort for a long time.
[0065] S2. Construct an anti-clipping control architecture based on the priority of gain terms, so that the dynamic adjustment modules corresponding to each gain term in the anti-clipping control architecture are connected in series in sequence according to the priority of gain terms.
[0066] S3. In response to the user's adjustment of at least one gain term and the input of any non-distorted signal, sequentially determine the total signal gain of the non-distorted signal after passing through each dynamic adjustment module until the total signal gain of the non-distorted signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition. Mark the corresponding dynamic adjustment module as a distortion adjustment module and determine the sub-signal gain corresponding to the distortion adjustment module, each dynamic adjustment module through which the non-distorted signal passes before the distortion adjustment module, and each dynamic adjustment module connected in series after the distortion adjustment module.
[0067] S4. Output a gain audio signal based on the non-distorted signal and the gain of all sub-signals.
[0068] in, Figure 4 This is a schematic diagram of an anti-distortion control architecture provided in an embodiment of the present invention. See also: Figure 4 The anti-distortion control architecture includes all dynamic adjustment control modules 1 to n in the audio link. These modules are arranged from front to back according to the priority of the gain item. The higher the priority of the gain item, the earlier the corresponding module is placed, and it is given priority when setting positive gain.
[0069] Assume that when the signal s1 input to the anti-distortion control architecture bypasses the anti-distortion control architecture and is directly input to the power amplifier for amplification and output, it is in the maximum non-distortion state (that is, if the gain of signal s1 is increased even slightly, the power amplifier output will be clipped).
[0070] After S1 enters the anti-distortion control architecture, it flows through multiple dynamic adjustment modules according to priority. Each dynamic adjustment module can be equipped with a corresponding gain setting parameter G. This parameter has a settable range and an actual effective value. For example, the settable range of G2 can be -7dB to +7dB, while the actual effective value is a certain gain within this range, such as +3dB. In other words, each dynamic adjustment module is configured with a gain adjustment range, and the sub-signal gain does not exceed the gain adjustment range.
[0071] The maximum gain that each dynamic adjustment module can be set to is determined by the sum of the gains set by all the preceding dynamic adjustment modules. If the gain set by the current dynamic adjustment module is greater than the maximum settable gain, the architecture can set the gain of the current dynamic adjustment module to the maximum settable gain and output the signal directly without passing through subsequent dynamic adjustment modules.
[0072] The final output signal s2 of the anti-distortion control architecture reflects the dynamic adjustment gain settings of each level as much as possible according to priority without distortion.
[0073] For example, with volume 24 (-6dB), speed 130 (+5dB), and usereq step6 (+6dB), according to the anti-distortion control architecture, the actual implementation is: the volume control module gain is -6dB, the speed-sensitive compensation adjustment module gain is +5dB, and the timbre adjustment module gain is +1dB.
[0074] The technical solution provided in this embodiment firstly, counts each gain term involved in the audio link and performs a preset sorting operation on all gain terms to obtain the gain term priority sort in real time; further, constructs an anti-distortion control architecture based on the gain term priority sort, so that the dynamic adjustment modules corresponding to each gain term in the anti-distortion control architecture are connected in series sequentially according to the gain term priority sort; further, in response to the user adjusting at least one gain term and inputting any non-distortion signal, sequentially judges the total signal gain of the non-distortion signal after passing through each dynamic adjustment module, until the total signal gain of the non-distortion signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition, marks the corresponding dynamic adjustment module as a distortion adjustment module, and determines the sub-signal gain corresponding to the distortion adjustment module, each dynamic adjustment module through which the non-distortion signal passes before the distortion adjustment module, and each dynamic adjustment module connected in series after the distortion adjustment module; finally, outputs a gain audio signal based on the non-distortion signal and all sub-signal gains.
[0075] Therefore, this embodiment can provide at least one intelligent audio anti-clipping dynamic linkage control mechanism. With "no clipping" as the highest control criterion, it automatically and in real time coordinates the output gain of each module when the user makes multiple audio adjustments, ensuring that the final output signal is never clipped. Under the premise of ensuring safety, it maximizes loudness and sound quality performance, which helps to improve the user experience.
[0076] Figure 2 This is a schematic diagram of an audio anti-distortion control device provided in an embodiment of the present invention. This embodiment is applicable to at least any audio control scenario of an audio playback device. The audio anti-distortion control device can be implemented in software and / or hardware. Figure 2 As shown, the audio anti-distortion control device includes at least:
[0077] The gain item sorting module 110 is used to count each gain item involved in the audio link and perform a preset sorting operation on all gain items to obtain the gain item priority sorting in real time.
[0078] The architecture building module 120 is used to build an anti-clipping control architecture according to the priority of the gain terms, so that the dynamic adjustment modules corresponding to each gain term in the anti-clipping control architecture are connected in series according to the priority of the gain terms.
[0079] The gain determination module 130 is used to respond to the input of any non-distorted signal after the user adjusts at least one gain term, and to sequentially determine the total signal gain of the non-distorted signal after passing through each dynamic adjustment module until the total signal gain of the non-distorted signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition, to mark the corresponding dynamic adjustment module as a distortion adjustment module, and to determine the sub-signal gain corresponding to the distortion adjustment module, each dynamic adjustment module through which the non-distorted signal passes before the distortion adjustment module, and each dynamic adjustment module connected in series after the distortion adjustment module.
[0080] The signal output module 140 is used to output a gain audio signal based on the gain of the signal without distortion and the gain of all sub-signals.
[0081] Optionally, the gain term sorting module 110 is specifically used for at least:
[0082] Statistically analyze each gain term involved in the audio link and determine the initial priority score for each gain term;
[0083] Obtain the audio adjustment function corresponding to each gain term, and at least determine the number of times each audio adjustment function is used by the user, the frequency of user use, the duration of function use, and the interval between use;
[0084] The usage count score, usage frequency score, and time decay weight of each gain item are determined based on the number of times users use the product, the frequency of user use, the duration of function use, and the interval between use.
[0085] The final priority score of each gain item is calculated based on at least the initial priority score, the number of times the user uses the item, the usage frequency score, the usage frequency score, and the time decay weight. The priority ranking of the gain items is obtained in real time by sorting the final scores of all gain items.
[0086] Optionally, each dynamic adjustment module is equipped with a gain adjustment range.
[0087] Optionally, the sub-signal gain does not exceed the gain adjustment range.
[0088] The technical solution provided in this embodiment firstly involves a gain item sorting module that counts each gain item involved in the audio link and performs a preset sorting operation on all gain items to obtain the gain item priority sorting in real time. Further, an architecture construction module constructs an anti-distortion control architecture based on the gain item priority sorting, so that the dynamic adjustment modules corresponding to each gain item in the anti-distortion control architecture are connected in series sequentially according to the gain item priority sorting. Further, a gain determination module responds to the user's adjustment of at least one gain item and the input of any non-distorted signal, sequentially determining the total signal gain of the non-distorted signal after passing through each dynamic adjustment module, until the total signal gain of the non-distorted signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition. The corresponding dynamic adjustment module is then marked as a distortion adjustment module, and the sub-signal gain corresponding to the distortion adjustment module, each dynamic adjustment module through which the non-distorted signal passes before the distortion adjustment module, and each dynamic adjustment module connected in series after the distortion adjustment module is determined. Finally, a signal output module outputs a gain audio signal based on the non-distorted signal and all sub-signal gains.
[0089] Therefore, this embodiment can provide at least one intelligent audio anti-clipping dynamic linkage control mechanism. With "no clipping" as the highest control criterion, it automatically and in real time coordinates the output gain of each module when the user makes multiple audio adjustments, ensuring that the final output signal is never clipped. Under the premise of ensuring safety, it maximizes loudness and sound quality performance, which helps to improve the user experience.
[0090] This embodiment provides an in-vehicle audio system that integrates at least the audio anti-distortion control device described in any of the foregoing embodiments or implementation methods.
[0091] This embodiment provides an electronic device. Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. See also: Figure 3The electronic device 1000 includes a processor 1001 and a memory 1002. The memory 1002 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 1001, the steps in any of the above-described audio anti-crack control methods are performed. Through the above technical solution, the processor 1001 and the memory 1002 are interconnected and communicate with each other via a communication bus and / or other forms of connection mechanisms (not shown). The memory 1002 stores a processor-executable computer program. When the electronic device 1000 is running, the processor 1001 executes the computer program to perform the audio anti-crack control method in any of the optional implementations of the above embodiments, to at least achieve the following functions: statistically analyze each gain term involved in the audio link and perform a preset sorting operation on all gain terms to obtain a real-time priority ranking of the gain terms; construct an anti-crack control architecture based on the gain term priority ranking, so that in the anti-crack control architecture, each gain term is relative to... The corresponding dynamic adjustment modules are connected in series according to the priority of the gain terms. In response to the user's adjustment of at least one gain term and the input of any non-distorted signal, the total signal gain of the non-distorted signal after passing through each dynamic adjustment module is judged sequentially until the total signal gain of the non-distorted signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition. The corresponding dynamic adjustment module is marked as the distortion adjustment module, and the sub-signal gain corresponding to the distortion adjustment module, each dynamic adjustment module through which the non-distorted signal passes before the distortion adjustment module, and each dynamic adjustment module connected in series after the distortion adjustment module is determined. Based on the non-distorted signal and all sub-signal gains, the gain audio signal is output.
[0092] This embodiment provides a computer-readable storage medium storing a computer program. When executed by a processor, the program implements the audio anti-distortion control method provided in all embodiments of this application: it statistically analyzes each gain term involved in the audio link and performs a preset sorting operation on all gain terms to obtain a real-time priority sort of the gain terms; it constructs an anti-distortion control architecture based on the gain term priority sort, so that the dynamic adjustment modules corresponding to each gain term in the anti-distortion control architecture are connected in series sequentially according to the gain term priority sort; in response to the input of any non-distortion signal after the user adjusts at least one gain term, it sequentially judges the total signal gain of the non-distortion signal after passing through each dynamic adjustment module until the total signal gain of the non-distortion signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition, marks the corresponding dynamic adjustment module as a distortion adjustment module, and determines the sub-signal gain corresponding to the distortion adjustment module, each dynamic adjustment module through which the non-distortion signal passes before the distortion adjustment module, and each dynamic adjustment module connected in series after the distortion adjustment module; based on the non-distortion signal and all sub-signal gains, it outputs a gain audio signal.
[0093] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0094] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0095] The program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.
[0096] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages—such as Java, Smalltalk, and C++—as well as conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions 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 anti-distortion control method, characterized in that, At least including: Each gain term involved in the audio link is statistically analyzed, and a preset sorting operation is performed on all the gain terms to obtain the gain term priority sort in real time; An anti-clipping control architecture is constructed based on the priority order of the gain terms, such that the dynamic adjustment modules corresponding to each gain term in the anti-clipping control architecture are connected in series sequentially according to the priority order of the gain terms. In response to the user's adjustment of at least one of the gain terms and the input of any non-distorted signal, the total signal gain of the non-distorted signal after passing through each of the dynamic adjustment modules is determined sequentially until the total signal gain of the non-distorted signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition. The corresponding dynamic adjustment module is marked as a distortion adjustment module, and the sub-signal gain corresponding to the distortion adjustment module, each dynamic adjustment module through which the non-distorted signal passes before the distortion adjustment module, and each dynamic adjustment module connected in series after the distortion adjustment module is determined. Based on the non-distorted signal and the gain of all the sub-signals, an output gain audio signal is generated.
2. The audio anti-distortion control method according to claim 1, characterized in that, The statistical audio link involves each gain term, and a preset sorting operation is performed on all gain terms to obtain the gain term priority sort in real time, specifically including at least: Statistically analyze each of the gain terms involved in the audio link and determine the initial priority score for each of the gain terms; Obtain the audio adjustment function corresponding to each gain term, and at least determine the number of times each audio adjustment function is used by the user, the frequency of user use, the function usage time, and the usage interval time. The usage count score, usage frequency score, and time decay weight of each gain item are determined based on the number of times the user uses the product, the user usage frequency, the function usage time, and the usage interval. The final priority score of each gain item is calculated based on at least the initial priority score, the number of times the user uses the item, the usage frequency score, the usage frequency score, and the time decay weight. The priority ranking of the gain items is obtained in real time by sorting the final scores of all the gain items.
3. The audio anti-distortion control method according to claim 1, characterized in that, Each of the aforementioned dynamic adjustment modules is equipped with a gain adjustment range.
4. The audio anti-distortion control method according to claim 3, characterized in that, The sub-signal gain does not exceed the gain adjustment range.
5. An audio anti-distortion control device, characterized in that, Used to perform the audio anti-distortion control method according to any one of claims 1-4; The audio anti-distortion control device includes at least: The gain item sorting module is used to count each gain item involved in the audio link and perform a preset sorting operation on all the gain items to obtain the gain item priority sorting in real time. An architecture construction module is used to construct an anti-clipping control architecture based on the priority order of the gain terms, so that the dynamic adjustment modules corresponding to each gain term in the anti-clipping control architecture are connected in series according to the priority order of the gain terms. A gain determination module is used to respond to the input of any non-distorted signal after the user adjusts at least one of the gain terms, sequentially determine the total signal gain of the non-distorted signal after passing through each of the dynamic adjustment modules, until the total signal gain of the non-distorted signal after passing through a certain dynamic adjustment module meets the preset anti-distortion condition, mark the corresponding dynamic adjustment module as a distortion adjustment module, and determine the sub-signal gain corresponding to the distortion adjustment module, each of the dynamic adjustment modules through which the non-distorted signal passes before the distortion adjustment module, and each of the dynamic adjustment modules connected in series after the distortion adjustment module; The signal output module is used to output a gain audio signal based on the non-distorted signal and the gain of all the sub-signals.
6. The audio anti-distortion control device according to claim 5, characterized in that, The gain term sorting module is specifically used for at least: Statistically analyze each of the gain terms involved in the audio link and determine the initial priority score for each of the gain terms; Obtain the audio adjustment function corresponding to each gain term, and at least determine the number of times each audio adjustment function is used by the user, the frequency of user use, the function usage time, and the usage interval time. The usage count score, usage frequency score, and time decay weight of each gain item are determined based on the number of times the user uses the product, the user usage frequency, the function usage time, and the usage interval. The final priority score of each gain item is calculated based on at least the initial priority score, the number of times the user uses the item, the usage frequency score, the usage frequency score, and the time decay weight. The priority ranking of the gain items is obtained in real time by sorting the final scores of all the gain items.
7. The audio anti-distortion control device according to claim 5, characterized in that, Each of the aforementioned dynamic adjustment modules is equipped with a gain adjustment range.
8. A vehicle-mounted audio system, characterized in that, It integrates at least the audio anti-distortion control device as described in any one of claims 5-7.
9. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the audio anti-distortion control method according to any one of claims 1-4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the audio anti-distortion control method according to any one of claims 1-4.