[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2023082159A1 - Amplitude limiting apparatus and amplitude limiting method - Google Patents

Amplitude limiting apparatus and amplitude limiting method Download PDF

Info

Publication number
WO2023082159A1
WO2023082159A1 PCT/CN2021/130175 CN2021130175W WO2023082159A1 WO 2023082159 A1 WO2023082159 A1 WO 2023082159A1 CN 2021130175 W CN2021130175 W CN 2021130175W WO 2023082159 A1 WO2023082159 A1 WO 2023082159A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio signal
limiting
parameter
value
circuit
Prior art date
Application number
PCT/CN2021/130175
Other languages
French (fr)
Chinese (zh)
Inventor
鄢展鹏
帕霍·约尼
杜亮
廖文婷
柯波
任博
Original Assignee
华为技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2021/130175 priority Critical patent/WO2023082159A1/en
Priority to CN202180099914.6A priority patent/CN117795979A/en
Publication of WO2023082159A1 publication Critical patent/WO2023082159A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03GCONTROL OF AMPLIFICATION
    • H03G3/00Gain control in amplifiers or frequency changers
    • H03G3/20Automatic control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Definitions

  • the embodiments of the present application relate to the field of audio technology, and in particular, to a limiting device and a limiting method.
  • FIG. 1 is a schematic diagram of the structure and principle of a loudspeaker, as shown in (a) in Figure 1, the loudspeaker includes a front cover, a dome, a diaphragm, a voice coil, shrapnel, a basin frame, an upper splint, a magnetic steel and a lower splint .
  • the audio signal to be played is wound in the form of an energized conductor on the voice coil, which is located in the loudspeaker's magnetic field system.
  • the speaker will generate a lot of heat during the energy conversion process. If the temperature of the voice coil in the speaker is too high, the speaker will also be damaged. Therefore, prolonging the service life of the loudspeaker has become an urgent problem to be solved.
  • Embodiments of the present application provide a limiting device and a limiting method, which can perform limiting control on limiting parameters of a loudspeaker and prolong the service life of the loudspeaker.
  • a limiting device includes a prediction circuit, a gain estimation circuit, and a multiplier.
  • the first input terminal of the multiplier is used to receive an audio signal, and the output of the limiting device The end is coupled to the input end of the gain estimation circuit through the prediction circuit, the output of the gain estimation circuit is fed back to the second input end of the multiplier, and the output end of the limiting device is used for coupling with the loudspeaker.
  • the prediction circuit is used for predicting the limiting parameter of the loudspeaker based on the audio signal output by the limiting device, and the limiting parameter includes at least one of diaphragm displacement or voice coil temperature.
  • the gain estimation circuit is used to obtain an estimated gain value based on the limiting parameter predicted by the prediction circuit.
  • the multiplier is used to receive the audio signal and the gain estimation value fed back by the gain estimation circuit, and multiply the received audio signal and the gain estimation value to obtain a limited audio signal, and the output terminal of the limiting device outputs the limited audio Signal.
  • this scheme adopts the feedback control method to form a closed-loop control system in the limiting device, so the stability is relatively high.
  • this program obtains the gain estimate by using the limit parameter (at least one of diaphragm displacement or voice coil temperature), and then uses the gain estimate to limit the audio signal input to the limiter to obtain the limited audio signal, the audio signal is limited so that the amplitude of the limiting parameter is also limited, so the purpose of limiting the diaphragm displacement and/or voice coil temperature can be achieved, and the corresponding diaphragm displacement and/or Voice coil temperature, prolonging the service life of the speaker.
  • the limit parameter at least one of diaphragm displacement or voice coil temperature
  • the limiting device further includes a saturated limiting circuit, and an output terminal of the multiplier is coupled to an output terminal of the limiting device through the saturated limiting circuit.
  • the amplitude of the audio signal output by the limiting device can be limited within the preset threshold range through the saturation limiting circuit.
  • the purpose of limiting the audio signal limited by the multiplier is to protect the circuit.
  • the prediction circuit includes a displacement prediction circuit, and the displacement prediction circuit is used to output an audio signal based on the Thiele-Small parameter of the loudspeaker and the limiting device, Predict the diaphragm displacement of a loudspeaker.
  • the input parameters of the displacement prediction circuit are voltage parameters or current parameters corresponding to the audio signal output by the limiting device.
  • the Thiele-Small parameter is a set of parameters defined by people to commemorate the contribution of two scientists, Thiele and Small, to electricity, referred to as the TS parameter.
  • the TS parameter of the loudspeaker is used to measure the electrical performance of the loudspeaker.
  • the diaphragm displacement of the speaker can be predicted through the TS parameter of the speaker and the voltage parameter or current parameter corresponding to the audio signal output by the limiting device, so that the estimated gain value can be obtained according to the diaphragm displacement, and the estimated gain value can be compared with the input After the audio signal of the multiplier is multiplied, the purpose of limiting the audio signal can be achieved, which can prolong the service life of the speaker
  • the prediction circuit further includes a temperature prediction circuit, and the temperature prediction circuit is used for the audio signal output based on the Thiele-Small parameter of the loudspeaker and the limiting device , to predict the voice coil temperature of the loudspeaker.
  • the input parameter of the temperature prediction circuit is at least one of the voltage parameter or the current parameter corresponding to the audio signal output by the limiting device.
  • At least one of the TS parameters of the loudspeaker and the voltage parameter or current parameter corresponding to the audio signal output by the limiting device can predict the voice coil temperature of the loudspeaker, so that an estimated gain value can be obtained according to the voice coil temperature, and the gain After the estimated value is multiplied by the audio signal input to the multiplier, the purpose of limiting the audio signal can be achieved, which can prolong the service life of the loudspeaker.
  • the prediction circuit when the prediction circuit includes a displacement prediction circuit and a temperature prediction circuit, the displacement prediction circuit and the temperature prediction circuit are connected in parallel.
  • the TS parameters of the loudspeaker and the audio signal output by the limiting device can predict the diaphragm displacement and voice coil temperature of the loudspeaker, so that according to the displacement of the diaphragm and the voice coil
  • the temperature can obtain an estimated gain value, and after multiplying the estimated gain value by the audio signal input to the multiplier, the purpose of limiting the audio signal can be achieved, which can prolong the service life of the loudspeaker.
  • the displacement prediction circuit includes one or more biquad Biquad filters, and the multiple Biquad filters are cascaded.
  • a Biquad filter or cascaded multiple Biquad filters can be used to fit the voltage-displacement transfer function, so that the diaphragm displacement of the loudspeaker can be predicted more accurately.
  • the above-mentioned temperature prediction circuit is specifically used according to the Thiele-Small parameter of the speaker, the voltage parameter and the current corresponding to the audio signal output by the limiting device
  • the parameters identify the impedance of the loudspeaker and predict the voice coil temperature of the loudspeaker.
  • the impedance of the speaker is identified by using the feedback voltage and feedback current obtained in real time at both ends of the speaker chip, and the approximate linear relationship between the real-time temperature of the voice coil in the speaker and the actual impedance is used to predict the voice coil temperature of the speaker , which can improve the stability of the limiter control.
  • the above-mentioned gain estimation circuit is specifically configured to: when the above-mentioned limiting parameter is higher than the first preset threshold, the gain The estimated value is decreased by a first value; when the limiting parameter is lower than a second preset threshold, the estimated value of the gain at the previous sampling point is increased by a second value.
  • the first preset threshold is greater than or equal to the second preset threshold.
  • the gain estimate can be lowered when the diaphragm displacement is large and/or the voice coil temperature is high, so the multiplier can achieve
  • the purpose of limiting is to reduce the displacement of the diaphragm and/or the temperature of the voice coil corresponding to the limited audio signal, so as to prolong the service life of the speaker.
  • the limiting device provided by the present application has better stability and lower time delay, and can improve the performance of the loudspeaker. In this solution, when the displacement of the diaphragm is small and/or the temperature of the voice coil is low, the estimated value of the gain is raised to restore the real audio signal.
  • the above estimated gain value is greater than 0 and less than or equal to 1.
  • the above-mentioned gain estimation circuit includes a first selector, a subtractor, and an adder, and the output terminal of the first selector is the output terminal of the gain estimation circuit. output terminal, the output terminal of the first selector is coupled to the first input terminal of the subtractor through the first flip-flop, the second input terminal of the subtractor inputs the first value, and the output terminal of the subtractor is coupled to the first input terminal of the first selector an input terminal.
  • the output terminal of the first selector is coupled to the first input terminal of the adder through the second flip-flop, the second input terminal of the adder inputs the second value, and the output terminal of the adder is coupled to the second input terminal of the first selector .
  • the first selector is used for inputting the output of the gain estimation circuit to the first flip-flop or the second flip-flop.
  • the first selector can input the output of the gain estimation circuit to the first flip-flop or the second flip-flop, so that when the limiting parameter is high, the gain estimation value of the previous sampling point can be reduced by the first value.
  • the gain estimate at the previous sampling point is increased by a second value. Since the circuit structure of the gain estimating circuit is relatively simple, the time delay of the limiting device is relatively low.
  • the first selector is specifically configured to: when the limiting parameter is higher than the first preset threshold, the gain estimation output by the gain estimation circuit Input the value into the first flip-flop; when the limiting parameter is lower than the first preset threshold, input the estimated gain value output by the gain estimation circuit into the second flip-flop.
  • the first flip-flop and the second flip-flop are used to delay the estimated gain value output by the gain estimation circuit.
  • a subtractor configured to reduce the estimated gain value delayed by the first trigger by a first value.
  • An adder configured to increase the estimated gain value delayed by the second flip-flop by a second value.
  • the gain estimation circuit may reduce the estimated gain value of the previous sampling point by a first value when the limiting parameter is higher than the first preset threshold.
  • the estimated value of the gain at the previous sampling point is increased by a second value. Since the circuit structure of the gain estimating circuit is relatively simple, the time delay of the limiting device is relatively low.
  • the above-mentioned gain estimation circuit further includes a second selector, a third selector, and a fourth selector, and the output terminal of the subtractor is connected to the second
  • the first input end of the selector is connected, the second input end of the second selector is input with a preset minimum gain, and the output end of the second selector is connected with the first input end of the first selector.
  • the output terminal of the adder is connected with the first input terminal of the third selector, the second input terminal of the third selector is connected with the output terminal of the first selector, and the output terminal of the third selector is connected with the first input terminal of the fourth selector.
  • the second input end of the fourth selector inputs a preset maximum gain, and the output end of the fourth selector is connected to the second input end of the first selector.
  • the gain estimation circuit can reduce the estimated gain value of the previous sampling point by a first value to obtain an adjusted estimated gain value when the limiting parameter is greater than or equal to the first preset threshold value, and the adjusted The gain estimate is not less than a preset minimum gain.
  • the estimated gain value of the previous sampling point is increased by a second value to obtain an estimated gain value after adjustment, and the estimated estimated gain value after adjustment is not greater than the preset maximum gain.
  • the circuit structure of the gain estimation circuit is relatively simple, so that the time delay of the limiting device is relatively low.
  • the above second selector is configured to output the value output by the subtractor when the value output by the subtractor is greater than a preset minimum gain; When the value output by the subtractor is less than the preset minimum gain, the preset minimum gain is output.
  • the third selector is used to output the value output by the adder when the estimated gain value delayed by the second trigger is less than the preset maximum gain; the estimated gain value delayed by the second trigger is greater than the preset maximum gain; When the maximum gain is set, the maximum gain output will be preset.
  • the fourth selector is used to output the output value of the third selector when the output of the third selector is less than the preset maximum gain; when the output of the third selector is greater than the preset maximum gain, the preset maximum gain output.
  • the adjusted estimated gain value can be made not less than the preset minimum gain through the second selector.
  • the adjusted estimated gain value may not be greater than the preset maximum gain.
  • the circuit structure of the gain estimation circuit is relatively simple, so that the time delay of the limiting device is relatively low.
  • the sum of the time when the prediction circuit predicts the clipping parameter and the time when the gain estimation circuit calculates the estimated gain value is less than or equal to the sampling period.
  • the time delay of the limiting device provided in the embodiment of the present application is relatively small when performing limiting processing on the audio signal.
  • a limiting method in a second aspect of the embodiments of the present application, includes: first, predicting the limiting parameters of the loudspeaker based on the first audio signal, the limiting parameters include diaphragm displacement or voice coil temperature At least one type; the first audio signal is an audio signal output to the speaker. Then, based on the clipping parameters of the loudspeaker, a gain estimate is obtained. Finally, the second audio signal is multiplied by the estimated gain value to obtain a limited audio signal, and the second audio signal is the input original audio signal.
  • the prediction of the limiting parameter of the loudspeaker based on the first audio signal includes: predicting the diaphragm of the loudspeaker based on the Thiele-Small parameter of the loudspeaker and the audio parameter of the first audio signal. displacement.
  • the audio parameters of the first audio signal include voltage parameters or current parameters corresponding to the first audio signal.
  • the prediction of the limiting parameter of the loudspeaker based on the first audio signal further includes: Thiele-Small parameters based on the loudspeaker and the first audio signal Audio parameter that predicts the voice coil temperature of a loudspeaker.
  • the audio parameter of the first audio signal includes at least one of a voltage parameter or a current parameter corresponding to the first audio signal.
  • the obtaining the estimated gain value based on the limiting parameter of the speaker includes: when the limiting parameter of the loudspeaker is higher than the first preset threshold , reduce the estimated gain value of the previous sampling point by a first value; when the limiting parameter of the loudspeaker is lower than a second preset threshold, increase the estimated gain value of the previous sampling point by a second value; wherein, the first preset The threshold is set to be greater than or equal to the second preset threshold.
  • the above estimated gain value is greater than 0 and less than or equal to 1.
  • the sum of the time for predicting the limiting parameter and the time for determining the estimated gain value is less than or equal to the sampling period.
  • a limiting device includes a processor and an interface circuit, the processor receives or sends a signal through the interface circuit; the processor is used to execute the signal stored in the memory
  • the computer program in the present invention enables the clipping device to perform the method described in the second aspect above.
  • a computer-readable storage medium is provided.
  • Computer program code is stored in the computer-readable storage medium.
  • the computer program code is run on a computer or a processor, the The computer or the processor executes the method described in the second aspect above.
  • a fifth aspect of the embodiments of the present application provides a computer program product, the program product stores program instructions, and when the program instructions are executed by a computer or a processor, the method described in the second aspect above is realized.
  • the sixth aspect of the embodiments of the present application provides an audio system, the audio system includes an amplifier, a speaker, and the limiting device as described in the first aspect above, and the limiting device is coupled to the speaker.
  • FIG. 1 is a schematic diagram of the structure and principle of a loudspeaker provided by the embodiment of the present application;
  • FIG. 2A is a schematic structural diagram of a clipping device provided in an embodiment of the present application.
  • Fig. 2B is a schematic structural diagram of another limiting device provided in the embodiment of the present application.
  • Fig. 3 is a schematic structural diagram of another limiting device provided in the embodiment of the present application.
  • Fig. 4 is the structural representation of a kind of Biquad filter that the embodiment of the present application provides;
  • FIG. 5 is a schematic flow chart of an impedance identification method provided in an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a gain estimation circuit provided in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another gain estimation circuit provided by an embodiment of the present application.
  • FIG. 8 is a schematic flow chart of a clipping method provided by an embodiment of the present application.
  • At least one (unit) of a, b or c can represent: a, b, c, a and b, a and c, b and c, or, a and b and c, wherein a, b and c can be single or multiple.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect, Those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order.
  • first and second in the second numerical value in the embodiments of the present application are only used to distinguish different numerical values.
  • the first, second, etc. descriptions that appear in the embodiments of this application are only for illustration and to distinguish the description objects, and there is no order, nor does it represent a special limitation on the number of devices in the embodiments of this application, and cannot constitute a limitation on the number of devices in this application. Any limitations of the examples.
  • the embodiment of the present application provides a limiting device, which can control the displacement of the diaphragm of the speaker or Limiting control is performed on the temperature of the voice coil to prolong the service life of the loudspeaker, and the limiting device provided by the present application has better stability and lower time delay, which can improve the performance of the loudspeaker.
  • the limiting device includes a prediction circuit, a gain estimation circuit and a multiplier, the first input a of the multiplier is the input end of the limiting device, and the limiting
  • the input terminal of the device is used to receive the audio signal
  • the output terminal e of the limiting device is coupled to the input terminal c of the gain estimation circuit through the prediction circuit
  • the output terminal of the gain estimation circuit is fed back to the second input terminal d of the multiplier
  • the limiting device The output terminal is used to couple with the loudspeaker.
  • the limiting device may further include a saturated limiting circuit, and the output terminal b of the multiplier is coupled to the output terminal e of the limiting device through the saturated limiting circuit.
  • the saturation limiting circuit can limit the amplitude of the audio signal output by the limiting device within a preset threshold range.
  • the limited audio signal output from the output terminal of the limiting device may be an output audio signal limited by a saturated limiting circuit.
  • the audio signal is clipped directly using the saturation clipping circuit, the audio signal will be clipped and a large number of harmonics will be generated.
  • the estimated gain value is fed back by the prediction circuit and the gain estimation circuit, and the audio signal is limited according to the estimated gain value, so as to protect the loudspeaker.
  • the limited signal is then processed by a saturated limiting circuit and then output to the speaker. That is to say, the limit implemented by multiplying the audio signal by the estimated gain value in the limiter is to protect the loudspeaker, and the limit performed by the saturation limiter circuit on the audio signal limited by the multiplier is to protect the circuit.
  • the output terminal e of the saturation limiter circuit may be coupled to the speaker through an amplifier.
  • the amplifier is used to amplify the audio signal output by the saturation limiting circuit and input it to the speaker, and the speaker receives the amplified signal and plays the sound.
  • the prediction circuit is used for predicting the limiting parameter of the loudspeaker based on the audio signal output by the limiting device, and the limiting parameter includes at least one of diaphragm displacement or voice coil temperature.
  • the prediction circuit may include a displacement prediction circuit for estimating the displacement of the diaphragm, a temperature prediction circuit for estimating the temperature of the voice coil, a displacement prediction circuit for estimating the displacement of the diaphragm, and a circuit for estimating Temperature prediction circuit for voice coil temperature.
  • the embodiment of the present application does not limit the specific structure of the prediction circuit.
  • the limiting parameters include a diaphragm displacement
  • the displacement prediction circuit is used to predict the loudspeaker based on the TS (Thiele-Small) parameter of the loudspeaker and the audio signal output by the limiting device. diaphragm displacement.
  • the predicting circuit includes a temperature predicting circuit
  • the limiting parameter includes voice coil temperature
  • the temperature predicting circuit is used to predict the voice coil temperature of the speaker based on the TS parameter of the speaker and the audio signal output by the limiting device.
  • the limiting parameters include diaphragm displacement and voice coil temperature
  • the displacement prediction circuit is used to predict the vibration of the speaker based on the TS parameters of the speaker and the audio signal output by the limiting device.
  • the membrane displacement and temperature prediction circuit is used to predict the voice coil temperature of the speaker based on the TS parameter of the speaker and the audio signal output by the limiting device.
  • the prediction circuit includes a displacement prediction circuit and a temperature prediction circuit
  • the displacement prediction circuit and the temperature prediction circuit are connected in parallel. Both the input end of the displacement prediction circuit and the input end of the temperature prediction circuit are connected to the output end e of the limiter, and the output ends of the displacement prediction circuit and the output end of the temperature prediction circuit are coupled to the input end c of the gain estimation circuit.
  • the Thiele-Small parameter is a set of parameters defined by people to commemorate the contribution of two scientists, Thiele and Small, to electricity, referred to as the TS parameter.
  • TS parameters are used to measure the electrical performance of loudspeakers.
  • the TS parameters of the loudspeaker include but are not limited to the lowest resonance frequency f 0 of the loudspeaker, the DC impedance Re of the coil, the equivalent mass of the vibration system M ms , the total damping coefficient of the loudspeaker Q ts , the magnetic factor Bl, the mechanical quality factor of the loudspeaker Q ms and other parameters .
  • the embodiment of the present application does not limit the specific type of the TS parameter of the loudspeaker.
  • the method of predicting the displacement of the diaphragm of the speaker by the displacement prediction circuit and the method of predicting the temperature of the voice coil of the speaker by the temperature prediction circuit will be introduced respectively below.
  • the input parameter of the displacement prediction circuit may be a voltage parameter or a current parameter corresponding to the audio signal output by the limiting device.
  • the input parameters of the displacement prediction circuit are used as the voltage parameters corresponding to the audio signal output by the limiting device.
  • the TS parameters of the speaker include the lowest resonance frequency f 0 of the speaker, the DC impedance Re of the coil, and the equivalent mass M of the vibration system. Taking ms , total loudspeaker damping coefficient Q ts , and magnetic factor Bl as examples, the method for predicting diaphragm displacement by the displacement prediction circuit is introduced.
  • the diaphragm displacement can be estimated according to the voltage-displacement transfer function of the loudspeaker in the Laplace domain.
  • the voltage-displacement transfer function is as follows:
  • H(S) is the voltage-displacement transfer function
  • X(S) is the diaphragm displacement in the frequency domain
  • U(S) is the feedback voltage in the frequency domain
  • f 0 is the lowest resonant frequency of the loudspeaker
  • Re is the direct current of the coil Impedance
  • M ms is the equivalent mass of the vibration system
  • Q ts is the total damping coefficient of the loudspeaker
  • Bl is the magnetic force factor.
  • the displacement prediction circuit when the displacement prediction circuit predicts the diaphragm displacement of the loudspeaker, the displacement prediction circuit can use a biquad Biquad filter to fit the above-mentioned voltage-displacement transfer function, or can use multiple Biquad filter cascade fittings
  • a Biquad filter can be realized by the structure shown in Figure 4. That is, the displacement prediction circuit in FIG. 3 may include one Biquad filter, or may include multiple cascaded Biquad filters shown in FIG. 4 .
  • the voltage parameter of the audio signal output by the limiting device is the voltage parameter of the audio signal output by the limiting device, and the voltage parameter can be the feedback voltage obtained from both ends of the speaker chip in real time, the output data is the predicted diaphragm displacement, and D is used to realize a
  • the D flip-flop of the audio sampling point delay, b0, b1 and b2 are the feedforward coefficients, a1 and a2 are the feedback coefficients, the feedforward coefficient and the feedback coefficient can be calculated according to the above TS parameters, and the filter structure shown in Figure 4 can be Realizing the above-mentioned voltage-displacement transfer function H(S), the diaphragm displacement can be predicted.
  • the input parameter of the temperature prediction circuit may be at least one of the voltage parameter or the current parameter corresponding to the audio signal output by the limiting device.
  • the TS parameters of the speaker include the lowest resonant frequency f 0 of the speaker, the DC impedance Re of the coil, the equivalent mass of the vibration system M ms , the mechanical quality factor of the speaker Q ms and the magnetic factor Bl, and the input parameters of the temperature prediction circuit Including the voltage parameter and current parameter corresponding to the audio signal output by the limiting device as an example, the method for predicting the voice coil temperature of the speaker by the temperature prediction circuit is introduced.
  • real-time modeling of the loudspeaker may be performed according to the environmental parameters.
  • the initial impedance curve of the speaker in the Laplace domain is obtained as follows:
  • f 0 is the lowest resonance frequency of the speaker
  • Re is the DC impedance of the coil
  • M ms is the equivalent mass of the vibration system
  • Q ms is the mechanical quality factor of the speaker
  • Bl is the magnetic force factor.
  • the voltage parameter of the audio signal output by the limiting device is u(t)
  • the current parameter is i(t)
  • u(t) and i(t) can be the feedback voltage and the feedback current obtained in real time from both ends of the speaker chip, Use u(t) and i(t) for loudspeaker impedance identification.
  • the temperature prediction circuit may use a normalized least mean square (NLMS) algorithm to identify the above Z(s) online.
  • NLMS normalized least mean square
  • 2 means to find the second norm for the current I(S) in the frequency domain
  • T T 0 + ⁇ (
  • T 0 is the normal temperature of 25 degrees Celsius
  • Z 0 (S) is the initial impedance
  • Z(S) is the impedance identification result
  • is the temperature sensitivity coefficient of the speaker.
  • the real-time temperature T can be obtained according to the impedance identification results Z(S), initial impedance Z 0 (S), T 0 and ⁇ in Fig. 5 .
  • the impedance of the speaker is identified by using the feedback voltage and feedback current obtained in real time at both ends of the speaker chip, and the approximate linear relationship between the real-time temperature of the voice coil in the speaker and the actual impedance is used to predict the voice coil temperature of the speaker , which can improve the stability of the limiter control.
  • the temperature prediction circuit when it predicts the voice coil temperature, it can use impedance identification to predict the voice coil temperature, or model the DC resistance to predict the voice coil temperature.
  • the embodiment of the present application does not limit the specific method for predicting the temperature of the voice coil by the temperature prediction circuit.
  • T(0) is the normal temperature of 25 degrees Celsius
  • Re (t) is the DC resistance calculated in real time
  • Re is the initial resistance
  • is the temperature sensitivity coefficient of the speaker.
  • the gain estimation circuit is used to obtain an estimated gain value based on the limiting parameter predicted by the prediction circuit.
  • the gain estimation circuit is specifically used to reduce the gain estimation value obtained at the previous sampling point by a first value when the clipping parameter predicted by the prediction circuit is higher than the first preset threshold value, and output the adjusted gain estimation value to the multiplier device.
  • the limiting parameter predicted by the prediction circuit is lower than the second preset threshold
  • the estimated gain value obtained at the previous sampling point is increased by a second value
  • the adjusted estimated gain value is output to the multiplier.
  • the first preset threshold is greater than or equal to the second preset threshold.
  • the first numerical value may be the same as the second numerical value, or may be different from the second numerical value.
  • the first numerical value may be greater than the second numerical value, may also be smaller than the second numerical value, and may also be equal to the second numerical value.
  • an initial gain estimation value can be set, and the limiting device multiplies the audio signal of the first sampling point by the initial gain estimation value to obtain a limited audio signal.
  • the output terminal of the amplitude device outputs the limited audio signal. If the limiting parameter predicted by the predicting circuit based on the limited audio signal is higher than the first preset threshold, the gain estimating circuit adjusts the initial estimated gain value downward to obtain a first estimated gain value. If the limiting parameter predicted by the predicting circuit based on the limited audio signal is lower than the second preset threshold, the gain estimating circuit adjusts the initial estimated gain value upward to obtain a first estimated gain value.
  • the limiting device For the audio signal at the second sampling point, the limiting device multiplies the audio signal at the second sampling point with the estimated gain value (first estimated gain value) obtained at the previous sampling point to obtain a limited audio signal. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is higher than the first preset threshold, the gain estimation circuit adjusts the estimated gain value obtained at the previous sampling point (the first estimated gain value) downward to obtain the second Gain estimates. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is lower than the second preset threshold, the gain estimation circuit adjusts the gain estimation value obtained at the previous sampling point (the first gain estimation value) upward to obtain the second gain estimated value.
  • the gain estimation circuit can continuously adjust the gain estimation value based on the limiting parameter predicted by the prediction circuit.
  • the embodiment of the present application does not limit the specific value of the initial gain estimation value, and the value of the initial gain estimation value may be set to 1, or may be set to other values greater than 0 and less than or equal to 1.
  • the estimated gain value adjusted by the gain estimation circuit based on the limiting parameter may not be higher than the maximum gain, nor less than the minimum gain.
  • the first value, the second value, the first preset threshold, the Specific values of the two preset thresholds, the maximum gain and the minimum gain are not limited.
  • the maximum gain and minimum gain can be preset values.
  • the gain estimation circuit may obtain an estimated gain value based on the diaphragm displacement predicted by the displacement prediction circuit.
  • the gain estimation circuit reduces the estimated gain value of the previous sampling point by a first value.
  • the gain estimation circuit increases the gain estimation value of the previous sampling point by a second value.
  • the estimated gain value at the previous sampling point is the estimated gain value output by the gain estimation circuit at the previous sampling point.
  • the gain estimation circuit can obtain an estimated gain value based on the voice coil temperature predicted by the temperature prediction circuit.
  • the temperature of the voice coil predicted by the temperature prediction circuit is high, the estimated value of the gain at the previous sampling point is reduced by a first value.
  • the temperature of the voice coil predicted by the temperature prediction circuit is low, the estimated value of the gain at the previous sampling point is increased by a second value.
  • the preset threshold for determining whether the voice coil temperature is higher or lower may be the same as or different from the preset threshold for determining whether the diaphragm displacement is larger or smaller.
  • the estimated value of the gain is a value greater than 0 and less than or equal to 1.
  • FIG. 6 is a schematic structural diagram of a gain estimation circuit provided by an embodiment of the present application.
  • the gain estimation circuit includes a first selector , MUX0), subtractor and adder, the output end of the first selector MUX0 is the output end of the gain estimation circuit, the output end of the first selector MUX0 is coupled to the first input end of the subtractor through the first flip-flop D1, The second input terminal of the subtractor inputs the first value, and the output terminal of the subtractor is coupled to the first input terminal 0 of the first selector MUX0.
  • the output terminal of the first selector MUX0 is coupled to the first input terminal of the adder through the second flip-flop D2, the second input terminal of the adder inputs the second value, and the output terminal of the adder is coupled to the first input terminal of the first selector MUX0.
  • Two input terminals 1 1.
  • the first selector MUX0 is used for inputting the output of the gain estimation circuit to the first flip-flop D1 or the second flip-flop D2.
  • the first selector MUX0 is specifically configured to input the estimated gain value output by the gain estimation circuit into the first flip-flop D1 when the limiting parameter is greater than or equal to the first preset threshold.
  • the estimated gain value output by the gain estimation circuit is input to the second flip-flop D2.
  • the first flip-flop D1 and the second flip-flop D2 are used to delay the estimated gain value output by the gain estimation circuit.
  • the first flip-flop D1 and the second flip-flop D2 can implement a delay of one audio sampling point.
  • a subtractor configured to reduce the estimated gain value delayed by the first flip-flop D1 by a first value.
  • the estimated gain value delayed by the first flip-flop D1 may be the estimated gain value of the previous sampling point.
  • An adder configured to increase the estimated gain value delayed by the second flip-flop D2 by a second value.
  • the gain estimation circuit shown in FIG. 6 may reduce the estimated gain value of the previous sampling point by a first value when the limiting parameter is greater than or equal to a first preset threshold.
  • the limiting parameter is smaller than the first preset threshold, the estimated value of the gain at the previous sampling point is increased by a second value.
  • the gain estimation circuit may further include a second selector MUX1, a third selector MUX2 and a fourth selector MUX3, the output end of the subtractor is connected to the first input end of the second selector MUX1 1 connection, the second input terminal 0 of the second selector MUX1 inputs the preset minimum gain, and the output terminal of the second selector MUX1 is connected with the first input terminal 0 of the first selector.
  • the output terminal of the adder is connected with the first input terminal 1 of the third selector MUX2, the second input terminal 0 of the third selector MUX2 is connected with the output terminal of the first selector MUX0, and the output terminal of the third selector MUX2 is connected with The first input terminal 1 of the fourth selector MUX3 is connected, the second input terminal 0 of the fourth selector MUX3 inputs the preset maximum gain, the output terminal of the fourth selector MUX3 is connected with the second input terminal 1 of the first selector MUX0 connect.
  • the second selector MUX1 is used to output the value output by the subtractor when the value output by the subtractor is greater than the preset minimum gain. When the value output by the subtractor is less than or equal to the preset minimum gain, the preset minimum gain is output.
  • the third selector MUX2 is used to output the value output by the adder when the estimated gain value delayed by the second flip-flop D2 is less than the preset maximum gain.
  • the preset maximum gain is output.
  • the estimated gain value delayed by the second flip-flop D2 may be the estimated gain value of the previous sampling point.
  • the fourth selector MUX3 is configured to output the output value of the third selector MUX2 when the output of the third selector MUX2 is less than a preset maximum gain.
  • the preset maximum gain will be output.
  • the gain estimation circuit shown in FIG. 7 can reduce the gain estimation value of the previous sampling point by a first value to obtain an adjusted gain estimation value when the limiting parameter is greater than or equal to a first preset threshold value, and the adjusted The gain estimate is not less than a preset minimum gain.
  • the estimated gain value of the previous sampling point is increased by a second value to obtain an estimated gain value after adjustment, and the estimated estimated gain value after adjustment is not greater than the preset maximum gain.
  • the first value and the second value are both 0.1
  • the initial gain estimate is 0.95
  • the preset maximum gain is 1
  • the preset minimum gain is 0.1
  • the first preset threshold and the second preset threshold are the same as an example.
  • the specific functions of the gain estimation circuit shown in Fig. 7 are introduced.
  • the limiting device multiplies the audio signal by an initial gain estimate value of 0.95 to obtain a limited audio signal. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is lower than the first preset threshold, the second input is an estimated gain value (an initial estimated gain value) of 0.95 at the first sampling point. Since the value 0.95 of the second input is less than the preset maximum gain of 1, the output of MUX2 is 0.95 plus the second value 0.1, that is, the value of the third input of MUX3 is 1.05. Since the value 1.05 of the third input is greater than the preset maximum gain 1, the output of MUX3 is the preset maximum gain 1, that is, the gain estimation value output by the gain estimation circuit is 1, and the gain estimation value 1 is obtained from the first sampling point Gain estimates.
  • the second input is an estimated gain value (an initial estimated gain value) of 0.95 at the first sampling point. Since the value 0.95 of the second input is less than the preset maximum gain of 1, the output of MUX2 is 0.95 plus the second value 0.1
  • the limiter multiplies the audio signal with the estimated gain value 1 obtained at the first sampling point to obtain Clipped audio signal. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is higher than the first preset threshold, the value of the first input is the gain estimate value 1 obtained at the first sampling point minus the first value 0.1, that is, the first Enter a value of 0.9.
  • the output of MUX1 is 0.9, that is, the estimated gain value output by the gain estimation circuit is 0.9, and the estimated gain value 0.9 is the estimated gain value obtained at the second sampling point .
  • the limiter multiplies the audio signal with the estimated gain value 0.9 obtained at the second sampling point to obtain Clipped audio signal. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is higher than the first preset threshold, the value of the first input is the estimated gain value of the second sampling point 0.9 minus the first value 0.1, that is, the first input The value of is 0.8.
  • the gain estimation circuit can continuously adjust the gain estimation value based on the clipping parameter predicted by the prediction circuit.
  • the gain estimation circuit may be based on the diaphragm displacement predicted by the displacement prediction circuit, the voice coil temperature predicted by the temperature prediction circuit, and the first weight corresponding to the diaphragm displacement , and the second weight corresponding to the voice coil temperature to obtain the gain estimate.
  • the values of the first weight and the second weight are related to parameters such as the degree of influence of diaphragm displacement and voice coil temperature on the life of the speaker in practical applications, and the specific structure of the speaker.
  • the estimated value corresponding to the diaphragm displacement of the previous sampling point is 0.2
  • the estimated value corresponding to the voice coil temperature of the previous sampling point is 0.3 as an example. If the displacement of the diaphragm predicted by the displacement prediction circuit is small, the estimated value corresponding to the diaphragm displacement at the previous sampling point of 0.2 is increased by the second value 0.1 to obtain the first estimated value of 0.3.
  • the embodiment of the present application does not limit the specific circuit structure of the gain estimation circuit, any one can realize the limiter parameter is lowered when the limiter parameter is high, and the limiter parameter is increased when the limiter parameter is low All gain estimation circuits are within the scope of protection of the present application, and FIG. 6 and FIG. 7 are only illustrative circuit structures of a gain estimation circuit.
  • the multiplier is used to receive the audio signal and the estimated gain value fed back by the gain estimation circuit, and multiply the audio signal by the estimated gain value to obtain a limited audio signal.
  • the output terminal of the limiting device outputs the limited audio signal.
  • the audio signal received by the multiplier is an audio signal input to the limiting device, and the audio signal input to the limiting device is an unlimited audio signal.
  • the unlimited audio signal may be a downlink audio signal processed by a processing unit (for example, a noise reduction unit), may also be an audio signal collected from a sensor, may also be an audio signal released from multimedia, and the like.
  • a processing unit for example, a noise reduction unit
  • the embodiment of the present application does not limit which device the audio signal received by the multiplier is output from, and is specifically related to the application scenario of the limiting device.
  • the gain estimation circuit obtains the gain estimation value according to the diaphragm displacement predicted by the displacement prediction circuit and the voice coil temperature predicted by the temperature prediction circuit
  • the gain The estimated value is fed back to the multiplier, and the multiplier multiplies the received audio signal with the fed back gain estimated value to obtain a limited audio signal. Since the gain estimation circuit will adjust down the gain estimation value when the diaphragm displacement is large and/or the voice coil temperature is high, the resulting gain estimation value will be smaller, so the multiplier will combine the received audio signal with the smaller gain estimation value of the feedback After multiplying the values, the audio signal after clipping can be obtained.
  • the clipping of the audio signal makes the amplitude of the clipping parameter also limited, so the purpose of clipping the diaphragm displacement and/or voice coil temperature can be achieved, and can Reduce the diaphragm displacement and/or voice coil temperature corresponding to the audio signal, prolonging the service life of the speaker.
  • the limiting device provided by the present application has better stability and lower time delay, and can improve the performance of the loudspeaker.
  • the limiting device multiplies the audio signal at the first sampling point by the initial estimated gain value 1 to obtain the limited audio Signal 0.
  • the prediction circuit predicts the limit parameter 0 according to the limited audio signal 0, if the limit parameter 0 is high (for example, higher than the first preset threshold), the gain estimation circuit can lower the gain estimate by 0.1, and the adjusted gain
  • the estimated value is 0.9, and the estimated gain value 0.9 is output to the multiplier, and the multiplier multiplies the estimated gain value 0.9 by the audio signal at the second sampling point to obtain the audio signal 1 after limiting.
  • the prediction circuit predicts the limiting parameter 1 according to the limited audio signal 1.
  • the estimated gain value can be lowered by 0.1, and the adjusted gain estimated The value is 0.8, and the estimated gain value 0.8 is output to the multiplier, and the multiplier multiplies the estimated gain value 0.8 by the audio signal of the third sampling point to obtain the audio signal 2 after limiting.
  • the prediction circuit predicts the limiting parameter 2 according to the limited audio signal 2.
  • the gain estimation circuit can increase the gain estimation value by 0.1, and the adjusted The estimated gain value of 0.9 is 0.9, and the estimated gain value 0.9 is output to the multiplier, and the multiplier multiplies the estimated gain value 0.9 by the audio signal of the fourth sampling point to obtain the limited audio signal 3, and so on , the audio signal at each sampling point can be clipped.
  • the gain estimation value obtained by the gain estimation circuit is a value greater than 0 and less than or equal to 1. Therefore, after multiplying the audio signal and the gain estimation value, the harmonics caused by the clipping effect can be reduced and the signal-to-noise can be improved. Compare.
  • the sum of the time for the prediction circuit to predict the clipping parameter and the time for the gain estimation circuit to calculate the estimated gain value is less than or equal to the sampling period.
  • the sampling period may be the time length (or duration) between two adjacent sampling points. That is, the time when the gain estimation circuit obtains the estimated gain value minus the time when the audio signal enters the limiting device is less than or equal to the sampling period.
  • the sampling period is 1 second divided by 48000, which is about 20 microseconds. Since the sum of the time for predicting the limiting parameter and the time for calculating the estimated gain value is less than or equal to the sampling period, the time delay of the limiting device provided in the embodiment of the present application is relatively small when performing limiting processing on the audio signal.
  • the prediction circuit can be set as a straight-through, and the gain estimation circuit can be realized by using the circuit shown in Figure 6 or Figure 7. Since the delay on the wire is negligible, the delay of this gain estimation circuit is relatively small, so the gain The time when the estimated gain value is calculated by the estimation circuit minus the time when the audio signal enters the limiting device is less than or equal to the sampling period.
  • the limiting device provided in the embodiment of the present application is realized by predicting the limiting parameter according to the audio signal output by the limiting device, obtaining an estimated gain value according to the limiting parameter, and multiplying the audio signal by the estimated gain value fed back. purpose of clipping.
  • the gain estimation circuit will lower the gain estimation value when the value of the limiting parameter is higher, and the obtained gain estimation value is smaller, so after multiplying the audio signal and the feedback smaller gain estimation value, it can reach
  • the purpose of limiting is to reduce the displacement of the diaphragm and the temperature of the voice coil corresponding to the limited audio signal, so as to prolong the service life of the speaker.
  • This application adopts the feedback control method to form a closed-loop control system in the limiting device, so the stability is relatively high. Moreover, in the present application, the sum of the time when the prediction circuit predicts the limiting parameter and the time when the gain estimation circuit calculates the estimated gain value is less than or equal to the sampling period, so the time delay is small and the performance of the loudspeaker can be improved.
  • An embodiment of the present application further provides an audio system, the audio system includes an amplifier, a speaker, and a limiting device as shown in FIG. 2A or 2B or FIG. 3 , and the limiting device is coupled to the speaker through the amplifier.
  • the clipping device provided in the embodiment of the present application may be realized by the hardware circuit shown in FIG. 2A or FIG. 2B or FIG. 3 , or the clipping shown in FIG. 8 may be realized by a processor executing software codes or computer programs. method implementation.
  • the embodiment of the present application also provides a limiting method, which can be executed by a limiting device. As shown in FIG. 8 , the limiting method includes the following steps S801-S803.
  • the first audio signal may be an audio signal output to a speaker.
  • the first audio signal may be an audio signal output by a limiting device, and the audio signal output by the limiting device may be amplified by an amplifier and then output to a speaker. That is, the first audio signal may be an audio signal before being amplified by the amplifier.
  • the limiting parameter includes at least one of diaphragm displacement or voice coil temperature.
  • predicting the limiting parameter of the speaker based on the first audio signal in step S801 includes: predicting the diaphragm displacement of the speaker based on the TS parameter of the speaker and the audio parameter of the first audio signal.
  • the audio parameters of the first audio signal include voltage parameters or current parameters corresponding to the first audio signal.
  • predicting the limiting parameter of the speaker based on the first audio signal in step S801 includes: predicting the voice coil temperature of the speaker based on the TS parameter of the speaker and the audio parameter of the first audio signal.
  • the audio parameter of the first audio signal includes at least one of a voltage parameter or a current parameter corresponding to the first audio signal.
  • the above step S801 predicts the limiting parameters of the speaker based on the first audio signal, including: based on the TS parameter of the speaker and the voltage parameter or current parameter corresponding to the first audio signal, estimating Diaphragm displacement of the loudspeaker. Estimate the voice coil temperature of the speaker based on the TS parameter of the speaker and the voltage parameter and current parameter corresponding to the first audio signal.
  • step S802 may include: when the limiting parameter of the loudspeaker is higher than a first preset threshold, reducing the estimated gain value of the previous sampling point by a first value to obtain an estimated estimated gain value after adjustment.
  • the limiting parameter predicted by the predicting circuit is lower than the second preset threshold, the estimated gain value at the previous sampling point is increased by a second value to obtain an estimated estimated gain value after adjustment.
  • the first preset threshold is greater than or equal to the second preset threshold.
  • the first numerical value may be the same as the second numerical value, or may be different from the second numerical value.
  • the estimated gain value obtained may not be greater than the maximum gain or less than the minimum gain.
  • the second value, the first preset threshold, Specific values of the second preset threshold, the maximum gain and the minimum gain are not limited.
  • the maximum gain and minimum gain can be preset values.
  • step S802 may include adjusting the estimated gain value of the previous sampling point downward when the diaphragm displacement is relatively large.
  • the gain estimate from the previous sampling point can be adjusted upwards.
  • the larger and smaller diaphragm displacements may be compared with one or more preset thresholds.
  • the embodiment of the present application does not limit the specific value of the preset thresholds. In practical applications, it can be determined according to the speaker parameters , environmental parameters, etc. to determine.
  • step S802 may include adjusting the estimated value of the gain at the previous sampling point downward when the voice coil temperature is high.
  • the gain estimate from the previous sample point can be adjusted upwards.
  • the higher or lower voice coil temperature can also be compared with one or more preset thresholds.
  • the embodiment of the present application does not limit the specific value of the preset thresholds. In practical applications, it can be determined according to Loudspeaker parameters, environment parameters, etc. are determined.
  • the preset threshold for determining whether the temperature of the voice coil is higher or lower and the preset threshold for determining whether the displacement of the diaphragm is larger or smaller may be the same or different.
  • step S802 may include according to diaphragm displacement, voice coil temperature, the first weight corresponding to diaphragm displacement, and the second weight corresponding to voice coil temperature, to obtain Gain estimates. It can be understood that the values of the first weight and the second weight are related to parameters such as the degree of influence of diaphragm displacement and voice coil temperature on the life of the speaker in practical applications, and the specific structure of the speaker.
  • the estimated value corresponding to the diaphragm displacement at the previous sampling point can be adjusted up or down to obtain the first estimated value
  • the voice coil temperature at the previous sampling point can be adjusted up or down according to the voice coil temperature predicted in S801
  • the corresponding estimated value to obtain the second estimated value, multiply the first estimated value by the first weight corresponding to the diaphragm displacement, multiply the second estimated value by the second weight corresponding to the voice coil temperature, and multiply the two
  • the results are summed to get the adjusted gain estimate.
  • the embodiment of the present application does not limit the specific implementation of how to obtain the estimated gain value based on the limiting parameters of the speaker in step S802.
  • the methods of increasing the limiting parameter when it is too low are all within the protection scope of the present application.
  • the second audio signal is the input original audio signal.
  • the input initial audio signal may be a downlink audio signal processed by a processing unit (for example, a noise reduction unit), may also be an audio signal collected from a sensor, may also be an audio signal released from multimedia, and the like.
  • a processing unit for example, a noise reduction unit
  • the embodiment of the present application does not limit which device the second audio signal is output from.
  • the first audio signal in step S801 may be an audio signal at the first moment, and the first audio signal may be a limited audio signal.
  • the second audio signal in step S803 is the initial audio signal input at the next sampling point after the first moment, and the second audio signal has not been subjected to limiting processing.
  • the estimated gain value is a value greater than 0 and less than or equal to 1. Therefore, after the second audio signal is multiplied by the estimated gain value, harmonics caused by clipping effects can be reduced and a signal-to-noise ratio can be improved. Moreover, when the displacement of the diaphragm is large and/or the temperature of the voice coil is high, the estimated gain value will be adjusted downward, and the resulting estimated gain value will be smaller. Therefore, after multiplying the second audio signal with the smaller gain estimated value fed back, The purpose of limiting can be achieved, the diaphragm displacement and/or voice coil temperature corresponding to the audio signal can be reduced, and the service life of the speaker can be prolonged. Moreover, the limiting device provided by the present application has better stability and lower time delay, and can improve the performance of the loudspeaker.
  • the sum of the time for the limiting device to predict the limiting parameter and the time for determining the estimated gain value is less than or equal to the sampling period, so when the limiting device limits the second audio signal, the time delay is small.
  • the limiting method when the value of the limiting parameter is high, the estimated gain value will be lowered, and the estimated gain value obtained is smaller. Therefore, when the second audio signal is combined with a smaller gain After the estimated values are multiplied, the purpose of limiting can be achieved, the diaphragm displacement and voice coil temperature corresponding to the audio signal can be reduced, and the service life of the speaker can be extended. Moreover, in the present application, the sum of the time for predicting the limiting parameter and the time for determining the estimated gain value is less than or equal to the sampling period, so the time delay is small and the performance of the loudspeaker can be improved.
  • the embodiment of the present application also provides a limiting device, the limiting device includes a processor and an interface circuit, the processor receives or sends a signal through the interface circuit; the processor is used to execute the computer program stored in the memory , so that the clipping device implements the clipping method shown in FIG. 8 .
  • the embodiment of the present application also provides a computer-readable storage medium, where computer program code is stored in the computer-readable storage medium, and when the computer program code is run on the computer or the processor, the computer or the processing
  • the device implements the clipping method shown in Figure 8.
  • the embodiment of the present application also provides a computer program product, where the computer program product includes program instructions, and when the program instructions are executed by a computer or a processor, the clipping method shown in FIG. 8 is realized.
  • the steps of the methods or algorithms described in connection with the disclosure of this application can be implemented in the form of hardware, or can be implemented in the form of a processor executing software instructions.
  • the software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (random access memory, RAM), flash memory, erasable programmable read-only memory (erasable programmable ROM, EPROM), electrically erasable Programmable read-only memory (electrically EPROM, EEPROM), registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be a component of the processor.
  • the processor and storage medium can be located in the ASIC.
  • the ASIC may be located in the core network interface device.
  • the processor and the storage medium may also exist in the core network interface device as discrete components.
  • the functions described in the present invention may be implemented by hardware, software, firmware or any combination thereof.
  • the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
  • Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiments of the present application relate to the technical field of audio. Disclosed are an amplitude limiting apparatus and an amplitude limiting method, which alleviate the problem in the prior art of the service life of a loudspeaker being short and even the loudspeaker being damaged due to the fact that the displacement of a diaphragm is too large or the temperature of the loudspeaker is too high. The specific solution is: the amplitude limiting apparatus comprises a prediction circuit, a gain estimation circuit and a multiplier, wherein a first input end of the multiplier is used for receiving an audio signal, an output end of the amplitude limiting apparatus is coupled to an input end of the gain estimation circuit by means of the prediction circuit, and an output from the gain estimation circuit is fed back to a second input end of the multiplier; the prediction circuit is used for predicting the displacement of a diaphragm and/or the temperature of a voice coil of a loudspeaker on the basis of the audio signal which is output by the amplitude limiting apparatus; the gain estimation circuit is used for obtaining a gain estimation value on the basis of an amplitude limiting parameter predicted by the prediction circuit; and the multiplier is used for multiplying the received audio signal by the gain estimation value, so as to obtain an amplitude-limited audio signal, and the output end of the amplitude limiting apparatus outputs the amplitude-limited audio signal.

Description

一种限幅装置及限幅方法A limiting device and a limiting method 技术领域technical field
本申请实施例涉及音频技术领域,尤其涉及一种限幅装置及限幅方法。The embodiments of the present application relate to the field of audio technology, and in particular, to a limiting device and a limiting method.
背景技术Background technique
目前,扬声器作为一种发声设备,广泛应用于各类电子产品中。图1为一种扬声器的结构及原理示意图,如图1中的(a)所示,扬声器包括前盖、球顶、振膜、音圈、弹片、盆架、上夹板、磁钢和下夹板。待播放的音频信号以通电导体的形式缠绕在音圈上,音圈处于扬声器的磁场系统中。如图1中的(b)所示,当音圈中流过电流时,根据左手定则,音圈将受到安培力F的作用,与音圈相连的振膜将在安培力F的作用下产生位移的改变。由于扬声器的封装设计,振膜的位移变化会挤压扬声器腔内的气体,使扬声器发生声学谐振,从而发出声音。即扬声器的发声过程包括电-力-声的转换,根据扬声器换能原理可知,如果振膜的位移过大,扬声器的发声将不可避免的产生非线性失真,会减小扬声器的寿命,甚至损坏扬声器。而且扬声器作为一种换能器,在换能过程中,会产生大量的热量,如果扬声器内的音圈温度过高,也会损坏扬声器。因此,延长扬声器的使用寿命成为了亟待解决的问题。At present, a loudspeaker is widely used in various electronic products as a sound emitting device. Figure 1 is a schematic diagram of the structure and principle of a loudspeaker, as shown in (a) in Figure 1, the loudspeaker includes a front cover, a dome, a diaphragm, a voice coil, shrapnel, a basin frame, an upper splint, a magnetic steel and a lower splint . The audio signal to be played is wound in the form of an energized conductor on the voice coil, which is located in the loudspeaker's magnetic field system. As shown in (b) in Figure 1, when the current flows through the voice coil, according to the left-hand rule, the voice coil will be affected by the Ampere force F, and the diaphragm connected to the voice coil will be produced under the action of the Ampere force F change in displacement. Due to the packaging design of the speaker, the displacement change of the diaphragm will squeeze the gas in the speaker cavity, causing the speaker to resonate acoustically, thereby emitting sound. That is, the sounding process of the speaker includes the conversion of electricity-force-sound. According to the principle of speaker transduction, if the displacement of the diaphragm is too large, the sound of the speaker will inevitably produce nonlinear distortion, which will reduce the life of the speaker and even damage it. speaker. Moreover, as a kind of transducer, the speaker will generate a lot of heat during the energy conversion process. If the temperature of the voice coil in the speaker is too high, the speaker will also be damaged. Therefore, prolonging the service life of the loudspeaker has become an urgent problem to be solved.
发明内容Contents of the invention
本申请实施例提供一种限幅装置及限幅方法,能够对扬声器的限幅参数进行限幅控制,延长扬声器的使用寿命。Embodiments of the present application provide a limiting device and a limiting method, which can perform limiting control on limiting parameters of a loudspeaker and prolong the service life of the loudspeaker.
为达到上述目的,本申请实施例采用如下技术方案:In order to achieve the above purpose, the embodiment of the present application adopts the following technical solutions:
本申请实施例的第一方面,提供一种限幅装置,该限幅装置包括预测电路、增益估计电路和乘法器,该乘法器的第一输入端用于接收音频信号,限幅装置的输出端通过预测电路耦合至增益估计电路的输入端,增益估计电路的输出反馈至乘法器的第二输入端,限幅装置的输出端用于与扬声器耦合。预测电路,用于基于限幅装置输出的音频信号,预测扬声器的限幅参数,该限幅参数包括振膜位移或音圈温度中的至少一种。增益估计电路,用于基于预测电路预测的限幅参数,得到增益估计值。乘法器,用于接收音频信号以及增益估计电路反馈的增益估计值,并将接收的音频信号与增益估计值相乘,得到限幅的音频信号,限幅装置的输出端输出该限幅的音频信号。According to the first aspect of the embodiments of the present application, a limiting device is provided. The limiting device includes a prediction circuit, a gain estimation circuit, and a multiplier. The first input terminal of the multiplier is used to receive an audio signal, and the output of the limiting device The end is coupled to the input end of the gain estimation circuit through the prediction circuit, the output of the gain estimation circuit is fed back to the second input end of the multiplier, and the output end of the limiting device is used for coupling with the loudspeaker. The prediction circuit is used for predicting the limiting parameter of the loudspeaker based on the audio signal output by the limiting device, and the limiting parameter includes at least one of diaphragm displacement or voice coil temperature. The gain estimation circuit is used to obtain an estimated gain value based on the limiting parameter predicted by the prediction circuit. The multiplier is used to receive the audio signal and the gain estimation value fed back by the gain estimation circuit, and multiply the received audio signal and the gain estimation value to obtain a limited audio signal, and the output terminal of the limiting device outputs the limited audio Signal.
基于本方案,通过根据限幅装置输出的音频信号预测扬声器的限幅参数,并根据限幅参数得到增益估计值,将输入乘法器的音频信号与反馈的增益估计值相乘实现限幅的目的,本方案采用反馈控制方式可以在限幅装置内形成闭环控制系统,因此稳定性较高。而且本方案通过采用限幅参数(振膜位移或音圈温度中的至少一种)得到增益估计值,然后用该增益估计值对输入限幅装置的音频信号进行限幅,得到限幅后的音频信号,该音频信号的限幅使得限幅参数的幅度也得到限制,因此可以实现对振膜位移和/或音圈温度进行限幅的目的,能够降低音频信号对应的振膜位移和/或音圈温度,延长扬声器的使用寿命。Based on this scheme, the limiting parameter of the loudspeaker is predicted according to the audio signal output by the limiting device, and the gain estimation value is obtained according to the limiting parameter, and the audio signal input to the multiplier is multiplied by the feedback gain estimation value to achieve the purpose of limiting , this scheme adopts the feedback control method to form a closed-loop control system in the limiting device, so the stability is relatively high. Moreover, this program obtains the gain estimate by using the limit parameter (at least one of diaphragm displacement or voice coil temperature), and then uses the gain estimate to limit the audio signal input to the limiter to obtain the limited audio signal, the audio signal is limited so that the amplitude of the limiting parameter is also limited, so the purpose of limiting the diaphragm displacement and/or voice coil temperature can be achieved, and the corresponding diaphragm displacement and/or Voice coil temperature, prolonging the service life of the speaker.
结合第一方面,在一种可能的实现方式中,上述限幅装置还包括饱和限幅电路,乘法器的输出端通过该饱和限幅电路耦合至限幅装置的输出端。With reference to the first aspect, in a possible implementation manner, the limiting device further includes a saturated limiting circuit, and an output terminal of the multiplier is coupled to an output terminal of the limiting device through the saturated limiting circuit.
基于本方案,通过饱和限幅电路使得限幅装置输出的音频信号的幅值可以限定在预设阈值范围内,饱和限幅电路对经乘法器限幅的音频信号进行限幅是为了保护电路。Based on this solution, the amplitude of the audio signal output by the limiting device can be limited within the preset threshold range through the saturation limiting circuit. The purpose of limiting the audio signal limited by the multiplier is to protect the circuit.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,预测电路包括位移预测电路,位移预测电路,用于基于扬声器的Thiele-Small参数和限幅装置输出的音频信号,预测扬声器的振膜位移。位移预测电路的输入参数为限幅装置输出的音频信号对应的电压参数或电流参数。In combination with the first aspect and the foregoing possible implementation manners, in another possible implementation manner, the prediction circuit includes a displacement prediction circuit, and the displacement prediction circuit is used to output an audio signal based on the Thiele-Small parameter of the loudspeaker and the limiting device, Predict the diaphragm displacement of a loudspeaker. The input parameters of the displacement prediction circuit are voltage parameters or current parameters corresponding to the audio signal output by the limiting device.
Thiele-Small参数是人们为了纪念Thiele和Small这两位科学家在电学上的贡献定义的一组参数,简称TS参数。扬声器的TS参数用于衡量扬声器的电气性能。The Thiele-Small parameter is a set of parameters defined by people to commemorate the contribution of two scientists, Thiele and Small, to electricity, referred to as the TS parameter. The TS parameter of the loudspeaker is used to measure the electrical performance of the loudspeaker.
基于本方案,通过扬声器的TS参数以及限幅装置输出的音频信号对应的电压参数或电流参数能够预测扬声器的振膜位移,从而根据振膜位移可以得到增益估计值,将该增益估计值与输入乘法器的音频信号相乘后可以实现对该音频信号限幅的目的,能够延长扬声器的使用寿命Based on this scheme, the diaphragm displacement of the speaker can be predicted through the TS parameter of the speaker and the voltage parameter or current parameter corresponding to the audio signal output by the limiting device, so that the estimated gain value can be obtained according to the diaphragm displacement, and the estimated gain value can be compared with the input After the audio signal of the multiplier is multiplied, the purpose of limiting the audio signal can be achieved, which can prolong the service life of the speaker
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,预测电路还包括温度预测电路,该温度预测电路用于基于扬声器的Thiele-Small参数和限幅装置输出的音频信号,预测扬声器的音圈温度。温度预测电路的输入参数为限幅装置输出的音频信号对应的电压参数或电流参数中的至少一项。In combination with the first aspect and the above possible implementation manner, in another possible implementation manner, the prediction circuit further includes a temperature prediction circuit, and the temperature prediction circuit is used for the audio signal output based on the Thiele-Small parameter of the loudspeaker and the limiting device , to predict the voice coil temperature of the loudspeaker. The input parameter of the temperature prediction circuit is at least one of the voltage parameter or the current parameter corresponding to the audio signal output by the limiting device.
基于本方案,通过扬声器的TS参数以及限幅装置输出的音频信号对应的电压参数或电流参数中的至少一项能够预测扬声器音圈温度,从而根据音圈温度可以得到增益估计值,将该增益估计值与输入乘法器的音频信号相乘后可以实现对该音频信号限幅的目的,能够延长扬声器的使用寿命。Based on this scheme, at least one of the TS parameters of the loudspeaker and the voltage parameter or current parameter corresponding to the audio signal output by the limiting device can predict the voice coil temperature of the loudspeaker, so that an estimated gain value can be obtained according to the voice coil temperature, and the gain After the estimated value is multiplied by the audio signal input to the multiplier, the purpose of limiting the audio signal can be achieved, which can prolong the service life of the loudspeaker.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,在预测电路包括位移预测电路和温度预测电路的情况下,位移预测电路和温度预测电路并联连接。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, when the prediction circuit includes a displacement prediction circuit and a temperature prediction circuit, the displacement prediction circuit and the temperature prediction circuit are connected in parallel.
基于本方案,在预测电路包括位移预测电路和温度预测电路的情况下,通过扬声器的TS参数以及限幅装置输出的音频信号能够预测扬声器的振膜位移和音圈温度,从而根据振膜位移和音圈温度可以得到增益估计值,将该增益估计值与输入乘法器的音频信号相乘后可以实现对该音频信号限幅的目的,能够延长扬声器的使用寿命。Based on this scheme, when the prediction circuit includes a displacement prediction circuit and a temperature prediction circuit, the TS parameters of the loudspeaker and the audio signal output by the limiting device can predict the diaphragm displacement and voice coil temperature of the loudspeaker, so that according to the displacement of the diaphragm and the voice coil The temperature can obtain an estimated gain value, and after multiplying the estimated gain value by the audio signal input to the multiplier, the purpose of limiting the audio signal can be achieved, which can prolong the service life of the loudspeaker.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述位移预测电路包括一个或多个双二阶Biquad滤波器,该多个Biquad滤波器之间级联。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the displacement prediction circuit includes one or more biquad Biquad filters, and the multiple Biquad filters are cascaded.
基于本方案,通过一个Biquad滤波器或级联的多个Biquad滤波器,可以拟合电压-位移传递函数,从而可以较为准确的预测出扬声器的振膜位移。Based on this scheme, a Biquad filter or cascaded multiple Biquad filters can be used to fit the voltage-displacement transfer function, so that the diaphragm displacement of the loudspeaker can be predicted more accurately.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述温度预测电路,具体用于根据扬声器的Thiele-Small参数、限幅装置输出的音频信号对应的电压参数和电流参数对扬声器的阻抗进行辨识,预测扬声器的音圈温度。In combination with the first aspect and the above-mentioned possible implementation, in another possible implementation, the above-mentioned temperature prediction circuit is specifically used according to the Thiele-Small parameter of the speaker, the voltage parameter and the current corresponding to the audio signal output by the limiting device The parameters identify the impedance of the loudspeaker and predict the voice coil temperature of the loudspeaker.
基于本方案,通过使用扬声器芯片两端实时获取的反馈电压和反馈电流对扬声器的阻抗进行辨识,并利用扬声器中音圈的实时温度与实际阻抗之间的近似线性关系,预测扬声器的音圈温度,能够提升限幅装置控制的稳定性。Based on this scheme, the impedance of the speaker is identified by using the feedback voltage and feedback current obtained in real time at both ends of the speaker chip, and the approximate linear relationship between the real-time temperature of the voice coil in the speaker and the actual impedance is used to predict the voice coil temperature of the speaker , which can improve the stability of the limiter control.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述增益估 计电路,具体用于在上述限幅参数高于第一预设阈值时,将前一采样点的增益估计值减小第一数值;在限幅参数低于第二预设阈值时,将前一采样点的增益估计值增加第二数值。其中,第一预设阈值大于或等于第二预设阈值。In combination with the first aspect and the above-mentioned possible implementation, in another possible implementation, the above-mentioned gain estimation circuit is specifically configured to: when the above-mentioned limiting parameter is higher than the first preset threshold, the gain The estimated value is decreased by a first value; when the limiting parameter is lower than a second preset threshold, the estimated value of the gain at the previous sampling point is increased by a second value. Wherein, the first preset threshold is greater than or equal to the second preset threshold.
基于本方案,能够在振膜位移较大和/或音圈温度较高时,将增益估计值下调,因此乘法器在将接收的音频信号与反馈的较小的增益估计值相乘后,可以达到限幅的目的,能够降低限幅的音频信号对应的振膜位移和/或音圈温度,延长扬声器的使用寿命。而且本申请提供的限幅装置的稳定性较好,时延较低,能够提升扬声器的性能。本方案在在振膜位移较小和/或音圈温度较低时,将增益估计值上调,可以还原真实音频信号。Based on this scheme, the gain estimate can be lowered when the diaphragm displacement is large and/or the voice coil temperature is high, so the multiplier can achieve The purpose of limiting is to reduce the displacement of the diaphragm and/or the temperature of the voice coil corresponding to the limited audio signal, so as to prolong the service life of the speaker. Moreover, the limiting device provided by the present application has better stability and lower time delay, and can improve the performance of the loudspeaker. In this solution, when the displacement of the diaphragm is small and/or the temperature of the voice coil is low, the estimated value of the gain is raised to restore the real audio signal.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述增益估计值大于0且小于或等于1。With reference to the first aspect and the foregoing possible implementation manner, in another possible implementation manner, the above estimated gain value is greater than 0 and less than or equal to 1.
基于本方案,通过将大于0且小于或等于1的增益估计值与输入乘法器的音频信号相乘,不仅能够实现对该音频信号限幅的目的,而且能够减少削波效应带来的谐波,提升信噪比。Based on this scheme, by multiplying the estimated gain value greater than 0 and less than or equal to 1 with the audio signal input to the multiplier, not only the purpose of limiting the audio signal can be achieved, but also the harmonics caused by the clipping effect can be reduced , to improve the signal-to-noise ratio.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述增益估计电路包括第一选择器、减法器和加法器,该第一选择器的输出端为增益估计电路的输出端,第一选择器的输出端通过第一触发器耦合至减法器的第一输入端,减法器的第二输入端输入第一数值,减法器的输出端耦合至第一选择器的第一输入端。第一选择器的输出端通过第二触发器耦合至加法器的第一输入端,加法器的第二输入端输入第二数值,加法器的输出端耦合至第一选择器的第二输入端。第一选择器,用于将增益估计电路的输出输入至第一触发器或第二触发器。In combination with the first aspect and the above-mentioned possible implementation, in another possible implementation, the above-mentioned gain estimation circuit includes a first selector, a subtractor, and an adder, and the output terminal of the first selector is the output terminal of the gain estimation circuit. output terminal, the output terminal of the first selector is coupled to the first input terminal of the subtractor through the first flip-flop, the second input terminal of the subtractor inputs the first value, and the output terminal of the subtractor is coupled to the first input terminal of the first selector an input terminal. The output terminal of the first selector is coupled to the first input terminal of the adder through the second flip-flop, the second input terminal of the adder inputs the second value, and the output terminal of the adder is coupled to the second input terminal of the first selector . The first selector is used for inputting the output of the gain estimation circuit to the first flip-flop or the second flip-flop.
基于本方案,第一选择器可以将增益估计电路的输出输入至第一触发器或第二触发器,从而能够在限幅参数较高时,将前一采样点的增益估计值减小第一数值。在限幅参数较低时,将前一采样点的增益估计值增加第二数值。由于该增益估计电路的电路结构较为简单,使得限幅装置的时延较低。Based on this scheme, the first selector can input the output of the gain estimation circuit to the first flip-flop or the second flip-flop, so that when the limiting parameter is high, the gain estimation value of the previous sampling point can be reduced by the first value. When the clipping parameter is low, the gain estimate at the previous sampling point is increased by a second value. Since the circuit structure of the gain estimating circuit is relatively simple, the time delay of the limiting device is relatively low.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,第一选择器,具体用于在限幅参数高于第一预设阈值时,将增益估计电路输出的增益估计值输入第一触发器;在限幅参数低于第一预设阈值时,将增益估计电路输出的增益估计值输入第二触发器。第一触发器和第二触发器,用于将增益估计电路输出的增益估计值延时。减法器,用于将经第一触发器延时后的增益估计值减小第一数值。加法器,用于将经第二触发器延时后的增益估计值增加第二数值。With reference to the first aspect and the above possible implementation manner, in another possible implementation manner, the first selector is specifically configured to: when the limiting parameter is higher than the first preset threshold, the gain estimation output by the gain estimation circuit Input the value into the first flip-flop; when the limiting parameter is lower than the first preset threshold, input the estimated gain value output by the gain estimation circuit into the second flip-flop. The first flip-flop and the second flip-flop are used to delay the estimated gain value output by the gain estimation circuit. A subtractor, configured to reduce the estimated gain value delayed by the first trigger by a first value. An adder, configured to increase the estimated gain value delayed by the second flip-flop by a second value.
基于本方案,增益估计电路可以在限幅参数高于第一预设阈值时,将前一采样点的增益估计值减小第一数值。在限幅参数低于第一预设阈值时,将前一采样点的增益估计值增加第二数值。由于该增益估计电路的电路结构较为简单,使得限幅装置的时延较低。Based on this solution, the gain estimation circuit may reduce the estimated gain value of the previous sampling point by a first value when the limiting parameter is higher than the first preset threshold. When the limiting parameter is lower than the first preset threshold, the estimated value of the gain at the previous sampling point is increased by a second value. Since the circuit structure of the gain estimating circuit is relatively simple, the time delay of the limiting device is relatively low.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述增益估计电路还包括第二选择器、第三选择器和第四选择器,减法器的输出端与第二选择器的第一输入端连接,第二选择器的第二输入端输入预设最小增益,第二选择器的输出端与第一选择器的第一输入端连接。加法器的输出端与第三选择器的第一输入端连接, 第三选择器的第二输入端与第一选择器的输出端连接,第三选择器的输出端与第四选择器的第一输入端连接。第四选择器的第二输入端输入预设最大增益,第四选择器的输出端与所述第一选择器的第二输入端连接。In combination with the first aspect and the above-mentioned possible implementation, in another possible implementation, the above-mentioned gain estimation circuit further includes a second selector, a third selector, and a fourth selector, and the output terminal of the subtractor is connected to the second The first input end of the selector is connected, the second input end of the second selector is input with a preset minimum gain, and the output end of the second selector is connected with the first input end of the first selector. The output terminal of the adder is connected with the first input terminal of the third selector, the second input terminal of the third selector is connected with the output terminal of the first selector, and the output terminal of the third selector is connected with the first input terminal of the fourth selector. One input connection. The second input end of the fourth selector inputs a preset maximum gain, and the output end of the fourth selector is connected to the second input end of the first selector.
基于本方案,该增益估计电路可以在限幅参数大于或等于第一预设阈值时,将前一个采样点的增益估计值减小第一数值,得到调整后的增益估计值,并且调整后的增益估计值不小于预设最小增益。在限幅参数小于第一预设阈值时,将前一个采样点的增益估计值增加第二数值,得到调整后的增益估计值,并且调整后的增益估计值不大于预设最大增益。而且该增益估计电路的电路结构较为简单,使得限幅装置的时延较低。Based on this solution, the gain estimation circuit can reduce the estimated gain value of the previous sampling point by a first value to obtain an adjusted estimated gain value when the limiting parameter is greater than or equal to the first preset threshold value, and the adjusted The gain estimate is not less than a preset minimum gain. When the limiting parameter is less than the first preset threshold, the estimated gain value of the previous sampling point is increased by a second value to obtain an estimated gain value after adjustment, and the estimated estimated gain value after adjustment is not greater than the preset maximum gain. Moreover, the circuit structure of the gain estimation circuit is relatively simple, so that the time delay of the limiting device is relatively low.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述第二选择器,用于在减法器输出的数值大于预设最小增益时,将减法器输出的数值输出;在减法器输出的数值小于预设最小增益时,将预设最小增益输出。第三选择器,用于在经第二触发器延时后的增益估计值小于预设最大增益时,将加法器输出的数值输出;在经第二触发器延时后的增益估计值大于预设最大增益时,将预设最大增益输出。第四选择器,用于在第三选择器的输出小于预设最大增益时,将第三选择器的输出值输出;在第三选择器的输出大于预设最大增益时,将预设最大增益输出。In combination with the first aspect and the above possible implementation manner, in another possible implementation manner, the above second selector is configured to output the value output by the subtractor when the value output by the subtractor is greater than a preset minimum gain; When the value output by the subtractor is less than the preset minimum gain, the preset minimum gain is output. The third selector is used to output the value output by the adder when the estimated gain value delayed by the second trigger is less than the preset maximum gain; the estimated gain value delayed by the second trigger is greater than the preset maximum gain; When the maximum gain is set, the maximum gain output will be preset. The fourth selector is used to output the output value of the third selector when the output of the third selector is less than the preset maximum gain; when the output of the third selector is greater than the preset maximum gain, the preset maximum gain output.
基于本方案,通过第二选择器可以使得调整后的增益估计值不小于预设最小增益。通过第三选择器和第四选择器可以使得调整后的增益估计值不大于预设最大增益。而且该增益估计电路的电路结构较为简单,使得限幅装置的时延较低。Based on this solution, the adjusted estimated gain value can be made not less than the preset minimum gain through the second selector. Through the third selector and the fourth selector, the adjusted estimated gain value may not be greater than the preset maximum gain. Moreover, the circuit structure of the gain estimation circuit is relatively simple, so that the time delay of the limiting device is relatively low.
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,上述预测电路预测限幅参数的时间和上述增益估计电路计算增益估计值的时间之和小于或等于采样周期。With reference to the first aspect and the above possible implementation manner, in another possible implementation manner, the sum of the time when the prediction circuit predicts the clipping parameter and the time when the gain estimation circuit calculates the estimated gain value is less than or equal to the sampling period.
基于本方案,由于预测限幅参数的时间和计算增益估计值的时间之和小于或等于采样周期,即本申请中增益估计电路计算得到增益估计值的时刻减去音频信号进入限幅装置的时刻小于或等于采样周期,因此本申请实施例提供的限幅装置在对音频信号进行限幅处理时的时延较小。Based on this scheme, since the sum of the time for predicting the limiting parameter and the time for calculating the estimated gain value is less than or equal to the sampling period, that is, the moment when the gain estimated value is calculated by the gain estimation circuit in this application minus the time when the audio signal enters the limiting device is less than or equal to the sampling period, so the time delay of the limiting device provided in the embodiment of the present application is relatively small when performing limiting processing on the audio signal.
本申请实施例的第二方面,提供一种限幅方法,该限幅方法包括:首先,基于第一音频信号预测扬声器的限幅参数,该限幅参数包括振膜位移或音圈温度中的至少一种;该第一音频信号为输出给扬声器的音频信号。然后,基于扬声器的限幅参数,得到增益估计值。最后,将第二音频信号与该增益估计值相乘,得到限幅的音频信号,该第二音频信号为输入的初始音频信号。In a second aspect of the embodiments of the present application, a limiting method is provided, the limiting method includes: first, predicting the limiting parameters of the loudspeaker based on the first audio signal, the limiting parameters include diaphragm displacement or voice coil temperature At least one type; the first audio signal is an audio signal output to the speaker. Then, based on the clipping parameters of the loudspeaker, a gain estimate is obtained. Finally, the second audio signal is multiplied by the estimated gain value to obtain a limited audio signal, and the second audio signal is the input original audio signal.
结合第二方面,在一种可能的实现方式中,上述基于第一音频信号预测扬声器的限幅参数,包括:基于扬声器的Thiele-Small参数和第一音频信号的音频参数,预测扬声器的振膜位移。该第一音频信号的音频参数包括第一音频信号对应的电压参数或电流参数。With reference to the second aspect, in a possible implementation manner, the prediction of the limiting parameter of the loudspeaker based on the first audio signal includes: predicting the diaphragm of the loudspeaker based on the Thiele-Small parameter of the loudspeaker and the audio parameter of the first audio signal. displacement. The audio parameters of the first audio signal include voltage parameters or current parameters corresponding to the first audio signal.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,上述基于第一音频信号预测扬声器的限幅参数,还包括:基于扬声器的Thiele-Small参数和第一音频信号的音频参数,预测扬声器的音圈温度。该第一音频信号的音频参数包括第一音频信号对应的电压参数或电流参数中的至少一项。With reference to the second aspect and the above possible implementation manner, in another possible implementation manner, the prediction of the limiting parameter of the loudspeaker based on the first audio signal further includes: Thiele-Small parameters based on the loudspeaker and the first audio signal Audio parameter that predicts the voice coil temperature of a loudspeaker. The audio parameter of the first audio signal includes at least one of a voltage parameter or a current parameter corresponding to the first audio signal.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,上述基于扬声器的限幅参数,得到增益估计值,包括:在扬声器的限幅参数高于第一预设阈值时,将前一采样点的增益估计值减小第一数值;在扬声器的限幅参数低于第二预设阈值时,将前一采样点的增益估计值增加第二数值;其中,第一预设阈值大于或等于第二预设阈值。In combination with the second aspect and the above possible implementation manner, in another possible implementation manner, the obtaining the estimated gain value based on the limiting parameter of the speaker includes: when the limiting parameter of the loudspeaker is higher than the first preset threshold , reduce the estimated gain value of the previous sampling point by a first value; when the limiting parameter of the loudspeaker is lower than a second preset threshold, increase the estimated gain value of the previous sampling point by a second value; wherein, the first preset The threshold is set to be greater than or equal to the second preset threshold.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,上述增益估计值大于0且小于或等于1。With reference to the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the above estimated gain value is greater than 0 and less than or equal to 1.
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,预测上述限幅参数的时间和确定上述增益估计值的时间之和小于或等于采样周期。With reference to the second aspect and the foregoing possible implementation manner, in another possible implementation manner, the sum of the time for predicting the limiting parameter and the time for determining the estimated gain value is less than or equal to the sampling period.
上述第二方面的效果描述可以参考第一方面的效果描述,在此不再赘述。For the effect description of the second aspect above, reference may be made to the effect description of the first aspect, and details are not repeated here.
本申请实施例的第三方面,提供一种限幅设备,该限幅设备包括处理器和接口电路,所述处理器通过所述接口电路接收或发送信号;所述处理器用于执行存储在存储器中的计算机程序,使得所述限幅设备执行上述第二方面所述的方法。According to the third aspect of the embodiments of the present application, there is provided a limiting device, the limiting device includes a processor and an interface circuit, the processor receives or sends a signal through the interface circuit; the processor is used to execute the signal stored in the memory The computer program in the present invention enables the clipping device to perform the method described in the second aspect above.
本申请实施例的第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序代码,当所述计算机程序代码在计算机或处理器上运行时,使得所述计算机或所述处理器执行上述第二方面所述的方法。According to the fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided. Computer program code is stored in the computer-readable storage medium. When the computer program code is run on a computer or a processor, the The computer or the processor executes the method described in the second aspect above.
本申请实施例的第五方面,提供了一种计算机程序产品,该程序产品储存有程序指令,该程序指令被计算机或者处理器执行时,使得上述第二方面所述的方法得以实现。A fifth aspect of the embodiments of the present application provides a computer program product, the program product stores program instructions, and when the program instructions are executed by a computer or a processor, the method described in the second aspect above is realized.
本申请实施例的第六方面,提供了一种音频系统,该音频系统包括放大器、扬声器,以及如上述第一方面所述的限幅装置,所述限幅装置通过所述放大器耦合至所述扬声器。The sixth aspect of the embodiments of the present application provides an audio system, the audio system includes an amplifier, a speaker, and the limiting device as described in the first aspect above, and the limiting device is coupled to the speaker.
附图说明Description of drawings
图1为本申请实施例提供的一种扬声器的结构及原理示意图;FIG. 1 is a schematic diagram of the structure and principle of a loudspeaker provided by the embodiment of the present application;
图2A为本申请实施例提供的一种限幅装置的结构示意图;FIG. 2A is a schematic structural diagram of a clipping device provided in an embodiment of the present application;
图2B为本申请实施例提供的另一种限幅装置的结构示意图Fig. 2B is a schematic structural diagram of another limiting device provided in the embodiment of the present application
图3为本申请实施例提供的又一种限幅装置的结构示意图;Fig. 3 is a schematic structural diagram of another limiting device provided in the embodiment of the present application;
图4为本申请实施例提供的一种Biquad滤波器的结构意图;Fig. 4 is the structural representation of a kind of Biquad filter that the embodiment of the present application provides;
图5为本申请实施例提供的一种阻抗辨识方法的流程示意图;FIG. 5 is a schematic flow chart of an impedance identification method provided in an embodiment of the present application;
图6为本申请实施例提供的一种增益估计电路的结构示意图;FIG. 6 is a schematic structural diagram of a gain estimation circuit provided in an embodiment of the present application;
图7为本申请实施例提供的另一种增益估计电路的结构示意图;FIG. 7 is a schematic structural diagram of another gain estimation circuit provided by an embodiment of the present application;
图8为本申请实施例提供的一种限幅方法的流程示意图。FIG. 8 is a schematic flow chart of a clipping method provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。在本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a, b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或,a和b和c,其中a、b和c可以是单个,也可以是多个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分,本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定。比如,本申请实施例中的第一数值中的“第一”和第二数值中的“第二”仅用于区分不同的数值。本申请实施例中出现的第一、第二等描述,仅作示意与区分描述对象之用,没有次序之分,也不表示本申请实施例中对设备个数的特别限定,不能构成对本申请实施例的任何限制。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (unit) of a, b or c can represent: a, b, c, a and b, a and c, b and c, or, a and b and c, wherein a, b and c can be single or multiple. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect, Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order. For example, "first" in the first numerical value and "second" in the second numerical value in the embodiments of the present application are only used to distinguish different numerical values. The first, second, etc. descriptions that appear in the embodiments of this application are only for illustration and to distinguish the description objects, and there is no order, nor does it represent a special limitation on the number of devices in the embodiments of this application, and cannot constitute a limitation on the number of devices in this application. Any limitations of the examples.
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described herein as "exemplary" or "for example" is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner.
由于扬声器的振膜位移过大或音圈温度过高时,会减小扬声器的寿命,甚至损坏扬声器。为了缓解因扬声器中振膜位移过大或扬声器内的温度过高影响扬声器寿命,甚至损耗扬声器的问题,本申请实施例提供一种限幅装置,该限幅装置能够对扬声器的振膜位移或音圈温度进行限幅控制,延长扬声器的使用寿命,而且本申请提供的限幅装置的稳定性较好,时延较低,能够提升扬声器的性能。When the displacement of the diaphragm of the speaker is too large or the temperature of the voice coil is too high, the life of the speaker will be reduced, and the speaker may even be damaged. In order to alleviate the problem that the life of the speaker is affected by the excessive displacement of the diaphragm in the speaker or the temperature in the speaker is too high, or even the loss of the speaker, the embodiment of the present application provides a limiting device, which can control the displacement of the diaphragm of the speaker or Limiting control is performed on the temperature of the voice coil to prolong the service life of the loudspeaker, and the limiting device provided by the present application has better stability and lower time delay, which can improve the performance of the loudspeaker.
本申请实施例提供一种限幅装置,如图2A所示,该限幅装置包括预测电路、增益估计电路和乘法器,乘法器的第一输入端a为限幅装置的输入端,限幅装置的输入端用于接收音频信号,限幅装置的输出端e通过预测电路耦合至增益估计电路的输入端c,增益估计电路的输出端反馈至乘法器的第二输入端d,限幅装置的输出端用于与扬声器耦合。An embodiment of the present application provides a limiting device, as shown in Figure 2A, the limiting device includes a prediction circuit, a gain estimation circuit and a multiplier, the first input a of the multiplier is the input end of the limiting device, and the limiting The input terminal of the device is used to receive the audio signal, the output terminal e of the limiting device is coupled to the input terminal c of the gain estimation circuit through the prediction circuit, the output terminal of the gain estimation circuit is fed back to the second input terminal d of the multiplier, and the limiting device The output terminal is used to couple with the loudspeaker.
可选的,如图2B所示,限幅装置还可以包括饱和限幅电路,乘法器的输出端b通过饱和限幅电路耦合至限幅装置的输出端e。该饱和限幅电路可以使得限幅装置输出的音频信号的幅值限定在预设阈值范围内。上述限幅装置的输出端输出的限幅的音频信号可以为经饱和限幅电路限幅后输出的音频信号。Optionally, as shown in FIG. 2B , the limiting device may further include a saturated limiting circuit, and the output terminal b of the multiplier is coupled to the output terminal e of the limiting device through the saturated limiting circuit. The saturation limiting circuit can limit the amplitude of the audio signal output by the limiting device within a preset threshold range. The limited audio signal output from the output terminal of the limiting device may be an output audio signal limited by a saturated limiting circuit.
需要说明的是,如果直接使用饱和限幅电路对音频信号进行限幅,将导致音频信号被削波,会产生大量的谐波。而本申请实施例通过预测电路和增益估计电路反馈增益估计值,并根据增益估计值对音频信号进行限幅,能够保护扬声器。限幅后的信号再通过饱和限幅电路进行处理后,输出至扬声器。也就是说,限幅装置中通过对音频信号与增益估计值相乘实现的限幅是为了保护扬声器,而饱和限幅电路对乘法器限幅的音频信号进行的限幅是为了保护电路。It should be noted that if the audio signal is clipped directly using the saturation clipping circuit, the audio signal will be clipped and a large number of harmonics will be generated. However, in the embodiment of the present application, the estimated gain value is fed back by the prediction circuit and the gain estimation circuit, and the audio signal is limited according to the estimated gain value, so as to protect the loudspeaker. The limited signal is then processed by a saturated limiting circuit and then output to the speaker. That is to say, the limit implemented by multiplying the audio signal by the estimated gain value in the limiter is to protect the loudspeaker, and the limit performed by the saturation limiter circuit on the audio signal limited by the multiplier is to protect the circuit.
可选的,如图2B所示,饱和限幅电路的输出端e可以通过放大器与扬声器耦合。放大器用于将饱和限幅电路输出的音频信号进行放大并输入至扬声器,扬声器接收放大后的信号并播放声音。Optionally, as shown in FIG. 2B , the output terminal e of the saturation limiter circuit may be coupled to the speaker through an amplifier. The amplifier is used to amplify the audio signal output by the saturation limiting circuit and input it to the speaker, and the speaker receives the amplified signal and plays the sound.
预测电路,用于基于限幅装置输出的音频信号,预测扬声器的限幅参数,该限幅参数包括振膜位移或音圈温度中的至少一种。The prediction circuit is used for predicting the limiting parameter of the loudspeaker based on the audio signal output by the limiting device, and the limiting parameter includes at least one of diaphragm displacement or voice coil temperature.
可选的,预测电路可以包括用于估计振膜位移的位移预测电路,也可以包括用于估计音圈温度的温度预测电路,还可以包括用于估计振膜位移的位移预测电路以及用 于估计音圈温度的温度预测电路。本申请实施例对于预测电路的具体结构并不进行限定。Optionally, the prediction circuit may include a displacement prediction circuit for estimating the displacement of the diaphragm, a temperature prediction circuit for estimating the temperature of the voice coil, a displacement prediction circuit for estimating the displacement of the diaphragm, and a circuit for estimating Temperature prediction circuit for voice coil temperature. The embodiment of the present application does not limit the specific structure of the prediction circuit.
示例性的,在预测电路包括位移预测电路的情况下,限幅参数包括振膜位移,该位移预测电路用于基于扬声器的TS(Thiele-Small)参数和限幅装置输出的音频信号,预测扬声器的振膜位移。在预测电路包括温度预测电路的情况下,限幅参数包括音圈温度,该温度预测电路用于基于扬声器的TS参数和限幅装置输出的音频信号,预测扬声器的音圈温度。在预测电路包括位移预测电路和温度预测电路的情况下,限幅参数包括振膜位移和音圈温度,该位移预测电路用于基于扬声器的TS参数和限幅装置输出的音频信号,预测扬声器的振膜位移,温度预测电路用于基于扬声器的TS参数和限幅装置输出的音频信号,预测扬声器的音圈温度。如图3所示,在预测电路包括位移预测电路和温度预测电路的情况下,该位移预测电路和温度预测电路之间并联连接。位移预测电路的输入端与温度预测电路的输入端均连接到限幅装置的输出端e,位移预测电路的输出端与温度预测电路的输出端均耦合至增益估计电路的输入端c。Exemplarily, in the case where the prediction circuit includes a displacement prediction circuit, the limiting parameters include a diaphragm displacement, and the displacement prediction circuit is used to predict the loudspeaker based on the TS (Thiele-Small) parameter of the loudspeaker and the audio signal output by the limiting device. diaphragm displacement. In the case that the predicting circuit includes a temperature predicting circuit, the limiting parameter includes voice coil temperature, and the temperature predicting circuit is used to predict the voice coil temperature of the speaker based on the TS parameter of the speaker and the audio signal output by the limiting device. In the case where the prediction circuit includes a displacement prediction circuit and a temperature prediction circuit, the limiting parameters include diaphragm displacement and voice coil temperature, and the displacement prediction circuit is used to predict the vibration of the speaker based on the TS parameters of the speaker and the audio signal output by the limiting device. The membrane displacement and temperature prediction circuit is used to predict the voice coil temperature of the speaker based on the TS parameter of the speaker and the audio signal output by the limiting device. As shown in FIG. 3 , when the prediction circuit includes a displacement prediction circuit and a temperature prediction circuit, the displacement prediction circuit and the temperature prediction circuit are connected in parallel. Both the input end of the displacement prediction circuit and the input end of the temperature prediction circuit are connected to the output end e of the limiter, and the output ends of the displacement prediction circuit and the output end of the temperature prediction circuit are coupled to the input end c of the gain estimation circuit.
Thiele-Small参数是人们为了纪念Thiele和Small这两位科学家在电学上的贡献定义的一组参数,简称TS参数。TS参数用于衡量扬声器的电气性能。扬声器的TS参数包括但不限于扬声器的最低共振频率f 0、线圈的直流阻抗R e、振动系统等效质量M ms、扬声器总阻尼系数Q ts、磁力因子Bl、扬声器机械品质因子Q ms等参数。本申请实施例对于扬声器的TS参数的具体类型并不限定。 The Thiele-Small parameter is a set of parameters defined by people to commemorate the contribution of two scientists, Thiele and Small, to electricity, referred to as the TS parameter. TS parameters are used to measure the electrical performance of loudspeakers. The TS parameters of the loudspeaker include but are not limited to the lowest resonance frequency f 0 of the loudspeaker, the DC impedance Re of the coil, the equivalent mass of the vibration system M ms , the total damping coefficient of the loudspeaker Q ts , the magnetic factor Bl, the mechanical quality factor of the loudspeaker Q ms and other parameters . The embodiment of the present application does not limit the specific type of the TS parameter of the loudspeaker.
下面分别对位移预测电路预测扬声器的振膜位移和温度预测电路预测扬声器的音圈温度的方法进行介绍。The method of predicting the displacement of the diaphragm of the speaker by the displacement prediction circuit and the method of predicting the temperature of the voice coil of the speaker by the temperature prediction circuit will be introduced respectively below.
位移预测电路预测扬声器的振膜位移时,该位移预测电路的输入参数可以为限幅装置输出的音频信号对应的电压参数或电流参数。本申请实施例以位移预测电路的输入参数为限幅装置输出的音频信号对应的电压参数,扬声器的TS参数包括扬声器的最低共振频率f 0、线圈的直流阻抗R e、振动系统等效质量M ms、扬声器总阻尼系数Q ts、磁力因子Bl为例,对位移预测电路预测振膜位移的方法进行介绍。 When the displacement prediction circuit predicts the displacement of the diaphragm of the loudspeaker, the input parameter of the displacement prediction circuit may be a voltage parameter or a current parameter corresponding to the audio signal output by the limiting device. In the embodiment of the present application, the input parameters of the displacement prediction circuit are used as the voltage parameters corresponding to the audio signal output by the limiting device. The TS parameters of the speaker include the lowest resonance frequency f 0 of the speaker, the DC impedance Re of the coil, and the equivalent mass M of the vibration system. Taking ms , total loudspeaker damping coefficient Q ts , and magnetic factor Bl as examples, the method for predicting diaphragm displacement by the displacement prediction circuit is introduced.
可选的,根据扬声器在拉普拉斯域的电压-位移传递函数,可以估计得到振膜位移。该电压-位移传递函数如下式所示:Optionally, the diaphragm displacement can be estimated according to the voltage-displacement transfer function of the loudspeaker in the Laplace domain. The voltage-displacement transfer function is as follows:
Figure PCTCN2021130175-appb-000001
Figure PCTCN2021130175-appb-000001
其中,H(S)为电压-位移传递函数,X(S)为频率域的振膜位移,U(S)为频率域的反馈电压,f 0为扬声器最低共振频率、R e为线圈的直流阻抗、M ms为振动系统等效质量、Q ts为扬声器总阻尼系数、Bl为磁力因子。 Among them, H(S) is the voltage-displacement transfer function, X(S) is the diaphragm displacement in the frequency domain, U(S) is the feedback voltage in the frequency domain, f 0 is the lowest resonant frequency of the loudspeaker, Re is the direct current of the coil Impedance, M ms is the equivalent mass of the vibration system, Q ts is the total damping coefficient of the loudspeaker, Bl is the magnetic force factor.
可选的,位移预测电路在预测扬声器的振膜位移时,该位移预测电路可以采用一个双二阶Biquad滤波器拟合上述电压-位移传递函数,也可以采用多个Biquad滤波器级联拟合上述电压-位移传递函数,其中一个Biquad滤波器可以通过图4所示的结构实现。即,图3中的位移预测电路可以包括一个Biquad滤波器,也可以包括多个图4所示的Biquad滤波器级联。图4中输入的数据为限幅装置输出的音频信号的电压参数,该电压参数可以是从扬声器芯片两端实时获取的反馈电压,输出的数据为预测的振膜 位移,D为用于实现一个音频采样点延时的D触发器,b0、b1和b2为前馈系数,a1和a2为反馈系数,前馈系数和反馈系数可以根据上述TS参数计算得到,图4所示的滤波器结构可以实现上述电压-位移传递函数H(S),能够预测振膜位移。Optionally, when the displacement prediction circuit predicts the diaphragm displacement of the loudspeaker, the displacement prediction circuit can use a biquad Biquad filter to fit the above-mentioned voltage-displacement transfer function, or can use multiple Biquad filter cascade fittings The above voltage-displacement transfer function, where a Biquad filter can be realized by the structure shown in Figure 4. That is, the displacement prediction circuit in FIG. 3 may include one Biquad filter, or may include multiple cascaded Biquad filters shown in FIG. 4 . The input data in Fig. 4 is the voltage parameter of the audio signal output by the limiting device, and the voltage parameter can be the feedback voltage obtained from both ends of the speaker chip in real time, the output data is the predicted diaphragm displacement, and D is used to realize a The D flip-flop of the audio sampling point delay, b0, b1 and b2 are the feedforward coefficients, a1 and a2 are the feedback coefficients, the feedforward coefficient and the feedback coefficient can be calculated according to the above TS parameters, and the filter structure shown in Figure 4 can be Realizing the above-mentioned voltage-displacement transfer function H(S), the diaphragm displacement can be predicted.
可以理解的,位移预测电路在预测振膜位移时,可以采用多个图4所示的Biquad滤波器级联拟合电压-位移传递函数,也可以采用切比雪夫滤波器拟合电压-位移传递函数,还可以采用多阶无限冲激响应滤波器拟合电压-位移传递函数,还可以采用多阶有限冲激响应拟合电压-位移传递函数。本申请实施例对于位移预测电路预测扬声器的振膜位移的具体方法并不限定。It can be understood that when the displacement prediction circuit predicts the displacement of the diaphragm, multiple Biquad filters shown in Figure 4 can be cascaded to fit the voltage-displacement transfer function, or the Chebyshev filter can be used to fit the voltage-displacement transfer function, and a multi-order infinite impulse response filter can be used to fit the voltage-displacement transfer function, and a multi-order finite impulse response can be used to fit the voltage-displacement transfer function. The embodiment of the present application does not limit the specific method for the displacement prediction circuit to predict the diaphragm displacement of the loudspeaker.
温度预测电路预测扬声器的音圈温度时,该温度预测电路的输入参数可以为限幅装置输出的音频信号对应的电压参数或电流参数中的至少一项。本申请实施例以扬声器的TS参数包括扬声器的最低共振频率f 0、线圈的直流阻抗R e、振动系统等效质量M ms、扬声器机械品质因子Q ms和磁力因子Bl,温度预测电路的输入参数包括限幅装置输出的音频信号对应的电压参数和电流参数为例,对温度预测电路预测扬声器的音圈温度的方法进行介绍。 When the temperature prediction circuit predicts the voice coil temperature of the loudspeaker, the input parameter of the temperature prediction circuit may be at least one of the voltage parameter or the current parameter corresponding to the audio signal output by the limiting device. In the embodiment of the present application, the TS parameters of the speaker include the lowest resonant frequency f 0 of the speaker, the DC impedance Re of the coil, the equivalent mass of the vibration system M ms , the mechanical quality factor of the speaker Q ms and the magnetic factor Bl, and the input parameters of the temperature prediction circuit Including the voltage parameter and current parameter corresponding to the audio signal output by the limiting device as an example, the method for predicting the voice coil temperature of the speaker by the temperature prediction circuit is introduced.
可选的,由于扬声器的各项参数随着环境的改变(例如环境温度、输入电压)而变化,因此可以根据环境参数对扬声器进行实时建模。室温25摄氏度下,通过测试TS模型参数,获得扬声器在拉普拉斯域的初始阻抗曲线如下式所示:Optionally, since various parameters of the loudspeaker change with changes in the environment (eg, ambient temperature, input voltage), real-time modeling of the loudspeaker may be performed according to the environmental parameters. At a room temperature of 25 degrees Celsius, by testing the parameters of the TS model, the initial impedance curve of the speaker in the Laplace domain is obtained as follows:
Figure PCTCN2021130175-appb-000002
Figure PCTCN2021130175-appb-000002
其中,f 0为扬声器最低共振频率、R e为线圈的直流阻抗、M ms为振动系统等效质量、Q ms为扬声器的机械品质因子、Bl为磁力因子。 Among them, f 0 is the lowest resonance frequency of the speaker, Re is the DC impedance of the coil, M ms is the equivalent mass of the vibration system, Q ms is the mechanical quality factor of the speaker, and Bl is the magnetic force factor.
设限幅装置输出的音频信号的电压参数为u(t),电流参数为i(t),u(t)和i(t)可以是从扬声器芯片两端实时获取的反馈电压和反馈电流,利用u(t)和i(t)进行扬声器阻抗辨识。Suppose that the voltage parameter of the audio signal output by the limiting device is u(t), the current parameter is i(t), u(t) and i(t) can be the feedback voltage and the feedback current obtained in real time from both ends of the speaker chip, Use u(t) and i(t) for loudspeaker impedance identification.
可选的,温度预测电路在预测音圈温度时,可以采用归一化的最小均方(normalized least mean square,NLMS)算法在线对上述Z(s)进行辨识。如图5所示,初始化扬声器的阻抗曲线Z 0(S),根据反馈电压u(t)、反馈电流i(t)和初始化的阻抗曲线Z 0(S)计算偏差e(t)=u(t)-IFFT(FFT(i(t))*Z 0(S)),再对偏差e(t)进行傅里叶变换得到E(S)=FFT(e(t)),根据
Figure PCTCN2021130175-appb-000003
得到更新的阻抗Z(S),其中,||I(S)|| 2表示对频域的电流I(S)求二范数,并进一步判断阻抗辨识结果Z(S)是否收敛,并在阻抗辨识结果Z(S)收敛的情况下得到更新的扬声器的阻抗曲线。
Optionally, when the temperature prediction circuit predicts the temperature of the voice coil, it may use a normalized least mean square (NLMS) algorithm to identify the above Z(s) online. As shown in Figure 5, the impedance curve Z 0 (S) of the speaker is initialized, and the deviation e(t)=u ( t)-IFFT(FFT(i(t))*Z 0 (S)), and then perform Fourier transform on the deviation e(t) to get E(S)=FFT(e(t)), according to
Figure PCTCN2021130175-appb-000003
Get the updated impedance Z(S), where ||I(S)|| 2 means to find the second norm for the current I(S) in the frequency domain, and further judge whether the impedance identification result Z(S) is convergent, and then When the impedance identification result Z(S) converges, an updated impedance curve of the loudspeaker is obtained.
由于扬声器中音圈的实时温度与实际阻抗之间可以近似认为有如下线性关系:Since the real-time temperature of the voice coil in the speaker and the actual impedance can be approximately considered to have the following linear relationship:
T=T 0+α(||Z(S)||-||Z 0(S)||); T=T 0 +α(||Z(S)||-||Z 0 (S)||);
其中,T 0为常温25摄氏度,Z 0(S)为初始阻抗,Z(S)为阻抗辨识结果,α为扬声器温敏系数。根据图5进行阻抗辨识的结果Z(S)、初始阻抗Z 0(S)、T 0和α可以得到实时温度T。 Among them, T 0 is the normal temperature of 25 degrees Celsius, Z 0 (S) is the initial impedance, Z(S) is the impedance identification result, and α is the temperature sensitivity coefficient of the speaker. The real-time temperature T can be obtained according to the impedance identification results Z(S), initial impedance Z 0 (S), T 0 and α in Fig. 5 .
由于环境(例如,输入电压、环境温度)变化时,扬声器的TS参数可能与常温和小信号测试得到的参数存在偏差。因此,这里,通过使用扬声器芯片两端实时获取的反馈电压和反馈电流对扬声器的阻抗进行辨识,并利用扬声器中音圈的实时温度与实际阻抗之间的近似线性关系,预测扬声器的音圈温度,能够提升限幅装置控制的稳定性。When the environment (for example, input voltage, ambient temperature) changes, the TS parameters of the loudspeaker may deviate from the parameters obtained by normal temperature and small signal tests. Therefore, here, the impedance of the speaker is identified by using the feedback voltage and feedback current obtained in real time at both ends of the speaker chip, and the approximate linear relationship between the real-time temperature of the voice coil in the speaker and the actual impedance is used to predict the voice coil temperature of the speaker , which can improve the stability of the limiter control.
可选的,温度预测电路在预测音圈温度时,可以使用阻抗辨识预测音圈温度,也可以对直流电阻进行建模预测音圈温度。本申请实施例对于温度预测电路预测音圈温度的具体方法并不限定。例如,温度预测电路可以根据实时温度与电阻之间的关系T(t)=T(0)+α(R e(t)-R e)预测音圈温度。其中,T(0)为常温25摄氏度,R e(t)为实时计算的直流电阻,R e为初始电阻,α为扬声器温敏系数。 Optionally, when the temperature prediction circuit predicts the voice coil temperature, it can use impedance identification to predict the voice coil temperature, or model the DC resistance to predict the voice coil temperature. The embodiment of the present application does not limit the specific method for predicting the temperature of the voice coil by the temperature prediction circuit. For example, the temperature prediction circuit can predict the temperature of the voice coil according to the relationship between real-time temperature and resistance T(t)=T(0)+α(R e (t)−R e ). Among them, T(0) is the normal temperature of 25 degrees Celsius, Re (t) is the DC resistance calculated in real time, Re is the initial resistance, and α is the temperature sensitivity coefficient of the speaker.
增益估计电路,用于基于预测电路预测的限幅参数,得到增益估计值。The gain estimation circuit is used to obtain an estimated gain value based on the limiting parameter predicted by the prediction circuit.
增益估计电路具体用于在预测电路预测的限幅参数高于第一预设阈值时,将前一采样点得到的增益估计值减小第一数值,并将调整后的增益估计值输出至乘法器。在预测电路预测的限幅参数低于第二预设阈值时,将前一采样点得到的增益估计值增加第二数值,并将调整后的增益估计值输出至乘法器。该第一预设阈值大于或等于第二预设阈值。第一数值可以与第二数值相同,也可以与第二数值不同。例如,第一数值可以大于第二数值,也可以小于第二数值,还可以等于第二数值。The gain estimation circuit is specifically used to reduce the gain estimation value obtained at the previous sampling point by a first value when the clipping parameter predicted by the prediction circuit is higher than the first preset threshold value, and output the adjusted gain estimation value to the multiplier device. When the limiting parameter predicted by the prediction circuit is lower than the second preset threshold, the estimated gain value obtained at the previous sampling point is increased by a second value, and the adjusted estimated gain value is output to the multiplier. The first preset threshold is greater than or equal to the second preset threshold. The first numerical value may be the same as the second numerical value, or may be different from the second numerical value. For example, the first numerical value may be greater than the second numerical value, may also be smaller than the second numerical value, and may also be equal to the second numerical value.
示例性的,对于第一个采样点的音频信号,可以设置初始增益估计值,限幅装置将该第一个采样点的音频信号与初始增益估计值相乘,得到限幅的音频信号,限幅装置的输出端输出该限幅的音频信号。若预测电路基于该限幅的音频信号预测的限幅参数高于第一预设阈值,增益估计电路将初始增益估计值向下调整,得到第一增益估计值。若预测电路基于该限幅的音频信号预测的限幅参数低于第二预设阈值,增益估计电路将初始增益估计值向上调整,得到第一增益估计值。对于第二个采样点的音频信号,限幅装置将该第二个采样点的音频信号与前一个采样点得到的增益估计值(第一增益估计值)相乘,得到限幅的音频信号。若预测电路基于该限幅的音频信号预测的限幅参数高于第一预设阈值,增益估计电路将前一个采样点得到的增益估计值(第一增益估计值)向下调整,得到第二增益估计值。若预测电路基于该限幅的音频信号预测的限幅参数低于第二预设阈值,增益估计电路将前一个采样点得到的增益估计值(第一增益估计值)向上调整,得到第二增益估计值。依次类推,增益估计电路可以基于预测电路预测的限幅参数,不断调整增益估计值。本申请实施例对于初始增益估计值的具体取值并不限定,该初始增益估计值的取值可以设置为1,也可以设置为其他大于0且小于或等于1的数值。Exemplarily, for the audio signal of the first sampling point, an initial gain estimation value can be set, and the limiting device multiplies the audio signal of the first sampling point by the initial gain estimation value to obtain a limited audio signal. The output terminal of the amplitude device outputs the limited audio signal. If the limiting parameter predicted by the predicting circuit based on the limited audio signal is higher than the first preset threshold, the gain estimating circuit adjusts the initial estimated gain value downward to obtain a first estimated gain value. If the limiting parameter predicted by the predicting circuit based on the limited audio signal is lower than the second preset threshold, the gain estimating circuit adjusts the initial estimated gain value upward to obtain a first estimated gain value. For the audio signal at the second sampling point, the limiting device multiplies the audio signal at the second sampling point with the estimated gain value (first estimated gain value) obtained at the previous sampling point to obtain a limited audio signal. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is higher than the first preset threshold, the gain estimation circuit adjusts the estimated gain value obtained at the previous sampling point (the first estimated gain value) downward to obtain the second Gain estimates. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is lower than the second preset threshold, the gain estimation circuit adjusts the gain estimation value obtained at the previous sampling point (the first gain estimation value) upward to obtain the second gain estimated value. By analogy, the gain estimation circuit can continuously adjust the gain estimation value based on the limiting parameter predicted by the prediction circuit. The embodiment of the present application does not limit the specific value of the initial gain estimation value, and the value of the initial gain estimation value may be set to 1, or may be set to other values greater than 0 and less than or equal to 1.
可选的,增益估计电路基于限幅参数调整后的增益估计值可以不高于最大增益,也不小于最小增益,本申请实施例对于第一数值、第二数值、第一预设阈值、第二预设阈值、最大增益和最小增益的具体取值并不限定。该最大增益和最小增益可以为预设值。Optionally, the estimated gain value adjusted by the gain estimation circuit based on the limiting parameter may not be higher than the maximum gain, nor less than the minimum gain. In the embodiment of the present application, the first value, the second value, the first preset threshold, the Specific values of the two preset thresholds, the maximum gain and the minimum gain are not limited. The maximum gain and minimum gain can be preset values.
示例性的,在预测电路包括位移预测电路的情况下,增益估计电路可以基于位移预测电路预测的振膜位移,得到增益估计值。在位移预测电路预测的振膜位移较大时,增益估计电路将前一采样点的增益估计值减小第一数值。在位移预测电路预测的振膜 位移较小时,增益估计电路将前一采样点的增益估计值增加第二数值。需要说明的是,本申请实施例中前一采样点的增益估计值即为前一个采样点增益估计电路输出的增益估计值。Exemplarily, in the case that the prediction circuit includes a displacement prediction circuit, the gain estimation circuit may obtain an estimated gain value based on the diaphragm displacement predicted by the displacement prediction circuit. When the diaphragm displacement predicted by the displacement prediction circuit is relatively large, the gain estimation circuit reduces the estimated gain value of the previous sampling point by a first value. When the diaphragm displacement predicted by the displacement prediction circuit is small, the gain estimation circuit increases the gain estimation value of the previous sampling point by a second value. It should be noted that, in the embodiment of the present application, the estimated gain value at the previous sampling point is the estimated gain value output by the gain estimation circuit at the previous sampling point.
示例性的,在预测电路包括温度预测电路的情况下,增益估计电路可以基于温度预测电路预测的音圈温度,得到增益估计值。在温度预测电路预测的音圈温度较高时,将前一采样点的增益估计值减小第一数值。在温度预测电路预测的音圈温度较低时,将前一采样点的增益估计值增加第二数值。可以理解的,确定音圈温度较高或较低的预设阈值与确定振膜位移较大或较小的预设阈值可以相同,也可以不同。Exemplarily, when the prediction circuit includes a temperature prediction circuit, the gain estimation circuit can obtain an estimated gain value based on the voice coil temperature predicted by the temperature prediction circuit. When the temperature of the voice coil predicted by the temperature prediction circuit is high, the estimated value of the gain at the previous sampling point is reduced by a first value. When the temperature of the voice coil predicted by the temperature prediction circuit is low, the estimated value of the gain at the previous sampling point is increased by a second value. It can be understood that the preset threshold for determining whether the voice coil temperature is higher or lower may be the same as or different from the preset threshold for determining whether the diaphragm displacement is larger or smaller.
可选的,增益估计值为大于0且小于或等于1的数值。Optionally, the estimated value of the gain is a value greater than 0 and less than or equal to 1.
图6为本申请实施例提供的一种增益估计电路的结构示意图,如图6所示,以第一预设阈值和第二预设阈值相同为例,增益估计电路包括第一选择器(multiplexer,MUX0)、减法器和加法器,第一选择器MUX0的输出端为增益估计电路的输出端,第一选择器MUX0的输出端通过第一触发器D1耦合至减法器的第一输入端,减法器的第二输入端输入第一数值,减法器的输出端耦合至第一选择器MUX0的第一输入端0。第一选择器MUX0的输出端通过第二触发器D2耦合至加法器的第一输入端,加法器的第二输入端输入第二数值,加法器的输出端耦合至第一选择器MUX0的第二输入端1。FIG. 6 is a schematic structural diagram of a gain estimation circuit provided by an embodiment of the present application. As shown in FIG. 6 , taking the same example as the first preset threshold and the second preset threshold, the gain estimation circuit includes a first selector , MUX0), subtractor and adder, the output end of the first selector MUX0 is the output end of the gain estimation circuit, the output end of the first selector MUX0 is coupled to the first input end of the subtractor through the first flip-flop D1, The second input terminal of the subtractor inputs the first value, and the output terminal of the subtractor is coupled to the first input terminal 0 of the first selector MUX0. The output terminal of the first selector MUX0 is coupled to the first input terminal of the adder through the second flip-flop D2, the second input terminal of the adder inputs the second value, and the output terminal of the adder is coupled to the first input terminal of the first selector MUX0. Two input terminals 1.
第一选择器MUX0,用于将增益估计电路的输出输入至第一触发器D1或第二触发器D2。The first selector MUX0 is used for inputting the output of the gain estimation circuit to the first flip-flop D1 or the second flip-flop D2.
如图6所示,第一选择器MUX0,具体用于在限幅参数大于等于第一预设阈值时,将增益估计电路输出的增益估计值输入第一触发器D1。在限幅参数小于第一预设阈值时,将增益估计电路输出的增益估计值输入第二触发器D2。As shown in FIG. 6 , the first selector MUX0 is specifically configured to input the estimated gain value output by the gain estimation circuit into the first flip-flop D1 when the limiting parameter is greater than or equal to the first preset threshold. When the limiting parameter is smaller than the first preset threshold, the estimated gain value output by the gain estimation circuit is input to the second flip-flop D2.
第一触发器D1和第二触发器D2,用于将增益估计电路输出的增益估计值延时。第一触发器D1和第二触发器D2可以实现一个音频采样点的延时。The first flip-flop D1 and the second flip-flop D2 are used to delay the estimated gain value output by the gain estimation circuit. The first flip-flop D1 and the second flip-flop D2 can implement a delay of one audio sampling point.
减法器,用于将经第一触发器D1延时后的增益估计值减小第一数值。该经第一触发器D1延时后的增益估计值可以为前一采样点的增益估计值。A subtractor, configured to reduce the estimated gain value delayed by the first flip-flop D1 by a first value. The estimated gain value delayed by the first flip-flop D1 may be the estimated gain value of the previous sampling point.
加法器,用于将经第二触发器D2延时后的增益估计值增加第二数值。An adder, configured to increase the estimated gain value delayed by the second flip-flop D2 by a second value.
图6所示的增益估计电路可以在限幅参数大于或等于第一预设阈值时,将前一采样点的增益估计值减小第一数值。在限幅参数小于第一预设阈值时,将前一采样点的增益估计值增加第二数值。The gain estimation circuit shown in FIG. 6 may reduce the estimated gain value of the previous sampling point by a first value when the limiting parameter is greater than or equal to a first preset threshold. When the limiting parameter is smaller than the first preset threshold, the estimated value of the gain at the previous sampling point is increased by a second value.
可选的,如图7所示,增益估计电路还可以包括第二选择器MUX1、第三选择器MUX2和第四选择器MUX3,减法器的输出端与第二选择器MUX1的第一输入端1连接,第二选择器MUX1的第二输入端0输入预设最小增益,第二选择器MUX1的输出端与第一选择器的第一输入端0连接。加法器的输出端与第三选择器MUX2的第一输入端1连接,第三选择器MUX2的第二输入端0与第一选择器MUX0的输出端连接,第三选择器MUX2的输出端与第四选择器MUX3的第一输入端1连接,第四选择器MUX3的第二输入端0输入预设最大增益,第四选择器MUX3的输出端与第一选择器MUX0的第二输入端1连接。Optionally, as shown in FIG. 7, the gain estimation circuit may further include a second selector MUX1, a third selector MUX2 and a fourth selector MUX3, the output end of the subtractor is connected to the first input end of the second selector MUX1 1 connection, the second input terminal 0 of the second selector MUX1 inputs the preset minimum gain, and the output terminal of the second selector MUX1 is connected with the first input terminal 0 of the first selector. The output terminal of the adder is connected with the first input terminal 1 of the third selector MUX2, the second input terminal 0 of the third selector MUX2 is connected with the output terminal of the first selector MUX0, and the output terminal of the third selector MUX2 is connected with The first input terminal 1 of the fourth selector MUX3 is connected, the second input terminal 0 of the fourth selector MUX3 inputs the preset maximum gain, the output terminal of the fourth selector MUX3 is connected with the second input terminal 1 of the first selector MUX0 connect.
第二选择器MUX1,用于在减法器输出的数值大于预设最小增益时,将减法器输 出的数值输出。在减法器输出的数值小于或等于预设最小增益时,将预设最小增益输出。The second selector MUX1 is used to output the value output by the subtractor when the value output by the subtractor is greater than the preset minimum gain. When the value output by the subtractor is less than or equal to the preset minimum gain, the preset minimum gain is output.
第三选择器MUX2,用于在经第二触发器D2延时后的增益估计值小于预设最大增益时,将加法器输出的数值输出。在经第二触发器D2延时后的增益估计值大于或等于预设最大增益时,将预设最大增益输出。该经第二触发器D2延时后的增益估计值可以为前一采样点的增益估计值。The third selector MUX2 is used to output the value output by the adder when the estimated gain value delayed by the second flip-flop D2 is less than the preset maximum gain. When the estimated gain value delayed by the second flip-flop D2 is greater than or equal to the preset maximum gain, the preset maximum gain is output. The estimated gain value delayed by the second flip-flop D2 may be the estimated gain value of the previous sampling point.
第四选择器MUX3,用于在第三选择器MUX2的输出小于预设最大增益时,将第三选择器MUX2的输出值输出。在第三选择器MUX2的输出大于或等于预设最大增益时,将预设最大增益输出。The fourth selector MUX3 is configured to output the output value of the third selector MUX2 when the output of the third selector MUX2 is less than a preset maximum gain. When the output of the third selector MUX2 is greater than or equal to the preset maximum gain, the preset maximum gain will be output.
图7所示的增益估计电路可以在限幅参数大于或等于第一预设阈值时,将前一个采样点的增益估计值减小第一数值,得到调整后的增益估计值,并且调整后的增益估计值不小于预设最小增益。在限幅参数小于第一预设阈值时,将前一个采样点的增益估计值增加第二数值,得到调整后的增益估计值,并且调整后的增益估计值不大于预设最大增益。The gain estimation circuit shown in FIG. 7 can reduce the gain estimation value of the previous sampling point by a first value to obtain an adjusted gain estimation value when the limiting parameter is greater than or equal to a first preset threshold value, and the adjusted The gain estimate is not less than a preset minimum gain. When the limiting parameter is less than the first preset threshold, the estimated gain value of the previous sampling point is increased by a second value to obtain an estimated gain value after adjustment, and the estimated estimated gain value after adjustment is not greater than the preset maximum gain.
下面以第一数值和第二数值均为0.1,初始增益估计值为0.95,预设最大增益为1,预设最小增益为0.1,第一预设阈值和第二预设阈值相同为例,对图7所示的增益估计电路的具体功能进行介绍。In the following, the first value and the second value are both 0.1, the initial gain estimate is 0.95, the preset maximum gain is 1, the preset minimum gain is 0.1, and the first preset threshold and the second preset threshold are the same as an example. The specific functions of the gain estimation circuit shown in Fig. 7 are introduced.
例如,结合图2A或图2B,如图7所示,对于第一个采样点输入的音频信号,限幅装置将该音频信号与初始增益估计值0.95相乘,得到限幅的音频信号。若预测电路基于该限幅的音频信号预测的限幅参数低于第一预设阈值,第二输入为第一个采样点的增益估计值(初始增益估计值)0.95。由于第二输入的数值0.95小于预设最大增益1,因此MUX2的输出为0.95加上第二数值0.1,即MUX3的第三输入的数值为1.05。由于第三输入的数值1.05大于预设最大增益1,因此MUX3的输出为预设最大增益1,即增益估计电路输出的增益估计值为1,该增益估计值1为第一个采样点得到的增益估计值。For example, referring to FIG. 2A or FIG. 2B , as shown in FIG. 7 , for the audio signal input at the first sampling point, the limiting device multiplies the audio signal by an initial gain estimate value of 0.95 to obtain a limited audio signal. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is lower than the first preset threshold, the second input is an estimated gain value (an initial estimated gain value) of 0.95 at the first sampling point. Since the value 0.95 of the second input is less than the preset maximum gain of 1, the output of MUX2 is 0.95 plus the second value 0.1, that is, the value of the third input of MUX3 is 1.05. Since the value 1.05 of the third input is greater than the preset maximum gain 1, the output of MUX3 is the preset maximum gain 1, that is, the gain estimation value output by the gain estimation circuit is 1, and the gain estimation value 1 is obtained from the first sampling point Gain estimates.
再例如,结合图2A或图2B,如图7所示,对于第二个采样点输入的音频信号,限幅装置将该音频信号与第一个采样点得到的增益估计值1相乘,得到限幅的音频信号。若预测电路基于该限幅的音频信号预测的限幅参数高于第一预设阈值,第一输入的数值为第一个采样点得到的增益估计值1减去第一数值0.1,即第一输入的数值为0.9。由于第一输入的数值为0.9大于预设最小增益0.1,因此MUX1的输出为0.9,即增益估计电路输出的增益估计值为0.9,该增益估计值0.9为第二个采样点得到的增益估计值。For another example, in combination with FIG. 2A or FIG. 2B, as shown in FIG. 7, for the audio signal input at the second sampling point, the limiter multiplies the audio signal with the estimated gain value 1 obtained at the first sampling point to obtain Clipped audio signal. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is higher than the first preset threshold, the value of the first input is the gain estimate value 1 obtained at the first sampling point minus the first value 0.1, that is, the first Enter a value of 0.9. Since the value of the first input is 0.9 greater than the preset minimum gain of 0.1, the output of MUX1 is 0.9, that is, the estimated gain value output by the gain estimation circuit is 0.9, and the estimated gain value 0.9 is the estimated gain value obtained at the second sampling point .
再例如,结合图2A或图2B,如图7所示,对于第三个采样点输入的音频信号,限幅装置将该音频信号与第二个采样点得到的增益估计值0.9相乘,得到限幅的音频信号。若预测电路基于该限幅的音频信号预测的限幅参数高于第一预设阈值,第一输入的数值为第二个采样点的增益估计值0.9减去第一数值0.1,即第一输入的数值为0.8。由于第一输入的数值为0.8大于预设最小增益0.1,因此MUX1的输出为0.8,即增益估计电路输出的增益估计值为0.8,该增益估计值0.8为第三个采样点得到的增益估计值。依次类推,增益估计电路可以基于预测电路预测的限幅参数,不断调整增益 估计值。For another example, in combination with FIG. 2A or FIG. 2B, as shown in FIG. 7, for the audio signal input at the third sampling point, the limiter multiplies the audio signal with the estimated gain value 0.9 obtained at the second sampling point to obtain Clipped audio signal. If the limiting parameter predicted by the prediction circuit based on the limited audio signal is higher than the first preset threshold, the value of the first input is the estimated gain value of the second sampling point 0.9 minus the first value 0.1, that is, the first input The value of is 0.8. Since the value of the first input is 0.8 greater than the preset minimum gain of 0.1, the output of MUX1 is 0.8, that is, the estimated gain value output by the gain estimation circuit is 0.8, and the estimated gain value 0.8 is the estimated gain value obtained at the third sampling point . By analogy, the gain estimation circuit can continuously adjust the gain estimation value based on the clipping parameter predicted by the prediction circuit.
可以理解的,当增益估计电路采用图6或图7所示的电路结构时,由于图6或图7所示的增益估计电路的电路结构较为简单,使得限幅装置能够实现时延较低的技术效果。It can be understood that when the gain estimation circuit adopts the circuit structure shown in FIG. 6 or FIG. 7, since the circuit structure of the gain estimation circuit shown in FIG. 6 or FIG. technical effect.
示例性的,在预测电路包括位移预测电路和温度预测电路的情况下,增益估计电路可以根据位移预测电路预测的振膜位移、温度预测电路预测的音圈温度、振膜位移对应的第一权重,以及音圈温度对应的第二权重,得到增益估计值。可以理解的,该第一权重和第二权重的数值与实际应用中振膜位移和音圈温度对扬声器寿命的影响程度、扬声器的具体结构等参数有关。Exemplarily, in the case where the prediction circuit includes a displacement prediction circuit and a temperature prediction circuit, the gain estimation circuit may be based on the diaphragm displacement predicted by the displacement prediction circuit, the voice coil temperature predicted by the temperature prediction circuit, and the first weight corresponding to the diaphragm displacement , and the second weight corresponding to the voice coil temperature to obtain the gain estimate. It can be understood that the values of the first weight and the second weight are related to parameters such as the degree of influence of diaphragm displacement and voice coil temperature on the life of the speaker in practical applications, and the specific structure of the speaker.
例如,以振膜位移对应的第一权重为0.6,音圈温度对应的第二权重为0.4,前一个采样点振膜位移对应的估计值为0.2,前一个采样点音圈温度对应的估计值为0.3为例。若位移预测电路预测的振膜位移较小,将前一个采样点振膜位移对应的估计值为0.2增加第二数值0.1,得到第一估计值为0.3。若温度预测电路预测的音圈温度较低,将前一个采样点振膜位移对应的估计值为0.3增加第二数值0.1,得到第二估计值为0.4,增益估计电路得到的增益估计值为0.6*0.3+0.4*0.4=0.34。For example, if the first weight corresponding to the diaphragm displacement is 0.6, the second weight corresponding to the voice coil temperature is 0.4, the estimated value corresponding to the diaphragm displacement of the previous sampling point is 0.2, and the estimated value corresponding to the voice coil temperature of the previous sampling point is 0.3 as an example. If the displacement of the diaphragm predicted by the displacement prediction circuit is small, the estimated value corresponding to the diaphragm displacement at the previous sampling point of 0.2 is increased by the second value 0.1 to obtain the first estimated value of 0.3. If the voice coil temperature predicted by the temperature prediction circuit is low, the estimated value corresponding to the diaphragm displacement at the previous sampling point is 0.3 and the second value is increased by 0.1 to obtain a second estimated value of 0.4, and the estimated gain value obtained by the gain estimation circuit is 0.6 *0.3+0.4*0.4=0.34.
本申请实施例对于增益估计电路的具体电路结构并不进行限定,任何一种能够实现在限幅参数偏高时将限幅参数调低,在限幅参数偏低时将限幅参数调高的增益估计电路均在本申请的保护范围内,图6和图7仅是示例性示意一种增益估计电路的电路结构。The embodiment of the present application does not limit the specific circuit structure of the gain estimation circuit, any one can realize the limiter parameter is lowered when the limiter parameter is high, and the limiter parameter is increased when the limiter parameter is low All gain estimation circuits are within the scope of protection of the present application, and FIG. 6 and FIG. 7 are only illustrative circuit structures of a gain estimation circuit.
乘法器,用于接收音频信号以及增益估计电路反馈的增益估计值,并将该音频信号与增益估计值相乘,得到限幅的音频信号。限幅装置的输出端输出该限幅的音频信号。The multiplier is used to receive the audio signal and the estimated gain value fed back by the gain estimation circuit, and multiply the audio signal by the estimated gain value to obtain a limited audio signal. The output terminal of the limiting device outputs the limited audio signal.
乘法器接收的音频信号为输入限幅装置的音频信号,该输入限幅装置的音频信号为未限幅的音频信号。该未限幅的音频信号可以为经处理单元(例如,降噪单元)处理后的下行音频信号,也可以是从传感器采集的音频信号,还可以是多媒体外放的音频信号等等。本申请实施例对于乘法器接收的音频信号是从哪个设备输出的并不限定,具体与限幅装置的应用场景有关系。The audio signal received by the multiplier is an audio signal input to the limiting device, and the audio signal input to the limiting device is an unlimited audio signal. The unlimited audio signal may be a downlink audio signal processed by a processing unit (for example, a noise reduction unit), may also be an audio signal collected from a sensor, may also be an audio signal released from multimedia, and the like. The embodiment of the present application does not limit which device the audio signal received by the multiplier is output from, and is specifically related to the application scenario of the limiting device.
如图3所示,以预测电路包括位移预测电路和温度预测电路为例,增益估计电路根据位移预测电路预测的振膜位移和温度预测电路预测的音圈温度得到增益估计值后,将该增益估计值反馈给乘法器,乘法器将接收的音频信号与反馈的增益估计值相乘,得到限幅的音频信号。由于增益估计电路在振膜位移较大和/或音圈温度较高时,都会下调增益估计值,得到的增益估计值较小,因此乘法器在将接收的音频信号与反馈的较小的增益估计值相乘后,可以得到限幅后的音频信号,该音频信号的限幅使得限幅参数的幅度也得到限制,因此可以实现对振膜位移和/或音圈温度进行限幅的目的,能够降低音频信号对应的振膜位移和/或音圈温度,延长扬声器的使用寿命。而且本申请提供的限幅装置的稳定性较好,时延较低,能够提升扬声器的性能。As shown in Figure 3, taking the prediction circuit including a displacement prediction circuit and a temperature prediction circuit as an example, after the gain estimation circuit obtains the gain estimation value according to the diaphragm displacement predicted by the displacement prediction circuit and the voice coil temperature predicted by the temperature prediction circuit, the gain The estimated value is fed back to the multiplier, and the multiplier multiplies the received audio signal with the fed back gain estimated value to obtain a limited audio signal. Since the gain estimation circuit will adjust down the gain estimation value when the diaphragm displacement is large and/or the voice coil temperature is high, the resulting gain estimation value will be smaller, so the multiplier will combine the received audio signal with the smaller gain estimation value of the feedback After multiplying the values, the audio signal after clipping can be obtained. The clipping of the audio signal makes the amplitude of the clipping parameter also limited, so the purpose of clipping the diaphragm displacement and/or voice coil temperature can be achieved, and can Reduce the diaphragm displacement and/or voice coil temperature corresponding to the audio signal, prolonging the service life of the speaker. Moreover, the limiting device provided by the present application has better stability and lower time delay, and can improve the performance of the loudspeaker.
例如,以第一数值为0.1,第二数值为0.1,初始增益估计值为1为例,限幅装置将第一个采样点的音频信号与初始增益估计值1相乘,得到限幅的音频信号0。预测电路根据该限幅的音频信号0预测限幅参数0,如果限幅参数0偏高(例如,高于第 一预设阈值),增益估计电路可以将增益估计值下调0.1,调整后的增益估计值为0.9,并将该增益估计值0.9输出至乘法器,乘法器将增益估计值0.9与第二个采样点的音频信号相乘,得到限幅后的音频信号1。预测电路根据该限幅后的音频信号1预测限幅参数1,如果限幅参数1偏高(例如,高于第一预设阈值),可以将增益估计值再下调0.1,调整后的增益估计值为0.8,并将该增益估计值0.8输出至乘法器,乘法器将增益估计值0.8与第三个采样点的音频信号相乘,得到限幅后的音频信号2。预测电路根据该限幅后的音频信号2预测限幅参数2,如果限幅参数2偏低(例如,低于第二预设阈值),增益估计电路可以将增益估计值再上调0.1,调整后的增益估计值为0.9,并将该增益估计值0.9输出至乘法器,乘法器将增益估计值0.9与第四个采样点的音频信号相乘,得到限幅后的音频信号3,以此类推,可以对每个采样点的音频信号进行限幅。For example, taking the first numerical value as 0.1, the second numerical value as 0.1, and the initial estimated gain value as 1 as an example, the limiting device multiplies the audio signal at the first sampling point by the initial estimated gain value 1 to obtain the limited audio Signal 0. The prediction circuit predicts the limit parameter 0 according to the limited audio signal 0, if the limit parameter 0 is high (for example, higher than the first preset threshold), the gain estimation circuit can lower the gain estimate by 0.1, and the adjusted gain The estimated value is 0.9, and the estimated gain value 0.9 is output to the multiplier, and the multiplier multiplies the estimated gain value 0.9 by the audio signal at the second sampling point to obtain the audio signal 1 after limiting. The prediction circuit predicts the limiting parameter 1 according to the limited audio signal 1. If the limiting parameter 1 is high (for example, higher than the first preset threshold), the estimated gain value can be lowered by 0.1, and the adjusted gain estimated The value is 0.8, and the estimated gain value 0.8 is output to the multiplier, and the multiplier multiplies the estimated gain value 0.8 by the audio signal of the third sampling point to obtain the audio signal 2 after limiting. The prediction circuit predicts the limiting parameter 2 according to the limited audio signal 2. If the limiting parameter 2 is low (for example, lower than the second preset threshold), the gain estimation circuit can increase the gain estimation value by 0.1, and the adjusted The estimated gain value of 0.9 is 0.9, and the estimated gain value 0.9 is output to the multiplier, and the multiplier multiplies the estimated gain value 0.9 by the audio signal of the fourth sampling point to obtain the limited audio signal 3, and so on , the audio signal at each sampling point can be clipped.
本申请实施例中增益估计电路得到的增益估计值为大于0且小于或等于1的数值,因此将音频信号与增益估计值相乘后,能够减少削波效应带来的谐波,提升信噪比。In the embodiment of the present application, the gain estimation value obtained by the gain estimation circuit is a value greater than 0 and less than or equal to 1. Therefore, after multiplying the audio signal and the gain estimation value, the harmonics caused by the clipping effect can be reduced and the signal-to-noise can be improved. Compare.
可选的,上述预测电路预测限幅参数的时间和增益估计电路计算增益估计值的时间之和小于或等于采样周期。采样周期可以为相邻两个采样点之间的时间长度(或者说时长)。即,增益估计电路计算得到增益估计值的时刻减去音频信号进入限幅装置的时刻小于或等于采样周期。示例性的,以音频信号的频率为48kHz为例,采样周期为1秒除以48000,约为20微秒。由于预测限幅参数的时间和计算增益估计值的时间之和小于或等于采样周期,因此本申请实施例提供的限幅装置在对音频信号进行限幅处理时的时延较小。Optionally, the sum of the time for the prediction circuit to predict the clipping parameter and the time for the gain estimation circuit to calculate the estimated gain value is less than or equal to the sampling period. The sampling period may be the time length (or duration) between two adjacent sampling points. That is, the time when the gain estimation circuit obtains the estimated gain value minus the time when the audio signal enters the limiting device is less than or equal to the sampling period. Exemplarily, taking the frequency of the audio signal as 48kHz as an example, the sampling period is 1 second divided by 48000, which is about 20 microseconds. Since the sum of the time for predicting the limiting parameter and the time for calculating the estimated gain value is less than or equal to the sampling period, the time delay of the limiting device provided in the embodiment of the present application is relatively small when performing limiting processing on the audio signal.
示例性的,预测电路可以设置为直通,增益估计电路可以采用图6或图7所示的电路实现,由于导线上的时延可以忽略不计,因此这个增益估计电路的延时较小,故增益估计电路计算得到增益估计值的时刻减去音频信号进入限幅装置的时刻小于或等于采样周期。Exemplarily, the prediction circuit can be set as a straight-through, and the gain estimation circuit can be realized by using the circuit shown in Figure 6 or Figure 7. Since the delay on the wire is negligible, the delay of this gain estimation circuit is relatively small, so the gain The time when the estimated gain value is calculated by the estimation circuit minus the time when the audio signal enters the limiting device is less than or equal to the sampling period.
可以理解的,本申请实施例提供的限幅装置,通过根据限幅装置输出的音频信号预测限幅参数,并根据限幅参数得到增益估计值,将音频信号与反馈的增益估计值相乘实现限幅的目的。本申请中增益估计电路在限幅参数的值较高时,都会下调增益估计值,得到的增益估计值较小,因此在将音频信号与反馈的较小的增益估计值相乘后,可以达到限幅的目的,能够降低限幅的音频信号对应的振膜位移和音圈温度,延长扬声器的使用寿命。本申请采用反馈控制方式可以在限幅装置内形成闭环控制系统,因此稳定性较高。而且本申请中预测电路预测限幅参数的时间,以及增益估计电路计算增益估计值的时间之和小于或等于采样周期,因此时延较小,能够提升扬声器的性能。It can be understood that the limiting device provided in the embodiment of the present application is realized by predicting the limiting parameter according to the audio signal output by the limiting device, obtaining an estimated gain value according to the limiting parameter, and multiplying the audio signal by the estimated gain value fed back. purpose of clipping. In the present application, the gain estimation circuit will lower the gain estimation value when the value of the limiting parameter is higher, and the obtained gain estimation value is smaller, so after multiplying the audio signal and the feedback smaller gain estimation value, it can reach The purpose of limiting is to reduce the displacement of the diaphragm and the temperature of the voice coil corresponding to the limited audio signal, so as to prolong the service life of the speaker. This application adopts the feedback control method to form a closed-loop control system in the limiting device, so the stability is relatively high. Moreover, in the present application, the sum of the time when the prediction circuit predicts the limiting parameter and the time when the gain estimation circuit calculates the estimated gain value is less than or equal to the sampling period, so the time delay is small and the performance of the loudspeaker can be improved.
本申请实施例还提供一种音频系统,该音频系统包括放大器、扬声器,以及如图2A或图2B或图3所示的限幅装置,该限幅装置通过放大器耦合至扬声器。An embodiment of the present application further provides an audio system, the audio system includes an amplifier, a speaker, and a limiting device as shown in FIG. 2A or 2B or FIG. 3 , and the limiting device is coupled to the speaker through the amplifier.
可选的,本申请实施例提供的限幅装置可以通过图2A或图2B或图3所示的硬件电路实现,也可以通过处理器执行软件代码或者计算机程序来实现图8所示的限幅方法实现。Optionally, the clipping device provided in the embodiment of the present application may be realized by the hardware circuit shown in FIG. 2A or FIG. 2B or FIG. 3 , or the clipping shown in FIG. 8 may be realized by a processor executing software codes or computer programs. method implementation.
本申请实施例还提供一种限幅方法,该限幅方法可以由限幅设备执行,如图8所示,该限幅方法包括以下步骤S801-S803。The embodiment of the present application also provides a limiting method, which can be executed by a limiting device. As shown in FIG. 8 , the limiting method includes the following steps S801-S803.
S801、基于第一音频信号预测扬声器的限幅参数。S801. Predict a limiting parameter of the speaker based on the first audio signal.
该第一音频信号可以为输出给扬声器的音频信号。例如,该第一音频信号可以为限幅设备输出的音频信号,该限幅设备输出的音频信号可以经放大器放大后输出至扬声器。即,第一音频信号可以为经放大器放大前的音频信号。The first audio signal may be an audio signal output to a speaker. For example, the first audio signal may be an audio signal output by a limiting device, and the audio signal output by the limiting device may be amplified by an amplifier and then output to a speaker. That is, the first audio signal may be an audio signal before being amplified by the amplifier.
限幅参数包括振膜位移或音圈温度中的至少一种。The limiting parameter includes at least one of diaphragm displacement or voice coil temperature.
在限幅参数包括振膜位移时,上述步骤S801中基于第一音频信号预测扬声器的限幅参数,包括:基于扬声器的TS参数和第一音频信号的音频参数,预测扬声器的振膜位移。该第一音频信号的音频参数包括第一音频信号对应的电压参数或电流参数。When the limiting parameter includes diaphragm displacement, predicting the limiting parameter of the speaker based on the first audio signal in step S801 includes: predicting the diaphragm displacement of the speaker based on the TS parameter of the speaker and the audio parameter of the first audio signal. The audio parameters of the first audio signal include voltage parameters or current parameters corresponding to the first audio signal.
在限幅参数包括音圈温度时,上述步骤S801中基于第一音频信号预测扬声器的限幅参数,包括:基于扬声器的TS参数和第一音频信号的音频参数,预测扬声器的音圈温度。该第一音频信号的音频参数包括第一音频信号对应的电压参数或电流参数中的至少一项。When the limiting parameter includes voice coil temperature, predicting the limiting parameter of the speaker based on the first audio signal in step S801 includes: predicting the voice coil temperature of the speaker based on the TS parameter of the speaker and the audio parameter of the first audio signal. The audio parameter of the first audio signal includes at least one of a voltage parameter or a current parameter corresponding to the first audio signal.
在限幅参数包括振膜位移和音圈温度时,上述步骤S801中基于第一音频信号预测扬声器的限幅参数,包括:基于扬声器的TS参数和第一音频信号对应的电压参数或电流参数,估计扬声器的振膜位移。基于扬声器的TS参数和第一音频信号对应的电压参数和电流参数,估计扬声器的音圈温度。When the limiting parameters include diaphragm displacement and voice coil temperature, the above step S801 predicts the limiting parameters of the speaker based on the first audio signal, including: based on the TS parameter of the speaker and the voltage parameter or current parameter corresponding to the first audio signal, estimating Diaphragm displacement of the loudspeaker. Estimate the voice coil temperature of the speaker based on the TS parameter of the speaker and the voltage parameter and current parameter corresponding to the first audio signal.
可以理解的,关于上述步骤S801中基于第一音频信号预测扬声器的限幅参数的具体实现方式可以参考前述实施例,在此不再赘述。It can be understood that, for a specific implementation manner of predicting the limiting parameter of the loudspeaker based on the first audio signal in step S801 above, reference may be made to the foregoing embodiments, and details are not repeated here.
S802、基于扬声器的限幅参数,得到增益估计值。S802. Obtain an estimated gain value based on the limiting parameter of the loudspeaker.
示例性的,步骤S802可以包括:在扬声器的限幅参数高于第一预设阈值时,将前一采样点的增益估计值减小第一数值,得到调整后的增益估计值。在预测电路预测的限幅参数低于第二预设阈值时,将前一采样点的增益估计值增加第二数值,得到调整后的增益估计值。该第一预设阈值大于或等于第二预设阈值。第一数值可以与第二数值相同,也可以与第二数值不同。Exemplarily, step S802 may include: when the limiting parameter of the loudspeaker is higher than a first preset threshold, reducing the estimated gain value of the previous sampling point by a first value to obtain an estimated estimated gain value after adjustment. When the limiting parameter predicted by the predicting circuit is lower than the second preset threshold, the estimated gain value at the previous sampling point is increased by a second value to obtain an estimated estimated gain value after adjustment. The first preset threshold is greater than or equal to the second preset threshold. The first numerical value may be the same as the second numerical value, or may be different from the second numerical value.
可选的,步骤S802中基于扬声器的限幅参数,得到的增益估计值可以不大于最大增益,也不小于最小增益,本申请实施例对于第一数值、第二数值、第一预设阈值、第二预设阈值、最大增益和最小增益的具体取值并不限定。该最大增益和最小增益可以为预设值。Optionally, based on the limiting parameter of the speaker in step S802, the estimated gain value obtained may not be greater than the maximum gain or less than the minimum gain. In this embodiment of the present application, for the first value, the second value, the first preset threshold, Specific values of the second preset threshold, the maximum gain and the minimum gain are not limited. The maximum gain and minimum gain can be preset values.
可选的,在限幅参数包括振膜位移时,步骤S802可以包括在振膜位移较大时,可以将前一采样点的增益估计值向下调整。在振膜位移较小时,可以将前一采样点的增益估计值向上调整。可以理解的,振膜位移的较大和较小可以是与一个或多个预设阈值相比,本申请实施例对于该预设阈值的具体取值并不限定,实际应用中,可以根据扬声器参数、环境参数等确定。Optionally, when the limiting parameter includes diaphragm displacement, step S802 may include adjusting the estimated gain value of the previous sampling point downward when the diaphragm displacement is relatively large. When the diaphragm displacement is small, the gain estimate from the previous sampling point can be adjusted upwards. It can be understood that the larger and smaller diaphragm displacements may be compared with one or more preset thresholds. The embodiment of the present application does not limit the specific value of the preset thresholds. In practical applications, it can be determined according to the speaker parameters , environmental parameters, etc. to determine.
可选的,在限幅参数包括音圈温度时,步骤S802可以包括在音圈温度较高时,可以将前一采样点的增益估计值向下调整。在音圈温度较低时,可以将前一采样点的增益估计值向上调整。可以理解的,音圈温度的较高和较低也可以是与一个或多个预设阈值相比,本申请实施例对于该预设阈值的具体取值并不限定,实际应用中,可以根据扬声器参数、环境参数等确定。确定音圈温度较高或较低的预设阈值与确定振膜位移较大或较小的预设阈值可以相同,也可以不同。Optionally, when the limiting parameter includes the voice coil temperature, step S802 may include adjusting the estimated value of the gain at the previous sampling point downward when the voice coil temperature is high. When the voice coil temperature is low, the gain estimate from the previous sample point can be adjusted upwards. It can be understood that the higher or lower voice coil temperature can also be compared with one or more preset thresholds. The embodiment of the present application does not limit the specific value of the preset thresholds. In practical applications, it can be determined according to Loudspeaker parameters, environment parameters, etc. are determined. The preset threshold for determining whether the temperature of the voice coil is higher or lower and the preset threshold for determining whether the displacement of the diaphragm is larger or smaller may be the same or different.
可选的,在限幅参数包括振膜位移和音圈温度时,步骤S802可以包括根据振膜位移、音圈温度、振膜位移对应的第一权重,以及音圈温度对应的第二权重,得到增益估计值。可以理解的,该第一权重和第二权重的数值与实际应用中振膜位移和音圈温度对扬声器寿命的影响程度、扬声器的具体结构等参数有关。Optionally, when the limiting parameters include diaphragm displacement and voice coil temperature, step S802 may include according to diaphragm displacement, voice coil temperature, the first weight corresponding to diaphragm displacement, and the second weight corresponding to voice coil temperature, to obtain Gain estimates. It can be understood that the values of the first weight and the second weight are related to parameters such as the degree of influence of diaphragm displacement and voice coil temperature on the life of the speaker in practical applications, and the specific structure of the speaker.
例如,可以根据步骤S801预测的振膜位移,上调或下调前一采样点振膜位移对应的估计值,得到第一估计值,根据S801预测的音圈温度上调或下调前一采样点音圈温度对应的估计值,得到第二估计值,将第一估计值与振膜位移对应的第一权重相乘,将第二估计值与音圈温度对应的第二权重相乘,将两者相乘的结果相加得到调整后的增益估计值。For example, according to the diaphragm displacement predicted in step S801, the estimated value corresponding to the diaphragm displacement at the previous sampling point can be adjusted up or down to obtain the first estimated value, and the voice coil temperature at the previous sampling point can be adjusted up or down according to the voice coil temperature predicted in S801 The corresponding estimated value, to obtain the second estimated value, multiply the first estimated value by the first weight corresponding to the diaphragm displacement, multiply the second estimated value by the second weight corresponding to the voice coil temperature, and multiply the two The results are summed to get the adjusted gain estimate.
本申请实施例对于步骤S802基于扬声器的限幅参数,如何得到增益估计值的具体实现方式并不限定,任何一种能够实现在限幅参数偏高时将限幅参数调低,在限幅参数偏低时将限幅参数调高的方式均在本申请的保护范围内。The embodiment of the present application does not limit the specific implementation of how to obtain the estimated gain value based on the limiting parameters of the speaker in step S802. The methods of increasing the limiting parameter when it is too low are all within the protection scope of the present application.
S803、将第二音频信号与增益估计值相乘,得到限幅的音频信号。S803. Multiply the second audio signal by the estimated gain value to obtain a limited audio signal.
该第二音频信号为输入的初始音频信号。该输入的初始音频信号可以为经处理单元(例如,降噪单元)处理后的下行音频信号,也可以是从传感器采集的音频信号,还可以是多媒体外放的音频信号等等。本申请实施例对于第二音频信号是从哪个设备输出的并不限定。The second audio signal is the input original audio signal. The input initial audio signal may be a downlink audio signal processed by a processing unit (for example, a noise reduction unit), may also be an audio signal collected from a sensor, may also be an audio signal released from multimedia, and the like. The embodiment of the present application does not limit which device the second audio signal is output from.
步骤S801中的第一音频信号可以为第一时刻的音频信号,该第一音频信号可以为限幅后的音频信号。步骤S803中的第二音频信号为第一时刻之后的下一个采样点输入的初始音频信号,该第二音频信号未经限幅处理。The first audio signal in step S801 may be an audio signal at the first moment, and the first audio signal may be a limited audio signal. The second audio signal in step S803 is the initial audio signal input at the next sampling point after the first moment, and the second audio signal has not been subjected to limiting processing.
可选的,增益估计值为大于0且小于或等于1的数值,因此将第二音频信号与增益估计值相乘后,能够减少削波效应带来的谐波,提升信噪比。而且由于振膜位移较大和/或音圈温度较高时,都会下调增益估计值,得到的增益估计值较小,因此在将第二音频信号与反馈的较小的增益估计值相乘后,可以达到限幅的目的,能够降低音频信号对应的振膜位移和/或音圈温度,延长扬声器的使用寿命。而且本申请提供的限幅装置的稳定性较好,时延较低,能够提升扬声器的性能。Optionally, the estimated gain value is a value greater than 0 and less than or equal to 1. Therefore, after the second audio signal is multiplied by the estimated gain value, harmonics caused by clipping effects can be reduced and a signal-to-noise ratio can be improved. Moreover, when the displacement of the diaphragm is large and/or the temperature of the voice coil is high, the estimated gain value will be adjusted downward, and the resulting estimated gain value will be smaller. Therefore, after multiplying the second audio signal with the smaller gain estimated value fed back, The purpose of limiting can be achieved, the diaphragm displacement and/or voice coil temperature corresponding to the audio signal can be reduced, and the service life of the speaker can be prolonged. Moreover, the limiting device provided by the present application has better stability and lower time delay, and can improve the performance of the loudspeaker.
可选的,限幅设备预测限幅参数的时间和确定增益估计值的时间之和小于或等于采样周期,因此该限幅设备在对第二音频信号限幅时,时延较小。Optionally, the sum of the time for the limiting device to predict the limiting parameter and the time for determining the estimated gain value is less than or equal to the sampling period, so when the limiting device limits the second audio signal, the time delay is small.
可以理解的,本申请实施例提供的限幅方法,在限幅参数的值较高时,会下调增益估计值,得到的增益估计值较小,因此在将第二音频信号与较小的增益估计值相乘后,可以达到限幅的目的,能够降低音频信号对应的振膜位移和音圈温度,延长扬声器的使用寿命。而且本申请中预测限幅参数的时间,以及确定增益估计值的时间之和小于或等于采样周期,因此时延较小,能够提升扬声器的性能。It can be understood that, in the limiting method provided by the embodiment of the present application, when the value of the limiting parameter is high, the estimated gain value will be lowered, and the estimated gain value obtained is smaller. Therefore, when the second audio signal is combined with a smaller gain After the estimated values are multiplied, the purpose of limiting can be achieved, the diaphragm displacement and voice coil temperature corresponding to the audio signal can be reduced, and the service life of the speaker can be extended. Moreover, in the present application, the sum of the time for predicting the limiting parameter and the time for determining the estimated gain value is less than or equal to the sampling period, so the time delay is small and the performance of the loudspeaker can be improved.
本申请实施例还提供一种限幅设备,该限幅设备包括处理器和接口电路,所述处理器通过所述接口电路接收或发送信号;所述处理器用于执行存储在存储器中的计算机程序,使得所述限幅设备实现如图8所示的限幅方法。The embodiment of the present application also provides a limiting device, the limiting device includes a processor and an interface circuit, the processor receives or sends a signal through the interface circuit; the processor is used to execute the computer program stored in the memory , so that the clipping device implements the clipping method shown in FIG. 8 .
本申请实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序代码,当所述计算机程序代码在计算机或处理器上运行时,使得所述计算机或所述处理器执行如图8所示的限幅方法。The embodiment of the present application also provides a computer-readable storage medium, where computer program code is stored in the computer-readable storage medium, and when the computer program code is run on the computer or the processor, the computer or the processing The device implements the clipping method shown in Figure 8.
本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括程序指令,所述程序指令被计算机或者处理器执行时,使得如图8所示的限幅方法得以实现。The embodiment of the present application also provides a computer program product, where the computer program product includes program instructions, and when the program instructions are executed by a computer or a processor, the clipping method shown in FIG. 8 is realized.
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于随机存取存储器(random access memory,RAM)、闪存、可擦除可编程只读存储器(erasable programmable ROM,EPROM)、电可擦可编程只读存储器(electrically EPROM,EEPROM)、寄存器、硬盘、移动硬盘、只读光盘(CD-ROM)或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于核心网接口设备中。当然,处理器和存储介质也可以作为分立组件存在于核心网接口设备中。The steps of the methods or algorithms described in connection with the disclosure of this application can be implemented in the form of hardware, or can be implemented in the form of a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in random access memory (random access memory, RAM), flash memory, erasable programmable read-only memory (erasable programmable ROM, EPROM), electrically erasable Programmable read-only memory (electrically EPROM, EEPROM), registers, hard disk, removable hard disk, CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be a component of the processor. The processor and storage medium can be located in the ASIC. In addition, the ASIC may be located in the core network interface device. Certainly, the processor and the storage medium may also exist in the core network interface device as discrete components.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should be aware that, in the above one or more examples, the functions described in the present invention may be implemented by hardware, software, firmware or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已,并不用于限定本发明的保护范围,凡在本发明的技术方案的基础之上,所做的任何修改、等同替换、改进等,均应包括在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, any modification, equivalent replacement, improvement, etc. made on the basis of the technical solution of the present invention shall be included in the protection scope of the present invention.

Claims (22)

  1. 一种限幅装置,其特征在于,所述限幅装置包括预测电路、增益估计电路和乘法器,所述乘法器的第一输入端用于接收音频信号,所述限幅装置的输出端通过所述预测电路耦合至所述增益估计电路的输入端,所述增益估计电路的输出反馈至所述乘法器的第二输入端,所述限幅装置的输出端用于与扬声器耦合;A limiting device, characterized in that the limiting device comprises a prediction circuit, a gain estimation circuit and a multiplier, the first input end of the multiplier is used to receive an audio signal, and the output end of the limiting device is passed through The prediction circuit is coupled to the input of the gain estimation circuit, the output of the gain estimation circuit is fed back to the second input of the multiplier, and the output of the limiting device is used for coupling with a loudspeaker;
    所述预测电路,用于基于所述限幅装置输出的音频信号,预测所述扬声器的限幅参数,所述限幅参数包括振膜位移或音圈温度中的至少一种;The predicting circuit is configured to predict a limiting parameter of the loudspeaker based on the audio signal output by the limiting device, and the limiting parameter includes at least one of diaphragm displacement or voice coil temperature;
    所述增益估计电路,用于基于所述预测电路预测的所述限幅参数,得到增益估计值;The gain estimation circuit is configured to obtain an estimated gain value based on the clipping parameter predicted by the prediction circuit;
    所述乘法器,用于接收所述音频信号以及所述增益估计电路反馈的增益估计值,并将所述音频信号与所述增益估计值相乘,得到限幅的音频信号;所述限幅装置的输出端输出所述限幅的音频信号。The multiplier is configured to receive the audio signal and the estimated gain value fed back by the gain estimation circuit, and multiply the audio signal by the estimated gain value to obtain a limited audio signal; the limited The output terminal of the device outputs the limited audio signal.
  2. 根据权利要求1所述的限幅装置,其特征在于,所述限幅装置还包括饱和限幅电路,所述乘法器的输出端通过所述饱和限幅电路耦合至所述限幅装置的输出端。The limiting device according to claim 1, wherein the limiting device further comprises a saturated limiting circuit, and the output terminal of the multiplier is coupled to the output of the limiting device through the saturated limiting circuit end.
  3. 根据权利要求1或2所述的限幅装置,其特征在于,所述预测电路包括位移预测电路;The clipping device according to claim 1 or 2, wherein the prediction circuit comprises a displacement prediction circuit;
    所述位移预测电路,用于基于所述扬声器的Thiele-Small参数和所述限幅装置输出的音频信号,预测所述扬声器的振膜位移;所述位移预测电路的输入参数为所述限幅装置输出的音频信号对应的电压参数或电流参数。The displacement prediction circuit is used to predict the diaphragm displacement of the speaker based on the Thiele-Small parameter of the speaker and the audio signal output by the limiting device; the input parameter of the displacement prediction circuit is the limiter The voltage parameter or current parameter corresponding to the audio signal output by the device.
  4. 根据权利要求1-3中任一项所述的限幅装置,其特征在于,所述预测电路还包括温度预测电路;The limiting device according to any one of claims 1-3, wherein the prediction circuit further comprises a temperature prediction circuit;
    所述温度预测电路,用于基于所述扬声器的Thiele-Small参数和所述限幅装置输出的音频信号,预测所述扬声器的音圈温度;所述温度预测电路的输入参数为所述限幅装置输出的音频信号对应的电压参数或电流参数中的至少一项。The temperature prediction circuit is used to predict the voice coil temperature of the speaker based on the Thiele-Small parameters of the speaker and the audio signal output by the limiting device; the input parameter of the temperature prediction circuit is the limiter At least one of voltage parameters or current parameters corresponding to the audio signal output by the device.
  5. 根据权利要求4所述的限幅装置,其特征在于,在预测电路包括位移预测电路和所述温度预测电路的情况下,所述位移预测电路和所述温度预测电路并联连接。The clipping device according to claim 4, wherein when the prediction circuit includes a displacement prediction circuit and the temperature prediction circuit, the displacement prediction circuit and the temperature prediction circuit are connected in parallel.
  6. 根据权利要求3或5所述的限幅装置,其特征在于,所述位移预测电路包括一个或多个双二阶Biquad滤波器,所述多个Biquad滤波器之间级联。The clipping device according to claim 3 or 5, wherein the displacement prediction circuit includes one or more biquad Biquad filters, and the multiple Biquad filters are cascaded.
  7. 根据权利要求4或5所述的限幅装置,其特征在于,所述温度预测电路,具体用于根据所述扬声器的Thiele-Small参数、所述限幅装置输出的音频信号对应的电压参数和电流参数对所述扬声器的阻抗进行辨识,预测所述扬声器的音圈温度。The limiting device according to claim 4 or 5, wherein the temperature prediction circuit is specifically configured to use the Thiele-Small parameter of the loudspeaker, the voltage parameter corresponding to the audio signal output by the limiting device, and The current parameter identifies the impedance of the loudspeaker and predicts the voice coil temperature of the loudspeaker.
  8. 根据权利要求1-7中任一项所述的限幅装置,其特征在于,所述增益估计电路,具体用于在所述限幅参数高于第一预设阈值时,将前一采样点的增益估计值减小第一数值;在所述限幅参数低于第二预设阈值时,将前一采样点的增益估计值增加第二数值;其中,所述第一预设阈值大于或等于所述第二预设阈值。The limiting device according to any one of claims 1-7, wherein the gain estimation circuit is specifically configured to, when the limiting parameter is higher than a first preset threshold, convert the previous sampling point to The estimated gain value of the sampling point is reduced by a first value; when the limiting parameter is lower than a second preset threshold value, the estimated gain value of the previous sampling point is increased by a second value; wherein, the first preset threshold value is greater than or equal to the second preset threshold.
  9. 根据权利要求1-8中任一项所述的限幅装置,其特征在于,所述增益估计值大于0且小于或等于1。The limiting device according to any one of claims 1-8, wherein the estimated gain value is greater than 0 and less than or equal to 1.
  10. 根据权利要求1-9中任一项所述的限幅装置,其特征在于,所述增益估计电路包括第一选择器、减法器和加法器,所述第一选择器的输出端为所述增益估计电路 的输出端,所述第一选择器的输出端通过第一触发器耦合至所述减法器的第一输入端,所述减法器的第二输入端输入第一数值,所述减法器的输出端耦合至所述第一选择器的第一输入端;所述第一选择器的输出端通过第二触发器耦合至所述加法器的第一输入端,所述加法器的第二输入端输入第二数值,所述加法器的输出端耦合至所述第一选择器的第二输入端;The limiting device according to any one of claims 1-9, characterized in that, the gain estimation circuit comprises a first selector, a subtractor and an adder, and the output terminal of the first selector is the The output terminal of the gain estimation circuit, the output terminal of the first selector is coupled to the first input terminal of the subtractor through the first flip-flop, the second input terminal of the subtractor inputs the first value, and the subtractor The output end of the selector is coupled to the first input end of the first selector; the output end of the first selector is coupled to the first input end of the adder through the second flip-flop, and the first input end of the adder The second input terminal inputs a second value, and the output terminal of the adder is coupled to the second input terminal of the first selector;
    所述第一选择器,用于将所述增益估计电路的输出输入至所述第一触发器或所述第二触发器。The first selector is configured to input the output of the gain estimation circuit to the first flip-flop or the second flip-flop.
  11. 根据权利要求10所述的限幅装置,其特征在于,所述增益估计电路还包括第二选择器、第三选择器和第四选择器,所述减法器的输出端与所述第二选择器的第一输入端连接,所述第二选择器的第二输入端输入预设最小增益,所述第二选择器的输出端与所述第一选择器的第一输入端连接;所述加法器的输出端与所述第三选择器的第一输入端连接,所述第三选择器的第二输入端与所述第一选择器的输出端连接,所述第三选择器的输出端与所述第四选择器的第一输入端连接,所述第四选择器的第二输入端输入预设最大增益,所述第四选择器的输出端与所述第一选择器的第二输入端连接。The limiting device according to claim 10, wherein the gain estimation circuit further comprises a second selector, a third selector and a fourth selector, the output terminal of the subtractor is connected to the second selector connected to the first input end of the second selector, the second input end of the second selector inputs a preset minimum gain, and the output end of the second selector is connected to the first input end of the first selector; The output end of the adder is connected to the first input end of the third selector, the second input end of the third selector is connected to the output end of the first selector, and the output of the third selector terminal is connected with the first input terminal of the fourth selector, the second input terminal of the fourth selector inputs the preset maximum gain, the output terminal of the fourth selector is connected with the first input terminal of the first selector Two input connections.
  12. 根据权利要求1-11中任一项所述的限幅装置,其特征在于,所述预测电路预测所述限幅参数的时间和所述增益估计电路计算所述增益估计值的时间之和小于或等于采样周期。The limiting device according to any one of claims 1-11, wherein the sum of the time when the predicting circuit predicts the limiting parameter and the time when the gain estimating circuit calculates the estimated gain value is less than or equal to the sampling period.
  13. 一种限幅方法,其特征在于,所述限幅方法包括:A limiting method, characterized in that the limiting method comprises:
    基于第一音频信号预测扬声器的限幅参数,所述限幅参数包括振膜位移或音圈温度中的至少一种;所述第一音频信号为输出给所述扬声器的音频信号;Predicting a limiting parameter of the speaker based on the first audio signal, the limiting parameter including at least one of diaphragm displacement or voice coil temperature; the first audio signal is an audio signal output to the speaker;
    基于所述扬声器的限幅参数,得到增益估计值;Obtaining an estimated gain value based on the limiting parameter of the loudspeaker;
    将第二音频信号与所述增益估计值相乘,得到限幅的音频信号;所述第二音频信号为输入的初始音频信号。multiplying the second audio signal by the estimated gain value to obtain a limited audio signal; the second audio signal is an input initial audio signal.
  14. 根据权利要求13所述的限幅方法,其特征在于,所述基于第一音频信号预测扬声器的限幅参数,包括:The limiting method according to claim 13, wherein the prediction of the limiting parameter of the loudspeaker based on the first audio signal comprises:
    基于扬声器的Thiele-Small参数和所述第一音频信号的音频参数,预测所述扬声器的振膜位移;所述第一音频信号的音频参数包括所述第一音频信号对应的电压参数或电流参数。Predicting the diaphragm displacement of the speaker based on the Thiele-Small parameter of the speaker and the audio parameter of the first audio signal; the audio parameter of the first audio signal includes a voltage parameter or a current parameter corresponding to the first audio signal .
  15. 根据权利要求13或14所述的限幅方法,其特征在于,所述基于第一音频信号预测扬声器的限幅参数,还包括:The limiting method according to claim 13 or 14, wherein the prediction of the limiting parameter of the loudspeaker based on the first audio signal further comprises:
    基于所述扬声器的Thiele-Small参数和所述第一音频信号的音频参数,预测所述扬声器的音圈温度;所述第一音频信号的音频参数包括所述第一音频信号对应的电压参数或电流参数中的至少一项。Predict the voice coil temperature of the speaker based on the Thiele-Small parameter of the speaker and the audio parameter of the first audio signal; the audio parameter of the first audio signal includes a voltage parameter corresponding to the first audio signal or at least one of the current parameters.
  16. 根据权利要求13-15中任一项所述的限幅方法,其特征在于,所述基于所述扬声器的限幅参数,得到增益估计值,包括:The limiting method according to any one of claims 13-15, wherein said gain estimation value obtained based on the limiting parameter of the loudspeaker comprises:
    在所述限幅参数高于第一预设阈值时,将前一采样点的增益估计值减小第一数值;在所述限幅参数低于第二预设阈值时,将前一采样点的增益估计值增加第二数值;其中,所述第一预设阈值大于或等于所述第二预设阈值。When the limiting parameter is higher than the first preset threshold, reduce the estimated gain value of the previous sampling point by the first value; The estimated gain value of is increased by a second value; wherein, the first preset threshold is greater than or equal to the second preset threshold.
  17. 根据权利要求16所述的限幅方法,其特征在于,所述增益估计值大于0且小于或等于1。The limiting method according to claim 16, characterized in that, the estimated gain value is greater than 0 and less than or equal to 1.
  18. 根据权利要求13-17中任一项所述的限幅方法,其特征在于,预测所述限幅参数的时间和确定所述增益估计值的时间之和小于或等于采样周期。The limiting method according to any one of claims 13-17, characterized in that the sum of the time for predicting the limiting parameter and the time for determining the estimated gain value is less than or equal to the sampling period.
  19. 一种限幅设备,其特征在于,所述限幅设备包括处理器和接口电路,所述处理器通过所述接口电路接收或发送信号;所述处理器用于执行存储在存储器中的计算机程序,使得所述限幅设备实现如权利要求13-18中任一项所述的方法。A limiting device, characterized in that the limiting device includes a processor and an interface circuit, the processor receives or sends a signal through the interface circuit; the processor is used to execute a computer program stored in a memory, The clipping device is caused to implement the method according to any one of claims 13-18.
  20. 一种计算机可读存储介质,所述计算机可读存储介质中具有计算机程序代码,其特征在于,当所述计算机程序代码在计算机或处理器上运行时,使得所述计算机或所述处理器执行如权利要求13-18中任一项所述的方法。A computer-readable storage medium, having computer program codes in the computer-readable storage medium, is characterized in that, when the computer program code runs on a computer or a processor, the computer or the processor executes The method according to any one of claims 13-18.
  21. 一种计算机程序产品,其特征在于,所述计算机程序产品包括程序指令,所述程序指令被计算机或者处理器执行时,使得如权利要求13-18中任一项所述的方法得以实现。A computer program product, characterized in that the computer program product includes program instructions, and when the program instructions are executed by a computer or a processor, the method according to any one of claims 13-18 is realized.
  22. 一种音频系统,其特征在于,所述音频系统包括放大器、扬声器,以及如权利要求1-12中任一项所述的限幅装置,所述限幅装置通过所述放大器耦合至所述扬声器。An audio system, characterized in that the audio system comprises an amplifier, a loudspeaker, and the limiting device according to any one of claims 1-12, the limiting device is coupled to the loudspeaker through the amplifier .
PCT/CN2021/130175 2021-11-11 2021-11-11 Amplitude limiting apparatus and amplitude limiting method WO2023082159A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2021/130175 WO2023082159A1 (en) 2021-11-11 2021-11-11 Amplitude limiting apparatus and amplitude limiting method
CN202180099914.6A CN117795979A (en) 2021-11-11 2021-11-11 Amplitude limiting device and amplitude limiting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/130175 WO2023082159A1 (en) 2021-11-11 2021-11-11 Amplitude limiting apparatus and amplitude limiting method

Publications (1)

Publication Number Publication Date
WO2023082159A1 true WO2023082159A1 (en) 2023-05-19

Family

ID=86334772

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/130175 WO2023082159A1 (en) 2021-11-11 2021-11-11 Amplitude limiting apparatus and amplitude limiting method

Country Status (2)

Country Link
CN (1) CN117795979A (en)
WO (1) WO2023082159A1 (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW564592B (en) * 2002-03-22 2003-12-01 Wistron Corp Amplification circuit for restricting output signal amplitude supplied to a speaker
EP2806656A1 (en) * 2013-05-21 2014-11-26 ST-Ericsson SA Loudspeaker heat control with state observation
US20150215704A1 (en) * 2014-01-24 2015-07-30 Cirrus Logic International (Uk) Limited Loudspeaker protection systems and methods
CN105120414A (en) * 2015-08-04 2015-12-02 深圳英集芯科技有限公司 Intelligent audio management system
CN105471355A (en) * 2015-09-30 2016-04-06 瑞声声学科技(深圳)有限公司 Linear motor driving device and linear motor driving method
CN106817655A (en) * 2015-12-01 2017-06-09 展讯通信(上海)有限公司 speaker control method and device
CN107317559A (en) * 2016-04-26 2017-11-03 宏达国际电子股份有限公司 The control method that portable electric device, Sound producing system and its sound are produced
CN110868653A (en) * 2018-08-28 2020-03-06 武汉市聚芯微电子有限责任公司 Loudspeaker protection device and method
CN111541975A (en) * 2020-04-27 2020-08-14 维沃移动通信有限公司 Audio signal adjusting method and electronic equipment
US10897670B1 (en) * 2018-10-31 2021-01-19 Amazon Technologies, Inc. Excursion and thermal management for audio output devices

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW564592B (en) * 2002-03-22 2003-12-01 Wistron Corp Amplification circuit for restricting output signal amplitude supplied to a speaker
EP2806656A1 (en) * 2013-05-21 2014-11-26 ST-Ericsson SA Loudspeaker heat control with state observation
US20150215704A1 (en) * 2014-01-24 2015-07-30 Cirrus Logic International (Uk) Limited Loudspeaker protection systems and methods
CN105120414A (en) * 2015-08-04 2015-12-02 深圳英集芯科技有限公司 Intelligent audio management system
CN105471355A (en) * 2015-09-30 2016-04-06 瑞声声学科技(深圳)有限公司 Linear motor driving device and linear motor driving method
CN106817655A (en) * 2015-12-01 2017-06-09 展讯通信(上海)有限公司 speaker control method and device
CN107317559A (en) * 2016-04-26 2017-11-03 宏达国际电子股份有限公司 The control method that portable electric device, Sound producing system and its sound are produced
CN110868653A (en) * 2018-08-28 2020-03-06 武汉市聚芯微电子有限责任公司 Loudspeaker protection device and method
US10897670B1 (en) * 2018-10-31 2021-01-19 Amazon Technologies, Inc. Excursion and thermal management for audio output devices
CN111541975A (en) * 2020-04-27 2020-08-14 维沃移动通信有限公司 Audio signal adjusting method and electronic equipment

Also Published As

Publication number Publication date
CN117795979A (en) 2024-03-29

Similar Documents

Publication Publication Date Title
US10403299B2 (en) Multi-channel speech signal enhancement for robust voice trigger detection and automatic speech recognition
US8712065B2 (en) Transducer displacement protection
JP5364271B2 (en) Apparatus and method for optimal estimation of transducer parameters
JP5140162B2 (en) Noise suppression method and apparatus
CN106817655B (en) Speaker control method and device
US9350314B2 (en) Amplifier current consumption control
JP4860712B2 (en) Hearing aid with adaptive feedback suppression
WO2016180100A1 (en) Method and device for improving audio processing performance
WO2020097828A1 (en) Echo cancellation method, delay estimation method, echo cancellation apparatus, delay estimation apparatus, storage medium, and device
JP2003534570A (en) How to suppress noise in adaptive beamformers
CN105794228B (en) adaptive residual feedback suppression
JP5003419B2 (en) Sound processing apparatus and program
CN110708651B (en) Hearing aid squeal detection and suppression method and device based on segmented trapped wave
JP2003259480A (en) Howling detecting apparatus
JP6221257B2 (en) Signal processing apparatus, method and program
WO2023082159A1 (en) Amplitude limiting apparatus and amplitude limiting method
CN112309418B (en) Method and device for inhibiting wind noise
GB2490092A (en) Reducing howling by applying a noise attenuation factor to a frequency which has above average gain
CN110021289B (en) Sound signal processing method, device and storage medium
JP2004228621A (en) Echo suppression apparatus
JP5524316B2 (en) Parameter estimation apparatus, echo cancellation apparatus, parameter estimation method, and program
CN112866877B (en) Speaker control method, speaker control device, electronic apparatus, and storage medium
WO2021248520A1 (en) Nonlinear compensation method for loudspeaker, loudspeaker device and apparatus, and storage medium
CN114420153A (en) Sound quality adjusting method, device, equipment and storage medium
JP5406966B2 (en) Echo canceling device, echo canceling method, echo canceling program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21963611

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 202180099914.6

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21963611

Country of ref document: EP

Kind code of ref document: A1