CN111741407A - Loudspeaker compensation method, device, storage medium and equipment - Google Patents

Loudspeaker compensation method, device, storage medium and equipment Download PDF

Info

Publication number
CN111741407A
CN111741407A CN202010536856.6A CN202010536856A CN111741407A CN 111741407 A CN111741407 A CN 111741407A CN 202010536856 A CN202010536856 A CN 202010536856A CN 111741407 A CN111741407 A CN 111741407A
Authority
CN
China
Prior art keywords
audio signal
moment
displacement
target
loudspeaker
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010536856.6A
Other languages
Chinese (zh)
Other versions
CN111741407B (en
Inventor
黄远芳
蓝睿智
叶利剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
AAC Technologies Pte Ltd
Original Assignee
AAC Technologies Pte Ltd
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 AAC Technologies Pte Ltd filed Critical AAC Technologies Pte Ltd
Priority to CN202010536856.6A priority Critical patent/CN111741407B/en
Priority to PCT/CN2020/096698 priority patent/WO2021248529A1/en
Publication of CN111741407A publication Critical patent/CN111741407A/en
Application granted granted Critical
Publication of CN111741407B publication Critical patent/CN111741407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/06Loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2203/00Details of circuits for transducers, loudspeakers or microphones covered by H04R3/00 but not provided for in any of its subgroups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the invention discloses a loudspeaker compensation method, a loudspeaker compensation device, a storage medium and equipment. The method comprises the following steps: acquiring an n-moment audio signal and an n-1-moment state variable of the loudspeaker, wherein n is a natural number; predicting according to the n-moment audio signal and the n-1 moment state variable, and determining a prediction displacement corresponding to the n-moment audio signal; and determining a target compensation voltage signal corresponding to the n-moment audio signal according to the predicted displacement, the n-1 moment state variable and the n-moment audio signal, wherein the target compensation voltage signal is used for controlling the loudspeaker to play. When the nonlinear distortion is compensated, the invention avoids the displacement amplitude of the loudspeaker under a large signal exceeding the actual physical limit of the vibrating diaphragm of the loudspeaker, realizes the protection of the loudspeaker from permanent loss caused by mechanical overload, and prolongs the service life of the loudspeaker.

Description

Loudspeaker compensation method, device, storage medium and equipment
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of speaker technologies, and in particular, to a speaker compensation method, apparatus, storage medium, and device.
[ background of the invention ]
With the development of electronic technology, speakers are widely used. In the application of nonlinear compensation of the loudspeaker in the prior art, nonlinear compression is released when nonlinear distortion is compensated, and at the moment, the displacement amplitude of the loudspeaker under a large signal exceeds the practical physical limit of the diaphragm of the loudspeaker, and abnormal sounds such as bottoming and the like occur particularly at the resonance frequency, and even the permanent damage of the diaphragm of the loudspeaker is caused.
Therefore, it is necessary to provide a speaker compensation method, apparatus, storage medium and device.
[ summary of the invention ]
The invention aims to provide a loudspeaker compensation method, a device, a storage medium and equipment, which are used for solving the technical problem that the nonlinear compression is released when the nonlinear distortion is compensated, so that the displacement amplitude of a loudspeaker under a large signal exceeds the practical physical limit of a diaphragm of the loudspeaker.
The technical scheme of the invention is as follows: in a first aspect, the present invention provides a loudspeaker compensation method, including:
acquiring an n-moment audio signal and an n-1-moment state variable of the loudspeaker, wherein n is a natural number;
predicting according to the n-moment audio signal and the n-1 moment state variable, and determining a prediction displacement corresponding to the n-moment audio signal;
and determining a target compensation voltage signal corresponding to the n-moment audio signal according to the predicted displacement, the n-1 moment state variable and the n-moment audio signal, wherein the target compensation voltage signal is used for controlling the loudspeaker to play.
In one embodiment, the predicting according to the audio signal at the time n and the state variable at the time n-1, and determining the prediction displacement corresponding to the audio signal at the time n includes:
performing compression prediction on the audio signal at the n moment according to a preset displacement compressor coefficient to obtain a prediction displacement compression audio signal corresponding to the audio signal at the n moment;
performing nonlinear compensation prediction on the predicted displacement compression audio signal according to the state variable at the n-1 moment and a preset nonlinear compensator coefficient to obtain a predicted compensation voltage signal corresponding to the audio signal at the n moment;
inputting the predicted compensation voltage signal into a loudspeaker nonlinear model for prediction, and obtaining the predicted displacement output by the loudspeaker nonlinear model.
In one embodiment, the determining a target compensation voltage signal corresponding to the audio signal at the time n according to the predicted displacement, the state variable at the time n-1 and the audio signal at the time n includes:
when the predicted displacement is larger than a displacement threshold value, determining a target displacement compressor coefficient according to the predicted displacement, otherwise, taking a preset displacement compressor coefficient as the target displacement compressor coefficient;
and determining the target compensation voltage signal according to the target displacement compressor coefficient, the n-1 moment state variable and the n moment audio signal.
In one embodiment, the determining a target displacement compressor coefficient from the predicted displacement comprises:
determining an adjusting proportion according to the displacement threshold and the predicted displacement;
and determining the target displacement compressor coefficient according to the adjusting proportion and the preset displacement compressor coefficient.
In one embodiment, the determining the target compensation voltage signal according to the target displacement compressor coefficient, the state variable at the time n-1 and the audio signal at the time n comprises:
compressing the audio signal at the n moment according to the target displacement compressor coefficient, and determining a target displacement compressed audio signal corresponding to the audio signal at the n moment;
and carrying out nonlinear compensation on the target displacement compression audio signal according to a preset nonlinear compensator coefficient and the state variable at the moment of n-1, and determining the target compensation voltage signal.
In one embodiment, the compressing the audio signal at the time n according to the target displacement compressor coefficient and determining the target displacement compressed audio signal corresponding to the audio signal at the time n includes:
and compressing the low-frequency component of the audio signal at the n moment according to the target displacement compressor coefficient to obtain the target displacement compressed audio signal.
In one embodiment, the state variables at time n-1 include: current, diaphragm displacement, diaphragm vibration speed.
In a second aspect, the present invention also provides a loudspeaker compensation apparatus, the apparatus comprising:
the acquisition module is used for acquiring n-moment audio signals and n-1-moment state variables of the loudspeaker, wherein n is a natural number;
the displacement prediction module is used for predicting according to the n-moment audio signal and the n-1 moment state variable and determining the prediction displacement corresponding to the n-moment audio signal;
and the compensation calculation module is used for determining a target compensation voltage signal corresponding to the n-moment audio signal according to the predicted displacement, the n-1 moment state variable and the n-moment audio signal, wherein the target compensation voltage signal is used for controlling the loudspeaker to play.
In a third aspect, the present invention also provides a storage medium storing a computer program of instructions, which, when executed by a processor, causes the processor to perform the steps of the method according to any one of the first aspect.
In a fourth aspect, the present invention also provides an electronic device, comprising at least one memory and at least one processor, wherein the memory stores a computer instruction program, and the computer instruction program, when executed by the processor, causes the processor to perform the steps of the method according to any one of the first aspect.
The invention has the beneficial effects that:
after the loudspeaker compensation method, the device, the storage medium and the equipment are adopted, the prediction is carried out according to the n moment audio signal and the n-1 moment state variable, the prediction displacement corresponding to the n moment audio signal is determined, the target compensation voltage signal corresponding to the n moment audio signal is determined according to the prediction displacement, the n-1 moment state variable and the n moment audio signal, and the target compensation voltage signal is used for controlling the loudspeaker to play, so that the target compensation voltage signal fully considers the prediction displacement, the displacement amplitude of the loudspeaker under a large signal can be prevented from exceeding the actual physical limit of a vibrating diaphragm of the loudspeaker, the loudspeaker is protected from permanent loss caused by mechanical overload, and the service life of the loudspeaker is prolonged.
[ description of the drawings ]
FIG. 1 is a basic schematic block diagram of a method of speaker compensation in one embodiment;
FIG. 2 is a flow diagram of a method for speaker compensation in one embodiment;
FIG. 3 is a flow chart of the method of speaker compensation of FIG. 2 for determining a predicted displacement;
FIG. 4 is a flow chart of the method of speaker compensation of FIG. 2 for determining a target compensation voltage signal;
FIG. 5 is a block diagram showing the structure of a speaker compensating apparatus according to an embodiment;
FIG. 6 is a block diagram of a computer device in one embodiment.
[ detailed description ] embodiments
The invention is further described with reference to the following figures and embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to solve the technical problem that the nonlinear distortion is released when being compensated, so that the displacement amplitude of the loudspeaker under a large signal exceeds the practical physical limit of the diaphragm of the loudspeaker, the embodiment proposes a loudspeaker compensation method, wherein the method is applied to the compensation of the audio signal, and the compensated audio signal is input into the loudspeaker. The method compensates the audio signal according to the predicted displacement by predicting the displacement, thereby avoiding the displacement amplitude of the loudspeaker under a large signal from exceeding the actual physical limit of a vibrating diaphragm of the loudspeaker, protecting the loudspeaker from permanent loss caused by mechanical overload and prolonging the service life of the loudspeaker.
A loudspeaker is a transducer that converts an electrical signal into an acoustic signal, and an audio signal (electrical energy) causes a cone or diaphragm of the loudspeaker to vibrate (e.g., a diaphragm) and resonate (resonate) with ambient air to produce sound through electromagnetic, piezoelectric, or electrostatic effects.
Fig. 1 shows a basic principle of a compensation method for a speaker 104, in fig. 1, an audio signal to be compensated (corresponding to an audio signal at n time) is predicted by a preprocessor 105 and a speaker nonlinear model 106 to obtain a predicted displacement, the audio signal to be compensated is compressed by a displacement compressor 101 according to the predicted displacement and the audio signal to be compensated, a compression result is input to a nonlinear compensator 102 for nonlinear compensation, and the signal after nonlinear compensation is output to the speaker 104 after passing through a power amplifier 103.
As shown in fig. 2, in one embodiment, the speaker compensation method includes:
s202, acquiring an audio signal at n moments and a state variable of the loudspeaker at n-1 moments, wherein n is a natural number;
the method can actively acquire the n-time audio signal, and can also receive the n-time audio signal sent by the target device.
Time n-1 is the time immediately preceding time n. The time of day is at some instant in time or at some point in the time axis.
Optionally, the time n may be a current time, so that the speaker compensation method of this embodiment performs real-time compensation, and the speaker performs real-time playing according to a result of the real-time compensation.
The audio signal at the n-time represents the audio signal input to the speaker compensation method of the present embodiment at the n-time.
The state variable at the moment n-1 expresses the state variable of the loudspeaker at the moment n-1.
Optionally, the state variable at the time n-1 is a real-time state variable of the loudspeaker at the time n-1. It is understood that when the loudspeaker does not have a real-time state variable at the time n-1, the preset state variable is taken as the state variable at the time n-1.
S204, predicting according to the n-moment audio signal and the n-1 moment state variable, and determining a prediction displacement corresponding to the n-moment audio signal;
sequentially carrying out displacement prediction and nonlinear compensation prediction according to the n-moment audio signal and the n-1 moment state variable to obtain a predicted compensation voltage signal corresponding to the n-moment audio signal; and predicting according to the predicted compensation voltage signal to obtain the predicted displacement corresponding to the audio signal at the n moment.
The predicted displacement refers to the displacement of the diaphragm of the loudspeaker when the loudspeaker plays according to the predicted compensation voltage signal.
Optionally, a preprocessor is used for displacement prediction and nonlinear compensation prediction. The preprocessor may be implemented as a program module that may sequentially perform displacement prediction and nonlinear compensation prediction according to the input n-time audio signal and the n-1-time state variable, and output a prediction compensation voltage signal corresponding to the n-time audio signal.
Optionally, a speaker nonlinear model is used for prediction according to the predicted compensation voltage signal. The loudspeaker nonlinear model is a nonlinear loudspeaker model describing the loudspeaker behavior under a large voltage signal, and can predict the state variables of the loudspeaker, such as the current of the loudspeaker, the diaphragm displacement and the diaphragm vibration speed, according to the voltage signal input into the model. The predicted displacement state of the diaphragm of the loudspeaker provides an accurate reference for the adjustment of the operating coefficients of the filter of the displacement compressor. It will be appreciated that the structure of the non-linear model of the loudspeaker is a non-linear filter.
S206, determining a target compensation voltage signal corresponding to the n-moment audio signal according to the predicted displacement, the n-1 moment state variable and the n-moment audio signal, wherein the target compensation voltage signal is used for controlling the loudspeaker to play.
Determining a target displacement compressor coefficient according to the value of the predicted displacement; compressing the audio signal at the n moment according to the target displacement compressor coefficient, and determining a target displacement compressed audio signal corresponding to the audio signal at the n moment; and carrying out nonlinear compensation on the target displacement compression audio signal according to a preset nonlinear compensator coefficient and the state variable at the moment of n-1, and determining the target compensation voltage signal.
Optionally, the compressing the audio signal at the time n according to the target displacement compressor coefficient, and determining a target displacement compressed audio signal corresponding to the audio signal at the time n includes: and taking the target displacement compressor coefficient as a working coefficient of a filter of a displacement compressor, inputting the audio signal at the n moment into the displacement compressor for compression, and outputting a target displacement compressed audio signal by the displacement compressor.
The target displacement compressor coefficient refers to a working coefficient of a filter of a displacement compressor of the displacement compressor.
The preset nonlinear compensator coefficient represents a preset working coefficient of a filter of a preset nonlinear compensator.
Optionally, the displacement compressor is substantially a variable filter for adjusting a target displacement response, and compresses a low-frequency part (i.e., a low-frequency component) of the current displacement response of the audio signal at the time n by adjusting a coefficient of the variable filter according to a ratio of the current displacement of the audio signal at the time n to the target displacement, and since the variable filter is a high-pass filter with an adjustable resonant frequency and a Q value, which is constructed according to a speaker nonlinear model, the low-frequency part of the audio signal at the time n, which has a significant contribution to the displacement, can be accurately compressed without any attenuation of a high-frequency part (i.e., a high-frequency component), and the compression of the low-frequency part (expressed as a voltage signal) overall exhibits a high-pass filtering characteristic, which can achieve effective displacement protection without losing the high-frequency part.
When the diaphragm of the loudspeaker starts to vibrate from a low frequency range, the frequency corresponding to the point where the diaphragm vibrates most intensely is called the resonance frequency or the resonance frequency of the loudspeaker unit, FO for short, when the impedance characteristic of the loudspeaker unit is measured and the impedance value on the impedance curve reaches the maximum value for the first time (namely Zmax). The vibrating diaphragm vibrates at a resonance frequency with a larger amplitude than other frequencies, and a very large vibration can be generated by a very small periodic driving force.
Optionally, the performing nonlinear compensation on the target displacement compressed audio signal according to a preset nonlinear compensator coefficient and the state variable at the time n-1 to determine the target compensation voltage signal includes: presetting a working coefficient of a filter of a nonlinear compensator coefficient nonlinear compensator, carrying out nonlinear compensation on the target displacement compression audio signal by the nonlinear compensator according to the state variable at the n-1 moment, and outputting a target compensation voltage signal by the nonlinear compensator.
Optionally, the nonlinear compensator is a distortion compensator, and the distortion compensator eliminates the distortion of the loudspeaker by controlling the excitation signal without changing the structure of the loudspeaker.
In this embodiment, a predicted displacement corresponding to the audio signal at the time n is determined by predicting according to the audio signal at the time n and the state variable at the time n-1, and a target compensation voltage signal corresponding to the audio signal at the time n is determined according to the predicted displacement, the state variable at the time n-1 and the audio signal at the time n, where the target compensation voltage signal is used to control the speaker to play, so that the predicted displacement is fully considered by the target compensation voltage signal, and therefore, the displacement amplitude of the speaker under a large signal can be prevented from exceeding the actual physical limit of a diaphragm of the speaker, the speaker is protected from permanent loss caused by mechanical overload, and the service life of the speaker is prolonged.
As shown in fig. 3, in an embodiment, the predicting according to the audio signal at the time n and the state variable at the time n-1, and determining the prediction displacement corresponding to the audio signal at the time n includes:
s302, carrying out compression prediction on the audio signal at the n moment according to a preset displacement compressor coefficient to obtain a prediction displacement compressed audio signal corresponding to the audio signal at the n moment;
the preprocessor takes a preset displacement compressor coefficient as a working coefficient of a compression filter, simulates the displacement compressor to compress and predict the audio signal at the n moment, and outputs a predicted displacement compressed audio signal corresponding to the audio signal at the n moment.
The preset displacement compressor coefficient represents a preset working coefficient of a filter of the displacement compressor.
S304, carrying out nonlinear compensation prediction on the predicted displacement compression audio signal according to the state variable at the n-1 moment and a preset nonlinear compensator coefficient to obtain a predicted compensation voltage signal corresponding to the audio signal at the n moment;
the preprocessor takes a preset nonlinear compensator coefficient as a working coefficient of a nonlinear compensation filter, simulates the nonlinear compensator to combine with an n-1 moment state variable to carry out nonlinear compensation prediction on the n moment audio signal, and outputs a prediction compensation voltage signal corresponding to the n moment audio signal.
S306, inputting the predicted compensation voltage signal into a loudspeaker nonlinear model for prediction, and obtaining the predicted displacement output by the loudspeaker nonlinear model.
And the loudspeaker nonlinear model predicts the displacement state of the diaphragm of the loudspeaker for the prediction compensation voltage signal, and takes the displacement state as the prediction displacement.
According to the embodiment, the prediction is carried out according to the n moment audio signal, the n-1 moment state variable, the preset displacement compressor coefficient and the preset nonlinear compensator coefficient, the prediction displacement corresponding to the n moment audio signal is determined, the obtained prediction displacement is consistent with the actual application through simulating the displacement compressor and the nonlinear compensator, and the accuracy of the loudspeaker compensation method is further improved.
As shown in fig. 4, in one embodiment, a speaker compensation method is proposed, the method comprising:
s402, acquiring an audio signal at n moments and a state variable at n-1 moments of the loudspeaker, wherein n is a natural number;
s404, predicting according to the n moment audio signal and the n-1 moment state variable, and determining a prediction displacement corresponding to the n moment audio signal;
s406, when the predicted displacement is larger than a displacement threshold value, determining a target displacement compressor coefficient according to the predicted displacement, otherwise, taking a preset displacement compressor coefficient as the target displacement compressor coefficient;
when the predicted displacement is greater than the displacement threshold value, it is indicated that the loudspeaker plays according to the predicted compensation voltage signal corresponding to the audio signal at the n moment, the displacement amplitude of the diaphragm of the loudspeaker will exceed the actual physical limit of the diaphragm of the loudspeaker, and the permanent loss caused by the mechanical overload of the loudspeaker will be caused.
And when the predicted displacement is smaller than or equal to the displacement threshold, the loudspeaker plays according to the predicted compensation voltage signal corresponding to the audio signal at the n moment, and the displacement amplitude of the vibrating diaphragm of the loudspeaker cannot exceed the actual physical limit of the vibrating diaphragm of the loudspeaker, so that the preset displacement compressor coefficient corresponding to the predicted compensation voltage signal is used as the target displacement compressor coefficient.
S408, determining the target compensation voltage signal according to the target displacement compressor coefficient, the state variable at the n-1 moment and the audio signal at the n moment.
Compressing the audio signal at the n moment according to the target displacement compressor coefficient, and determining a target displacement compressed audio signal corresponding to the audio signal at the n moment; and carrying out nonlinear compensation on the target displacement compression audio signal according to a preset nonlinear compensator coefficient and the state variable at the moment of n-1, and determining the target compensation voltage signal.
The embodiment realizes the purpose of determining the target displacement compressor coefficient according to the predicted displacement and adjusting the working coefficient of the filter of the displacement compressor, and finally, when the loudspeaker is played according to the target compensation voltage signal corresponding to the audio signal at the time n, the displacement amplitude of the vibrating diaphragm of the loudspeaker cannot exceed the actual physical limit of the vibrating diaphragm of the loudspeaker.
In one embodiment, the determining a target displacement compressor coefficient from the predicted displacement comprises: determining an adjusting proportion according to the displacement threshold and the predicted displacement; and determining the target displacement compressor coefficient according to the adjusting proportion and the preset displacement compressor coefficient.
Removing the predicted bit by the displacement threshold value, and calculating to obtain the adjusting proportion; and adjusting the preset displacement compressor coefficient according to the adjusting proportion to obtain the target displacement compressor coefficient. After the adjustment is completed, when the loudspeaker plays according to the target compensation voltage signal finally obtained according to the target displacement compressor coefficient, the displacement amplitude of the vibrating diaphragm of the loudspeaker cannot exceed the actual physical limit of the vibrating diaphragm of the loudspeaker, namely, when the loudspeaker plays according to the target compensation voltage signal, the displacement amplitude of the vibrating diaphragm of the loudspeaker is smaller than or equal to the displacement threshold value.
In one embodiment, the determining the target compensation voltage signal according to the target displacement compressor coefficient, the state variable at the time n-1 and the audio signal at the time n comprises: compressing the audio signal at the n moment according to the target displacement compressor coefficient, and determining a target displacement compressed audio signal corresponding to the audio signal at the n moment; and carrying out nonlinear compensation on the target displacement compression audio signal according to a preset nonlinear compensator coefficient and the state variable at the moment of n-1, and determining the target compensation voltage signal.
Updating parameters of the displacement compressor according to the target displacement compressor coefficient, so that the displacement compressor compresses the audio signal at the n moment according to the updated parameters to obtain a target displacement compressed audio signal corresponding to the audio signal at the n moment; and the nonlinear compensator adopts a preset nonlinear compensator coefficient to combine with the n-1 moment state variable to carry out nonlinear compensation on the n moment audio signal and output the target compensation voltage signal.
This embodiment has realized compressing the audio signal at n moments according to target displacement compressor coefficient, then carries out nonlinear compensation again to when making the speaker play according to target compensation voltage signal, will make the displacement amplitude of the vibrating diaphragm of speaker be less than or equal to the displacement threshold value, can avoid the actual physics restriction that the displacement amplitude of speaker under the large signal surpassed the vibrating diaphragm of speaker, realized protecting the speaker and avoided the permanent loss because mechanical overload leads to, prolonged the life of speaker.
In one embodiment, the compressing the audio signal at the time n according to the target displacement compressor coefficient and determining the target displacement compressed audio signal corresponding to the audio signal at the time n includes: and compressing the low-frequency component of the audio signal at the n moment according to the target displacement compressor coefficient to obtain the target displacement compressed audio signal.
According to the embodiment, the low-frequency component of the n-time audio signal is compressed, and the high-frequency component of the n-time audio signal is not attenuated, so that the loss of the high-frequency component is avoided.
In one embodiment, the state variables at time n-1 include: current, diaphragm displacement, diaphragm vibration speed. The method for determining the state variable at the time n-1, such as the state estimator, can be selected from the prior art, and will not be described herein.
As shown in fig. 5, in one embodiment, a speaker compensation apparatus is provided, the apparatus comprising:
an obtaining module 502, configured to obtain an audio signal at n times and a state variable of the speaker at n-1 times, where n is a natural number;
a displacement prediction module 504, configured to perform prediction according to the n-time audio signal and the state variable at the n-1 time, and determine a predicted displacement corresponding to the n-time audio signal;
a compensation calculating module 506, configured to determine a target compensation voltage signal corresponding to the n-time audio signal according to the predicted displacement, the n-1 time state variable, and the n-time audio signal, where the target compensation voltage signal is used to control the speaker to play.
In this embodiment, a predicted displacement corresponding to the audio signal at the time n is determined by predicting according to the audio signal at the time n and the state variable at the time n-1, and a target compensation voltage signal corresponding to the audio signal at the time n is determined according to the predicted displacement, the state variable at the time n-1 and the audio signal at the time n, where the target compensation voltage signal is used to control the speaker to play, so that the predicted displacement is fully considered by the target compensation voltage signal, and therefore, the displacement amplitude of the speaker under a large signal can be prevented from exceeding the actual physical limit of a diaphragm of the speaker, the speaker is protected from permanent loss caused by mechanical overload, and the service life of the speaker is prolonged.
Fig. 6 shows an internal configuration diagram of the computer device 60 in one embodiment. The computer device 60 may specifically be a terminal or a server. As shown in fig. 6, the computer device 60 includes a processor 601, a memory, and a network interface 603 connected by a system bus. The memory includes a nonvolatile memory medium 6021 and an internal memory 6022. The non-volatile storage medium 6021 of the computer device 60 stores the operating system 604 and may also store a computer program 6051 that, when executed by the processor 601, may cause the processor 601 to implement. The internal memory 6022 may also store a computer program 6052, which, when executed by the processor 601, causes the processor 601 to execute. It will be appreciated by those skilled in the art that the configuration shown in fig. 6 is a block diagram of only a portion of the configuration associated with the inventive arrangements and does not constitute a limitation of the computing device 60 to which the inventive arrangements may be applied, and that a particular computing device 60 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a speaker compensation method provided by the present invention may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 6. The memory of the computer device may store program templates constituting a loudspeaker compensation device. Such as an acquisition module 502, a displacement prediction module 504, and a compensation calculation module 506.
In one embodiment, a storage medium is proposed, storing a computer program of instructions which, when executed by a processor, causes the processor to carry out the following method steps when executed:
acquiring an n-moment audio signal and an n-1-moment state variable of the loudspeaker, wherein n is a natural number;
predicting according to the n-moment audio signal and the n-1 moment state variable, and determining a prediction displacement corresponding to the n-moment audio signal;
and determining a target compensation voltage signal corresponding to the n-moment audio signal according to the predicted displacement, the n-1 moment state variable and the n-moment audio signal, wherein the target compensation voltage signal is used for controlling the loudspeaker to play.
In one embodiment, an electronic device is proposed, comprising at least one memory, at least one processor, the memory storing a computer program of instructions which, when executed by the processor, causes the processor to carry out the following method steps:
acquiring an n-moment audio signal and an n-1-moment state variable of the loudspeaker, wherein n is a natural number;
predicting according to the n-moment audio signal and the n-1 moment state variable, and determining a prediction displacement corresponding to the n-moment audio signal;
and determining a target compensation voltage signal corresponding to the n-moment audio signal according to the predicted displacement, the n-1 moment state variable and the n-moment audio signal, wherein the target compensation voltage signal is used for controlling the loudspeaker to play.
It should be noted that the above speaker compensation method, the speaker compensation apparatus, the storage medium and the electronic device belong to a general inventive concept, and the contents in the embodiments of the speaker compensation method, the speaker compensation apparatus, the storage medium and the electronic device are mutually applicable.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
While the foregoing is directed to embodiments of the present invention, it will be understood by those skilled in the art that various changes may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A method of speaker compensation, the method comprising:
acquiring an n-moment audio signal and an n-1-moment state variable of the loudspeaker, wherein n is a natural number;
predicting according to the n-moment audio signal and the n-1 moment state variable, and determining a prediction displacement corresponding to the n-moment audio signal;
and determining a target compensation voltage signal corresponding to the n-moment audio signal according to the predicted displacement, the n-1 moment state variable and the n-moment audio signal, wherein the target compensation voltage signal is used for controlling the loudspeaker to play.
2. The speaker compensation method according to claim 1, wherein the predicting based on the n-time audio signal and the n-1 time state variable and determining the predicted displacement corresponding to the n-time audio signal comprises:
performing compression prediction on the audio signal at the n moment according to a preset displacement compressor coefficient to obtain a prediction displacement compression audio signal corresponding to the audio signal at the n moment;
performing nonlinear compensation prediction on the predicted displacement compression audio signal according to the state variable at the n-1 moment and a preset nonlinear compensator coefficient to obtain a predicted compensation voltage signal corresponding to the audio signal at the n moment;
inputting the predicted compensation voltage signal into a loudspeaker nonlinear model for prediction, and obtaining the predicted displacement output by the loudspeaker nonlinear model.
3. The speaker compensation method of claim 1, wherein the determining a target compensation voltage signal corresponding to the n-time audio signal based on the predicted displacement, the n-1 time state variable, and the n-time audio signal comprises:
when the predicted displacement is larger than a displacement threshold value, determining a target displacement compressor coefficient according to the predicted displacement, otherwise, taking a preset displacement compressor coefficient as the target displacement compressor coefficient;
and determining the target compensation voltage signal according to the target displacement compressor coefficient, the n-1 moment state variable and the n moment audio signal.
4. The method of claim 3, wherein determining a target displacement compressor coefficient based on the predicted displacement comprises:
determining an adjusting proportion according to the displacement threshold and the predicted displacement;
and determining the target displacement compressor coefficient according to the adjusting proportion and the preset displacement compressor coefficient.
5. The method of claim 3, wherein determining the target compensation voltage signal based on the target displacement compressor coefficient, the state variable at time n-1, and the audio signal at time n comprises:
compressing the audio signal at the n moment according to the target displacement compressor coefficient, and determining a target displacement compressed audio signal corresponding to the audio signal at the n moment;
and carrying out nonlinear compensation on the target displacement compression audio signal according to a preset nonlinear compensator coefficient and the state variable at the moment of n-1, and determining the target compensation voltage signal.
6. The speaker compensation method according to claim 5, wherein the compressing the audio signal at the time n according to the target displacement compressor coefficient, and determining the target displacement compressed audio signal corresponding to the audio signal at the time n comprises:
and compressing the low-frequency component of the audio signal at the n moment according to the target displacement compressor coefficient to obtain the target displacement compressed audio signal.
7. The speaker compensation method of claim 1, wherein the n-1 time state variable comprises: current, diaphragm displacement, diaphragm vibration speed.
8. A loudspeaker compensation apparatus, the apparatus comprising:
the acquisition module is used for acquiring n-moment audio signals and n-1-moment state variables of the loudspeaker, wherein n is a natural number;
the displacement prediction module is used for predicting according to the n-moment audio signal and the n-1 moment state variable and determining the prediction displacement corresponding to the n-moment audio signal;
and the compensation calculation module is used for determining a target compensation voltage signal corresponding to the n-moment audio signal according to the predicted displacement, the n-1 moment state variable and the n-moment audio signal, wherein the target compensation voltage signal is used for controlling the loudspeaker to play.
9. A storage medium storing a computer program of instructions which, when executed by a processor, causes the processor to carry out the steps of the method according to any one of claims 1 to 7.
10. An electronic device comprising at least one memory storing a program of computer instructions which, when executed by the processor, causes the processor to perform the steps of the method of any one of claims 1 to 7, at least one processor.
CN202010536856.6A 2020-06-12 2020-06-12 Loudspeaker compensation method, device, storage medium and equipment Active CN111741407B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010536856.6A CN111741407B (en) 2020-06-12 2020-06-12 Loudspeaker compensation method, device, storage medium and equipment
PCT/CN2020/096698 WO2021248529A1 (en) 2020-06-12 2020-06-18 Loudspeaker compensation method and apparatus, and storage medium and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010536856.6A CN111741407B (en) 2020-06-12 2020-06-12 Loudspeaker compensation method, device, storage medium and equipment

Publications (2)

Publication Number Publication Date
CN111741407A true CN111741407A (en) 2020-10-02
CN111741407B CN111741407B (en) 2021-08-10

Family

ID=72648941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010536856.6A Active CN111741407B (en) 2020-06-12 2020-06-12 Loudspeaker compensation method, device, storage medium and equipment

Country Status (2)

Country Link
CN (1) CN111741407B (en)
WO (1) WO2021248529A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390406A (en) * 2020-10-16 2022-04-22 华为技术有限公司 Method and device for controlling displacement of loudspeaker diaphragm
WO2023116133A1 (en) * 2021-12-22 2023-06-29 歌尔股份有限公司 Motor-based vibration sense adjustment method and device, and computer-readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104640051A (en) * 2013-11-06 2015-05-20 亚德诺半导体股份有限公司 Method of estimating diaphragm excursion of a loudspeaker
CN105228055A (en) * 2015-10-16 2016-01-06 瑞声科技(南京)有限公司 Audio bass bucking-out system and compensation method thereof
CN105745943A (en) * 2013-09-20 2016-07-06 美国思睿逻辑有限公司 Systems and methods for protecting a speaker from overexcursion
CN105916079A (en) * 2016-06-07 2016-08-31 瑞声科技(新加坡)有限公司 Loudspeaker nonlinearity compensation method and apparatus thereof
CN109379678A (en) * 2018-10-30 2019-02-22 Oppo广东移动通信有限公司 Non-linear compensation method, device, storage medium and terminal device
CN109495820A (en) * 2018-12-07 2019-03-19 武汉市聚芯微电子有限责任公司 The amplitude adjusting method and system of the diaphragm of loudspeaker
CN208850060U (en) * 2018-11-16 2019-05-10 泉州昆泰芯微电子科技有限公司 A kind of speaker drive protection system
CN110032751A (en) * 2017-12-21 2019-07-19 哈曼国际工业有限公司 The constraint Non-linear parameter estimation of steady non-linear speaker modeling
CN110100455A (en) * 2017-01-04 2019-08-06 三星电子株式会社 Displacement limiter for loudspeaker mechanical protection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10015593B2 (en) * 2014-03-03 2018-07-03 University Of Utah Digital signal processor for audio extensions and correction of nonlinear distortions in loudspeakers
EP3627493B1 (en) * 2017-03-30 2024-05-15 Bose Corporation Compensation and automatic gain control in active noise reduction devices
CN110045814B (en) * 2018-12-30 2022-06-14 瑞声科技(新加坡)有限公司 Excitation signal generation method and device, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105745943A (en) * 2013-09-20 2016-07-06 美国思睿逻辑有限公司 Systems and methods for protecting a speaker from overexcursion
CN104640051A (en) * 2013-11-06 2015-05-20 亚德诺半导体股份有限公司 Method of estimating diaphragm excursion of a loudspeaker
CN105228055A (en) * 2015-10-16 2016-01-06 瑞声科技(南京)有限公司 Audio bass bucking-out system and compensation method thereof
CN105916079A (en) * 2016-06-07 2016-08-31 瑞声科技(新加坡)有限公司 Loudspeaker nonlinearity compensation method and apparatus thereof
CN110100455A (en) * 2017-01-04 2019-08-06 三星电子株式会社 Displacement limiter for loudspeaker mechanical protection
CN110032751A (en) * 2017-12-21 2019-07-19 哈曼国际工业有限公司 The constraint Non-linear parameter estimation of steady non-linear speaker modeling
CN109379678A (en) * 2018-10-30 2019-02-22 Oppo广东移动通信有限公司 Non-linear compensation method, device, storage medium and terminal device
CN208850060U (en) * 2018-11-16 2019-05-10 泉州昆泰芯微电子科技有限公司 A kind of speaker drive protection system
CN109495820A (en) * 2018-12-07 2019-03-19 武汉市聚芯微电子有限责任公司 The amplitude adjusting method and system of the diaphragm of loudspeaker

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390406A (en) * 2020-10-16 2022-04-22 华为技术有限公司 Method and device for controlling displacement of loudspeaker diaphragm
CN114390406B (en) * 2020-10-16 2023-04-07 华为技术有限公司 Method and device for controlling displacement of loudspeaker diaphragm
WO2023116133A1 (en) * 2021-12-22 2023-06-29 歌尔股份有限公司 Motor-based vibration sense adjustment method and device, and computer-readable storage medium

Also Published As

Publication number Publication date
CN111741407B (en) 2021-08-10
WO2021248529A1 (en) 2021-12-16

Similar Documents

Publication Publication Date Title
US9615174B2 (en) Arrangement and method for identifying and compensating nonlinear vibration in an electro-mechanical transducer
KR101864478B1 (en) Method and arrangement for controlling an electro-acoustical transducer
CN111741407B (en) Loudspeaker compensation method, device, storage medium and equipment
US10349195B1 (en) Constrained nonlinear parameter estimation for robust nonlinear loudspeaker modeling for the purpose of smart limiting
JP7188082B2 (en) SOUND PROCESSING APPARATUS AND METHOD, AND PROGRAM
CN102638736B (en) Control of a loudspeaker unit
EP3316595A1 (en) Adaptive correction of loudspeaker using recurrent neural network
US20070140058A1 (en) Method and system for correcting transducer non-linearities
US10536774B2 (en) Constrained nonlinear parameter estimation for robust nonlinear loudspeaker modeling for the purpose of smart limiting
Klippel Adaptive stabilization of electro-dynamical transducers
US10381994B2 (en) Constrained nonlinear parameter estimation for robust nonlinear loudspeaker modeling for the purpose of smart limiting
CN109327780B (en) Loudspeaker drive protection system
CN111741406B (en) Audio signal adjusting method and device, computer equipment and storage medium
CN111741408A (en) Nonlinear compensation method, system, equipment and storage medium for loudspeaker
CN110347253B (en) Actuator excitation signal processing method, actuator excitation signal processing device, computer equipment and storage medium
Nakao et al. An estimation method of parameters for closed-box loudspeaker system
Chen et al. Passive voice coil feedback control of closed-box subwoofer systems
CN111741409A (en) Method for compensating for non-linearity of speaker, speaker apparatus, device, and storage medium
US20230388684A1 (en) Device for processing a signal, audio system, loudspeakers, acoustic resonator, and vehicle door, equipped for sound, associated therewith
CN111818421B (en) Audio signal control method and device, storage medium and equipment
JP2014220589A (en) Device, method and program for reducing non-linear distortion of speaker
CN117939371B (en) Pneumatic high-pitch middle magnetic optimization method, system, equipment and storage medium
Волков Performance estimation of an audio system with nonlinear cancelation
Kitagawa et al. Linearization ability evaluation for loudspeaker systems using dynamic distortion measurement
Kitagawa et al. Dynamic distortion measurement for linearization of loudspeaker systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant