A loudspeaker displacement protection method, device, equipment and storage medium
By constructing a fusion voltage transfer function between the measured amplitude of the loudspeaker and the combined devices, the target gain is determined and audio signal gain processing is performed, thus solving the problem of low accuracy in loudspeaker displacement protection and achieving effective protection and loudness maintenance of the loudspeaker.
Patent Information
- Application Number
- CN202310370530.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-07
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-04-07
AI Technical Summary
In the existing technology, the displacement protection model composed of a single speaker has low accuracy in speaker displacement protection, resulting in a significant loss of loudness in the sound played by the speaker.
By constructing a target transfer function of the measured amplitude of the loudspeaker and the fusion voltage of the combined devices, the target gain is determined according to a preset displacement threshold, and the input audio signal is processed based on the target gain to achieve loudspeaker displacement protection.
It improves the accuracy of speaker displacement protection, reduces audio distortion, and avoids permanent damage to the speaker caused by mechanical overload.
Smart Images

Figure CN116389977B_ABST
Abstract
Description
[Technical Field]
[0001] This application relates to the field of loudspeaker technology, and in particular to a loudspeaker displacement protection method, device, equipment, and storage medium. [Background Technology]
[0002] The displacement of a speaker diaphragm during movement is related to the input voltage. To ensure that the speaker diaphragm does not exceed its maximum displacement and to prevent speaker damage, displacement protection is required. However, to save costs and space, the mobile phone market typically connects the speaker and motor in series and drives them with a single power amplifier. But this design brings a series of problems. For example, since a single power amplifier can only obtain one total voltage, without speaker protection, the speaker's displacement under high signals will exceed the physical limitations of the actual speaker, especially at the resonant frequency, resulting in abnormal sounds such as bass reverberation, or even permanent damage. If a displacement protection model for a single speaker is still used, it will lead to over-compression, resulting in a significant loss of speaker loudness. [Summary of the Invention]
[0003] The main objective of this application is to provide a loudspeaker displacement protection method, device, equipment, and storage medium, which can at least solve the problem in the related art where the displacement protection model composed of a single loudspeaker results in low accuracy of loudspeaker displacement protection and significant loss of loudness of the sound played by the loudspeaker.
[0004] To achieve the above objectives, a first aspect of this application provides a loudspeaker displacement protection method applied to an electronic device, the electronic device including a combination device and a power amplifier, the combination device including a loudspeaker and a motor; the loudspeaker displacement protection method includes:
[0005] The target transfer function is constructed based on the measured amplitude of the loudspeaker and the fusion voltage corresponding to the combined device.
[0006] The target gain is determined based on the target transfer function and a preset displacement threshold.
[0007] The original audio signal input to the combined device is gain-processed based on the target gain to protect the speaker from displacement.
[0008] A second aspect of this application provides a loudspeaker displacement protection device applied to an electronic device, the electronic device including a combination device and a power amplifier, the combination device including a loudspeaker and a motor; the loudspeaker displacement protection device includes:
[0009] A construction module is used to construct a target transfer function based on the measured amplitude of the loudspeaker and the fusion voltage corresponding to the combined device;
[0010] The determination module is used to determine the target gain based on the target transfer function and a preset displacement threshold.
[0011] A gain processing module is used to perform gain processing on the original audio signal input to the combined device based on the target gain in order to protect the speaker from displacement.
[0012] A third aspect of this application provides an electronic device, including a memory and a processor, wherein the processor is configured to execute a computer program stored in the memory, and when the processor executes the computer program, it implements the steps of the speaker displacement protection method provided in the first aspect of this application.
[0013] The fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the speaker displacement protection method provided in the first aspect of this application.
[0014] As can be seen from the above, the speaker displacement protection method, apparatus, device, and readable storage medium provided in this application construct a target transfer function based on the measured amplitude of the speaker and the fusion voltage corresponding to the combined device; a target gain is determined based on the target transfer function and a preset displacement threshold; and gain processing is performed on the original audio signal input to the combined device based on the target gain to protect the speaker displacement. Through the implementation of this application, a transfer function is constructed based on the amplitude model of the speaker and motor, and a target gain is determined based on this transfer function and a preset displacement threshold to perform gain processing on the original audio signal input to the combined device, thereby reducing audio distortion while improving the accuracy of speaker displacement protection. [Attached Image Description]
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of the structure of an electronic device provided in the first embodiment of this application;
[0017] Figure 2 This is a basic flowchart of the loudspeaker displacement protection method provided in the first embodiment of this application;
[0018] Figure 3 A schematic diagram illustrating the distribution of the actual displacement of a loudspeaker, provided for the first embodiment of this application;
[0019] Figure 4 This is a schematic diagram of a loudspeaker displacement compression result provided in the first embodiment of this application;
[0020] Figure 5 A detailed flowchart illustrating the loudspeaker displacement protection method provided in the second embodiment of this application;
[0021] Figure 6 A schematic diagram of a speaker displacement protection device in a single power amplifier combination device provided in the second embodiment of this application;
[0022] Figure 7 A schematic diagram of a speaker displacement protection device provided in the third embodiment of this application;
[0023] Figure 8 This is a schematic diagram of the structure of an electronic device provided in the fourth embodiment of this application.
Detailed Implementation Methods
[0024] To make the inventive objectives, features, and advantages of this application more apparent and understandable, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0025] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0026] To address the problem of low accuracy in speaker displacement protection due to displacement protection models composed of single speakers in related technologies, resulting in significant loss of loudness in the sound played by the speaker, the first embodiment of this application provides a speaker displacement protection method, applied to electronic devices, such as… Figure 1 This is a schematic diagram of the structure of an electronic device provided in this embodiment. The electronic device includes a combo device and a power amplifier (PA). The combo device includes a speaker and a motor. In this embodiment, the combo device also includes a capacitor. When the power amplifier emits an analog signal, the signal is divided by the capacitor and then applied to the two ends of the speaker and the motor respectively. Figure 2 This is a basic flowchart of the loudspeaker displacement protection method provided in this embodiment. The loudspeaker displacement protection method includes the following steps:
[0027] Step 201: Construct the target transfer function based on the measured amplitude of the loudspeaker and the fusion voltage corresponding to the combined devices.
[0028] Specifically, in this embodiment, the motor and the speaker are first modeled, and then the transfer function of the measured amplitude of the speaker and the fusion voltage corresponding to the combined device is obtained based on the amplitude model of the motor and the speaker.
[0029] In some embodiments of this example, the step of constructing a target transfer function based on the measured amplitude of the loudspeaker and the fusion voltage corresponding to the combined device includes: solving a first transfer function corresponding to the fusion voltage of the combined device and the measured voltage of the first loudspeaker according to a preset state equation; performing data fitting based on the measured amplitude of the loudspeaker and the measured voltage of the first loudspeaker to obtain a second transfer function; and constructing a target transfer function by combining the first transfer function and the second transfer function.
[0030] Specifically, in this embodiment, the transfer function consists of the transfer function between the speaker voltage and the combined voltage of the integrated device, and the transfer function between the speaker amplitude and the speaker voltage. The transfer function between the speaker voltage and the combined voltage is the voltage division of the speaker, which can be obtained by solving a preset state equation; the transfer function between the speaker voltage and the speaker amplitude can be obtained by fitting measured data. Therefore, this embodiment not only introduces a voltage division model but also a combined model of the motor and the speaker, making the obtained transfer function more accurate.
[0031] Furthermore, in some embodiments of this example, the target transfer function is expressed as:
[0032]
[0033] in, Let C(f,t) be the target transfer function, and H be the first transfer function. x (f) is the second transfer function. U(f) is the fusion voltage, U(f) is the speaker voltage, and X(f) is the speaker amplitude.
[0034] Specifically, in this embodiment, when a single power amplifier drives a combination device, the voltage at the speaker terminal cannot be directly obtained. Therefore, the transfer function of speaker amplitude and fused voltage consists of two parts: the transfer function between speaker voltage and fused voltage, and the transfer function between speaker voltage and speaker amplitude. The two are connected in series to form the transfer function of speaker amplitude and fused voltage.
[0035] Step 202: Determine the target gain based on the target transfer function and the preset displacement threshold.
[0036] Specifically, in this embodiment, the predicted displacement of the speaker can be calculated using the pre-constructed transfer function, and the compression gain of the audio signal can be determined based on the predicted displacement and a preset displacement threshold.
[0037] In some embodiments of this example, the step of determining the target gain based on the target transfer function and a preset displacement threshold includes: calculating the predicted displacement of the first loudspeaker based on the target transfer function and the fused voltage; correcting the predicted displacement of the first loudspeaker to obtain the predicted displacement of the second loudspeaker; comparing the predicted displacement of the second loudspeaker with the preset displacement threshold to obtain the displacement difference; and adjusting the parameters of the bandpass filter according to the displacement difference to obtain the target gain; wherein the bandpass filter is used to compress the voltage at the resonant frequency of the loudspeaker.
[0038] Specifically, in this embodiment, the predicted loudspeaker displacement can be obtained by a displacement prediction module, which can operate in either a feedforward or feedback manner. The first predicted loudspeaker displacement calculated from the constructed transfer function and the fused voltage belongs to the feedforward method. Because the transfer function is a theoretical model and cannot completely and accurately predict the actual displacement, it needs to be corrected to obtain the second predicted loudspeaker displacement, which is also the measured displacement. Then, the second predicted loudspeaker displacement is compared with a preset loudspeaker displacement threshold to obtain the displacement difference. Based on this displacement difference, the parameters of the bandpass filter are adjusted to obtain the corresponding compression gain.
[0039] Furthermore, in some embodiments of this example, after the step of comparing the predicted displacement with a preset displacement threshold to obtain the displacement difference, the method further includes: comparing the displacement difference with a preset displacement difference threshold; and when the compared displacement is greater than the error displacement threshold, performing the step of adjusting the parameters of the bandpass filter according to the compared displacement to obtain the target gain.
[0040] Specifically, in this embodiment, the predicted displacement can be compared with a preset displacement threshold to determine whether displacement compression is required. When the displacement difference between the predicted displacement and the preset displacement threshold is greater than a certain value, it is determined that the predicted displacement is greater than the preset displacement threshold, and displacement compression is required. The parameters of the bandpass filter are adjusted according to the comparison displacement to determine the compression gain.
[0041] Furthermore, in some embodiments of this example, the step of correcting the predicted displacement of the first speaker to obtain the predicted displacement of the second speaker includes: obtaining the measured current of the speaker and the measured voltage of the second speaker; correcting the predicted displacement of the first speaker based on the measured current of the speaker and the measured voltage of the second speaker to obtain the predicted displacement of the second speaker.
[0042] Specifically, in this embodiment, the predicted displacement of the first loudspeaker calculated by the transfer function can be corrected by the measured current and voltage of the loudspeaker, so as to make the amplitude model more accurate.
[0043] In other embodiments of this example, the step of determining the target gain based on the target transfer function and a preset displacement threshold includes: dividing the original audio signal input to the combination device into frequency band signals; and determining the target gain corresponding to each frequency band signal based on the target transfer function and the preset displacement threshold.
[0044] Specifically, in this embodiment, the original audio signal input to the combined device is further divided into multiple frequency bands to obtain multiple frequency band information. These frequency band information can be frequency band signals with consistent phase. Then, the target gain corresponding to the higher frequency band signal is determined based on the constructed transfer function and the preset displacement threshold.
[0045] Step 203: Perform gain processing on the original audio signal input to the combination device based on the target gain to protect the speaker from displacement.
[0046] Specifically, in this embodiment, by adjusting the parameters of the bandpass filter to obtain the corresponding compression gain, and then using this compression gain to perform compression filtering on the original audio signal to generate a compressed signal, thereby achieving protection against speaker displacement. For example, for Figure 3 The speaker displacement shown in the schematic diagram of actual speaker displacement distribution (horizontal axis is transmission time in seconds, vertical axis is speaker displacement in mm) has been processed and is then obtained from... Figure 4 The schematic diagram of the loudspeaker displacement compression results shown (the horizontal axis represents the transmission time in seconds, and the vertical axis represents the compression ratio) shows that after adding a displacement protection module based on voltage division, the loudspeaker displacement can be effectively compressed while ensuring loudness.
[0047] In some embodiments of this example, the step of performing gain processing on the original audio signal input to the combination device based on the target gain includes: performing gain processing on the frequency band signal of the original audio signal input to the combination device in sequence according to a preset processing order, using each target gain.
[0048] Specifically, in this embodiment, the target gain for each frequency band signal may be different. Therefore, the processing order can be set to prioritize the processing of frequency band signals that cause the speaker displacement to exceed the displacement threshold, so as to better protect the speaker.
[0049] Based on the technical solutions of the embodiments of this application described above, it can be seen that the speaker displacement protection method, apparatus, device, and readable storage medium provided by this application construct a target transfer function based on the measured amplitude of the speaker and the fusion voltage corresponding to the combined device; determine a target gain based on the target transfer function and a preset displacement threshold; and perform gain processing on the original audio signal input to the combined device based on the target gain to protect the speaker displacement. Through the implementation of this application, a transfer function is constructed based on the amplitude model of the speaker and motor, and a target gain is determined based on the transfer function and a preset displacement threshold to perform gain processing on the original audio signal input to the combined device, thereby improving the accuracy of speaker displacement protection while reducing audio distortion.
[0050] Figure 5 The method described in the second embodiment of this application is a refined loudspeaker displacement protection method, which includes:
[0051] Step 501: Solve the first transfer function corresponding to the fusion voltage of the combined devices and the measured voltage of the loudspeaker according to the preset state equation;
[0052] Step 502: Perform data fitting based on the measured amplitude and measured voltage of the loudspeaker to obtain the second transfer function;
[0053] Step 503: Construct the target transfer function by combining the first transfer function and the second transfer function;
[0054] Step 504: Correct the first loudspeaker predicted displacement calculated based on the target transfer function and the fused voltage to obtain the second loudspeaker predicted displacement;
[0055] Step 505: Compare the predicted displacement of the second speaker with the preset displacement threshold to obtain the displacement difference;
[0056] Step 506: Adjust the parameters of the bandpass filter according to the displacement difference to obtain the target gain;
[0057] Step 507: Perform gain processing on the original audio signal input to the combination device based on the target gain to protect the speaker from displacement.
[0058] Specifically, in this embodiment, the above steps can be applied to a speaker displacement protection device in a single power amplifier combination device. This device includes a main link, multiple branch links, a resonant frequency f0 compression module, a displacement (amplitude) modeling module, a displacement prediction module, and a displacement compression module. The multiple branch links are connected in parallel with the main link, and the outputs of the multiple branch links are connected to the input of the displacement compression module. The main link includes a displacement compression module; its input receives the original audio signal, and its output is connected to the speaker. The input of the displacement compression module is also connected to the output of the f0 compression module. One of the multiple branch links contains a displacement modeling module, and the remaining branch links contain displacement prediction modules connected in series. For example... Figure 6 This is a schematic diagram of a speaker displacement protection device in a single power amplifier combination device. The fusion signal is a fusion signal of the speaker and motor, and the input to the combination device is a compressed signal obtained by multiplying the fusion signal by the compression gain. A displacement modeling module is used to calculate the transfer function between the speaker amplitude and the fusion voltage. An f0 compression module limits the voltage at f0 and is a bandpass filter. Furthermore, the device includes a frequency division module, which is located between the f0 compression module and the displacement compression module, and is used to perform frequency division processing on the original signal. The displacement compression module is used to perform gain processing on the original audio signal using a target gain. The displacement prediction model can have two modes: feedback and feedforward. The feedback mode continuously corrects the error of the amplitude modeling module by feeding back the voltage and current, making the model more accurate.
[0059] It should be understood that the sequence number of each step in this embodiment does not imply the order in which the steps are executed. The execution order of each step should be determined by its function and internal logic, and should not constitute a unique limitation on the implementation process of this application embodiment.
[0060] Based on the above technical solution of this application embodiment, a first transfer function corresponding to the fusion voltage of the combined device and the measured voltage of the speaker is solved according to a preset state equation; a second transfer function is obtained by data fitting based on the measured amplitude and measured voltage of the speaker; a target transfer function is constructed by combining the first transfer function and the second transfer function; the first predicted displacement of the speaker calculated based on the target transfer function and the fusion voltage is corrected to obtain the second predicted displacement of the speaker; the second predicted displacement of the speaker is compared with a preset displacement threshold to obtain the displacement difference; the parameters of the bandpass filter are adjusted according to the displacement difference to obtain the target gain; the original audio signal input to the combined device is processed based on the target gain to protect the speaker from displacement. Through the implementation of this application solution, the voltage divider model is in series with the protection model, the predicted displacement is obtained through the transfer function, and the parameters of the bandpass filter are adjusted according to the predicted displacement overload, so as to reduce the displacement of the terminal speaker by controlling the output voltage of the original audio signal input to the combined device, and protect the speaker from permanent damage caused by mechanical overload.
[0061] Figure 7 A speaker displacement protection device provided in the third embodiment of this application is applied to an electronic device, which includes a combination device and a power amplifier. The combination device includes a speaker and a motor. This speaker displacement protection device can be applied to the aforementioned speaker displacement protection method. Figure 7 As shown, the loudspeaker displacement protection device mainly includes:
[0062] Module 701 is used to construct the target transfer function based on the measured amplitude of the loudspeaker and the fusion voltage corresponding to the combined devices;
[0063] The determination module 702 is used to determine the target gain based on the target transfer function and a preset displacement threshold.
[0064] Gain processing module 703 is used to perform gain processing on the raw audio signal input to the combination device based on the target gain in order to protect the speaker from displacement.
[0065] In some embodiments of this example, the construction module is specifically used to: solve a first transfer function corresponding to the fusion voltage of the combined device and the measured voltage of the first loudspeaker according to a preset state equation; perform data fitting based on the measured amplitude of the loudspeaker and the measured voltage of the first loudspeaker to obtain a second transfer function; and construct a target transfer function by combining the first transfer function and the second transfer function; the target transfer function is expressed as:
[0066]
[0067] in, Let C(f,t) be the target transfer function, and H be the first transfer function. x (f) is the second transfer function. U(f) is the fusion voltage, U(f) is the speaker voltage, and X(f) is the speaker amplitude.
[0068] In some embodiments of this example, the determining module is specifically used to: calculate the predicted displacement of the first loudspeaker based on the target transfer function and the fused voltage; correct the predicted displacement of the first loudspeaker to obtain the predicted displacement of the second loudspeaker; compare the predicted displacement of the second loudspeaker with a preset displacement threshold to obtain the displacement difference; adjust the parameters of the bandpass filter according to the displacement difference to obtain the target gain; wherein, the bandpass filter is used to compress the voltage at the resonant frequency of the loudspeaker.
[0069] Furthermore, in some embodiments of this example, the loudspeaker displacement protection device further includes: a comparison module, used to compare the displacement difference with a preset displacement difference threshold; when the compared displacement is greater than the error displacement threshold, to perform the step of adjusting the parameters of the bandpass filter according to the compared displacement to obtain the target gain.
[0070] Furthermore, in some embodiments of this example, the loudspeaker displacement protection device further includes: a correction module, which acquires the measured current of the loudspeaker and the measured voltage of the second loudspeaker; and corrects the predicted displacement of the first loudspeaker based on the measured current of the loudspeaker and the measured voltage of the second loudspeaker to obtain the predicted displacement of the second loudspeaker.
[0071] Furthermore, in some other embodiments of this example, the determining module is also used to: divide the original audio signal input to the combining device into frequency band signals; and determine the target gain corresponding to each frequency band signal based on the target transfer function and a preset displacement threshold.
[0072] In some embodiments of this example, the gain processing module is specifically used to: sequentially apply each target gain to the frequency band signal of the original audio signal input to the combination device according to a preset processing order.
[0073] It should be noted that the loudspeaker displacement protection methods in the foregoing embodiments can all be implemented based on the loudspeaker displacement protection device provided in this embodiment. Those skilled in the art can clearly understand that, for the sake of convenience and brevity, the specific working process of the loudspeaker displacement protection device described in this embodiment can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0074] Based on the technical solution of the above embodiments of this application, a target transfer function is constructed based on the measured amplitude of the loudspeaker and the fusion voltage corresponding to the combined device; a target gain is determined according to the target transfer function and a preset displacement threshold; and gain processing is performed on the original audio signal input to the combined device based on the target gain to protect the loudspeaker from displacement. Through the implementation of this application's solution, a transfer function is constructed based on the amplitude model of the loudspeaker and motor, and a target gain is determined according to the transfer function and a preset displacement threshold to perform gain processing on the original audio signal input to the combined device, thereby reducing audio distortion while improving the accuracy of loudspeaker displacement protection.
[0075] Figure 8 An electronic device provided in the fourth embodiment of this application, which can be used to implement the speaker displacement protection method in the foregoing embodiments, mainly includes:
[0076] The system includes a memory 801, a processor 802, and a computer program 803 stored on the memory 801 and executable on the processor 802. The memory 801 and the processor 802 are connected via communication. When the processor 802 executes the computer program 803, it implements the method described in Embodiment 1 or 2 above. The number of processors can be one or more.
[0077] The memory 801 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk storage device. The memory 801 is used to store executable program code, and the processor 802 is coupled to the memory 801.
[0078] Furthermore, embodiments of this application also provide a computer-readable storage medium, which may be disposed in the aforementioned electronic device, and the computer-readable storage medium may be as described above. Figure 8 The memory in the illustrated embodiment.
[0079] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the speaker displacement protection method described in the foregoing embodiments. Furthermore, the computer-readable storage medium can also be a USB flash drive, a portable hard drive, a read-only memory (ROM), RAM, a magnetic disk, or an optical disk, or any other medium capable of storing program code.
[0080] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.
[0081] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0082] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0083] If the integrated module is implemented as a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned readable storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0084] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0085] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0086] The above is a description of the speaker displacement protection method, device, equipment and storage medium provided in this application. For those skilled in the art, based on the ideas of the embodiments of this application, there will be changes in the specific implementation and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for protecting loudspeaker displacement, characterized in that, Applied to electronic devices, the electronic devices include combined devices and power amplifiers, the combined devices include loudspeakers and motors; the loudspeaker displacement protection method includes: The first transfer function corresponding to the fusion voltage of the combined device and the measured voltage of the first loudspeaker is solved according to the preset state equation; The second transfer function is obtained by fitting data based on the measured amplitude of the loudspeaker and the measured voltage of the first loudspeaker. The target transfer function is constructed by combining the first transfer function and the second transfer function; The target gain is determined based on the target transfer function and a preset displacement threshold. The original audio signal input to the combined device is gain-processed based on the target gain to protect the speaker from displacement.
2. The loudspeaker displacement protection method according to claim 1, characterized in that, The target transfer function is expressed as: x ( f , t ) C ( f , t ) H x ( f ) ; in, x ( f , t ) is the target transfer function. C ( f , t ) is the first transfer function. H x ( f ) is the second transfer function, For fusion voltage, This is the speaker voltage. This represents the amplitude of the loudspeaker.
3. The loudspeaker displacement protection method according to claim 1, characterized in that, The step of determining the target gain based on the target transfer function and a preset displacement threshold includes: Based on the target transfer function and the fused voltage, the predicted displacement of the first loudspeaker is calculated; The predicted displacement of the first loudspeaker is corrected to obtain the predicted displacement of the second loudspeaker; The predicted displacement of the second speaker is compared with a preset displacement threshold to obtain the displacement difference. The target gain is obtained by adjusting the parameters of the bandpass filter based on the displacement difference; wherein the bandpass filter is used to compress the voltage at the resonant frequency of the loudspeaker.
4. The loudspeaker displacement protection method according to claim 3, characterized in that, After the step of comparing the predicted displacement with a preset displacement threshold to obtain the displacement difference, the method further includes: The displacement difference is compared with a preset displacement difference threshold. When the displacement difference is greater than the displacement difference threshold, the step of adjusting the parameters of the bandpass filter according to the displacement difference to obtain the target gain is performed.
5. The loudspeaker displacement protection method according to claim 3, characterized in that, The step of correcting the predicted displacement of the first loudspeaker to obtain the predicted displacement of the second loudspeaker includes: Obtain the measured current of the loudspeaker and the measured voltage of the second loudspeaker; The predicted displacement of the first speaker is corrected based on the measured current of the first speaker and the measured voltage of the second speaker to obtain the predicted displacement of the second speaker.
6. The loudspeaker displacement protection method according to claim 1, characterized in that, The step of determining the target gain based on the target transfer function and a preset displacement threshold includes: The original audio signal input to the combined device is divided into frequencies to obtain frequency band signals; The target gain corresponding to each frequency band signal is determined based on the target transfer function and the preset displacement threshold. The step of performing gain processing on the original audio signal input to the combined device based on the target gain includes: According to the preset processing order, the frequency band signals of the original audio signals input to the combined device are sequentially processed using the target gains.
7. A loudspeaker displacement protection device, characterized in that, The device is applied to an electronic device, which includes a combination device and a power amplifier, the combination device including a loudspeaker and a motor; the loudspeaker displacement protection device includes: The module is used to solve for a first transfer function corresponding to the fusion voltage of the combined device and the measured voltage of the first loudspeaker according to a preset state equation; to perform data fitting based on the measured amplitude of the loudspeaker and the measured voltage of the first loudspeaker to obtain a second transfer function; and to construct a target transfer function by combining the first transfer function and the second transfer function. The determination module is used to determine the target gain based on the target transfer function and a preset displacement threshold. A gain processing module is used to perform gain processing on the original audio signal input to the combined device based on the target gain in order to protect the speaker from displacement.
8. An electronic device, characterized in that, Includes memory and processor, of which: The processor is used to execute computer programs stored in the memory; When the processor executes the computer program, it implements the steps in the loudspeaker displacement protection method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the loudspeaker displacement protection method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Method and system for adjusting amplitude of speaker diaphragm
CN109495820A
Loudspeaker protection
US20180014121A1
Speaker adaptation with voltage-to-excursion conversion
US20180160228A1
