Signal processing method and device, equipment, storage medium and program product

By determining the rear cavity air pressure value in the mobile phone speaker and modulating the audio signal, the diaphragm offset and noise problems caused by the speaker due to the increase in the rear cavity air pressure is solved, achieving better sound effects and user experience.

CN119815250AInactive Publication Date: 2025-04-11REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411834672.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-11
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When playing audio, the mobile phone speakers have increased air pressure in the rear cavity, resulting in diaphragm shift and noise. The prior art is difficult to effectively avoid this problem without affecting the sound effect.

Method used

When the speaker plays the audio signal, the current air pressure value of the speaker's rear cavity is determined, the diaphragm displacement data is determined based on the air pressure value, and the audio signal is modulated to avoid the diaphragm hitting the front cover and causing noise.

Benefits of technology

The air pressure detection technology accurately controls the audio signal playback, which reduces the noise generated by the audio signal playback, and ensures the sound effect of the entire machine and enhances the user's experience of using the terminal device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119815250A_ABST
    Figure CN119815250A_ABST
Patent Text Reader

Abstract

The invention discloses a signal processing method and device, equipment, a storage medium and a program product, and the method comprises the steps: determining a current air pressure value of a rear cavity of a loudspeaker when the loudspeaker plays an audio signal; determining diaphragm displacement data of the loudspeaker according to the current air pressure value; and modulating the audio signal according to the diaphragm displacement data. Therefore, noise generated by audio playing can be reduced, and the sound effect of the whole machine can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a signal processing method, apparatus, device, storage medium and program product. Background Art

[0002] As an indispensable communication tool for modern people, mobile phones have better and better waterproof and dustproof performance. However, for speakers, they will generate heat when working, thereby heating the airflow in the rear cavity of the speaker, making the temperature of the front and rear cavities of the speaker different, causing the amplitude of the speaker to shift. Driven by a large voltage, the vibrating diaphragm of the speaker (referred to as the diaphragm) hits the front cover, producing obvious noise.

[0003] In the related art, a vent hole is usually reserved on the appearance of the mobile phone to balance the temperature of the rear cavity of the speaker with the external environment temperature. However, as mobile phones become thinner and lighter, the channel height provided for the vent hole is very limited and cannot effectively avoid noise. Although the amplitude of the speaker can be suppressed by temperature detection, it will reduce the sound effect of some mobile phones without noise, resulting in poor sound effect of the whole machine. Summary of the invention

[0004] The present application proposes a signal processing method, device, equipment, storage medium and program product, which can not only reduce the noise generated by audio playback, but also ensure the sound effect of the entire machine.

[0005] To achieve the above purpose, the technical solution of this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a signal processing method, the method comprising:

[0007] When the speaker plays an audio signal, determining a current air pressure value of a rear cavity of the speaker;

[0008] Determining the diaphragm displacement data of the speaker according to the current air pressure value;

[0009] The audio signal is modulated according to the diaphragm displacement data.

[0010] In a second aspect, an embodiment of the present application provides a signal processing device, the signal processing device comprising a determination unit and a modulation unit, wherein:

[0011] A determination unit configured to determine a current air pressure value of a rear cavity of the speaker when the speaker plays an audio signal; and determine diaphragm displacement data of the speaker according to the current air pressure value;

[0012] The modulation unit is configured to modulate the audio signal according to the diaphragm displacement data.

[0013] In a third aspect, an embodiment of the present application provides a terminal device, the terminal device including a memory and a processor, wherein:

[0014] A memory for storing computer programs that can be run on the processor;

[0015] A processor is used to execute the method described in the first aspect above when running a computer program.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implement the method described in the first aspect above.

[0018] In a sixth aspect, an embodiment of the present application provides a computer program, which, when executed on a computer, enables a terminal device to execute the method described in the first aspect above.

[0019] The signal processing method, device, equipment, storage medium and program product provided in the embodiments of the present application determine the current air pressure value of the rear cavity of the speaker when the speaker plays an audio signal; determine the diaphragm displacement data of the speaker according to the current air pressure value; and modulate the audio signal according to the diaphragm displacement data. In this way, considering that the fundamental cause of the noise is the increase in the air pressure in the rear cavity of the speaker, after determining the current air pressure value of the rear cavity of the speaker, the diaphragm displacement data of the speaker can be determined according to the current air pressure value, so as to modulate the audio signal; in this way, the audio signal playback can be more accurately controlled through the air pressure detection technology, which not only reduces the noise generated by the audio signal playback, but also ensures the sound effect of the whole machine, thereby improving the user experience of using the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 A schematic diagram of a vibration waveform of a diaphragm of a loudspeaker;

[0021] Figure 2 A flowchart of a signal processing method provided in an embodiment of the present application;

[0022] Figure 3 A detailed flowchart of a signal processing method provided in an embodiment of the present application;

[0023] Figure 4 A schematic diagram of the relationship between air pressure, resonant frequency and diaphragm displacement provided in an embodiment of the present application;

[0024] Figure 5A schematic diagram of the structure of a speaker provided in an embodiment of the present application;

[0025] Figure 6 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application Figure 1 ;

[0026] Figure 7 A schematic diagram of the structure of a signal processing device provided in an embodiment of the present application;

[0027] Figure 8 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0028] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below in conjunction with the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0030] It should also be noted that the terms "first\second\third" involved in the embodiments of the present application are only used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0031] It should also be noted that in the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.

[0032] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.

[0033] As an indispensable communication tool for modern people, mobile phones generally support IP68 rating. Among them, IP68 means that the sealing of the mobile phone is very good. The upper and lower speakers of the mobile phone will generate heat when working, thereby heating the airflow of the entire rear cavity, causing the air pressure in the rear cavity of the speaker to increase. In this way, the temperature of the rear cavity of the speaker is different from that of the front cavity (which is connected to the external environment and the temperature remains basically unchanged), causing the diaphragm of the speaker to shift toward the front cavity. Driven by a large voltage, it is easy to jump out of the magnetic bowl, causing the diaphragm to hit the front cover, resulting in obvious noise. Therefore, an air vent needs to be set on the appearance of the mobile phone to connect the rear cavity of the speaker. The purpose is to balance the temperature of the rear cavity with the temperature of the external environment.

[0034] However, mobile phones have a trend of becoming thinner and lighter, and the channel height provided for the vent hole is actually very limited, only about 0.3 millimeters (mm). If the assembly tolerance is taken into account, the channel area of ​​the vent hole is smaller than the standard area (for example, 1mm 2 or the phone has been used for too long, the dust screen of the vent hole is blocked by dust particles; or some mobile phones play music at high temperature, or the whole device reaches a high temperature (for example, >60℃) when playing music by itself, etc., which may cause the upper amplitude to exceed the maximum amplitude Xmax, such as Figure 1 As shown, noise is generated. The horizontal axis represents time in seconds (s); the vertical axis represents diaphragm displacement in mm.

[0035] In the related technology, although there are some circumvention solutions, such as suppressing the amplitude of the speaker as soon as the power amplifier (PA) detects high temperature, this is a one-size-fits-all solution, and the amplitude of all mobile phones will be suppressed, sacrificing the sound effect of some mobile phones without noise (the whole machine in this part is relatively smooth, and there is actually no need to suppress the amplitude of the speaker), resulting in poor sound quality of the whole machine.

[0036] Based on this, the embodiment of the present application provides a signal processing method, specifically an application solution that more accurately avoids noise while ensuring sound effects. When the speaker plays an audio signal, determine the current air pressure value of the rear cavity of the speaker; determine the diaphragm displacement data of the speaker based on the current air pressure value; and modulate the audio signal based on the diaphragm displacement data. Considering that the fundamental cause of the noise is the increase in the air pressure in the rear cavity of the speaker, after determining the current air pressure value of the rear cavity of the speaker, the diaphragm displacement data of the speaker can be determined based on the current air pressure value, so as to modulate the audio signal to avoid the diaphragm hitting the front cover and generating obvious noise; in this way, the air pressure detection technology can be used to more accurately control the audio signal playback, which not only reduces the noise generated by the audio signal playback, but also ensures the sound effect of the entire machine, thereby enhancing the user experience of using the terminal device.

[0037] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0038] In one embodiment of the present application, Figure 2 A flow chart of a signal processing method provided in an embodiment of the present application Figure 1 .like Figure 2 As shown, the method may include:

[0039] S201, when the speaker plays an audio signal, determining a current air pressure value of a rear cavity of the speaker.

[0040] In the embodiment of the present application, the method can be applied to a signal processing device, or a terminal device integrated with the device. Here, the terminal device can be an electronic device with an audio playback function such as a mobile phone, a laptop computer, a PDA, a personal digital assistant (Personal Digital Assistant), a wearable device, etc., without any limitation.

[0041] It should be noted that the audio signal here can be a sound signal played through a speaker, such as music, voice, ambient sound and other sound information, and there is no limitation on this.

[0042] In the embodiment of the present application, the terminal device may include a speaker (also called a horn). A speaker is a transducer device that converts electrical signals into sound signals. It is usually composed of a diaphragm, a magnet, a voice coil, etc. When there is a current that changes with sound in the voice coil, the voice coil is subjected to a force whose magnitude and direction change with time. This force causes the voice coil to drive the diaphragm to vibrate back and forth, thereby converting the electrical signal into a sound signal.

[0043] Here, the sound cavity (BOX) inside the speaker can be divided into the front cavity and the rear cavity. Among them, the front cavity is located in front of the diaphragm, which is mainly used to adjust the output of high-frequency sound; the rear cavity is located behind the diaphragm, which is mainly used to enhance the output of low-frequency sound and prevent acoustic short circuit. As the sealing of terminal equipment is getting better and better, for example, the IP68 level is generally supported at present. Considering that the speaker will heat up when working, thereby heating the airflow of the entire rear cavity, the air pressure in the rear cavity of the speaker increases, causing the diaphragm of the speaker to deviate toward the front cavity, which makes it easy for the diaphragm to reach the front cover and produce noise.

[0044] That is to say, the fundamental reason for the noise is the increase in air pressure in the rear cavity of the speaker. Therefore, when the speaker is working, it is necessary to first detect the current air pressure value of the rear cavity.

[0045] In a possible implementation, determining a current air pressure value of a rear cavity of a speaker may include: determining a current resonance frequency of the rear cavity of the speaker; and determining a current air pressure value according to the current resonance frequency.

[0046] In an embodiment of the present application, the current air pressure value may be determined according to the current resonant frequency. In some embodiments, determining the current air pressure value according to the current resonant frequency may include: determining the current air pressure value according to the current resonant frequency and a pre-established air pressure model.

[0047] It should be noted that the air pressure model is used to characterize the mapping relationship between the resonant frequency and the air pressure data. For example, assuming that the air pressure data can be represented by P and the resonant frequency can be represented by F0, the air pressure model can be represented by P=f1(F0).

[0048] It should also be noted that the resonant frequency refers to the frequency of the circuit containing capacitors and inductors. When the sinusoidal frequency of the external input voltage reaches a certain frequency, the inductive reactance and the capacitive reactance of the circuit are equal, and the circuit presents a pure resistance property. At this time, the frequency of the circuit is called the resonant frequency. Here, resonance can also be called "resonance". It can also be said that under the action of periodic external forces, when the frequency of the external force is the same as or very close to the natural oscillation frequency of the system, the amplitude increases sharply. The frequency when resonance occurs is called the "resonant frequency".

[0049] In some embodiments, determining the current resonant frequency of the rear cavity of the speaker may include: acquiring an electrical feedback signal when the speaker plays an audio signal; and determining the current resonant frequency according to the electrical feedback signal.

[0050] In the embodiment of the present application, the electrical feedback signal may include a feedback current (Current, I) and a feedback voltage (Voltage, V). When the speaker plays an audio signal, the diaphragm vibrates, and the vibration of the diaphragm causes the speaker to generate an electrical feedback signal, such as a feedback current and a feedback voltage.

[0051] In a possible implementation, determining the current resonant frequency according to the electrical feedback signal may include: determining a mapping relationship between an impedance parameter and a frequency according to a feedback current and a feedback voltage; and determining the current resonant frequency according to the mapping relationship between the impedance parameter and the frequency.

[0052] In an embodiment of the present application, there is a certain relationship between the resonant frequency and the feedback voltage and feedback current. According to the feedback current and feedback voltage in the electrical feedback signal, the mapping relationship between the impedance parameter and the frequency can be determined; then, according to the mapping relationship between the impedance parameter and the frequency, the current resonant frequency can be determined. In other words, an impedance-frequency model between the feedback current, feedback voltage and resonant frequency can be established here, and the current resonant frequency can be determined based on the model. It should be noted that the impedance-frequency model here will also involve other parameters, but the feedback current I and feedback voltage V are two more important parameters.

[0053] It should also be noted that the resonant frequency refers to the frequency at which the impedance of the circuit reaches its maximum value. This frequency is called the resonant frequency. This is because at the resonant frequency, the inductive reactance of the inductor and the capacitive reactance of the capacitor are equal in magnitude and opposite in phase, canceling each other out, so that the total impedance in the circuit reaches its maximum value.

[0054] In practical applications, for example, when measuring the impedance and resonant frequency of a speaker, the impedance at different frequencies can be measured by a frequency sweep method, and its frequency characteristics can be analyzed by Fourier transform of a unit impulse response signal. For example, the speaker plays a frequency sweep signal, and based on the obtained electrical feedback signal (such as IV feedback data), the frequency corresponding to the maximum impedance can be determined, and then the frequency is used as the current resonant frequency F0. Here, the impedance R = V / I is obtained.

[0055] It should also be noted that in the embodiment of the present application, multiple sets of first sample data (including air pressure data and corresponding resonant frequency data) can be obtained by measuring the resonant frequency data of the speaker under multiple sets of different air pressure data. Based on these multiple sets of first sample data, the mapping relationship between the resonant frequency and the air pressure data can be determined, that is, the air pressure model P=f1(F0) is established.

[0056] For example, a pressure cooker is used for modeling. The pressure cooker can be set with different air pressure data. Under the different air pressure environments, the change curve of the resonant frequency is observed, and then the mapping relationship between the resonant frequency and the air pressure data is determined, that is, the air pressure model P=f1(F0) is established.

[0057] In this way, after obtaining the current resonant frequency F0 and the air pressure model P=f1(F0), the current resonant frequency can be brought into the air pressure model, and then the current air pressure value corresponding to the current resonant frequency can be obtained.

[0058] It should be noted that in the embodiment of the present application, the terminal device includes an intelligent power amplifier. Among them, the intelligent power amplifier is a device that realizes intelligent processing, amplification and transmission of audio signals through built-in intelligent chips, sensors, network communication modules, etc. Specifically, the intelligent power amplifier is an audio power amplifier that integrates intelligent technology. It not only has the functions of a traditional power amplifier, but also incorporates modern intelligent technology, allowing users to have more convenience and intelligent experience in audio playback, control and management.

[0059] In this way, since the current smart amplifier already supports air pressure detection, after receiving the electrical feedback signal from the speaker, the smart amplifier can obtain the current resonant frequency and then estimate the current air pressure value. Based on the air pressure detection technology of the smart amplifier, the audio signal playback can be controlled more accurately to avoid the risk of noise generated by the whole machine under the IP68 level.

[0060] In another possible implementation, determining the current air pressure value of the rear cavity of the speaker may include: detecting the air pressure of the rear cavity of the speaker by using an air pressure sensor to obtain the current air pressure value.

[0061] In this implementation, a pressure sensor is built into the back cavity of the speaker. The pressure sensor is an instrument used to measure the absolute pressure of the gas, and can also measure the pressure difference relative to a reference pressure. The working principle of the pressure sensor can be mainly based on the piezoelectric effect, the piezoresistive effect or the change of capacitance. Among them:

[0062] For the piezoelectric effect, flexible metal sheet sensors usually use the piezoelectric effect. When subjected to gas pressure, the metal sheet will deform, and this deformation will cause a change in the charge distribution on its surface. By measuring the change in this charge distribution, an electrical signal output proportional to the pressure can be obtained.

[0063] For the piezoresistive effect, semiconductor materials use the piezoresistive effect, which produces different resistance values ​​under different pressures. The core of the silicon piezoresistive pressure sensor is a silicon diaphragm, whose resistance value changes with the pressure applied to it. When the external air pressure acts on the silicon diaphragm, the diaphragm deforms, causing the resistance value to change. By measuring the change in resistance value, the magnitude of the pressure can be calculated.

[0064] For capacitance changes, capacitive pressure sensors use the change in capacitance between two conductive plates to measure pressure. When external air pressure acts on one of the conductive plates, the distance between the two plates changes, thereby changing the capacitance. By measuring the change in capacitance, the magnitude of the pressure can be calculated.

[0065] In this way, directly detecting the current air pressure value through the air pressure sensor not only simplifies the detection scheme, but also improves the accuracy of air pressure detection, thereby being able to more accurately control the audio signal playback and avoid the risk of noise in the entire machine under the IP68 level.

[0066] That is to say, in the embodiment of the present application, the current pressure value can be determined by directly detecting the air pressure through an air pressure sensor; or the current resonant frequency can be obtained based on the electrical feedback signal when the speaker is working, and then the current air pressure value can be estimated. There is no limitation here.

[0067] S202: Determine the diaphragm displacement data of the speaker according to the current air pressure value.

[0068] In the embodiment of the present application, after obtaining the current air pressure value, the diaphragm displacement data of the speaker can be determined according to the current air pressure value, or it can also be called "determining the amplitude data of the speaker under the current air pressure value".

[0069] In some embodiments, determining the diaphragm displacement data of the speaker according to the current air pressure value may include: determining the diaphragm displacement data according to the current resonant frequency and a pre-established displacement model.

[0070] It should be noted that the displacement model is used to characterize the mapping relationship between the resonant frequency and the diaphragm displacement. For example, assuming that the air pressure data can be represented by P and the diaphragm displacement can be represented by X, the displacement model can be represented by X=f2(P).

[0071] It should also be noted that amplitude can refer to the maximum value that the physical quantity of vibration can reach, usually represented by A. In mechanical vibration, amplitude is the absolute value of the maximum displacement of an object from its equilibrium position when it vibrates, and is numerically equal to the magnitude of the maximum displacement. It is a physical quantity that represents the range and intensity of vibration.

[0072] In one implementation, the amplitude determines the height of the waveform, that is, the distance between the peak or trough and the equilibrium position. The amplitude formula can be expressed as y = Asin (ωx + φ) + b, where A is the amplitude, y represents the displacement, that is, the position of the object relative to the equilibrium position; ω is the angular frequency, φ is the initial phase, and b is the equilibrium position.

[0073] In addition, in the embodiment of the present application, the displacement model may also be referred to as a protection model, so as to obtain real-time displacement protection parameters (ie, diaphragm displacement data), thereby reducing the noise generated by the audio signal playback.

[0074] S203, modulating the audio signal according to the diaphragm displacement data.

[0075] In the embodiment of the present application, after the diaphragm displacement data is obtained, the audio signal can be modulated according to the diaphragm displacement data. In some embodiments, the method can include: when the amplitude of the audio signal exceeds the diaphragm displacement data, suppressing the amplitude of the audio signal.

[0076] It should be noted that if the air permeability of the terminal device is better, the air pressure in the rear cavity of the speaker is lower, and the diaphragm displacement data is relatively large. If the air permeability of the terminal device is worse, the air pressure in the rear cavity of the speaker is higher, and the diaphragm displacement data is relatively small.

[0077] That is to say, for the displacement model, there is an inversely proportional relationship between the diaphragm displacement and the air pressure data. The higher the air pressure in the rear cavity of the speaker, the smaller the diaphragm displacement data under the speaker is usually. The reason is that the increase in air pressure in the rear cavity will cause the diaphragm of the speaker to deviate from the equilibrium position when there is no audio playback. At this time, considering that the height of the front cavity is limited, if it is in the default state (that is, the state without audio playback), the diaphragm has left the equilibrium position and deviated upward. Then, when playing music according to the vibration height in the relevant technology, the diaphragm may hit the front cover, thereby generating noise.

[0078] In this way, when the air pressure in the rear cavity of the speaker increases, in order to prevent the diaphragm from hitting the front cover, the diaphragm displacement data obtained at this time is relatively small, and the audio signal is modulated according to the diaphragm displacement data, specifically, the amplitude of the large signal can be suppressed. Here, if the amplitude of the audio signal exceeds the diaphragm displacement data, then the diaphragm may hit the front cover when it vibrates, and the audio signal needs to be amplitude suppressed at this time; if the amplitude of the audio signal does not exceed the diaphragm displacement data, then the diaphragm will not hit the front cover when it vibrates, and the audio signal does not need to be amplitude suppressed at this time.

[0079] It can be understood that in the embodiment of the present application, if the air pressure in the rear cavity of the speaker is higher, it indicates that the air permeability of the terminal device does not meet the requirements, and the obtained diaphragm displacement data must be small enough, and the audio signal is modulated accordingly according to the diaphragm displacement data output by the displacement model; if the air pressure in the rear cavity of the speaker is lower, it indicates that the air permeability of the terminal device meets the requirements, and the obtained diaphragm displacement data is relatively large, and there is no need to suppress the amplitude of the audio signal at this time.

[0080] It should also be noted that the above-mentioned signal processing method can be applied to the internal testing of terminal equipment before it leaves the factory, or can also be applied to the maintenance testing and other processes after it leaves the factory, without any limitation here.

[0081] The embodiment of the present application provides a signal processing method, specifically an application solution based on air pressure detection to avoid IP68 music noise. When the speaker plays an audio signal, determine the current air pressure value of the back cavity of the speaker; determine the diaphragm displacement data of the speaker according to the current air pressure value; modulate the audio signal according to the diaphragm displacement data. In this way, considering that the fundamental cause of the noise is the increase in the air pressure in the back cavity of the speaker, after determining the current air pressure value of the back cavity of the speaker, the diaphragm displacement data of the speaker can be determined according to the current air pressure value, so as to modulate the audio signal; in this way, the audio signal playback can be more accurately controlled through air pressure detection technology, which not only reduces the noise generated by the audio signal playback, but also ensures the sound effect of the whole machine, thereby improving the user experience of using the terminal device.

[0082] In another embodiment of the present application, based on the signal processing method described in the above embodiment, Figure 3 A detailed flow chart of a signal processing method provided in an embodiment of the present application. Figure 3 As shown, the detailed process may include:

[0083] S301, obtaining an electrical feedback signal when a speaker plays an audio signal.

[0084] S302: Determine the current resonance frequency of the rear cavity of the speaker according to the electrical feedback signal.

[0085] S303: Determine a current air pressure value of a rear cavity of the speaker according to the current resonant frequency and the air pressure model.

[0086] S304: Determine the diaphragm displacement data of the speaker according to the current air pressure value and the displacement model.

[0087] S305: modulate the audio signal according to the diaphragm displacement data.

[0088] It should be noted that the audio signal here can be a sound signal, such as music, voice, ambient sound and other sound information, and there is no limitation here.

[0089] It should be noted that in the embodiment of the present application, the electrical feedback signal may include feedback current and feedback voltage. According to the IV feedback signal when the speaker is working, the current resonant frequency can be determined; then the current air pressure value is estimated, and then the diaphragm displacement data of the speaker is determined, and the audio signal output by the speaker is modulated accordingly.

[0090] It should also be noted that in the embodiment of the present application, the root cause of the noise is essentially the increase in air pressure in the back cavity of the speaker. By using intelligent power amplifier technology, the current resonant frequency F0 of the back cavity of the speaker is detected to determine the current air pressure in the back cavity of the speaker, and then the amplitude of the speaker is suppressed to a certain extent. Here, high temperature and unsmooth air release are both reasons that can cause high air pressure. Considering that the air pressure detection scheme can specifically detect the specific air pressure of a single machine, it is not fixed like the temperature detection scheme, which is a one-size-fits-all approach, so it can avoid sacrificing the sound effects of some mobile phones without noise, and has high flexibility.

[0091] Understandably, current smart amplifiers have evolved to support air pressure detection. According to the IV feedback signal when the speaker is working, the information of the resonant frequency F0 is obtained, and then the current air pressure is estimated. The displacement model can be adjusted in real time according to the air pressure model. Here, the air pressure data of the rear cavity of the speaker, the correlation curve of the resonant frequency F0 and the diaphragm displacement need to be modeled in advance. The specific process is as follows:

[0092] ① Measure the F0 data of different air pressures on the BOX, establish the air pressure model P = f1 (F0), then test the diaphragm displacement of the speaker under different air pressures, and establish the displacement model X = f2 (P);

[0093] ② When the speaker is working, obtain real-time F0 information according to the IV feedback signal, substitute it into the air pressure model P=f1(F0), and estimate the current air pressure value P of the rear cavity of the speaker; then substitute P into the displacement model X=f2(P) to obtain real-time displacement protection parameters (i.e. diaphragm displacement data). According to the obtained diaphragm displacement data, the output audio signal is modulated accordingly. It should be noted that detailed modeling of the intelligent power amplifier is involved here. For the modulation of the audio signal, it can be based on the tuning strategy, mainly suppressing large signals, so that no noise is generated when the audio signal is played. For example, if the amplitude of the audio signal exceeds the diaphragm displacement data output by the displacement model X=f2(P), then signal suppression is required; if the amplitude of the audio signal does not exceed the diaphragm displacement data output by the displacement model X=f2(P), then signal suppression is not required.

[0094] For example, Figure 4 This is a schematic diagram of the relationship between air pressure, resonant frequency and diaphragm displacement provided in an embodiment of the present application. Figure 4 As shown in the figure, for different air pressure values, the resonant frequency F0 corresponds to different frequencies. The horizontal axis represents the frequency (f, in Hz), and the vertical axis represents the diaphragm displacement (X, in mm). When the air pressure increases, the resonant frequency F0 shifts to the right, that is, Figure 4 The curve in the figure shifts to the right; when the air pressure decreases, the resonant frequency F0 shifts to the left, that is, Figure 4 The curve in is shifted to the left.

[0095] In another embodiment of the present application, Figure 5 This is a schematic diagram of the structure of a speaker provided in an embodiment of the present application. Figure 5 As shown, the speaker 50 may include a diaphragm 501, a magnet 502, a rear cavity 503, a front cavity 504 and a front cover 505. Among them, the magnet 502 here is in the shape of a bowl, so it can also be called a "magnetic bowl". If the air pressure in the rear cavity 503 increases, the diaphragm will bulge upward; thus, when the diaphragm 501 vibrates, if the diaphragm displacement is too large, the diaphragm 501 may hit the front cover 505, thereby generating noise. An air vent 506 is provided on the speaker 50 to enable the rear cavity 503 of the speaker 50 to be connected to the inner cavity of the terminal device through the air vent 506. Here, the air vent 506 can be located at the bottom of the rear cavity 503, and the specific position is not specifically limited. Figure 5 An example of the position of the vent hole is only shown schematically.

[0096] In some embodiments, Figure 6 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application Figure 1 .like Figure 6 As shown, the terminal device 600 includes not only the speaker 50, but also an intelligent power amplifier 601 and a system on chip 602. The system on chip 602 is electrically connected to the intelligent power amplifier 601, and the intelligent power amplifier 601 is also electrically connected to the speaker 50. It should be noted that the front cover 505 is not the screen of the terminal device 600, that is, the front cavity 504 needs to be surrounded by plastic to form a sealed sound outlet duct. From the screen direction, the upper speaker is located to the left, and the lower speaker is located to the right.

[0097] It should be noted that the system on chip 602, or system-level chip (System on Chip, SOC), is a dedicated integrated circuit that integrates a complete system and has all the contents of embedded software. It starts from a dedicated target, undergoes software / hardware division, and completes the entire design process. SOC usually includes a microprocessor, memory, various interface control modules, analog front-end modules and digital signal processing modules, etc. These modules are integrated on a single chip to achieve specific system functions. In other words, SOC technology is a highly integrated, firmware-based system integration technology that is used to integrate the entire application electronic system into a single chip.

[0098] It should also be noted that the Inter-IC Sound (I2S) is a bus standard developed for audio data transmission between digital audio devices. It uses a design that transmits clock and data signals through independent wires. By separating the data and clock signals, distortion caused by time difference is avoided. In the I2S protocol, three signal lines are mainly defined: clock signal SCK (also known as BCLK / Bit Clock or SCL / Serial Clock), data signal SD (also known as SDATA, SDIN, SDOUT, DACDAT, ADCDAT, etc.) and left and right channel selection signal WS (also known as LRCLK / LeftRight Clock or frame clock). SCK is the synchronization signal within the module, SD is serial data, and WS indicates the channel selected by the data transmitter. The I2S protocol has been widely used in digital audio systems, such as audio data transmission between devices such as codecs, digital input / output interfaces, and digital filters. Through the I2S interface, lossless transmission of audio data can be achieved, thereby ensuring sound quality.

[0099] like Figure 6As shown, the system on chip 602 transmits an I2S signal, i.e., audio data, to the smart power amplifier 601; then the smart power amplifier 601 can provide a sound signal to the speaker 50 so that the diaphragm 501 of the speaker 50 vibrates to produce sound. The vibration of the diaphragm 501 can generate an electrical feedback signal, such as a feedback voltage and a feedback current. The speaker 50 can transmit the feedback voltage and feedback current to the smart power amplifier 601 through the IV feedback line, so that the smart power amplifier 601 can detect the feedback voltage and feedback current of the speaker 50. Then, the smart power amplifier 601 can determine the current air pressure value in the back cavity 503 of the speaker 50 based on the feedback voltage and feedback current, and then determine the diaphragm displacement data based on the current air pressure value and the displacement model, thereby realizing the corresponding modulation of the output audio signal.

[0100] It should also be noted that in the embodiment of the present application, the air vent provided on the terminal device 600 may refer to the air vent of the entire device, which is generally located at the top or bottom of the middle frame and is used to connect to the rear cavity of the speaker 50, and can balance the rear cavity temperature with the external ambient temperature.

[0101] In summary, the specific implementation of the aforementioned embodiment is elaborated in detail through the above-mentioned embodiment. It can be seen that through the technical scheme of the aforementioned embodiment, the air pressure detection technology based on the intelligent power amplifier can more accurately control the music playback, thereby reducing the noise generated by the music playback, ensuring the sound effect of the whole machine, and eliminating the risk of noise generated by the IP68 whole machine, significantly improving the user experience.

[0102] In another embodiment of the present application, based on the same inventive concept as the above-mentioned embodiment, Figure 7 The following is a schematic diagram of the structure of a signal processing device provided in an embodiment of the present application. Figure 7 As shown, the signal processing device 700 may include a determination unit 701 and a modulation unit 702, wherein:

[0103] The determination unit 701 is configured to determine the current air pressure value of the back cavity of the speaker when the speaker plays the audio signal; and determine the diaphragm displacement data of the speaker according to the current air pressure value;

[0104] The modulation unit 702 is configured to modulate the audio signal according to the diaphragm displacement data.

[0105] In some embodiments, the determination unit 701 is further configured to determine a current resonance frequency of the rear cavity of the speaker; and determine a current air pressure value according to the current resonance frequency.

[0106] In some embodiments, the determination unit 701 is further configured to determine the current air pressure value according to the current resonant frequency and a pre-established air pressure model; wherein the air pressure model is used to characterize the mapping relationship between the resonant frequency and the air pressure data.

[0107] In some embodiments, the determination unit 701 is further configured to obtain an electrical feedback signal when the speaker plays an audio signal; and determine a current resonance frequency according to the electrical feedback signal.

[0108] In some embodiments, the electrical feedback signal includes a feedback current and a feedback voltage; the determination unit 701 is further configured to determine a mapping relationship between an impedance parameter and a frequency based on the feedback current and the feedback voltage; and to determine a current resonant frequency based on the mapping relationship between the impedance parameter and the frequency.

[0109] In some embodiments, an air pressure sensor is built into the rear cavity of the speaker; the determination unit 701 is further configured to detect the air pressure of the rear cavity of the speaker through the air pressure sensor to obtain a current air pressure value.

[0110] In some embodiments, the determination unit 701 is further configured to determine the diaphragm displacement data according to the current resonant frequency and a pre-established displacement model; wherein the displacement model is used to characterize the mapping relationship between the resonant frequency and the diaphragm displacement.

[0111] In some embodiments, the modulation unit 702 is further configured to suppress the amplitude of the audio signal when the amplitude of the audio signal exceeds the diaphragm displacement data.

[0112] In the embodiments of the present application, a "unit" may be a part of a circuit, a part of a processor, a part of a program or software, etc. It may also be a module or a non-modular one. Moreover, the components in the present embodiment may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional module.

[0113] In addition, those skilled in the art should understand that the relevant description of the above-mentioned signal processing device 700 in the embodiment of the present application can be understood by referring to the relevant description of the signal processing method in the embodiment of the present application.

[0114] The embodiment of the present application provides a signal processing device, wherein the determination unit determines the current air pressure value of the back cavity of the speaker when the speaker plays an audio signal; and determines the diaphragm displacement data of the speaker according to the current air pressure value; and the modulation unit modulates the audio signal according to the diaphragm displacement data. In this way, the air pressure detection technology can more accurately control the audio signal playback, which not only reduces the noise generated by the audio signal playback, but also ensures the sound effect of the whole machine, thereby improving the user experience of using the terminal device.

[0115] In yet another embodiment of the present application, Figure 8A schematic diagram of the structure of a terminal device provided in an embodiment of the present application Figure 2 .like Figure 8 As shown, the terminal device 600 may include a communication interface 801, a memory 802, and a processor 803; each component is coupled together via a bus system 804. It is understood that the bus system 804 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 804 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 8 Various buses are labeled as bus system 804. Among them, the communication interface 801 is used for receiving and sending signals in the process of sending and receiving information between other external network elements;

[0116] A memory 802, used to store a computer program that can be run on the processor 803;

[0117] Processor 803 is used to execute the following when running the computer program: when the speaker plays an audio signal, determine the current air pressure value of the back cavity of the speaker; determine the diaphragm displacement data of the speaker according to the current air pressure value; and modulate the audio signal according to the diaphragm displacement data.

[0118] It is understood that the memory 802 of the embodiment of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DRRAM). The memory 802 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0119] The processor 803 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 803. The above processor 803 may be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 802, and the processor 803 reads the information in the memory 802 and completes the steps of the above method in combination with its hardware.

[0120] It can also be understood that the embodiments described herein can be implemented with hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP Device, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof. For software implementation, the technology described herein can be implemented by a module (such as a process, function, etc.) that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in a processor or outside a processor.

[0121] In some embodiments, the processor 803 is further configured to execute the signal processing method described in any one of the aforementioned embodiments when running the computer program.

[0122] In another possible implementation, the terminal device 600 may include a speaker and the signal processing device 700 described in any one of the aforementioned embodiments.

[0123] The embodiment of the present application provides a terminal device, which can more accurately control the playback of audio signals through the air pressure detection technology of the intelligent power amplifier, which not only reduces the noise generated by the audio signal playback, but also ensures the sound effect of the whole machine, thereby improving the user experience of using the terminal device.

[0124] In yet another embodiment of the present application, the embodiment of the present application provides a computer-readable storage medium for storing a computer program.

[0125] In some embodiments, the computer-readable storage medium can be applied to the terminal device in the embodiments of the present application, and when the computer program is executed by at least one processor, it implements the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0126] An embodiment of the present application also provides a computer program product, including computer program instructions.

[0127] In some embodiments, the computer program product can be applied to the terminal device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0128] The embodiment of the present application also provides a computer program.

[0129] In some embodiments, the computer program can be applied to the terminal device in the embodiments of the present application. When the computer program runs on the computer, the computer executes the corresponding processes implemented by the terminal device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0130] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0132] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] It should be noted that each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit 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 the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (RandomAccess Memory, RAM), disk or optical disk and other media that can store program code.

[0135] It should also be noted that in this application, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0136] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0137] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0138] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0139] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0140] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A signal processing method, characterized in that: The method comprises: When the speaker plays an audio signal, determining a current air pressure value of a rear cavity of the speaker; Determining the diaphragm displacement data of the speaker according to the current air pressure value; The audio signal is modulated according to the diaphragm displacement data.

2. The method according to claim 1, characterized in that The determining of the current air pressure value of the rear cavity of the speaker comprises: determining a current resonant frequency of a rear cavity of the speaker; The current air pressure value is determined according to the current resonant frequency.

3. The method according to claim 2, characterized in that The determining the current air pressure value according to the current resonant frequency includes: The current air pressure value is determined according to the current resonant frequency and a pre-established air pressure model; wherein the air pressure model is used to characterize a mapping relationship between the resonant frequency and the air pressure data.

4. The method according to claim 2, characterized in that: The determining of the current resonant frequency of the rear cavity of the loudspeaker comprises: Acquire an electrical feedback signal when the speaker plays an audio signal; The current resonant frequency is determined according to the electrical feedback signal.

5. The method according to claim 4, characterized in that The electrical feedback signal includes a feedback current and a feedback voltage; and determining the current resonant frequency according to the electrical feedback signal includes: Determining a mapping relationship between an impedance parameter and a frequency according to the feedback current and the feedback voltage; The current resonant frequency is determined according to the mapping relationship between the impedance parameter and the frequency.

6. The method according to claim 1, characterized in that The rear cavity of the speaker is provided with an air pressure sensor; and determining the current air pressure value of the rear cavity of the speaker comprises: The air pressure of the rear cavity of the speaker is detected by the air pressure sensor to obtain the current air pressure value.

7. The method according to any one of claims 1 to 6, characterized in that The step of determining the diaphragm displacement data of the speaker according to the current air pressure value includes: The diaphragm displacement data is determined according to the current resonant frequency and a pre-established displacement model; wherein the displacement model is used to characterize a mapping relationship between the resonant frequency and the diaphragm displacement.

8. The method according to any one of claims 1 to 6, characterized in that The step of modulating the audio signal according to the diaphragm displacement data comprises: When the amplitude of the audio signal exceeds the diaphragm displacement data, the amplitude of the audio signal is suppressed.

9. A signal processing device, characterized in that: The signal processing device comprises a determination unit and a modulation unit, wherein: The determination unit is configured to determine a current air pressure value of a rear cavity of the speaker when the speaker plays an audio signal; and determine the diaphragm displacement data of the speaker according to the current air pressure value; The modulation unit is configured to modulate the audio signal according to the diaphragm displacement data.

10. A terminal device, characterized in that: The terminal device includes a memory and a processor, wherein: The memory is used to store a computer program that can be run on the processor; The processor is configured to execute the method according to any one of claims 1 to 8 when running the computer program.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

12. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the method according to any one of claims 1 to 8 is implemented.