CN110662153B - Loudspeaker adjusting method and device, storage medium and electronic equipment - Google Patents

Loudspeaker adjusting method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN110662153B
CN110662153B CN201911055895.8A CN201911055895A CN110662153B CN 110662153 B CN110662153 B CN 110662153B CN 201911055895 A CN201911055895 A CN 201911055895A CN 110662153 B CN110662153 B CN 110662153B
Authority
CN
China
Prior art keywords
air pressure
value
pressure value
maximum amplitude
loudspeaker
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911055895.8A
Other languages
Chinese (zh)
Other versions
CN110662153A (en
Inventor
贾玉虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911055895.8A priority Critical patent/CN110662153B/en
Publication of CN110662153A publication Critical patent/CN110662153A/en
Application granted granted Critical
Publication of CN110662153B publication Critical patent/CN110662153B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure provides a loudspeaker adjusting method, a loudspeaker adjusting device, a storage medium and electronic equipment, and relates to the technical field of electronic equipment. The method is applied to the electronic equipment with the loudspeaker, and the electronic equipment is also provided with an air pressure sensor; the method comprises the following steps: acquiring an ambient air pressure measured by the air pressure sensor; adjusting a maximum amplitude of the speaker based on the ambient air pressure. The loudspeaker can be prevented from working at the amplitude exceeding the specification in a high-altitude and low-air-pressure area, and the vibrating diaphragm and the air tightness of the loudspeaker are protected from being damaged.

Description

Loudspeaker adjusting method and device, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a speaker adjusting method, a speaker adjusting apparatus, a computer-readable storage medium, and an electronic device.
Background
Barometric pressure is the atmospheric pressure acting on a unit area, i.e., the weight of a vertical column of air extending upward to the upper air boundary on a unit area, related to environmental factors such as altitude, temperature, etc. A loudspeaker (or horn) is a transducer device that converts electrical signals into acoustic signals. A speaker is usually built in an electronic device such as a mobile phone, so that a user can listen to the sound emitted by the device through the speaker to realize functions of answering a call, playing music and the like.
Fig. 1 shows the basic structure of a loudspeaker, comprising a front chamber 110, a back chamber 120, a diaphragm 130 and a front chamber tube 140. When the speaker is operated, the vibration of the diaphragm 130 is controlled by an electric signal, thereby generating sound. The front chamber 110 and the rear chamber 120 form an airtight structure inside, and have a certain air pressure difference with the external environment. When the external environment changes, the air pressure difference is increased or decreased, which affects the diaphragm 130. Particularly, when the air pressure difference is high, for example, in a high altitude area, the air pressure of the external environment is low, which may easily cause the damage of the speaker diaphragm 130 or the air tightness, and may cause a sound break or pop.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a speaker adjusting method, a speaker adjusting apparatus, a computer-readable storage medium, and an electronic device, so as to at least improve the problem in the prior art that a diaphragm or air tightness of a speaker is easily damaged.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the present disclosure, a speaker adjusting method is provided, which is applied to an electronic device having a speaker, the electronic device further having an air pressure sensor; the method comprises the following steps: acquiring an ambient air pressure measured by the air pressure sensor; adjusting a maximum amplitude of the speaker based on the ambient air pressure.
According to a second aspect of the present disclosure, there is provided a speaker adjusting apparatus, which is disposed in an electronic device including a speaker, the electronic device further including an air pressure sensor; the device comprises: an acquisition module for acquiring the ambient air pressure measured by the air pressure sensor; and the adjusting module is used for adjusting the maximum amplitude of the loudspeaker according to the ambient air pressure.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described speaker adjustment method.
According to a fourth aspect of the present disclosure, there is provided an electronic device comprising: a processor; a memory for storing executable instructions of the processor; a speaker; and an air pressure sensor; wherein the processor is configured to perform the above-described speaker adjustment method via execution of the executable instructions.
The technical scheme of the disclosure has the following beneficial effects:
according to the loudspeaker adjusting method, the loudspeaker adjusting device, the computer readable storage medium and the electronic equipment, the ambient air pressure of the equipment is measured through the air pressure sensor arranged in the electronic equipment, the maximum amplitude of the loudspeaker is adjusted according to the ambient air pressure, when the ambient air pressure changes, particularly when the difference value of the ambient air pressure and the air pressure in the loudspeaker is large, the maximum amplitude of the loudspeaker can be controlled within a safe numerical range, therefore, the loudspeaker can be prevented from working at the amplitude of over-specification in a high altitude and low air pressure area, the vibrating diaphragm and the air tightness of the loudspeaker are protected from being damaged, bad phenomena such as sound breaking and popping are reduced, and user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is apparent that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings can be obtained from those drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic structural view of a loudspeaker;
FIG. 2 shows a schematic of loudspeaker amplitude for different altitude regions;
fig. 3 shows a flow chart of a method of speaker tuning in the present exemplary embodiment;
FIG. 4 shows a graph of altitude and barometric pressure in the present exemplary embodiment;
FIG. 5 is a schematic diagram illustrating parameter calibration in the present exemplary embodiment
Fig. 6 is a block diagram showing a structure of a speaker adjusting apparatus in the present exemplary embodiment;
FIG. 7 illustrates a computer-readable storage medium for implementing the above-described method in the present exemplary embodiment;
fig. 8 shows an electronic device for implementing the above method in the present exemplary embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The inventors have found that the amplitude of the loudspeaker is different in environments with different altitudes (different air pressures). As shown in fig. 2, a normal device and an abnormal device are selected to test the amplitude of the loudspeaker in different altitudes, and the amplitude of the loudspeaker of the abnormal device is higher than that of the normal device. Playing music at the maximum volume under normal atmospheric pressure, wherein the amplitude of the loudspeaker of the normal equipment is 0.25mm, which is in a safety range, and the amplitude of the loudspeaker of the abnormal equipment is close to the critical 0.3 mm; in an area with an altitude of 2km, normal equipment plays music with the maximum volume, the amplitude of a loudspeaker is 0.3mm, the amplitude is close to a critical value, and the amplitude of the loudspeaker of abnormal equipment reaches 0.35mm, which exceeds the standard which can be born by the loudspeaker; the same test is carried out in an area with the altitude of 4km, the loudspeaker amplitude of the normal equipment reaches 0.35mm, and the loudspeaker amplitude of the abnormal equipment reaches 0.4mm, which are out of specification. It can be seen that in the environment with higher altitude and lower air pressure, the speaker needs to operate with larger amplitude to maintain a given volume, so that the damage of the diaphragm or the air tightness is easily generated, which seriously affects the normal use of the user.
In view of the foregoing, exemplary embodiments of the present disclosure provide a speaker adjusting method, which may be applied to an electronic device with a speaker, such as a smartphone, a tablet computer, and the like. The electronic device further includes an atmospheric pressure sensor that detects atmospheric pressure and is generally capable of measuring ambient atmospheric pressure outside the device. Currently, an air pressure sensor is generally configured on a smart phone, but the function of the air pressure sensor mainly includes assisting a GPS (Global Positioning System) module to perform accurate Positioning.
Fig. 3 shows a flow of the present exemplary embodiment, which may include the following steps S310 and S320:
in step S310, the ambient air pressure measured by the air pressure sensor is acquired.
The ambient air pressure measured by the air pressure sensor refers to the air pressure of the external environment where the device is located, and the ambient air pressure is affected by the altitude, the temperature and the like. The air pressure sensor can measure the ambient air pressure in real time and transmit data to the processor for subsequent processing.
In an alternative embodiment, after step S310, in order to improve the accuracy of the ambient air pressure, a compensation calculation may be performed on the ambient air pressure by using a compensation parameter. The compensation parameters may be obtained from Non-Volatile Memory (NVM) of the device. Because the air pressure sensor samples an electric signal (usually a voltage signal), and an ADC (Analog to Digital Converter) converts the output air pressure value, there are interferences such as noise during sampling and conversion, and the compensation calculation using the compensation parameter can reduce or even eliminate the influence.
Step S320, adjusting the maximum amplitude of the speaker according to the ambient air pressure.
When the ambient air pressure is low, the air pressure difference between the inside and the outside of the loudspeaker is large, the amplitude is increased, and the loudspeaker is easy to damage. Therefore, the maximum amplitude of the loudspeaker is adjusted according to the ambient air pressure so as to protect the loudspeaker from being damaged under various ambient air pressures. As to how the maximum amplitude is adjusted, several specific embodiments are provided below:
(1) setting a normal numerical range related to the ambient air pressure in advance, for example, 0.9 × standard atmospheric pressure to 1.1 × standard atmospheric pressure, and when the ambient air pressure is in the normal numerical range, not controlling the amplitude of the speaker; when the ambient air pressure is outside the normal range of values, the maximum amplitude may be set at a safe amplitude value, for example, 0.3 mm.
(2) The calculation relationship between the ambient air pressure and the maximum amplitude is set in advance, and is usually positive correlation, for example, the two may be linearly positive correlation, that is, the lower the ambient air pressure is, the smaller the maximum amplitude is, the corresponding maximum amplitude may be calculated according to the ambient air pressure.
(3) It is also possible to obtain the air pressure inside the loudspeaker, i.e. the air pressure value inside the sealed chamber, which can be used as a fixed parameter, usually determined at the time of production of the loudspeaker, and then calculate the difference between the ambient air pressure and the internal air pressure, and adjust the maximum amplitude of the loudspeaker according to the magnitude of the difference, generally the larger the difference, the smaller the maximum amplitude.
(4) A plurality of gears with the maximum amplitude can be set, different gears correspond to different air pressure value intervals, the corresponding gear is determined according to the numerical value interval of the ambient air pressure, and then the maximum amplitude of the loudspeaker is adjusted to the gear.
If the amplitude of the speaker cannot be directly controlled, the maximum amplitude of the speaker can be indirectly adjusted by adjusting the maximum power (or maximum volume) of the speaker. For example: the lower the ambient air pressure is, the larger the pressure difference between the inside and the outside of the loudspeaker is, and the lower the maximum power of the loudspeaker is adjusted; otherwise, the maximum power is adjusted to a higher value.
Adjusting the maximum amplitude of the loudspeaker may result in a reduction of the power, based on which, in an alternative embodiment, the following process may also be performed after step S320:
and setting a power amplification parameter according to the adjusted maximum amplitude to compensate for the power change caused by the adjustment of the maximum amplitude.
The electronic device may have a Power Amplifier (PA) built therein, for example, some smart phones are equipped with an intelligent Power Amplifier chip, and may compensate for Power and volume of the speaker in terms of software. In high altitude, low pressure environments, adjusting the maximum amplitude of the speaker may result in a reduction in power, manifested as a loss of volume, etc. Therefore, after the maximum amplitude is adjusted, the power amplification parameter can be correspondingly set so as to compensate the change of the power and ensure the quality of the audio output.
In an alternative embodiment, the electronic device may also be provided with a temperature sensor for measuring the ambient temperature around the device. Based on this, in step S310, the ambient air pressure measured by the air pressure sensor may be acquired as an initial air pressure value, while the ambient temperature measured by the temperature sensor is acquired as an initial temperature value. Calibration of the air pressure is then carried out by:
processing the initial air pressure value, the initial temperature value and the compensation parameter by using a compensation formula to obtain a temperature compensation coefficient and a pressure compensation coefficient;
and determining the air pressure value of the system according to the temperature compensation coefficient, the pressure compensation coefficient and the welding drift parameter.
The compensation formula may be obtained from a data manual of the air pressure sensor, or a calibration module associated with the air pressure sensor may perform a calculation process of the compensation formula. The initial temperature value is the influence on the air pressure from the perspective of the ambient temperature, and the compensation parameter is the influence of errors and noise of the sensor element. The initial air pressure value, the initial temperature value and the compensation parameter are input into a compensation formula, a temperature compensation coefficient and a pressure compensation coefficient can be output, and then further calibration calculation is carried out by combining with the welding drift parameter to obtain a system air pressure value, wherein the system air pressure value is more accurate environmental air pressure. The weld drift parameter refers to the difference in accuracy between the sensor element and the equipment system based on weld stress, etc., and is a system-level error, which may be obtained from the system or determined empirically. In addition, the number of the temperature compensation coefficients and the pressure compensation coefficients is not limited in the disclosure, and for example, a BMP380 type air pressure sensor is taken as an example, 3 temperature compensation coefficients and 11 pressure compensation coefficients (0x 31-0 x45) are stored in the NVM. Because the system air pressure value has higher precision, the system air pressure value can replace the ambient air pressure to adjust the maximum amplitude of the loudspeaker, thereby improving the accuracy of amplitude adjustment.
In the above-described adjustment method, the maximum amplitude of the speaker is adjusted by measuring and calibrating the air pressure of the environment in which the electronic device is located. Besides, the altitude of the current position of the electronic device can be calculated, and the maximum amplitude of the loudspeaker can be adjusted according to the altitude. Altitude can be considered as a measure of the ambient air pressure, the principle of which is consistent with the principle of amplitude regulation by air pressure. In practical application, the air pressure value is sensitive and influenced by various environmental factors, and the fluctuation is large, so that the amplitude is adjusted through the altitude, and the practicability is higher.
How to calculate the current altitude value of the location of the device is explained below by two specific embodiments:
first, after determining the system barometric pressure value, the current altitude value may be calculated by performing the following steps:
obtaining a sea level reference air pressure value and an environment reference air pressure value;
and correcting the system air pressure value according to the environment reference air pressure value, and calculating the current altitude value by taking the sea level reference air pressure value as a reference.
The sea level reference air pressure value refers to an air pressure value at an altitude of 0 point under the longitude and latitude of the current position of the equipment, and the environment reference air pressure value refers to local air pressure obtained by other monitoring means except the equipment, for example, the sea level reference air pressure value and the environment reference air pressure value can be obtained from a weather service provider. The sea level reference air pressure value and the environment reference air pressure value in different areas are different. The system air pressure value reflects the air pressure of the local position where the equipment is located more, and the environment reference air pressure value reflects the whole air pressure of the area more, so that the system air pressure value and the environment reference air pressure value can be combined, the environment reference air pressure value is used for correcting the system air pressure value, for example, the system air pressure value can be compensated according to the difference value of the system air pressure value and the environment reference air pressure value, or the system air pressure value and the environment reference air pressure value are weighted and averaged equally, a new system air pressure value. Then, taking the sea level reference air pressure value as a reference, and utilizing the system air pressure value to calculate the current altitude value, wherein the calculation formula is as follows:
Figure BDA0002256541570000071
where H is the current altitude value, PSIs the system air pressure value, P0Is the sea level reference air pressure value. Equation (1) represents the relationship between the current altitude value and the system barometric pressure value, particularly when P0In the standard atmospheric pressure of 1013.25hPa, a curve showing the relationship between the current Altitude value and the system air pressure value may be referred to in fig. 4, where the abscissa in fig. 4 is the system air pressure value and the ordinate is the current Altitude value, and the curve shows the Altitude value (Altitude in standard atmospheric pressure) with respect to the standard atmospheric pressure. It can be seen that every 1hPa reduction in barometric pressure corresponds to an elevation of 8.43 m.
In a second mode, after the system air pressure value is determined, the current altitude value can be calculated by executing the following steps:
acquiring a sea level reference air pressure value and an altitude reference value;
and calculating the current altitude value by using the system air pressure value based on the sea level reference air pressure value, and correcting the current altitude value according to the altitude reference value.
The altitude reference value may be a local altitude value provided by a GIS (Geographic Information System) service provider. The calculation process of the second mode is similar to that of the first mode, only the order is changed, the altitude is calculated firstly, the altitude can be calculated by using the formula (1), and then the correction is carried out according to the altitude reference value. The current altitude value obtained by calculation is based on a local system air pressure value, so that the current altitude value reflects the altitude of a local position, the altitude reference value reflects a regional integral altitude value, the current altitude value and the regional integral altitude value are combined, and a more stable current altitude value can be obtained by adopting modes of difference compensation, weighted average and the like.
Further, based on the current altitude value, when adjusting the maximum amplitude of the speaker, an interval where the current altitude value is located may be determined, and then a corresponding maximum amplitude gear may be set according to the interval. For example: in a normal low-altitude area, the original loudspeaker amplitude is kept, and the tone quality of music playing or phone answering with the maximum volume is ensured to be normal; in the middle and high altitude area, the maximum amplitude of the loudspeaker is limited to 80 percent of the original amplitude, so that the effect that a user can be close to the effect of the low altitude area under the condition of playing music with the maximum volume or answering a call is ensured; in a high altitude area, the maximum amplitude of the loudspeaker is limited to be 50% of the original amplitude, and meanwhile, software adaptation is carried out, and the current and the voltage are adjusted to ensure normal conversation and broadcasting functions.
As shown in fig. 5, the exemplary embodiment can calibrate the barometric pressure or altitude value through 3 different links, including Component Calibration (Component Calibration), End-of-line Calibration (Calibration from the system level), and Real-time Calibration (Calibration from the Real-time environment level). The process is as follows: firstly, measuring an initial air pressure value (Raw pressure) by an air pressure sensor, measuring an initial temperature value (Raw temperature) by a temperature sensor, acquiring a Compensation parameter (Compensation parameter) from an NVM (non volatile memory) of a sensor (sensor), and inputting a Compensation formula (API Compensation formula); the calibration is carried out on the basis of sampling errors and noise of the sensor element, and a temperature compensation coefficient (T compensation) and a pressure compensation coefficient (P compensation) are output by a compensation formula; in the tail calibration step, the influence of welding drift (welding drift) is taken into consideration by combining a temperature compensation coefficient and a pressure compensation coefficient with tail offset (End-of-line offset), and a System/device pressure value is obtained; in the Real-time calibration step, a Real-time Weather factor (Weather information) is considered, and then a current altitude value (Absolute altitude) is obtained by using a calculation relationship between air pressure and altitude through a sea level reference air pressure value (Real time sea level pressure), an environment reference air pressure value (Real time pressure) or an altitude reference value (altitude reference). Through the 3 links, calibration is carried out on different layers of surfaces, the current altitude value obtained finally has higher precision, so that the maximum amplitude is adjusted, and the accuracy and the effectiveness are higher.
It is supplementary to that, in the calibration process, real-time GPS data and real-time barometric data or altitude data provided by a weather service provider (or a GIS service provider) need to be acquired, so that the GPS module and the network communication module of the electronic device need to be kept working normally at the same time. In practical application, if the GPS or the network does not work normally, the local sea level reference air pressure value and the environmental reference air pressure value (or altitude reference value) obtained last time may be used for calculation, and corresponding prompt information is displayed: please turn on GPS and network calibration altitude data.
In summary, in the exemplary embodiment, the atmospheric pressure sensor built in the electronic device measures the ambient atmospheric pressure where the device is located, and the maximum amplitude of the speaker is adjusted according to the ambient atmospheric pressure, so that when the ambient atmospheric pressure changes, especially when the difference between the ambient atmospheric pressure and the atmospheric pressure inside the speaker is large, the maximum amplitude of the speaker can be controlled within a safe numerical range, thereby avoiding the speaker working at an amplitude exceeding the specification in a high altitude and low atmospheric pressure region, protecting the diaphragm and the air tightness of the speaker from being damaged, reducing undesirable phenomena such as sound break and pop, and improving user experience.
Exemplary embodiments of the present disclosure also provide a speaker adjusting apparatus that may be configured in an electronic device provided with a speaker, and the electronic device further provided with an air pressure sensor. As shown in fig. 6, the speaker adjusting apparatus 600 may include: an obtaining module 610 for obtaining ambient air pressure measured by an air pressure sensor; and an adjusting module 620, configured to adjust a maximum amplitude of the speaker according to the ambient air pressure.
In an alternative embodiment, the speaker processing apparatus 600 may further include: and the calibration module is used for performing compensation calculation on the environmental air pressure by using the compensation parameters.
In an alternative embodiment, the ambient air pressure measured by the air pressure sensor is an initial air pressure value; the electronic device is also provided with a temperature sensor for measuring the ambient temperature; the obtaining module 610 may be further configured to obtain an initial temperature value measured by the temperature sensor when obtaining the initial air pressure value; the calibration module 630 may be configured to process the initial air pressure value, the initial temperature value, and the compensation parameter by using a compensation formula to obtain a temperature compensation coefficient and a pressure compensation coefficient, and determine a system air pressure value according to the temperature compensation coefficient, the pressure compensation coefficient, and the welding drift parameter; the adjusting module 620 may be further configured to adjust the maximum amplitude of the speaker according to the system air pressure value.
In an optional implementation manner, the calibration module 630 may be further configured to correct the system air pressure value according to an environmental reference air pressure value, and calculate a current altitude value based on the sea level reference air pressure value; the adjusting module can be further used for adjusting the maximum amplitude of the loudspeaker according to the current altitude value.
In an alternative embodiment, the calibration module 630 may be further configured to calculate a current altitude value by using the system barometric pressure value and modify the current altitude value according to the altitude reference value, with the sea level reference barometric pressure value as a reference; the adjusting module can be further used for adjusting the maximum amplitude of the loudspeaker according to the current altitude value.
Further, the adjusting module 620 may be further configured to determine an interval in which the current altitude value is located, and set a corresponding maximum amplitude gear according to the interval.
In an alternative embodiment, the adjusting module 620 may be further configured to set a power amplification parameter according to the adjusted maximum amplitude to compensate for a power variation caused by the adjustment of the maximum amplitude.
The specific details of each module in the above apparatus have been described in detail in the method section, and details that are not disclosed may refer to the method section, and thus are not described again.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing an electronic device to perform the steps according to various exemplary embodiments of the disclosure described in the above-mentioned "exemplary methods" section of this specification, when the program product is run on the electronic device.
Referring to fig. 7, a program product 700 for implementing the above method according to an exemplary embodiment of the present disclosure is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The exemplary embodiment of the present disclosure also provides an electronic device capable of implementing the above method. An electronic device 800 according to such an exemplary embodiment of the present disclosure is described below with reference to fig. 8. The electronic device 800 shown in fig. 8 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 8, electronic device 800 may take the form of a general purpose computing device. The components of the electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one memory unit 820, a bus 830 connecting the various system components (including memory unit 820 and processing unit 810), a display unit 840, a speaker 870, and a pressure sensor 880.
The storage unit 820 stores program code that may be executed by the processing unit 810 to cause the processing unit 810 to perform steps according to various exemplary embodiments of the present disclosure described in the "exemplary methods" section above in this specification. For example, processing unit 810 may perform the method steps shown in fig. 3.
The storage unit 820 may include readable media in the form of volatile storage units, such as a random access storage unit (RAM)821 and/or a cache storage unit 822, and may further include a read only storage unit (ROM) 823.
Storage unit 820 may also include a program/utility 824 having a set (at least one) of program modules 825, such program modules 825 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 830 may be any of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 800 may also communicate with one or more external devices 900 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 800, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 800 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 850. Also, the electronic device 800 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 860. As shown, the network adapter 860 communicates with the other modules of the electronic device 800 via the bus 830. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the exemplary embodiments of the present disclosure.
Furthermore, the above-described figures are merely schematic illustrations of processes included in methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to exemplary embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the terms of the appended claims.

Claims (8)

1. A loudspeaker regulating method is applied to electronic equipment with a loudspeaker, and is characterized in that the electronic equipment is also provided with an air pressure sensor and a temperature sensor; the method comprises the following steps:
acquiring an initial air pressure value measured by the air pressure sensor and an initial temperature value measured by the temperature sensor;
processing the initial air pressure value, the initial temperature value and the compensation parameter by using a compensation formula to obtain a temperature compensation coefficient and a pressure compensation coefficient;
determining a system air pressure value according to the temperature compensation coefficient, the pressure compensation coefficient and the welding drift parameter;
and adjusting the maximum amplitude of the loudspeaker according to the system air pressure value.
2. The method of claim 1, wherein after determining the system air pressure value, the method further comprises:
obtaining a sea level reference air pressure value and an environment reference air pressure value;
correcting the system air pressure value according to the environment reference air pressure value, and calculating the current altitude value by taking the sea level reference air pressure value as a reference;
the adjusting the maximum amplitude of the loudspeaker according to the system air pressure value comprises:
adjusting a maximum amplitude of the speaker according to the current altitude value.
3. The method of claim 1, wherein after determining the system air pressure value, the method further comprises:
acquiring a sea level reference air pressure value and an altitude reference value;
calculating a current altitude value by using the system air pressure value based on the sea level reference air pressure value, and correcting the current altitude value according to the altitude reference value;
the adjusting the maximum amplitude of the loudspeaker according to the system air pressure value comprises:
adjusting a maximum amplitude of the speaker according to the current altitude value.
4. The method of claim 2 or 3, wherein said adjusting the maximum amplitude of said speaker in accordance with said current altitude value comprises:
and determining the interval of the current altitude value, and setting a corresponding maximum amplitude gear according to the interval.
5. The method of claim 1, wherein after adjusting the maximum amplitude of the speaker based on ambient air pressure, the method further comprises:
and setting a power amplification parameter according to the adjusted maximum amplitude so as to compensate the power change caused by the adjustment of the maximum amplitude.
6. A speaker adjusting apparatus is provided in an electronic device having a speaker, wherein the electronic device further has an air pressure sensor and a temperature sensor; the device comprises:
an acquisition module for acquiring an initial air pressure value measured by the air pressure sensor and an initial temperature value measured by the temperature sensor;
the calibration module is used for processing the initial air pressure value, the initial temperature value and the compensation parameter by using a compensation formula to obtain a temperature compensation coefficient and a pressure compensation coefficient, and determining a system air pressure value according to the temperature compensation coefficient, the pressure compensation coefficient and the welding drift parameter;
and the adjusting module is used for adjusting the maximum amplitude of the loudspeaker according to the system air pressure value.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 5.
8. An electronic device, comprising:
a processor;
a memory for storing executable instructions of the processor;
a speaker; and
an air pressure sensor;
a temperature sensor;
wherein the processor is configured to perform the method of any of claims 1 to 5 via execution of the executable instructions.
CN201911055895.8A 2019-10-31 2019-10-31 Loudspeaker adjusting method and device, storage medium and electronic equipment Active CN110662153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911055895.8A CN110662153B (en) 2019-10-31 2019-10-31 Loudspeaker adjusting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911055895.8A CN110662153B (en) 2019-10-31 2019-10-31 Loudspeaker adjusting method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110662153A CN110662153A (en) 2020-01-07
CN110662153B true CN110662153B (en) 2021-06-01

Family

ID=69042830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911055895.8A Active CN110662153B (en) 2019-10-31 2019-10-31 Loudspeaker adjusting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110662153B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113453119A (en) * 2020-03-24 2021-09-28 北京小米移动软件有限公司 Speaker control circuit, control method, device, storage medium, and electronic apparatus
CN112291685B (en) * 2020-10-29 2022-04-12 维沃移动通信有限公司 Method and device for balancing loudspeaker vibration, loudspeaker and storage medium
CN112616108B (en) * 2020-12-14 2023-12-22 Oppo广东移动通信有限公司 Audio output method, device, system, storage medium and electronic equipment
CN112637752B (en) * 2020-12-30 2022-08-16 武汉市聚芯微电子有限责任公司 Simple correlation monitoring method and system for resonance frequency and ambient air pressure of loudspeaker
CN113132850B (en) * 2021-04-28 2023-05-26 Oppo广东移动通信有限公司 Speaker parameter configuration method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674513A (en) * 2009-09-21 2010-03-17 青岛海信移动通信技术股份有限公司 Consumer electronic product
CN105258839A (en) * 2015-10-30 2016-01-20 南京信息工程大学 Array type air pressure measurement compensation device and method based on quantum particle swarm wavelet neural network
CN106225984A (en) * 2016-07-18 2016-12-14 无锡信大气象传感网科技有限公司 The control method of atmospheric pressure measurement device based on temperature-compensating
CN106647459A (en) * 2016-11-22 2017-05-10 歌尔科技有限公司 Air pressure detecting device and method and smart wearable device
CN107948822A (en) * 2017-12-23 2018-04-20 广州市尊浪电器有限公司 A kind of intelligent-induction sound equipment
CN108020374A (en) * 2017-11-30 2018-05-11 北京小米移动软件有限公司 Atmospheric pressure value determines method and device
CN108040316A (en) * 2017-11-24 2018-05-15 维沃移动通信有限公司 A kind of amplitude detection method and mobile terminal
CN109168108A (en) * 2018-10-24 2019-01-08 维沃移动通信有限公司 Electro-acoustic element amplitude method of adjustment, device and mobile terminal
CN109547894A (en) * 2018-10-24 2019-03-29 维沃移动通信有限公司 A kind of electro-acoustic element amplitude method of adjustment, device and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4993620A (en) * 1990-05-03 1991-02-19 Grumman Aerospace Corporation Solder-electroformed joint for particle beam drift tubes
US9015044B2 (en) * 2012-03-05 2015-04-21 Malaspina Labs (Barbados) Inc. Formant based speech reconstruction from noisy signals
WO2017205533A1 (en) * 2016-05-26 2017-11-30 Knowles Electronics, Llc Microphone device with integrated pressure sensor
CN209168870U (en) * 2018-11-30 2019-07-26 维沃移动通信有限公司 Passive device, integrated circuit and terminal
CN208971810U (en) * 2018-12-14 2019-06-11 歌尔科技有限公司 A kind of encapsulating structure of MEMS microphone

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101674513A (en) * 2009-09-21 2010-03-17 青岛海信移动通信技术股份有限公司 Consumer electronic product
CN105258839A (en) * 2015-10-30 2016-01-20 南京信息工程大学 Array type air pressure measurement compensation device and method based on quantum particle swarm wavelet neural network
CN106225984A (en) * 2016-07-18 2016-12-14 无锡信大气象传感网科技有限公司 The control method of atmospheric pressure measurement device based on temperature-compensating
CN106647459A (en) * 2016-11-22 2017-05-10 歌尔科技有限公司 Air pressure detecting device and method and smart wearable device
CN108040316A (en) * 2017-11-24 2018-05-15 维沃移动通信有限公司 A kind of amplitude detection method and mobile terminal
CN108020374A (en) * 2017-11-30 2018-05-11 北京小米移动软件有限公司 Atmospheric pressure value determines method and device
CN107948822A (en) * 2017-12-23 2018-04-20 广州市尊浪电器有限公司 A kind of intelligent-induction sound equipment
CN109168108A (en) * 2018-10-24 2019-01-08 维沃移动通信有限公司 Electro-acoustic element amplitude method of adjustment, device and mobile terminal
CN109547894A (en) * 2018-10-24 2019-03-29 维沃移动通信有限公司 A kind of electro-acoustic element amplitude method of adjustment, device and mobile terminal

Also Published As

Publication number Publication date
CN110662153A (en) 2020-01-07

Similar Documents

Publication Publication Date Title
CN110662153B (en) Loudspeaker adjusting method and device, storage medium and electronic equipment
US9967404B2 (en) Echo controller
US9495952B2 (en) Electronic devices for controlling noise
US7813923B2 (en) Calibration based beamforming, non-linear adaptive filtering, and multi-sensor headset
US9060217B2 (en) Audio driver system and method
US9924287B2 (en) Temperature sensing
JP2009055343A (en) Sound processor, phase difference correcting method and computer program
CN103220595A (en) Audio processing device and audio processing method
US11587576B2 (en) Background noise estimation using gap confidence
EP2456229A1 (en) Loudspeaker system and control method
CN102780797A (en) Mobile telephone and correction method of internal electroacoustic component thereof
US11476805B2 (en) Amplifier systems
US8385563B2 (en) Sound level control in responding to the estimated impedances indicating that the medium being an auditory canal and other than the auditory canal
CN112461437B (en) Air pressure detection circuit, method, equipment and storage medium
CN105025427B (en) Microphone test device and method for calibrating microphone
CN109655735B (en) Power amplifier chip evaluation board and power amplifier chip evaluation board system
CN103796135A (en) Dynamic speaker management with echo cancellation
JP2017175576A (en) Acoustic calibrator
Dumoulin et al. Calibration of smartphone-based devices for noise exposure monitoring: methodology, uncertainties of measurement and implementation
JP2001275198A (en) Sound volume controller
CN103974170B (en) Multisensor recording device and method
JP2013219444A (en) Audio processing device and image pickup device
KR101442797B1 (en) Hearing aid calibrator
US20200036356A1 (en) Audio distortion compensation
CN115914925A (en) Earphone noise reduction method and device, electronic equipment and readable storage medium

Legal Events

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