A loudspeaker temperature protection method, device, equipment and storage medium
By constructing a heat transfer model of the speaker and motor, calculating the predicted temperature of the speaker, and determining the gain for processing audio signals, the problems of speaker over-compression and sound loss are solved, achieving temperature protection and improved audio quality.
Patent Information
- Application Number
- CN202310373763.X
- 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 existing technologies, modeling a single speaker causes over-compression of the speaker temperature when playing large signals, resulting in abnormal noise and loss of sound loudness.
By constructing a target transfer function based on the measured temperature of the loudspeaker and the measured fusion voltage of the combined devices, the predicted temperature of the loudspeaker is calculated and the target gain is determined. The input audio signal is then subjected to gain processing for temperature protection.
It effectively protects the speaker temperature within the maximum allowable range, reduces audio distortion, and ensures that the speaker can play normally at the highest possible volume.
Smart Images

Figure CN116389978B_ABST
Abstract
Description
[Technical Field]
[0001] This application relates to the field of loudspeaker technology, and in particular to a loudspeaker temperature protection method, device, equipment, and storage medium. [Background Technology]
[0002] 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. However, this design introduces a series of problems. For example, since a single power amplifier can only obtain one total voltage, without protection, the speaker temperature will gradually rise beyond its tolerance range when playing large signals, resulting in noise and other abnormalities. Furthermore, using a traditional single-speaker thermal model for modeling leads to over-compression, resulting in a significant loss of loudness in the sound played by the speaker. [Summary of the Invention]
[0003] The main objective of this application is to provide a method, apparatus, device, and storage medium for protecting the temperature of a loudspeaker, which can at least solve the problems of significant sound loss and over-compression of loudspeaker temperature caused by modeling a single loudspeaker in the related art.
[0004] To achieve the above objectives, a first aspect of this application provides a speaker temperature protection method applied to an electronic device, the electronic device including a combination device and a power amplifier, the combination device including a speaker and a motor; the speaker temperature protection method includes:
[0005] The target transfer function is constructed based on the measured temperature of the first loudspeaker and the first measured fusion voltage corresponding to the combined device.
[0006] The target gain is determined based on the first loudspeaker predicted temperature obtained from the target transfer function and the first fusion power corresponding to the combined device.
[0007] The original audio signal input to the combined device is amplified based on the target gain to provide temperature protection for the speaker.
[0008] A second aspect of this application provides a speaker temperature protection device applied to an electronic device, the electronic device including a combination device and a power amplifier, the combination device including a speaker and a motor; the speaker temperature protection device includes:
[0009] The construction module is used to construct a target transfer function based on the measured temperature of the first loudspeaker and the first measured fusion voltage corresponding to the combined device;
[0010] A determination module is used to determine a target gain based on a first predicted speaker temperature obtained from the target transfer function and a first fusion power corresponding to the combined device.
[0011] A gain processing module is used to perform gain processing on the raw audio signal input to the combined device based on the target gain in order to protect the speaker from temperature fluctuations.
[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 temperature 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 temperature protection method provided in the first aspect of this application.
[0014] As can be seen from the above, the speaker temperature protection method, apparatus, device, and readable storage medium provided in this application construct a target transfer function based on the measured temperature of the first speaker and the first measured fusion voltage corresponding to the combined device; a target gain is determined based on the predicted temperature of the first speaker obtained from the target transfer function and the first fusion power corresponding to the combined device; and gain processing is performed on the original audio signal input to the combined device based on the target gain to protect the speaker temperature. Through the implementation of this application, a transfer function is constructed based on the heat transfer model of the motor and the speaker. The predicted temperature of the speaker is calculated using this transfer function, and the target gain is obtained by combining it with the fusion power. Gain processing is performed on the input audio signal based on this target gain, thereby reducing audio distortion while keeping the speaker temperature below the maximum allowable temperature. [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 illustrating the speaker temperature protection method provided in the first embodiment of this application;
[0018] Figure 3 A comparison chart of measured and predicted temperatures of a loudspeaker provided in the first embodiment of this application;
[0019] Figure 4 A comparison chart of the measured and predicted temperatures of a loudspeaker provided in the first embodiment of this application;
[0020] Figure 5 This is a schematic diagram of the temperature compression result of a loudspeaker provided in the first embodiment of this application;
[0021] Figure 6 A detailed flowchart illustrating the speaker temperature protection method provided in the second embodiment of this application;
[0022] Figure 7 A schematic diagram of a speaker temperature protection device in a single power amplifier combination device provided in the second embodiment of this application;
[0023] Figure 8 A schematic diagram of a speaker temperature protection device provided in the third embodiment of this application;
[0024] Figure 9 This is a schematic diagram of the structure of an electronic device provided in the fourth embodiment of this application.
Detailed Implementation Methods
[0025] 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.
[0026] 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.
[0027] To address the issues of significant sound loss and over-compression of speaker temperature caused by modeling a single speaker in related technologies, the first embodiment of this application provides a speaker temperature 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 2This is a basic flowchart of the loudspeaker temperature protection method provided in this embodiment. The loudspeaker temperature protection method includes the following steps:
[0028] Step 201: Construct the target transfer function based on the measured temperature of the first loudspeaker and the first measured fusion voltage corresponding to the combined device.
[0029] Specifically, in this embodiment, the motor and the speaker are first modeled, and then the transfer function of the speaker temperature and the fusion voltage corresponding to the combined device is obtained based on the heat transfer model of the motor and the speaker.
[0030] In some embodiments of this example, the step of constructing a target transfer function based on the measured temperature of the first loudspeaker and the measured fusion voltage corresponding to the combined device includes: solving a first transfer function corresponding to the measured fusion voltage of the combined device and the measured voltage of the first loudspeaker according to a preset state equation, and solving a second transfer function corresponding to the measured fusion voltage of the first loudspeaker and the measured voltage of the motor; performing data fitting based on the measured temperature and the measured voltage of the first loudspeaker to obtain a third transfer function; performing data fitting between the measured temperature and the measured voltage of the motor to obtain a heat transfer function; and combining the first transfer function, the second transfer function, the third transfer function, and the heat transfer function to construct the target transfer function.
[0031] Specifically, in this embodiment, the transfer function is composed of a series connection of the transfer function between the speaker voltage and the fusion voltage, the transfer function between the speaker voltage and the speaker temperature, the transfer function between the motor voltage and the fusion voltage, and the heat transfer function between the motor and the speaker. The transfer function between the speaker voltage and the fusion voltage represents the voltage division of the speaker, which can be obtained by solving a preset state equation; the transfer function between the motor voltage and the fusion voltage represents the voltage division of the motor, which can be obtained by solving a preset state equation; the transfer function between the speaker voltage and the speaker temperature can be obtained by fitting measured data; and the heat transfer function between the motor and the speaker can also be obtained by fitting measured data. Therefore, this embodiment not only introduces a voltage division model but also a heat transfer model between the motor and the speaker, making the obtained transfer function more accurate.
[0032] Furthermore, in some embodiments of this example, the target transfer function is expressed as:
[0033]
[0034] in, Let C(f,t) be the target transfer function, M(f,t) be the first transfer function, and H be the second transfer function. T (f) is the third transfer function, B(f) is the heat transfer function, and U spk (f) represents the speaker voltage. For the fusion voltage, U mo (f) is the motor voltage, R(f) is the speaker thermal resistance, R m-s (f) represents the motor's thermal resistance.
[0035] Specifically, in this embodiment, in the heat transfer model composed of combined devices, the speaker and the motor are both heat sources, so the heat conduction between the speaker and the motor needs to be considered. The only direct input is the fusion voltage, so the heat transfer model is composed of four parts connected in series.
[0036] Step 202: Determine the target gain based on the first loudspeaker predicted temperature obtained based on the target transfer function and the first fusion power corresponding to the combined device.
[0037] Specifically, in this embodiment, the predicted temperature of the loudspeaker can be calculated using the pre-constructed transfer function, and the compression gain of the audio signal can be determined based on the predicted temperature and the fusion power corresponding to the combined device.
[0038] In some embodiments of this example, the step of determining the target gain based on the first speaker predicted temperature obtained based on the target transfer function and the first fused power corresponding to the combined device includes: calculating the second fused power corresponding to the combined device based on the power amplifier's power gain, the impedance curve corresponding to the combined device, and the digital signal corresponding to the power amplifier; correcting the second fused power to obtain the first fused power; correcting the second speaker predicted temperature calculated based on the target transfer function to obtain the first speaker predicted temperature; and determining the target gain based on the first fused power and the first speaker predicted temperature.
[0039] Specifically, in this embodiment, the first fused power is obtained by calculating and correcting the second fused power from ideal data. The second fused power is calculated from the power amplifier multiple, impedance curve, and digital signal. The first speaker predicted temperature is obtained by correcting the ideal speaker predicted temperature. The ideal speaker predicted temperature is calculated by constructing the target transfer function. After obtaining the first fused power and the first speaker predicted temperature, the target gain can be determined based on both.
[0040] Furthermore, in some embodiments of this example, the step of correcting the predicted temperature of the second loudspeaker calculated based on the target transfer function to obtain the predicted temperature of the first loudspeaker includes: calculating the measured temperature of the second loudspeaker based on the measured voltage and measured current of the second loudspeaker; comparing the measured temperature of the second loudspeaker with the predicted temperature of the second loudspeaker calculated based on the target transfer function to obtain a temperature error; and correcting the predicted temperature of the second loudspeaker based on the temperature error to obtain the predicted temperature of the first loudspeaker.
[0041] Specifically, in this embodiment, the real-time speaker voice coil temperature can be calculated using the speaker's measured voltage and current. This actual speaker voice coil temperature is compared with the predicted temperature calculated from the target transfer function to obtain the temperature error. The predicted temperature is then corrected based on this temperature error to obtain the actual predicted speaker temperature. The predicted speaker temperature can be obtained from a temperature prediction model, which can be either feedforward or feedback-based. Calculating the predicted temperature using the target transfer function is a feedforward method, meaning that the target transfer function is a theoretical model and cannot completely and accurately predict the actual temperature. For example... Figure 3 The comparison graph of the measured and predicted temperatures of the loudspeaker is shown below (Treal is the measured temperature, Tsim is the predicted temperature, the horizontal axis is the transmission time in seconds, and the vertical axis is the temperature in degrees Celsius). The measured temperature is lower than the predicted temperature at certain times. Figure 4 The comparison chart of measured and predicted speaker temperatures (horizontal axis: transmission time in seconds, vertical axis: temperature in degrees Celsius) shows a significant temperature error between the measured and predicted temperatures at certain transmission points, such as 30 seconds. Therefore, iterating the measured voltage and current into the theoretical model allows for the correction of intermediate values in the measured temperature, thereby improving the accuracy of the predicted temperature. Furthermore, the temperature feedback from the temperature prediction model can include the speaker voice coil temperature, the motor magnet temperature, and the internal and external ambient temperatures of the equipment.
[0042] Furthermore, in some other embodiments of this example, the step of correcting the second fusion power to obtain the first fusion power includes: calculating the third fusion power based on the second measured fusion voltage and the measured fusion current corresponding to the combined device; comparing the third fusion power with the second fusion power to obtain the power error; and correcting the second fusion power based on the power error to obtain the first fusion power.
[0043] Specifically, in this embodiment, the fused power can be obtained by a power prediction model, which includes two methods: feedforward and feedback. The theoretical fused power obtained by the feedforward method has lower accuracy, so it is also necessary to correct the theoretical fused power. The real-time fused power is calculated by measuring the fused voltage and the measured fused current, and then the actual fused power is compared with the theoretical fused power to obtain the power error. The actual fused power can be obtained by correcting the theoretical fused power based on the power error.
[0044] Furthermore, in some embodiments of this example, the step of determining the target gain based on the first fusion power and the first speaker predicted temperature includes: comparing the first speaker predicted temperature with a preset speaker temperature threshold to obtain a temperature difference; and determining the target gain based on the first fusion power and the power corresponding to the temperature difference.
[0045] Specifically, in this embodiment, after obtaining the predicted speaker temperature, the predicted speaker temperature is compared with a preset speaker temperature threshold to obtain a temperature difference, so as to determine the power required for the predicted speaker temperature to reach the speaker temperature threshold, and the compression gain is calculated by using this power and the fusion power.
[0046] Step 203: Perform gain processing on the raw audio signal input to the combined device based on the target gain to protect the speaker from temperature.
[0047] Specifically, in this embodiment, the original audio signal input to the combined device is subjected to gain processing using a target gain, thereby achieving temperature protection for the speaker in the combined device. For example... Figure 5 The schematic diagram of the speaker temperature compression result is shown (the horizontal axis is the transmission time in seconds, and the vertical axis is dB, which represents the ratio of the two temperature quantities). After adding a temperature protection module based on the heat transfer model of voltage division and combined devices, the speaker temperature can be effectively compressed while ensuring loudness.
[0048] Based on the technical solution of the embodiments of this application described above, a target transfer function is constructed based on the measured temperature of the first loudspeaker and the first measured fusion voltage corresponding to the combined device; a target gain is determined based on the predicted temperature of the first loudspeaker obtained from the target transfer function and the first fusion power corresponding to the combined device; and gain processing is performed on the original audio signal input to the combined device based on the target gain to protect the temperature of the loudspeaker. Through the implementation of this application's solution, a transfer function is constructed based on the heat transfer model of the motor and the loudspeaker. The predicted temperature of the loudspeaker is calculated using this transfer function, and the target gain is obtained by combining it with the fusion power. Gain processing is then performed on the input audio signal based on this target gain, thereby reducing audio distortion while keeping the loudspeaker temperature below the maximum allowable temperature.
[0049] Figure 6 The method described in the second embodiment of this application is a refined speaker temperature protection method, which includes:
[0050] Step 601: Construct the target transfer function based on the measured temperature of the loudspeaker and the measured fusion voltage corresponding to the combined devices;
[0051] Step 602: Correct the first loudspeaker predicted temperature calculated based on the target transfer function to obtain the second loudspeaker predicted temperature;
[0052] Step 603: Compare the predicted temperature of the second speaker with the preset speaker temperature threshold to obtain the temperature difference.
[0053] Step 604: Based on the power amplifier's power gain, the impedance curve corresponding to the combined device, and the digital signal corresponding to the power amplifier, calculate the first fused power corresponding to the combined device;
[0054] Step 605: Correct the first fusion power to obtain the second fusion power;
[0055] Step 606: Determine the target gain based on the second fusion power and the power corresponding to the temperature difference;
[0056] Step 607: Perform gain processing on the raw audio signal input to the combination device based on the target gain to protect the speaker from temperature.
[0057] Specifically, in this embodiment, the above steps can be applied to a speaker temperature protection device in a single power amplifier combination device. This device includes a main link, multiple branch links, a power prediction module, a temperature modeling module, and a temperature 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 temperature compression module. The main link includes a temperature compression module, whose input receives the original audio signal, and whose output is connected to the speaker. The input of the temperature compression module is also connected to the output of the power prediction module. One of the multiple branch links includes a temperature modeling module, and the remaining branch links contain temperature prediction modules connected in series. Figure 7 This is a schematic diagram of a speaker temperature protection device in a single power amplifier combination device. The fusion signal is a fusion signal between the speaker and the motor. The output voltage obtained by multiplying the fusion signal by the compression gain is input to the combination device. A temperature modeling module is used to calculate the transfer function between the speaker temperature and the fusion voltage. A power prediction module calculates a relatively accurate fusion current by continuously updating the impedance curve, thereby predicting the power. The power prediction model can have both feedback and feedforward modes. The feedback mode calculates the thermal power using feedback voltage and feedback current. A temperature compression module is used to perform gain processing on the original audio signal using the target gain. The temperature prediction model can also have both feedback and feedforward modes. The feedback mode calculates the speaker voice coil temperature using feedback voltage and current to continuously correct the error of the temperature modeling module.
[0058] 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.
[0059] Based on the above technical solution of the embodiments of this application, a target transfer function is constructed based on the measured temperature of the loudspeaker and the measured fusion voltage corresponding to the combined device; the first predicted temperature of the loudspeaker calculated based on the target transfer function is then corrected to obtain a second predicted temperature of the loudspeaker, and the second predicted temperature of the loudspeaker is compared with a preset loudspeaker temperature threshold to obtain a temperature difference; a first fusion power corresponding to the combined device is calculated based on the power amplifier's power gain, the impedance curve corresponding to the combined device, and the digital signal corresponding to the power amplifier; the first fusion power is corrected to obtain a second fusion power; a target gain is determined based on the second fusion power and the power corresponding to the temperature difference; and gain processing is performed on the original audio signal input to the combined device based on the target gain to protect the loudspeaker temperature. Through the implementation of the solution of this application, a transfer function is constructed based on the heat transfer model of the motor and the loudspeaker, the predicted temperature of the loudspeaker is calculated using this transfer function and combined with the fusion power to obtain a target gain, and gain processing is performed on the input audio signal based on this target gain, thereby protecting the loudspeaker temperature at the maximum allowable temperature to ensure that the loudspeaker is not damaged, while still allowing the loudspeaker to play at the largest possible volume and minimizing audio distortion.
[0060] Figure 8 A speaker temperature 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 temperature protection device can be applied to the aforementioned speaker temperature protection method. Figure 8 As shown, the speaker temperature protection device mainly includes:
[0061] Module 801 is used to construct a target transfer function based on the measured temperature of the first loudspeaker and the first measured fusion voltage corresponding to the combined device.
[0062] The determination module 802 is used to determine the target gain based on the first predicted loudspeaker temperature obtained from the target transfer function and the first fusion power corresponding to the combined device.
[0063] Gain processing module 803 is used to perform gain processing on the raw audio signal input to the combination device based on a target gain in order to protect the speaker from temperature.
[0064] In some embodiments of this example, the construction module is specifically used to: solve for a first transfer function corresponding to the first measured fusion voltage of the combined device and the first measured voltage of the first speaker according to a preset state equation, and solve for a second transfer function corresponding to the first measured fusion voltage and the measured voltage of the motor; perform data fitting based on the measured temperature and the measured voltage of the first speaker to obtain a third transfer function; perform data fitting between the measured temperature and the measured voltage of the motor to obtain a heat transfer function; and construct a target transfer function by combining the first transfer function, the second transfer function, the third transfer function, and the heat transfer function. The target transfer function is expressed as:
[0065]
[0066] in, Let C(f,t) be the target transfer function, M(f,t) be the first transfer function, and H be the second transfer function. T (f) is the third transfer function, B(f) is the heat transfer function, and U spk (f) represents the speaker voltage. For the fusion voltage, U mo (f) is the motor voltage, R(f) is the speaker thermal resistance, R m-s (f) represents the motor's thermal resistance.
[0067] In some embodiments of this example, the determining module is specifically used to: calculate the second fused power corresponding to the combined device based on the power amplifier's power gain, the impedance curve corresponding to the combined device, and the digital signal corresponding to the power amplifier; correct the second fused power to obtain the first fused power; correct the second speaker predicted temperature calculated based on the target transfer function to obtain the first speaker predicted temperature; and determine the target gain based on the first fused power and the first speaker predicted temperature.
[0068] Furthermore, in some embodiments of this example, the loudspeaker temperature protection device further includes: a first correction module, used to calculate the measured temperature of the second loudspeaker based on the measured voltage and measured current of the second loudspeaker; compare the measured temperature of the second loudspeaker with the predicted temperature of the second loudspeaker calculated based on the target transfer function to obtain a temperature error; and correct the predicted temperature of the second loudspeaker according to the temperature error to obtain the predicted temperature of the first loudspeaker.
[0069] Furthermore, in some other embodiments of this example, the loudspeaker temperature protection device further includes: a second correction module, used to calculate a third fusion power based on a second measured fusion voltage and a measured fusion current corresponding to the combined device; compare the third fusion power with the second fusion power to obtain a power error; and correct the second fusion power based on the power error to obtain a first fusion power.
[0070] Furthermore, in some embodiments of this example, the determining module is also used to: compare the predicted temperature of the first loudspeaker with a preset loudspeaker temperature threshold to obtain a temperature difference; and determine a target gain based on the first fusion power and the power corresponding to the temperature difference.
[0071] It should be noted that the speaker temperature protection methods in the foregoing embodiments can all be implemented based on the speaker temperature 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 speaker temperature protection device described in this embodiment can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0072] Based on the technical solution of the above embodiments of this application, a target transfer function is constructed based on the measured temperature of the first loudspeaker and the first measured fusion voltage corresponding to the combined device; a target gain is determined based on the predicted temperature of the first loudspeaker obtained based on the target transfer function and the first fusion power corresponding to the combined device; and gain processing is performed on the original audio signal input to the combined device based on the target gain to protect the loudspeaker temperature. Through the implementation of the solution of this application, a transfer function is constructed based on the heat transfer model of the motor and the loudspeaker, the predicted temperature of the loudspeaker is calculated using this transfer function, and the target gain is obtained by combining the fusion power. Gain processing is performed on the input audio signal based on this target gain, thereby protecting the loudspeaker temperature below the maximum allowable temperature while reducing audio distortion.
[0073] Figure 9 This is a schematic diagram of an electronic device provided in the fourth embodiment of this application. The electronic device can be used to implement the speaker temperature protection method in the foregoing embodiments, and mainly includes:
[0074] The system includes a memory 901, a processor 902, and a computer program 903 stored on the memory 901 and executable on the processor 902. The memory 901 and the processor 902 are connected via communication. When the processor 902 executes the computer program 903, it implements the method described in Embodiment 1 or 2 above. The number of processors can be one or more.
[0075] The memory 901 can be a high-speed random access memory (RAM) or a non-volatile memory, such as a disk drive. The memory 901 is used to store executable program code, and the processor 902 is coupled to the memory 901.
[0076] 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 9 The memory in the illustrated embodiment.
[0077] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the speaker temperature 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] The above is a description of the speaker temperature protection method, apparatus, device 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 the temperature of a loudspeaker, characterized in that, Applied to electronic devices, the electronic devices include a combination device and a power amplifier, the combination device including a speaker and a motor; the speaker temperature protection method includes: The first transfer function corresponding to the first measured fusion voltage of the combined device and the first measured voltage of the first speaker is solved according to the preset state equation, and the second transfer function corresponding to the first measured fusion voltage and the measured voltage of the motor is solved. The third transfer function is obtained by fitting data based on the measured temperature and measured voltage of the first loudspeaker. The heat transfer function is obtained by fitting the measured motor temperature with the measured motor voltage. A target transfer function is constructed by combining the first transfer function, the second transfer function, the third transfer function, and the heat transfer function; The target gain is determined based on the first loudspeaker predicted temperature obtained from the target transfer function and the first fusion power corresponding to the combined device. The original audio signal input to the combined device is amplified based on the target gain to provide temperature protection for the speaker.
2. The loudspeaker temperature protection method according to claim 1, characterized in that, The target transfer function is expressed as: T ( f , t ) C ( f , t )· H T ( f )· M ( f , t )· B ( f ) · · · ; in, T ( f , t ) is the target transfer function. C ( f , t ) is the first transfer function. M ( f , t ) is the second transfer function, H T ( f ) is the third transfer function, B ( f ) is the heat transfer function, This is the speaker voltage. For fusion voltage, Motor voltage, For speaker thermal resistance, This refers to the motor's thermal resistance.
3. The loudspeaker temperature protection method according to claim 1, characterized in that, The step of determining the target gain based on the first loudspeaker predicted temperature obtained based on the target transfer function and the first fusion power corresponding to the combined device includes: Based on the power amplifier's power gain, the impedance curve corresponding to the combined device, and the digital signal corresponding to the power amplifier, calculate the second fused power corresponding to the combined device; The second fusion power is corrected to obtain the first fusion power; The predicted temperature of the second loudspeaker, calculated based on the target transfer function, is corrected to obtain the predicted temperature of the first loudspeaker. The target gain is determined based on the first fusion power and the first speaker predicted temperature.
4. The loudspeaker temperature protection method according to claim 3, characterized in that, The step of correcting the second loudspeaker predicted temperature calculated based on the target transfer function to obtain the first loudspeaker predicted temperature includes: Calculate the measured temperature of the second speaker based on the measured voltage and measured current of the second speaker. The measured temperature of the second loudspeaker is compared with the predicted temperature of the second loudspeaker calculated based on the target transfer function to obtain the temperature error. The predicted temperature of the second speaker is corrected based on the temperature error to obtain the predicted temperature of the first speaker.
5. The loudspeaker temperature protection method according to claim 3, characterized in that, The step of correcting the second fusion power to obtain the first fusion power includes: The third fusion power is calculated based on the second measured fusion voltage and the measured fusion current corresponding to the combined device; The third fused power is compared with the second fused power to obtain the power error; The second fused power is corrected based on the power error to obtain the first fused power.
6. The loudspeaker temperature protection method according to claim 3, characterized in that, The step of determining the target gain based on the first fusion power and the first speaker predicted temperature includes: The predicted temperature of the first speaker is compared with a preset speaker temperature threshold to obtain the temperature difference. The target gain is determined based on the first fusion power and the power corresponding to the temperature difference.
7. A loudspeaker temperature 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 speaker and a motor; the speaker temperature protection device includes: The module is configured to: solve for a first transfer function corresponding to the first measured fusion voltage and the first measured voltage of the combined device and the first speaker according to a preset state equation; solve for a second transfer function corresponding to the first measured fusion voltage and the measured voltage of the motor; perform data fitting based on the measured temperature and the measured voltage of the first speaker to obtain a third transfer function; perform data fitting based on the measured temperature and the measured voltage of the motor to obtain a heat transfer function; and construct a target transfer function by combining the first transfer function, the second transfer function, the third transfer function, and the heat transfer function. A determination module is used to determine a target gain based on a first predicted speaker temperature obtained from the target transfer function and a first fusion power corresponding to the combined device. A gain processing module is used to perform gain processing on the raw audio signal input to the combined device based on the target gain in order to protect the speaker from temperature fluctuations.
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 speaker temperature 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 in the speaker temperature protection method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Loudspeaker signal protection device and method
CN110868672A
Audio signal processing method and electronic equipment
CN114245271A
