CN113783571A - Signal intensity automatic adjusting method, storage medium and chip - Google Patents
Signal intensity automatic adjusting method, storage medium and chip Download PDFInfo
- Publication number
- CN113783571A CN113783571A CN202110982133.3A CN202110982133A CN113783571A CN 113783571 A CN113783571 A CN 113783571A CN 202110982133 A CN202110982133 A CN 202110982133A CN 113783571 A CN113783571 A CN 113783571A
- Authority
- CN
- China
- Prior art keywords
- compression
- channel
- amplification
- boundary value
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 230000006835 compression Effects 0.000 claims description 140
- 238000007906 compression Methods 0.000 claims description 140
- 230000003321 amplification Effects 0.000 claims description 110
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 110
- 230000000670 limiting effect Effects 0.000 claims description 35
- 238000005070 sampling Methods 0.000 claims description 6
- 239000000126 substance Substances 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 8
- 238000012360 testing method Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 15
- 230000008569 process Effects 0.000 description 10
- 238000009499 grossing Methods 0.000 description 9
- 102100022933 ATM interactor Human genes 0.000 description 8
- 101000902754 Homo sapiens ATM interactor Proteins 0.000 description 8
- 102100039600 Cytoplasmic tRNA 2-thiolation protein 1 Human genes 0.000 description 6
- 101000746181 Homo sapiens Cytoplasmic tRNA 2-thiolation protein 1 Proteins 0.000 description 6
- 102100025508 Cytoplasmic tRNA 2-thiolation protein 2 Human genes 0.000 description 5
- 101000856509 Homo sapiens Cytoplasmic tRNA 2-thiolation protein 2 Proteins 0.000 description 5
- 230000003111 delayed effect Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000002238 attenuated effect Effects 0.000 description 2
- 238000009795 derivation Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000010355 oscillation Effects 0.000 description 2
- -1 ATMAX ] Proteins 0.000 description 1
- 102100023153 Sodium- and chloride-dependent creatine transporter 1 Human genes 0.000 description 1
- 101710162246 Sodium- and chloride-dependent creatine transporter 1 Proteins 0.000 description 1
- 102100021543 Solute carrier family 22 member 16 Human genes 0.000 description 1
- 101710102937 Solute carrier family 22 member 16 Proteins 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03M—CODING; DECODING; CODE CONVERSION IN GENERAL
- H03M1/00—Analogue/digital conversion; Digital/analogue conversion
- H03M1/12—Analogue/digital converters
- H03M1/124—Sampling or signal conditioning arrangements specially adapted for A/D converters
- H03M1/1245—Details of sampling arrangements or methods
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03G—CONTROL OF AMPLIFICATION
- H03G3/00—Gain control in amplifiers or frequency changers
- H03G3/20—Automatic control
- H03G3/30—Automatic control in amplifiers having semiconductor devices
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Control Of Amplification And Gain Control (AREA)
- Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
Abstract
The invention relates to the technical field of signal processing, in particular to a signal intensity automatic adjusting method, a storage medium and a chip. The signal intensity automatic adjusting method comprises the following steps: determining a peak intensity of a current input signal; selecting a target gain adjustment channel according to the peak intensity; calculating a gain control coefficient of a target gain adjustment channel; and adjusting the signal strength of the current input signal according to the gain control coefficient. According to the embodiment, the target gain adjustment channel can be adaptively selected to adjust the signal strength of the current input signal according to the peak intensity of the current input signal, so that the requirements of the current input signal with different signal strengths on gain adjustment can be met and compatible, and the precision and the reliability of detecting the input signal can be improved.
Description
Technical Field
The invention relates to the technical field of signal processing, in particular to a signal intensity automatic adjusting method, a storage medium and a chip.
Background
Because the number of data bits of an Analog Digital Converter (ADC) is limited, if the power of the signal acquired by the ADC is too high, the signal acquired by the ADC exceeds the conversion range of the Digital-to-Analog Converter, which may cause amplitude limitation of the sampled signal, and if the power of the signal acquired by the ADC is too low, the Digital-to-Analog Converter may not accurately convert the signal acquired by the ADC. The prior art adopts a single gain adjustment channel to adjust the gain of an ADC acquisition signal, but cannot meet the gain adjustment requirement required by the ADC acquisition signal with different signal intensities.
Disclosure of Invention
An object of the embodiments of the present invention is to provide an automatic signal strength adjusting method, a storage medium, and a chip, which are used to solve the defects in the prior art.
In a first aspect, an embodiment of the present invention provides an automatic signal strength adjustment method, including:
determining a peak intensity of a current input signal;
selecting a target gain adjustment channel according to the peak intensity;
calculating a gain control coefficient of the target gain adjustment channel;
and adjusting the signal intensity of the current input signal according to the gain control coefficient.
In a second aspect, an embodiment of the present invention provides a storage medium storing computer-executable instructions for causing an electronic device to execute the above-mentioned signal strength automatic adjustment method.
In a third aspect, an embodiment of the present invention provides a chip, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the signal strength autotuning method described above.
In the method for automatically adjusting signal strength provided by the embodiment of the present invention, the peak strength of the current input signal is determined, the target gain adjustment channel is selected according to the peak strength, the gain control coefficient of the target gain adjustment channel is calculated, and the signal strength of the current input signal is adjusted according to the gain control coefficient.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
Fig. 1 is a schematic structural diagram of an automatic signal strength adjusting system according to an embodiment of the present invention;
fig. 2 is a static level curve diagram of an output signal obtained after an input signal is subjected to an automatic signal strength adjustment method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a method for automatically adjusting signal strength according to an embodiment of the present invention;
FIG. 4a is a schematic flow chart of S31 shown in FIG. 3;
FIG. 4b is a schematic view of the process of S311 shown in FIG. 4 a;
FIG. 5a is a schematic flow chart of S32 shown in FIG. 3;
FIG. 5b is a schematic view of the first flow chart of S33 shown in FIG. 3;
FIG. 5c is a schematic view of a first process of S331 shown in FIG. 5 b;
FIG. 5d is a second flowchart of S331 shown in FIG. 5 b;
FIG. 6a is a schematic view of a second flow chart of S33 shown in FIG. 3;
FIG. 6b is a schematic flow chart of S333 shown in FIG. 6 a;
FIG. 6c is a schematic view of the process of S3332 shown in FIG. 6 b;
FIG. 6d is a schematic view of the flow chart of S62 shown in FIG. 6 c;
FIG. 7a is a schematic view of a third process of S33 shown in FIG. 3;
FIG. 7b is a schematic flow chart of S335 shown in FIG. 7 a;
FIG. 7c is a schematic flow chart of S34 shown in FIG. 3;
FIG. 8a is a test chart of the embodiment of the present invention without using the signal strength automatic adjustment method; FIG. 8b is a test chart of an embodiment of the present invention when an automatic signal strength adjustment method is adopted;
FIG. 8c is a schematic illustration of the signal regions of FIG. 8a using white boxes to select signal strengths greater than-10 dB;
FIG. 8d is a schematic diagram of the signal region corresponding to FIG. 8c as selected using the white frame in FIG. 8 b;
FIG. 8e is a schematic illustration of the signal regions in FIG. 8a using a white box to select signal strengths within [ -15dB, -10dB ];
FIG. 8f is a schematic diagram of the signal region corresponding to FIG. 8e as selected using the white frame in FIG. 8 b;
FIG. 8g is a schematic illustration of the signal regions in FIG. 8a using a white box to select signal strengths within [ -35dB, -20dB ];
FIG. 8h is a schematic diagram of the signal region corresponding to FIG. 8g as selected using the white frame in FIG. 8 b;
FIG. 9a is a test chart of the present invention without the signal strength automatic adjustment method;
FIG. 9b is a test chart of an embodiment of the present invention when an automatic signal strength adjustment method is adopted;
FIG. 10a is a test chart of the present invention without the signal strength automatic adjustment method;
FIG. 10b is a test chart of an embodiment of the present invention when an automatic signal strength adjustment method is adopted;
fig. 11 is a schematic circuit diagram of a chip according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if not conflicted, the various features of the embodiments of the invention may be combined with each other within the scope of protection of the invention. Additionally, while functional block divisions are performed in apparatus schematics, with logical sequences shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions in apparatus or flowcharts. The terms "first", "second", "third", and the like used in the present invention do not limit data and execution order, but distinguish the same items or similar items having substantially the same function and action.
The embodiment of the invention provides a system for automatically adjusting signal intensity. Referring to fig. 1, the signal strength automatic adjusting system 100 includes a signal strength converting module 11, a channel selecting module 12, a limiting gain adjusting channel 13, a compression gain adjusting channel 14, an amplification gain adjusting channel 15, a delay module 16, and a multiplying module 17.
The signal strength conversion module 11 is configured to perform strength conversion on the input signal to obtain a signal strength, where a unit of the signal strength is dB.
The channel selection module 12 is configured to select a target gain adjustment channel according to the signal strength, where the target gain adjustment channel may be any one of a clipping gain adjustment channel 13, a compression gain adjustment channel 14, and an amplification gain adjustment channel 15.
The clipping gain adjustment channel 13 is used to calculate clipping control coefficients for adjusting the gain of the input signal with a signal strength above a minimum input clipping boundary value. The slice channel threshold range of the slice gain adjustment channel 13 is [ LT1, LT2], LT1 is the minimum input slice boundary value, and LT2 is the maximum input slice boundary value.
When the signal intensity is in the threshold range of the clipping channel [ LT1, LT2], the channel selection module 12 selects the clipping gain adjustment channel 13 to perform clipping processing on the input signal, the clipping gain adjustment channel 13 generates a clipping control coefficient according to the input signal, and then the system can limit the input signal whose signal intensity is higher than the minimum input clipping boundary value LT1 to the output clipping boundary value LTU according to the clipping control coefficient.
Referring to FIG. 2, the minimum input clipping boundary value LT1 is set to-10 dB, the maximum input clipping boundary value LT2 is set to 0dB, and the output clipping boundary value LTU is set to-10 dB.
The signal strength of the part of the input signal is-8 dB, since-8 dB is higher than-10 dB, the signal strength of the part of the input signal can be limited to-10 dB, and since the gain corresponding to the signal strength is smoothed by using the specified on-off time and off-off time, the signal strength of the limited part of the input signal is slightly higher than the minimum input limit boundary LT1 in practical applications, for example, the signal strength of the limited part of the input signal is limited to-8 dB.
The compression gain adjustment channel 14 is used to calculate a compression control coefficient that is used to adjust the gain of the input signal with a signal strength within a compression channel threshold range. The compression channel threshold range of the compression gain adjustment channel 14 is [ CT1, CT2], CT1 is the minimum input compression boundary value, and CT2 is the maximum input compression boundary value.
When the signal strength is within the compression channel threshold range [ CT1, CT2], the channel selection module 12 selects the compression gain adjustment channel 14 to perform compression processing on the input signal, the compression gain adjustment channel 14 generates a compression control coefficient according to the input signal, and then the system can compress the signal strength of the input signal to the output signal strength range [ CTU1, CTU2] according to the compression control coefficient, where CTU1 is the minimum output compression boundary value and CTU2 is the maximum output compression boundary value. The compression gain adjustment channel 14 increases the loudness of the audio signal compared to the clipping gain adjustment channel 13.
With continued reference to FIG. 2, the minimum input compression boundary CT1 is-15 dB, the maximum input compression boundary CT2 is-10 dB, the minimum output compression boundary CTU1 is-13 dB, and the maximum output compression boundary CTU2 is-10 dB. The compression channel threshold range [ CT1, CT2] is [ -15, -10], and the compression gain adjustment channel 14 can compress the input signal with the signal strength within [ -15, -10], for example, the signal strength of the input signal can be compressed to the signal strength range of [ -13, -10 ].
The amplification gain adjustment channel 15 is used to calculate an amplification control coefficient and the compression control coefficient is used to adjust the gain of the input signal with a signal strength within the amplification channel threshold range. The amplification channel threshold range of the amplification gain adjustment channel 15 is [ ATMIN, ATMAX ], ATMIN is the minimum input amplification boundary value, and ATMAX is the maximum input amplification boundary value.
When the signal intensity is within the amplification channel threshold range [ ATMIN, ATMAX ], the channel selection module 12 selects the amplification gain adjustment channel 15 to amplify the input signal, the amplification gain adjustment channel 15 generates an amplification control coefficient according to the input signal, and subsequently, the system can amplify the signal intensity of the input signal to the signal intensity range [ ATU1, ATU2], ATU1 is a minimum output amplification boundary value, and ATU2 is a maximum output amplification boundary value according to the amplification control coefficient.
With continued reference to FIG. 2, the minimum ATMIN is-35 dB, the maximum ATMAX is-20 dB, the minimum ATU1 is-20 dB, and the maximum ATU2 is-13 dB.
The amplification gain adjustment channel 15 may perform amplification processing on the input signal having a signal strength within [ -35, -20], for example, may amplify the signal strength of the input signal to a signal strength range of [ -20, -13 ].
The delay module 16 is configured to perform a delay process on the input signal to obtain a delayed input signal.
The multiplication module 17 is configured to multiply the gain control coefficient of the corresponding gain adjustment channel with the delayed input signal to obtain an output signal, where it is understood that the output signal is the input signal with the adjusted signal strength.
The embodiment of the invention provides a method for automatically adjusting signal intensity. Referring to fig. 3, the signal strength automatic adjusting method S300 includes:
s31, determining the peak intensity of the current input signal;
by way of example and not limitation, the current input signal is the currently acquired input signal, e.g., at time n, the current input signal is x [ n ]. At time n +1, the current input signal is x [ n +1 ]. The peak intensity is the signal intensity of the current input signal at the maximum amplitude.
S32, selecting a target gain adjusting channel according to the peak intensity;
by way of example and not limitation, the gain adjustment channel is a channel for calculating a gain control coefficient, wherein the gain adjustment channel includes a clipping gain adjustment channel, a compression gain adjustment channel, or an amplification gain adjustment channel, and the target gain adjustment channel is a gain adjustment channel determined by the peak intensity, wherein the target gain adjustment channel may be a respective one of the clipping gain adjustment channel, the compression gain adjustment channel, or the amplification gain adjustment channel.
S33, calculating a gain control coefficient of the target gain adjustment channel;
by way of example, but not limitation, the gain control coefficient is a gain coefficient for adjusting the signal strength of the input signal.
And S34, adjusting the signal strength of the current input signal according to the gain control coefficient.
Therefore, the present embodiment can adaptively select the target gain adjustment channel to adjust the signal strength of the current input signal according to the peak strength of the current input signal, so as to meet and be compatible with the requirements of the current input signal with different signal strengths for gain adjustment, so as to improve the accuracy and reliability of detecting the input signal.
In some embodiments, when determining the peak strength of the current input signal, referring to fig. 4a, S31 includes:
s311, determining the peak value of the current frame of the current input signal;
s312, calculating a logarithm X of the peak value of the frame to obtain the peak value intensity, wherein the logarithm X is a logarithm taking N as a base number and the peak value as a true number, and N is a positive integer greater than 1.
As an indicationBy way of example and not limitation, the frame peak is the peak of the current input signal, and in some embodiments, the logarithm X is logNxpeak(n),xpeakThe (N) is the peak value of the current frame at the nth time, and N is usually 10.
In some embodiments, when determining the peak value of the current input signal, referring to fig. 4b, S311 includes:
s3111, obtaining a previous frame peak value, where the previous frame peak value is a peak value of an input signal at a previous time relative to a current input signal;
s3112, judging whether the absolute value of the current input signal is greater than or equal to the peak value of the previous frame;
s3113, if yes, determining a start-control time coefficient, and calculating a peak value of the current input signal according to the start-control time coefficient, a previous frame peak value and an absolute value of the current input signal;
s3114, if not, determining the release time coefficient, and calculating the peak value of the current input signal according to the release time coefficient, the previous frame peak value and the absolute value of the current input signal.
For example, x (n) is the current input signal, xpeak(n-1) is the peak value of the previous frame, and the chip judges whether x (n) is greater than or equal to xpeak(n-1) if | x (n) | is greater than or equal to xpeak(n-1), calculating the peak value of the current input signal according to the start time coefficient, the peak value of the previous frame and the absolute value of the current input signal, for example, calculating the peak value of the current input signal according to the equation one:
xpeak(n)=(1-at)·xpeak(n-1) + at · | x (n) | formula
Wherein at is the start-control time coefficient.
The first expression adopted by the embodiment can utilize the start-control time coefficient to smooth the peak value of the current input signal in the start-control process, and is beneficial to improving the quality of the output signal.
If | x (n) | is less than xpeak(n-1), calculating the peak value of the current input signal according to the release time coefficient, the peak value of the previous frame and the absolute value of the current input signal, for example, calculating the peak value of the current input signal according to equation two:
xpeak(n)=(1-rt)·xpeak(n-1) formula II
Where rt is the release time coefficient.
The second expression adopted by the embodiment can smooth the peak value of the current input signal in the release process by utilizing the release time coefficient, and is beneficial to improving the quality of the output signal.
In some embodiments, when determining the attack time coefficient, the chip determines the attack time used when the peak intensity is greater than the minimum input clipping boundary value and the third percentage value of the second target signal intensity rises to the fourth percentage value, and calculates the attack time coefficient according to the attack time, the third percentage value, the fourth percentage value, and the sampling frequency.
For example, the step response of the continuous-time system is set as:
g(t)=1-e-t/τformula III
Where τ is the time constant of the step response.
The step response is sampled (step response is constant), and the obtained discrete-time step response is as follows:
wherein, TsIs the sampling time.
From the Z transformation, the equation five can be obtained:
time to start oscillation ta=tq4-tp3,tq4Q being the second target signal strength4% of time, tp3Is p of the second target signal strength3% of time, p3% is the third percentage value, q4% is a fourth percentage value, and the second target signal strength may be user-defined.
From the start-up time taAnd the time constant τ, there may be:
thus, pole z∞The calculation formula of (2) is as follows:
according to the pole formula, there can be:
wherein f issTo sample frequency, fs=1/Ts。
In some embodiments, the attack time taCan be customized by a user, for example, the oscillation starting time ta=8ms。
In some embodiments, p3% and q4% can be user-defined, e.g., p3% of 10%, q4% is 90%.
In some embodiments, when determining the release time coefficient, the chip determines the release time used when the peak intensity is less than the minimum input clipping boundary value and the fifth percentage value of the third target signal intensity falls to the sixth percentage value, and calculates the release time coefficient according to the release time, the fifth percentage value, the sixth percentage value, and the preset signal sampling time.
The derivation process of the release time coefficient is the same as the derivation process of the start-control time coefficient, which is not described herein, and the release time coefficient is not described in detailWherein the release time tr=tp6-tq5,tp6P is the third target signal strength6% of time, tq5Q for third target signal strength5% of time, q5% is the fifth percentage value, p6% is a sixth percentage value, and the third target signal strength may be user-defined.
In some embodiments, the release time trCan be customized by the user, e.g. release time tr=30ms。
In some embodiments, q is5% and p6% can be user-defined, e.g., p6% of 10%, q5% is 90%.
In some embodiments, when selecting the target gain adjustment channel according to the peak intensity, referring to fig. 5a, S32 includes:
s321, determining a target channel threshold range corresponding to the peak intensity;
and S322, determining a target gain adjusting channel according to the target channel threshold range.
By way of example and not limitation, channel threshold ranges are used to determine gain adjustment channels, wherein different channel threshold ranges may be mapped to respective gain adjustment channels, e.g., a channel threshold range including a clipping channel threshold range, a compression channel threshold range, or an amplification channel threshold range, the clipping channel threshold range mapped to a clipping gain adjustment channel, the compression channel threshold range mapped to a compression gain adjustment channel, and the amplification channel threshold range mapped to an amplification gain adjustment channel.
Different gain adjustment channels can select channel threshold ranges with different value ranges, as described above, the clipping channel threshold range is [ LT1, LT2], the compression channel threshold range is [ CT1, CT2], and the amplification channel threshold range is [ ATMIN, ATMAX ].
The target gain adjustment channel is a gain adjustment channel determined by the peak intensity, and in some embodiments, if the peak intensity falls within the threshold range of the clipping channel, the clipping gain adjustment channel corresponding to the threshold range of the clipping channel is determined to be the target gain adjustment channel. And if the peak intensity is within the threshold range of the compression channel, determining the compression gain adjustment channel corresponding to the threshold range of the compression channel as the target gain adjustment channel. And if the peak intensity falls within the threshold range of the amplification channel, determining the amplification gain adjustment channel corresponding to the threshold range of the amplification channel as a target gain adjustment channel.
In some embodiments, the gain control coefficients comprise clipping control coefficients, and if the target gain adjustment channel is a clipping gain adjustment channel: referring to fig. 5b, S33 includes:
s331, calculating the amplitude limiting increment strength of the amplitude limiting gain adjusting channel;
and S332, generating a limiting control coefficient by taking an integer N as a base number and taking the limiting increment strength as an index, wherein N is a positive integer greater than 1.
As described above, the slice control coefficient is used to adjust the gain of the input signal having a signal strength higher than the minimum input slice boundary value, and the slice increment strength is the difference between the signal strength of the input signal and the output slice boundary value when the signal strength of the input signal is higher than the minimum input slice boundary value.
In some embodiments, the clipping control coefficient fL(n)=NαWhere N is a base number, α is the clip delta strength, fLAnd (n) is the clipping control coefficient at the nth time. Typically, N is 10.
Therefore, the present embodiment can limit the input signal having the signal strength higher than the minimum input clipping boundary value to the output clipping boundary value for output, so that the subsequent signal processing can be performed normally.
In some embodiments, the clipping channel threshold range includes a minimum input clipping boundary value and a maximum input clipping boundary value, referring to fig. 5c, S331 includes:
s3311, calculating the compression ratio of the amplitude limiting channel according to the minimum input amplitude limiting boundary value, the maximum input amplitude limiting boundary value and the specified output amplitude limiting boundary value;
s3312, calculating the amplitude limiting slope according to the compression ratio of the amplitude limiting channel;
s3313, calculating an amplitude limiting difference value between the peak intensity and the minimum input amplitude limiting boundary value;
and S3314, calculating the amplitude limiting increment strength according to the amplitude limiting difference value and the amplitude limiting slope.
In S3311, the clipping channel compression ratio is:since the limiter gain adjustment channel can limit the input signal having the signal strength higher than the minimum input limiter boundary value to the output limiter boundary value for output, that is, when the signal strength of the input signal is the minimum input limiter boundary value, the signal strength of the output signal is the output limiter boundary value, and when the signal strength of the input signal is the maximum input limiter boundary value, the signal strength of the output signal is also the output limiter boundary value, when x is the maximum input limiter boundary value, the output signal is limited to the output limiter boundary valueL1When LT1, yL1LTU. When x isL2When LT2, yL2LTU, LT1 is the minimum input slice boundary value, LT2 is the maximum input slice boundary value, LTU is the specified output slice boundary value, R1The channel compression ratio is clipped.
In S3312, since the signal strengths of the output signals are all limited to the output slice boundary value when the signal strength is greater than the minimum input slice boundary value, the slice slopeAs shown in fig. 2, LT2 ═ 0dB and LT1 ═ 10 dB.
At S3313, the clipping difference Δ L between the peak intensity and the minimum input clipping boundary value is X-LT1, and the peak intensity X is logNxpeak(n)。
In S3314, the negative slice slope LS is taken, and the slice increment strength is calculated according to the following equation, where the slice increment strength is LS X (LT1-X), and therefore, the slice control coefficient fL(n)=N^(LS×(LT1-X))。
With the above-described embodiments, the clipping gain adjustment channel can quickly limit the input signal having a signal strength higher than the minimum input clipping boundary value to the output clipping boundary value for output.
In some embodiments, the minimum input clipping boundary value is equal to the output clipping boundary value, that is, when the signal strength of the input signal is higher than the minimum input clipping boundary value, the method can limit the signal strength of the portion of the input signal at the minimum input clipping boundary value, which is beneficial to improving the consistency, naturalness and smoothness of the signal strength of the output signal as much as possible.
Considering that some systems may have steady-state errors, in order to improve the clipping accuracy and reliability, in some embodiments, referring to fig. 5d, S331 further includes:
s3315, obtaining the steady state intensity of the amplitude limiting gain adjusting channel in a steady state when zero input exists;
and S3316, compensating the amplitude limiting increment strength according to the steady state strength.
At S3315, the chip evaluates the static curve given a steady state input of 0dB and determines a steady state intensity from the static curve, where the steady state intensity is defined as L _ GAIN ═ ysc|xdB0, in some embodiments, L _ GAIN-0.8 dB.
In S3316, since the compensated slice increment strength is LS × (LT1-X) + L _ GAIN, the compensated slice control coefficient f is set toL(n)=N^(LS×(LT1-X)+L_GAIN)。
In this embodiment, by compensating the clip increment strength, the error can be reduced as much as possible, so that the input signal having a signal strength higher than the minimum input clip boundary value can be accurately and reliably limited to the output clip boundary value and output.
In some embodiments, the gain control coefficients include compression control coefficients, and if the target gain adjustment channel is a compression gain adjustment channel, referring to fig. 6a, S33 includes:
s333, calculating the compression increment strength of the compression gain adjusting channel;
and S334, generating a compression control coefficient by taking an integer N as a base number and the compression increment strength as an index, wherein N is a positive integer greater than 1.
As mentioned above, the compression control coefficient is used to adjust the gain of the input signal with the signal strength within the compression channel threshold range, and the compression increment strength is a parameter that needs to perform compression processing on the signal strength of the input signal when the signal strength of the input signal is higher than the minimum input compression boundary value.
In some embodiments, the compression control coefficient fC(n)=NβWhere N is the base number, β is the incremental compression strength, fC(n) is a compression control coefficient at the nth time. Typically, N is 10.
Therefore, the present embodiment can attenuate or attenuate an input signal having a large signal strength and can increase the loudness of the input signal.
In some embodiments, the compression channel threshold range includes a minimum input compression boundary value and a maximum input compression boundary value, referring to fig. 6b, S333 includes:
s3331, calculating a compression channel compression ratio and a compression slope thereof according to the minimum input compression boundary value, the maximum input compression boundary value, the specified minimum output compression boundary value and the specified maximum output compression boundary value;
s3332, determining the effective signal intensity of the current input signal, wherein the effective signal intensity is the intensity corresponding to the current effective signal power of the current input signal;
s3333, calculating a compression difference value between the effective signal intensity and the minimum input compression boundary value;
and S3334, calculating the compression increment strength according to the compression difference and the compression slope.
In S3331, the compression channel compression ratio is:in some embodiments, when xC1When CT1, yC1CTU1 when xC2When CT2, yC2CTU2, CT1, CT2, CTU1, and CTU2, respectively, with minimum input compression boundary value, maximum input compression boundary value, and maximum output compression boundary value, respectively2To compress the channel compression ratio.
in S3332, effective signal strength Effective signal power of input signal x (n) at the nth time, wherein xRMS(n) is the root mean square of the input signal x (n) at time n, μ is a predetermined factor, and in some embodiments, μ is 0.5.
In S3333, the compression difference is η -CT 1.
In S3334, the negative compression slope is taken, and the compression increment strength is calculated according to the following equation, where CS × (CT1- η), so that the slice control coefficient f is setC(n)=N^(CS×(CT1-η))。
In some embodiments, the maximum output compression boundary value is equal to the output clipping boundary value, and the minimum output compression boundary value is greater than the minimum input compression boundary value, so that this embodiment can ensure that compression can be performed, and also can ensure that the signal intensity between a compressed output signal and an adjacent output signal is not too abrupt, so that after two adjacent output signals are clipped or compressed, smoothness is still good, and the output signal is not too abrupt and is more natural.
In some embodiments, the maximum input compression boundary value is equal to the minimum input clipping boundary value, and thus, the compression channel threshold range is continuous with the clipping channel threshold range, which enables efficient and fast clipping or compression.
In some embodiments, referring to fig. 6c, S3332 includes:
s61, determining the effective value of the current input signal;
s62, calculating the current effective signal power of the current input signal according to the effective value;
and S63, calculating the effective signal strength according to the effective signal power.
In S61, according to the formula:calculating the effective value x of the current input signalRMS(n)。
In some embodiments, referring to fig. 6d, S62 includes:
s621, obtaining a smooth recursion factor and the effective signal power of a previous frame of an input signal at the previous moment;
and S622, calculating the current effective signal power of the current input signal according to the signal power of the current input signal, the effective signal power of the previous frame and the smooth recursion factor.
In S621, when the smooth recursion factor is obtained, the chip determines the compression time used when the peak intensity is within the compression channel threshold range and the first percentage value of the first target signal intensity is compressed to the second percentage value, and calculates the smooth recursion factor according to the compression time, the first percentage value, the second percentage value, and the sampling time.
Smooth recursion factorWherein the compression time Q being the first target signal strength1% of the time it has been in,is p of the first target signal strength2% of time, q1% is the first percentage value, p2% is a second percentage value, the first target signal strength may be user-defined.
In some embodiments, the time t is compressedMCan be customized by the user, e.g. the compression time tM=10ms。
In some embodiments, p2% and q1% can be user-defined, e.g., p2% of 10%, q1% is 90%.
In S622, the chip follows the formula:calculating the current effective signal power of the current input signal, wherein tav is a smooth recursion factor,for the effective signal power of the previous frame, x2(n) is the signal power of the present input signal,is the current effective signal power.
In some embodiments, the gain control coefficients comprise amplification control coefficients, and if the target gain adjustment channel is an amplification channel threshold range: referring to fig. 7a, S33 includes:
s335, calculating the amplification increment strength of the amplification gain adjusting channel;
and S336, generating an amplification control coefficient by taking an integer N as a base number and the amplification increment strength as an exponent, wherein N is a positive integer greater than 1.
As mentioned above, the amplification control coefficient is used to adjust the gain of the input signal with the signal intensity within the amplification channel threshold range, and the amplification increment intensity is a parameter that needs to amplify the signal intensity of the input signal when the signal intensity of the input signal is within the amplification channel threshold range.
In some embodiments, the amplification control factor fA(n)=NγWhere N is the base number, γ is the amplification increment strength, fA(n) is an amplification control coefficient at the nth time. Typically, N is 10.
Therefore, the embodiment can amplify the input signal with the signal intensity lower than the threshold range of the amplification channel to the specified energy interval, and avoid the problem of accuracy loss caused by undersize input signal.
In some embodiments, the amplification channel threshold range includes a minimum input amplification boundary value and a maximum input amplification boundary value, referring to fig. 7b, S335 includes:
s3351, calculating the compression ratio and the amplification slope of the amplification channel according to the minimum input amplification boundary value, the maximum input amplification boundary value, the specified minimum output amplification boundary value and the specified maximum output amplification boundary value;
s3352, determining the effective signal intensity of the current input signal, wherein the effective signal intensity is the intensity corresponding to the signal power of the current input signal;
s3353, calculating an amplification difference value between the effective signal intensity and the maximum input amplification boundary value;
and S3354, calculating amplification increment strength according to the amplification difference and the amplification slope.
In S3351, the amplification channel compression ratio is:when x isA1When ATMIN, yA1ATU 1. When x isA2When ATMAX, yA2ATMIN is the minimum input amplification boundary value, ATMAX is the maximum input amplification boundary value, ATU1 is the specified minimum output amplification boundary value, ATU2 is the specified maximum output amplification boundary value, R23To enlarge the channel compression ratio.
In S3352, the effective signal strength may be determined by the above method, such as: effective signal strength
In S3353, the difference is amplified by η -ATMAX.
In S3354, the amplification control coefficient f is calculated by taking the negative amplification slope and calculating the amplification increment strength according to the following equationASince (N) ═ N ^ (AS × (ATMAX- η)), this embodiment can amplify and output an input signal of small signal intensity.
In some embodiments, the maximum amplification output boundary value is equal to the minimum output compression boundary value, which is equal to the maximum amplification input boundary value, i.e., when x isA1When ATMIN, yA1ATMAX. When x isA2When ATMAX, yA2CTU1, amplification channel compression ratio of
Because the maximum amplification output boundary value is equal to the minimum output compression boundary value, and the minimum amplification output boundary value is equal to the maximum amplification input boundary value, the embodiment can ensure that amplification can be performed, and also can ensure that the signal intensity between the amplified output signal and the adjacent output signal is not too abrupt, so that the smoothness is still good after the adjacent two output signals are subjected to amplitude limiting or compression or amplification, the abrupt change probability of the signals is greatly reduced, and the output signals have better connectivity and can be more natural.
Generally speaking, this embodiment not only can be compatible with amplitude limiting gain adjustment channel, compression gain adjustment channel and amplification gain adjustment channel simultaneously, and can also link up through the signal strength that produces output signal with amplitude limiting gain adjustment channel, compression gain adjustment channel and amplification gain adjustment channel for after adjacent input signal is through amplitude limiting or compression or amplification, the difference between the signal strength can not be too big, guarantees to have certain smoothness, makes output signal have more the nature.
In some embodiments, referring to fig. 7c, S34 includes:
s341, smoothing the gain control coefficient to obtain a smooth control coefficient;
and S342, adjusting the signal intensity of the current input signal according to the smooth control coefficient.
In some embodiments, when S341 is executed, the chip obtains a previous frame smoothing control coefficient of the input signal at a previous time, determines whether the gain control coefficient is smaller than the previous frame smoothing control coefficient, if not, calculates the smoothing control coefficient according to the previous frame smoothing control coefficient, the gain control coefficient and the start time coefficient, and if so, calculates the smoothing control coefficient according to the previous frame smoothing control coefficient, the gain control coefficient and the release time coefficient, for example, the chip may calculate the smoothing control coefficient according to the following formula:
f(n)is the gain control coefficient at the nth time, g(n-1)Is a previous frame smoothing control coefficient at the time of n-1, g(n)And the coefficient is the smooth control coefficient at the nth moment, at is the start control time coefficient, and rt is the release time coefficient.
In some embodiments, when S342 is executed, the chip performs a delay process on the current input signal to obtain a delayed input signal, and adjusts the signal strength of the delayed input signal according to the smooth control coefficient, so as to prevent the output signal from abruptly changing and becoming incoherent, for example, the chip may adjust the signal strength of the delayed input signal according to the following formula:
YdB[n]=XdB[n-D]×g[n]
it is understood that D may take values of 0, 1, 2, or 3, etc.
In summary, the signal strength automatic adjustment method provided herein is compatible with amplitude limiting, compression, and amplification operations at the same time, so that various application scenarios with different requirements on signal strength can be satisfied, and the signal acquisition accuracy can be improved.
The following describes in detail the effect of the method for automatically adjusting signal strength according to the above embodiments with reference to three sets of test data, where in the following diagrams, the abscissa is a sampling point and the ordinate is signal strength, and in different diagrams, the ordinate is signal strength of an input signal, or the ordinate is signal strength of an output signal obtained by processing an input signal according to the above embodiments, specifically as follows:
1. first set of test data:
fig. 8a is a test chart of the embodiment of the invention when the signal strength automatic adjustment method is not used, and fig. 8b is a test chart of the embodiment of the invention when the signal strength automatic adjustment method is used, that is, fig. 8a shows the complete input signal without clipping, compressing and amplifying, and it can be seen from fig. 8a that the signal strength of a part of the input signal is greater than-10 dB. Fig. 8b shows the output signal of the complete input signal after clipping, compression and amplification.
For explaining the technical effects of clipping, compressing and amplifying in detail, the following sections are respectively explained with reference to the accompanying drawings, and specifically as follows:
[ limiter effect ]
Fig. 8c is a schematic diagram of selecting signal regions with signal strength greater than-10 dB using white boxes in fig. 8a, i.e., the signal strength of some input signals in the selected signal regions are greater than-10 dB.
FIG. 8d is a schematic diagram of the signal region corresponding to FIG. 8c being selected using a white frame in FIG. 8 b. In fig. 8d, the signal strength of the input signal with signal strength greater than-10 dB is limited to-8 dB, which can be theoretically limited to-10 dB as mentioned above, but since the gain corresponding to the signal strength is smoothed by using the specified on-off time and off-off time, the signal strength of the limited input signal is slightly higher than the minimum input limit value of-10 dB in practical application.
[ COMPRESSION ]
FIG. 8e is a schematic diagram of the signal regions within [ -15dB, -10dB ] of signal strength selected in FIG. 8a using a white box.
FIG. 8f is a schematic diagram of the signal region corresponding to FIG. 8e as selected using the white frame in FIG. 8 b. In fig. 8f, the signal strength of the part of the input signal with signal strength within-15 dB, -10dB is attenuated.
[ AMPLIFICATION ] to
FIG. 8g is a schematic diagram of the signal regions within [ -35dB, -20dB ] of signal strength selected in FIG. 8a using a white box.
Fig. 8h is a schematic diagram of the signal region corresponding to fig. 8g being selected using a white frame on fig. 8 b. In FIG. 8h, the signal strength of the portion of the input signal having a signal strength within-35 dB and-20 dB is amplified to the range of-22 dB and-15 dB.
2. Second set of test data:
fig. 9a is a test chart of the embodiment of the invention when the signal strength automatic adjustment method is not used, and fig. 9b is a test chart of the embodiment of the invention when the signal strength automatic adjustment method is used, that is, fig. 9a shows the complete input signal without clipping, compressing and amplifying, and as can be seen from fig. 9a, the signal strength of the 3 rd input signal and the 5 th input signal from left to right is greater than-10 dB. The signal strength of the 2 nd input signal and the 4 th input signal is less than-20 dB, and the signal strength of the 6 th input signal is [ -15dB, -10dB ].
As can be seen from fig. 9b, the signal strength of the 3 rd input signal and the 5 th input signal is limited to around-8 dB. The signal strength of the 2 nd and 4 th input signals is amplified to around-15 dB and the signal strength of the 6 th input signal is attenuated.
3. Third set of test data:
fig. 10a is a test chart of the embodiment of the invention when the signal strength automatic adjustment method is not used, and fig. 10b is a test chart of the embodiment of the invention when the signal strength automatic adjustment method is used, that is, fig. 10a shows a complete input signal without clipping, compressing and amplifying, as can be seen from comparison between fig. 10a and fig. 10b, the signal strength of the 2 nd input signal and the 4 th input signal from left to right are limited and output, the signal strength of the 1 st input signal is amplified, and the signal strength of the 3 rd and 5 th input signals is weakened.
In summary, as can be seen from the above 3 sets of test data, the signal strength automatic adjustment method provided in this embodiment can effectively perform amplitude limiting or compression or amplification on an input signal, which is beneficial to improving the reliability and accuracy of the system.
It should be noted that, in the foregoing embodiments, a certain order does not necessarily exist between the foregoing steps, and those skilled in the art can understand, according to the description of the embodiments of the present invention, that in different embodiments, the foregoing steps may have different execution orders, that is, may be executed in parallel, may also be executed interchangeably, and the like.
Referring to fig. 11, fig. 11 is a schematic circuit structure diagram of a chip according to an embodiment of the present invention. As shown in fig. 11, chip 110 includes one or more processors 111 and memory 112. In fig. 11, one processor 111 is taken as an example.
The processor 111 and the memory 112 may be connected by a bus or other means, such as the bus connection in fig. 11.
The memory 112, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the signal strength automatic adjustment method in the embodiment of the present invention. The processor 111 implements the functions of the signal strength automatic adjustment method provided by the above-described method embodiments by executing nonvolatile software programs, instructions, and modules stored in the memory 112.
The memory 112 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 112 may optionally include memory located remotely from the processor 111, which may be connected to the processor 111 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The program instructions/modules are stored in the memory 112 and, when executed by the one or more processors 111, perform the signal strength auto-adjustment method of any of the method embodiments described above.
Embodiments of the present invention also provide a non-volatile computer storage medium storing computer-executable instructions, which are executed by one or more processors, such as the processor 111 in fig. 11, so that the one or more processors can execute the signal strength automatic adjustment method in any of the above method embodiments.
An embodiment of the present invention further provides a computer program product, which includes a computer program stored on a non-volatile computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a chip, the chip is caused to execute any one of the signal strength automatic adjustment methods.
The above-described embodiments of the apparatus or device are merely illustrative, wherein the unit modules described as separate parts may or may not be physically separate, and the parts displayed as module units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network module units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; within the idea of the invention, also technical features in the above embodiments or in different embodiments may be combined, steps may be implemented in any order, and there are many other variations of the different aspects of the invention as described above, which are not provided in detail for the sake of brevity; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (18)
1. An automatic signal strength adjustment method, comprising:
determining a peak intensity of a current input signal;
selecting a target gain adjustment channel according to the peak intensity;
calculating a gain control coefficient of the target gain adjustment channel;
and adjusting the signal intensity of the current input signal according to the gain control coefficient.
2. The method of claim 1, wherein selecting a target gain adjustment channel based on the peak intensity comprises:
determining a target channel threshold range corresponding to the peak intensity;
and determining a target gain adjusting channel according to the target channel threshold range.
3. The method of claim 2, wherein the channel threshold range comprises a clipping channel threshold range, a compression channel threshold range, or an amplification channel threshold range, and wherein determining the target gain adjustment channel based on the target channel threshold range comprises:
if the peak value intensity falls within the threshold range of the amplitude limiting channel, determining the amplitude limiting gain adjusting channel corresponding to the threshold range of the amplitude limiting channel as a target gain adjusting channel;
if the peak intensity is within the compression channel threshold range, determining a compression gain adjustment channel corresponding to the compression channel threshold range as a target gain adjustment channel;
and if the peak intensity falls within the threshold range of the amplification channel, determining the amplification gain adjustment channel corresponding to the threshold range of the amplification channel as a target gain adjustment channel.
4. The method of claim 3, wherein the gain control coefficients comprise clipping control coefficients, and wherein if the target gain adjustment channel is a clipping gain adjustment channel: the calculating the gain control coefficient of the target gain adjustment channel comprises:
calculating the amplitude-limiting increment strength of the amplitude-limiting gain adjustment channel;
and generating an amplitude limiting control coefficient by taking an integer N as a base number and the amplitude limiting increment strength as an index, wherein N is a positive integer greater than 1.
5. The method of claim 4, wherein the clipping channel threshold range comprises a minimum input clipping boundary value and a maximum input clipping boundary value, and wherein calculating the clipping increment strength for the clipping gain adjustment channel comprises:
calculating the compression ratio of the clipping channel according to the minimum clipping boundary value, the maximum input clipping boundary value and the specified output clipping boundary value;
calculating the amplitude limiting slope according to the compression ratio of the amplitude limiting channel;
calculating a clipping difference between the peak intensity and the minimum input clipping boundary value;
and calculating the amplitude limiting increment strength according to the amplitude limiting difference value and the amplitude limiting slope.
6. The method of claim 5, wherein calculating the clip increment strength for the clip gain adjustment channel further comprises:
acquiring steady-state intensity of the amplitude limiting gain adjusting channel in a steady state when zero input exists;
and compensating the amplitude-limiting increment strength according to the steady-state strength.
7. The method of claim 5, wherein the minimum input clipping boundary value is equal to the output clipping boundary value.
8. The method of claim 5, wherein the gain control coefficients comprise compression control coefficients, and wherein if the target gain adjustment channel is a compression gain adjustment channel: the calculating the gain control coefficient of the target gain adjustment channel comprises:
calculating the compression increment strength of the compression gain adjustment channel;
and generating a compression control coefficient by taking an integer N as a base number and the compression increment strength as an index, wherein N is a positive integer greater than 1.
9. The method of claim 8, wherein the compression channel threshold range comprises a minimum input compression boundary value and a maximum input compression boundary value, and wherein calculating the compression delta strength for the compression gain adjustment channel comprises:
calculating a compression channel compression ratio and a compression slope thereof according to the minimum input compression boundary value, the maximum input compression boundary value, the specified minimum output compression boundary value and the specified maximum output compression boundary value;
determining the effective signal strength of the current input signal, wherein the effective signal strength is the strength corresponding to the current effective signal power of the current input signal;
calculating a compression difference value of the effective signal strength and the minimum input compression boundary value;
and calculating the compression increment strength according to the compression difference and the compression slope.
10. The method of claim 9, wherein the determining the effective signal strength of the current input signal comprises:
determining a valid value of the current input signal;
calculating the current effective signal power of the current input signal according to the effective value;
and calculating the effective signal strength according to the effective signal power.
11. The method of claim 10, wherein said calculating a current effective signal power of said current input signal based on said effective value comprises:
obtaining a smooth recursion factor and the effective signal power of a previous frame of an input signal at a previous moment;
and calculating the current effective signal power of the current input signal according to the signal power of the current input signal, the effective signal power of the previous frame and the smooth recursion factor.
12. The method of claim 11, wherein obtaining a smooth recursion factor comprises:
determining a compression time used when the peak intensity is compressed from a first percentage value to a second percentage value of a first target signal intensity while within the compression channel threshold range;
and calculating a smooth recursion factor according to the compression time, the first percentage value, the second percentage value and the sampling time.
13. The method of claim 9, wherein the maximum output compression boundary value is equal to the output clipping boundary value and the minimum output compression boundary value is greater than the minimum input compression boundary value.
14. The method of claim 13, wherein the gain control coefficients comprise amplification control coefficients, and wherein if the target gain adjustment channel is an amplification channel threshold range: the calculating the gain control coefficient of the target gain adjustment channel comprises:
calculating the amplification increment strength of the amplification gain adjusting channel;
and generating an amplification control coefficient by taking an integer N as a base number and the amplification increment strength as an exponent, wherein N is a positive integer greater than 1.
15. The method of claim 14, wherein the amplification channel threshold range comprises a minimum input amplification boundary value and a maximum input amplification boundary value, and wherein calculating the amplification delta strength for the amplification gain adjustment channel comprises:
calculating the compression ratio and the amplification slope of the amplification channel according to the minimum input amplification boundary value, the maximum input amplification boundary value, the specified minimum output amplification boundary value and the specified maximum output amplification boundary value;
determining effective signal strength of the current input signal, wherein the effective signal strength is strength corresponding to signal power of the current input signal;
calculating an amplification difference between the effective signal intensity and the maximum input amplification boundary value;
and calculating amplification increment strength according to the amplification difference value and the amplification slope.
16. The method of claim 15,
the maximum amplification output boundary value is equal to the minimum output compression boundary value;
the minimum amplification output boundary value is equal to the maximum amplification input boundary value.
17. A storage medium storing computer-executable instructions for causing an electronic device to perform the signal strength auto-adjustment method of any one of claims 1 to 16.
18. A chip, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a signal strength autotuning method as claimed in any one of claims 1 to 16.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110982133.3A CN113783571B (en) | 2021-08-25 | 2021-08-25 | Signal intensity automatic adjustment method, storage medium and chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110982133.3A CN113783571B (en) | 2021-08-25 | 2021-08-25 | Signal intensity automatic adjustment method, storage medium and chip |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113783571A true CN113783571A (en) | 2021-12-10 |
CN113783571B CN113783571B (en) | 2024-03-22 |
Family
ID=78839261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110982133.3A Active CN113783571B (en) | 2021-08-25 | 2021-08-25 | Signal intensity automatic adjustment method, storage medium and chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113783571B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159415A (en) * | 2006-10-04 | 2008-04-09 | 电力集成公司 | Method and apparatus for a power supply controller responsive to a feedforward signal |
CN102272832A (en) * | 2008-12-29 | 2011-12-07 | 摩托罗拉*** | Selective scaling mask computation based on peak detection |
CN102638234A (en) * | 2011-11-18 | 2012-08-15 | 珠海派诺科技股份有限公司 | Signal intensity judging method and quick gain switching method |
CN104937842A (en) * | 2013-01-17 | 2015-09-23 | 高通股份有限公司 | Amplifier with switchable common gate gain buffer |
CN105357749A (en) * | 2015-10-16 | 2016-02-24 | 北京航天万达高科技有限公司 | Novel automatic gain control method for digital communication |
CN106231667A (en) * | 2016-08-29 | 2016-12-14 | 京信通信技术(广州)有限公司 | A kind of automatic gain control equipment and method |
CN106330102A (en) * | 2015-07-07 | 2017-01-11 | 中兴通讯股份有限公司 | Power amplification system, method and device |
-
2021
- 2021-08-25 CN CN202110982133.3A patent/CN113783571B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159415A (en) * | 2006-10-04 | 2008-04-09 | 电力集成公司 | Method and apparatus for a power supply controller responsive to a feedforward signal |
CN102272832A (en) * | 2008-12-29 | 2011-12-07 | 摩托罗拉*** | Selective scaling mask computation based on peak detection |
CN102638234A (en) * | 2011-11-18 | 2012-08-15 | 珠海派诺科技股份有限公司 | Signal intensity judging method and quick gain switching method |
CN104937842A (en) * | 2013-01-17 | 2015-09-23 | 高通股份有限公司 | Amplifier with switchable common gate gain buffer |
CN106330102A (en) * | 2015-07-07 | 2017-01-11 | 中兴通讯股份有限公司 | Power amplification system, method and device |
CN105357749A (en) * | 2015-10-16 | 2016-02-24 | 北京航天万达高科技有限公司 | Novel automatic gain control method for digital communication |
CN106231667A (en) * | 2016-08-29 | 2016-12-14 | 京信通信技术(广州)有限公司 | A kind of automatic gain control equipment and method |
Also Published As
Publication number | Publication date |
---|---|
CN113783571B (en) | 2024-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9294062B2 (en) | Sound processing apparatus, method, and program | |
US8494182B2 (en) | Feedback limiter with adaptive time control | |
TWI503816B (en) | Adjusting the loudness of an audio signal with perceived spectral balance preservation | |
CN103929141B (en) | AGC system for analog-digital converter | |
US9608588B2 (en) | Dynamic range control with large look-ahead | |
US8615095B2 (en) | Automatic volume control for audio signals | |
CN100542039C (en) | Gain compensation equipment and method | |
US20100176980A1 (en) | Analog to digital conversion system | |
AU2004310375A1 (en) | System and method for controlling audio output | |
JP6846397B2 (en) | Audio signal dynamic range compression | |
CN107994963B (en) | Method and device for expanding detection range of power detector | |
CN108513206B (en) | Sound system control method and device, terminal equipment and storage medium | |
CN110429921B (en) | Variable-step LMS adaptive filtering method and storage medium thereof | |
CN105357749B (en) | A kind of new type auto gain control method for digital communication | |
CN113783571A (en) | Signal intensity automatic adjusting method, storage medium and chip | |
US7774079B2 (en) | Method and system for receiving and decoding audio signals | |
CN109286971B (en) | Power control method and device based on DSP processing | |
JP4014429B2 (en) | Automatic gain controller | |
CN109462809B (en) | Detection method and system of power amplifier | |
JP3555887B2 (en) | Automatic gain control device | |
US11218234B2 (en) | Method of generating a control signal for use in a signal dynamics processor | |
CN112735453B (en) | Audio signal processing method and device | |
CN116388696B (en) | Noise signal generation method and device | |
KR20020023328A (en) | Apparatus and method to measure high frequency power | |
CN111585572A (en) | Sampling method, device, terminal equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |