CN112616108B - Audio output method, device, system, storage medium and electronic equipment - Google Patents

Audio output method, device, system, storage medium and electronic equipment Download PDF

Info

Publication number
CN112616108B
CN112616108B CN202011476235.XA CN202011476235A CN112616108B CN 112616108 B CN112616108 B CN 112616108B CN 202011476235 A CN202011476235 A CN 202011476235A CN 112616108 B CN112616108 B CN 112616108B
Authority
CN
China
Prior art keywords
amplitude
loudspeaker
air pressure
speaker
pressure value
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
CN202011476235.XA
Other languages
Chinese (zh)
Other versions
CN112616108A (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 CN202011476235.XA priority Critical patent/CN112616108B/en
Publication of CN112616108A publication Critical patent/CN112616108A/en
Application granted granted Critical
Publication of CN112616108B publication Critical patent/CN112616108B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/22Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only 
    • H04R1/28Transducer mountings or enclosures modified by provision of mechanical or acoustic impedances, e.g. resonator, damping means
    • H04R1/2807Enclosures comprising vibrating or resonating arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's

Landscapes

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

Abstract

The disclosure provides an audio output method, an audio output device, an audio output system, a computer readable storage medium and electronic equipment, and relates to the technical field of audio control. The audio output method comprises the following steps: determining the air pressure value of the environment where the loudspeaker is positioned; calculating the amplitude of the loudspeaker under the air pressure value; comparing the amplitude of the loudspeaker with the maximum working amplitude of the loudspeaker under the air pressure value to obtain a comparison result; and adjusting the amplitude of the loudspeaker under the air pressure value based on the comparison result to output an audio signal according to the adjusted amplitude. The method and the device can improve the audio playing effect of the loudspeaker.

Description

Audio output method, device, system, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of audio control technology, and in particular, to an audio output method, an audio output device, an audio output system, a computer-readable storage medium, and an electronic apparatus.
Background
As one of the common functions of the electronic device, the electronic device may play audio through a speaker, for example, play a voice message, music, a bell sound, etc. through the speaker.
However, when playing audio, a problem may occur in that the audio playing effect of the speaker is poor, and furthermore, the speaker may fail.
Disclosure of Invention
The disclosure provides an audio output method, an audio output device, an audio output system, a computer readable storage medium and electronic equipment, so as to overcome the problem of poor audio playing effect of the electronic equipment at least to a certain extent.
According to a first aspect of the present disclosure, there is provided an audio output method comprising: determining the air pressure value of the environment where the loudspeaker is positioned; calculating the amplitude of the loudspeaker under the air pressure value; comparing the amplitude of the loudspeaker with the maximum working amplitude of the loudspeaker under the air pressure value to obtain a comparison result; and adjusting the amplitude of the loudspeaker under the air pressure value based on the comparison result to output an audio signal according to the adjusted amplitude.
According to a second aspect of the present disclosure, there is provided an audio output device comprising: the air pressure determining module is used for determining the air pressure value of the environment where the loudspeaker is positioned; the amplitude calculation module is used for calculating the amplitude of the loudspeaker under the air pressure value; the amplitude comparison module is used for comparing the amplitude of the loudspeaker under the air pressure value with the maximum working amplitude of the loudspeaker to obtain a comparison result; and the amplitude adjusting module is used for adjusting the amplitude of the loudspeaker under the air pressure value based on the comparison result so as to output an audio signal according to the adjusted amplitude.
According to a third aspect of the present disclosure, there is provided an audio output system comprising: the processor is used for determining the air pressure value of the environment where the loudspeaker is positioned and sending a control instruction corresponding to the air pressure value; the audio processing unit is used for responding to the control instruction, calculating the amplitude of the loudspeaker under the air pressure value, comparing the amplitude of the loudspeaker under the air pressure value with the maximum working amplitude of the loudspeaker to obtain a comparison result, and adjusting the amplitude of the loudspeaker under the air pressure value based on the comparison result; and a speaker for outputting an audio signal at the adjusted amplitude.
According to a fourth 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 audio output method.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising a processor; and a memory for storing one or more programs which, when executed by the processor, cause the processor to implement the audio output method described above.
In some embodiments of the present disclosure, by determining an air pressure value of an environment in which a speaker is located, calculating an amplitude of the speaker at the air pressure value, comparing the amplitude with a maximum working amplitude of the speaker, and adjusting the amplitude of the speaker by using a comparison result, so as to output an audio signal according to the adjusted amplitude. According to the scheme, through the amplitude adjustment process based on the air pressure value, the audio signal output by the loudspeaker can be effectively adjusted, the problem that the playing effect of the loudspeaker is poor due to the problem of the located ambient air pressure is avoided, and the stability of the sound effect of the whole electronic equipment 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 disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort. In the drawings:
FIG. 1 shows a schematic diagram of a system architecture of an audio output scheme of an embodiment of the present disclosure;
FIG. 2 illustrates a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure;
FIG. 3 schematically illustrates a flow chart of an audio output method according to an exemplary embodiment of the present disclosure;
fig. 4 schematically illustrates a flow chart of a process of adjusting speaker amplitude in accordance with an embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow chart of the overall process of an audio output scheme of an embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of an audio output device according to an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many 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 the 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 present disclosure. One skilled in the relevant art will recognize, however, that the aspects of the disclosure may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. 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 a repetitive description thereof 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 software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only and not necessarily all steps are included. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The inventor finds that the audio playing effect of the loudspeaker of the current electronic equipment is influenced by the ambient air pressure. For example, in high altitude areas or in environments with very low air pressure, the amplitude of the speaker may exceed the maximum operating amplitude (noted Xmax), severely affecting the audio playback effect of the speaker, and even more so, may lead to speaker failure.
In some aspects of the present disclosure, in order to avoid the interference of the air pressure, the amplitude of the speaker may be fixedly set to 50% to 80% of the maximum working amplitude, and in this case, although the interference of the air pressure may be avoided to some extent, the playing effect of the speaker may not be sufficiently exerted.
In view of this, the present disclosure provides a new approach to controlling speaker audio output.
Fig. 1 shows a schematic diagram of a system architecture of an audio output scheme of an embodiment of the present disclosure.
As shown in fig. 1, an audio output system of an embodiment of the present disclosure may include a processor 11, an audio processing unit 12, and a speaker 13.
The processor 11 may be configured to determine a barometric pressure value of an environment in which the speaker is located and send a control instruction corresponding to the determined barometric pressure value to the audio processing unit 12. It should be appreciated that different air pressure values may correspond to different control commands. In addition, the air pressure values may be divided into a plurality of steps, each step may correspond to the same control instruction, for example, the air pressure values may be divided into a low air pressure range, a medium air pressure range, and a high air pressure range, all air pressure values in the low air pressure range correspond to the same control instruction, all air pressure values in the medium air pressure range correspond to another control instruction, and all air pressure values in the high air pressure range may correspond to yet another control instruction.
The audio processing unit 12 may be configured to calculate the amplitude of the speaker at the air pressure value in response to the control instruction sent by the processing unit 11, compare the amplitude of the speaker at the air pressure value with the maximum working amplitude of the speaker, obtain a comparison result, and adjust the amplitude of the speaker at the air pressure value based on the comparison result.
The speaker 13 may be used to output an audio signal at an adjusted amplitude. Specifically, the audio processing unit 12 may receive an audio signal from the processor 11, and transmit the audio signal to the speaker 13 in the adjusted amplitude, and the audio signal is output from the speaker 13.
For the process of determining the air pressure value of the environment in which the speaker is located by the processor 11, the processor 11 may determine the resonant frequency (denoted as F0) of the speaker and calculate the air pressure value of the environment in which the speaker is located using the resonant frequency.
Specifically, the audio processing unit 12 may collect an electrical signal of the speaker 13, i.e., collect an I/V signal of the speaker 13, and feed back the I/V signal to the processor 11. In this case, the processor 11 may determine the resonant frequency of the speaker 13 from the I/V signal of the speaker.
For the process of adjusting the amplitude of the audio processing unit 12, the audio processing unit 12 may adjust the voltage of the speaker based on the comparison result, thereby implementing the process of adjusting the amplitude.
In an exemplary embodiment of the present disclosure, the audio processing unit 12 may be a Smart PA (Smart Power Amplifier, intelligent power amplifier), which is a unit configured independently of the processor 11.
However, the functions of the audio processing unit 12 may also be integrated in the processor 11, whereby in other embodiments of the present disclosure the audio output system may only comprise the processor 11 and the speaker 13. The present disclosure is not limited in this regard.
It should be appreciated that the audio output scheme of the exemplary embodiments of the present disclosure is applicable to scenes in which an electronic device plays audio. That is, the above-described audio output system may be configured in an electronic apparatus. The electronic device of the present disclosure may be any device with an audio playing function, and in particular may be a mobile phone, a tablet computer, a personal computer, an intelligent wearable device such as a smart watch, a smart glasses.
Fig. 2 shows a schematic diagram of an electronic device suitable for use in implementing exemplary embodiments of the present disclosure. It should be noted that the electronic device shown in fig. 2 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present disclosure.
The electronic device of the present disclosure includes at least a processor and a memory for storing one or more programs that when executed by the processor, cause the processor to implement the audio output method of the exemplary embodiments of the present disclosure.
Specifically, as shown in fig. 2, the electronic device 200 may include: processor 210, internal memory 221, external memory interface 222, universal serial bus (Universal Serial Bus, USB) interface 230, charge management module 240, power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 271, receiver 272, microphone 273, headset interface 274, sensor module 280, display screen 290, camera module 291, indicator 292, motor 293, keys 294, and subscriber identity module (Subscriber Identification Module, SIM) card interface 295, and the like. The sensor module 280 may include a depth sensor, a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
When the above-described audio processing units are separately configured from the processor, the electronic device 200 further includes an audio processing unit.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 200. In other embodiments of the present application, electronic device 200 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units such as, for example: the processor 210 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), a controller, a video codec, a digital signal processor (Digital Signal Processor, DSP), a baseband processor, and/or a Neural network processor (Neural-etwork Processing Unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors. In addition, a memory may be provided in the processor 210 for storing instructions and data.
Internal memory 221 may be used to store computer executable program code that includes instructions. The internal memory 221 may include a storage program area and a storage data area. The external memory interface 222 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 200.
The electronic device 200 may implement audio functions through an audio module 270, a speaker 271, a receiver 272, a microphone 273, a headphone interface 274, an application processor, and the like. Such as music playing, recording, etc.
The audio module 270 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 270 may also be used to encode and decode audio signals. The audio processing unit described in the present disclosure may be configured in the audio module 270. In addition, as described above, in some embodiments, the audio module 270 may be disposed in the processor 210, or some functional modules of the audio module 270 may be disposed in the processor 210.
A speaker 271, also called "horn", is used to convert the audio electrical signal into a sound signal. The electronic device 200 may listen to music, voice, ringtone, or to hands-free conversation through the speaker 271.
The present disclosure also provides a computer-readable storage medium that may be included in the electronic device described in the above embodiments; or may exist alone without being incorporated into the electronic device.
The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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. In the context of this disclosure, a computer-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.
A computer readable storage medium may transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The computer-readable storage medium carries one or more programs which, when executed by one of the electronic devices, cause the electronic device to implement the methods described in the embodiments below.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Fig. 3 schematically shows a flowchart of an audio output method according to an exemplary embodiment of the present disclosure. As a whole, the individual steps of the audio output method may be performed by the electronic device. Referring to fig. 3, the audio output method may include the steps of:
s32, determining the air pressure value of the environment where the loudspeaker is located.
According to some embodiments of the present disclosure, first, an electrical signal of a speaker may be obtained, where the electrical signal of the speaker refers to a current signal flowing through the speaker and a voltage signal applied to the speaker, which is generally referred to as an I/V signal. The processor may receive the I/V signal fed back by Smart PA.
Next, the resonant frequency (or referred to as resonant frequency) of the speaker may be calculated from the I/V signal of the speaker, for example, the resonant frequency of the speaker may be fitted using a least squares method, which is not limited by the present disclosure.
The resonance frequency can then be used to calculate the air pressure value of the environment in which the loudspeaker is located. It should be understood that the environment described herein is the current environment.
Specifically, the calculation formula of the resonant frequency F0 of the speaker is shown in formula 1:
where M represents the speaker system vibration mass, K represents the speaker system stiffness, and K can be derived from equation 2:
K=K ms +K b (equation 2)
Wherein K is ms Represents the monomer stiffness, K b Represents the back cavity stiffness, and K b Can be obtained from equation 3:
wherein ρ represents the air density, c 0 Represents sound velocity, SD represents effective radiation area, V 0 Represents the back volume and P represents the air pressure value.
Therefore, under the condition that the resonance frequency F0 of the loudspeaker is calculated through the I/V signal, the air pressure value P can be calculated by combining the formulas 1 to 3, and the air pressure value of the environment where the loudspeaker is located is obtained.
According to other embodiments of the present disclosure, the air pressure value of the environment in which the speaker is located may be determined through a manual input by a user or based on sensing by an air pressure sensor, which is not limited by the present disclosure.
S34, calculating the amplitude of the loudspeaker under the air pressure value.
In an exemplary embodiment of the present disclosure, a value of an intermediate parameter may be determined based on the air pressure value obtained in step S32, and the amplitude of the speaker at the air pressure value may be calculated using the value of the intermediate parameter. Wherein the intermediate parameter may be the force compliance (denoted as C m ) Or vibration force compliance, characterizes the compliance of the support members of the loudspeaker vibration system.
For determination C m According to some embodiments of the present disclosure, the pre-constructed barometric pressure compliance mapping table may be utilized to find the barometric pressure value corresponding to the barometric pressure compliance.
However, according to other embodiments of the present disclosure, C may also be calculated m . Specifically, C m Equal to 1/K, C can be directly calculated under the condition of obtaining the rigidity K of the loudspeaker system based on the air pressure value P m . It will be appreciated that C m In negative correlation with the air pressure value P, i.e. the greater the air pressure value P, the greater the air pressure value C m The smaller; the smaller the air pressure value P, C m The larger.
Next, the amplitude of the speaker at this air pressure value may be calculated based on equation 4:
wherein, xi a Representing the amplitude of the loudspeaker, F a Represents the driving force of the loudspeaker, ω represents the signal frequency, Z m Represents the impedance of the loudspeaker, R m Represents speaker damping, M m Representing the loudspeaker vibrating mass.
S36, comparing the amplitude of the loudspeaker under the air pressure value with the maximum working amplitude of the loudspeaker to obtain a comparison result.
The maximum working amplitude of the loudspeaker is noted Xmax, it being understood that the maximum working amplitude is typically determined by the construction of the loudspeaker, i.e. once the loudspeaker is determined, its maximum working amplitude is also determined.
In an exemplary embodiment of the present disclosure, the amplitude of the speaker at the air pressure value calculated in step S34 may be compared with the maximum operation amplitude of the speaker, resulting in a comparison result. Wherein the comparison characterizes the extent to which the amplitude of the loudspeaker deviates from the maximum working amplitude at the air pressure value.
In some embodiments, the comparison may be characterized by the difference in amplitude of the speaker minus the maximum operating amplitude at the air pressure value.
It will be appreciated that the comparison result may also be characterized by a proportion of the deviation, for example by a quotient of the difference divided by the maximum operating amplitude.
S38, adjusting the amplitude of the loudspeaker under the air pressure value based on the comparison result so as to output an audio signal according to the adjusted amplitude.
In an exemplary embodiment of the present disclosure, the purpose of adjusting the amplitude may be achieved by adjusting the voltage of the speaker. That is, the voltage of the speaker may be adjusted based on the comparison result to adjust the amplitude of the speaker.
In the case that the comparison result is the difference between the amplitude of the speaker and the maximum working amplitude of the speaker at the air pressure value, firstly, the adjustment direction and the adjustment amplitude of the voltage of the speaker can be determined based on the difference; the determined direction and magnitude of the voltage adjustment may then be used to adjust the voltage of the speaker.
Specifically, when the amplitude of the speaker is greater than Xmax at the air pressure value, the voltage of the speaker is reduced, that is, the voltage is adjusted in the direction in which the control voltage is reduced, so that the amplitude of the speaker is equal to Xmax, and at this time, the adjustment amplitude is the voltage amplitude corresponding to the amplitude that has been reduced from the calculated amplitude to Xmax.
When the amplitude of the speaker is smaller than Xmax at the air pressure value, the voltage of the speaker is raised, that is, the voltage is adjusted in the direction in which the control voltage is raised so that the amplitude of the speaker is equal to Xmax, and at this time, the adjustment amplitude is the voltage amplitude corresponding to the increase of the amplitude from the calculated amplitude to Xmax.
Referring to fig. 4, in step S402, the amplitude of the speaker at the current ambient air pressure value may be determined; in step S404, the maximum operation amplitude Xmax may be acquired.
In step S406, a difference of the amplitude of the speaker minus Xmax at the current ambient air pressure value may be calculated; in step S408, it is determined whether the difference is smaller than 0 or larger than 0, when the difference is smaller than 0, step S410 is executed, and when the difference is larger than 0, step S412 is executed.
In step S410, the voltage of the speaker is raised to make the amplitude of the speaker equal to Xmax.
In step S412, the voltage of the speaker is reduced to make the amplitude of the speaker equal to Xmax.
It will be appreciated that if the calculated amplitude is equal to Xmax, the amplitude is not adjusted, or the adjusted amplitude is 0. In reality, however, there is almost no case where the calculated amplitude is absolutely the same as Xmax in value. In addition, the present disclosure may also set a threshold range, e.g., xmax±Δ, and the amplitude may not be adjusted when the calculated amplitude is within the xmax±Δ range. The present disclosure does not limit the value of Δ.
That is, in some embodiments of the present disclosure, a process of determining the relationship between the difference value and the threshold range may be further included, and when it is determined that the difference value falls outside the threshold range, the operation of adjusting the amplitude in step S38 is performed.
The above adjustment method can ensure that the amplitude after adjustment is Xmax. However, the present disclosure may also include schemes that are not Xmax after adjustment. Specifically, a difference voltage mapping table may be pre-constructed, where a correspondence between a difference value and a voltage adjustment is recorded in the difference voltage mapping table, and an adjustment direction and an adjustment amplitude of a speaker voltage corresponding to the difference value may be determined by querying the mapping table. Note that, when the amplitude calculated in step S34 is greater than the maximum working amplitude, there is a corresponding voltage adjustment method in the mapping table, and the amplitude obtained after adjustment is equal to or less than the maximum working amplitude. The specific mapping relation in the table is not limited by the present disclosure.
In addition, in the above embodiments that use the deviated ratio to characterize the comparison result, the voltage adjustment direction and the adjustment amplitude may be determined by means of a reference ratio, and the present disclosure is not limited to the specific process.
After adjusting the amplitude of the speaker, an audio signal can be output according to the adjusted amplitude, and sound can be played by the speaker. The present disclosure is not limited to the type of audio signal and may include, but is not limited to, speech, music, ringtones, video audio, and the like.
It should be appreciated that the process of adjusting the amplitude described above may be performed prior to formally outputting the audio signal to ensure stable output of high quality audio. The amplitude output audio signal may be dynamically adjusted during the audio playing process, which is not limited in this disclosure.
The overall process of the audio output scheme of the embodiment of the present disclosure will be described with reference to fig. 5.
In step S502, the processor calculates a resonant frequency of the speaker using the I/V signal of the speaker.
In step S504, the processor calculates an air pressure value of the environment in which the speaker (i.e., the electronic device) is located using the resonance frequency. Specifically, the air pressure value of the environment can be calculated by combining the formulas 1 to 3.
In step S506, the processor calculates the amplitude of the speaker at the air pressure value. Specifically, the amplitude of the speaker may be calculated using equation 4.
In step S508, the difference between the calculated amplitude and Xmax is calculated.
In step S510, it is determined whether the difference is smaller than 0 or larger than 0. In the case that the difference is less than 0, step S512 is performed; in the case where the difference is greater than 0, step S514 is performed.
In step S512, the voltage of the speaker is raised to make the amplitude of the speaker equal to Xmax.
In step S514, the voltage of the speaker is reduced to make the amplitude of the speaker equal to Xmax.
In step S516, the audio signal is output at the adjusted amplitude.
It should be noted that although the steps of the methods in the present disclosure are depicted in the accompanying drawings in a particular order, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
Further, an audio output device is also provided in this example embodiment.
Fig. 6 schematically shows a block diagram of an audio output device of an exemplary embodiment of the present disclosure. Referring to fig. 6, the audio output device 6 according to an exemplary embodiment of the present disclosure may include an air pressure determining module 61, an amplitude calculating module 63, an amplitude comparing module 65, and an amplitude adjusting module 67.
Specifically, the air pressure determining module 61 may be configured to determine an air pressure value of an environment in which the speaker is located; the amplitude calculation module 63 may be configured to calculate the amplitude of the speaker at the air pressure value; the amplitude comparison module 65 may be configured to compare the amplitude of the speaker with the maximum working amplitude of the speaker at the air pressure value to obtain a comparison result; the amplitude adjustment module 67 may be configured to adjust the amplitude of the speaker at the air pressure value based on the comparison result, so as to output the audio signal at the adjusted amplitude.
According to an example embodiment of the present disclosure, the air pressure determination module 61 may be configured to perform: determining a resonant frequency of the speaker; and calculating the air pressure value of the environment where the loudspeaker is positioned by using the resonance frequency.
According to an exemplary embodiment of the present disclosure, the process of the air pressure determining module 61 determining the resonant frequency of the speaker may be configured to perform: determining an electrical signal of the speaker; the resonant frequency of the loudspeaker is determined from the electrical signal of the loudspeaker.
According to an exemplary embodiment of the present disclosure, the amplitude calculation module 63 may be configured to perform: determining a value of the intermediate parameter using the barometric pressure value; the amplitude of the loudspeaker at the air pressure value is calculated using the value of the intermediate parameter.
According to an example embodiment of the present disclosure, the amplitude adjustment module 67 may be configured to perform: and adjusting the voltage of the loudspeaker based on the comparison result to adjust the amplitude of the loudspeaker under the air pressure value.
In accordance with an exemplary embodiment of the present disclosure, in the case where the comparison result is a difference between the amplitude of the speaker and the maximum operation amplitude of the speaker at the air pressure value, the amplitude adjustment module 67 may be configured to perform: determining an adjustment direction and an adjustment amplitude of the voltage of the speaker based on the difference value; and adjusting the voltage of the loudspeaker by using the determined adjusting direction and the determined adjusting amplitude.
According to an exemplary embodiment of the present disclosure, in the case where the amplitude of the speaker is greater than the maximum operation amplitude of the speaker at the air pressure value, the amplitude adjustment module 67 decreases the voltage of the speaker to make the amplitude of the speaker equal to the maximum operation amplitude; in the case where the amplitude of the speaker is smaller than the maximum operation amplitude of the speaker at the air pressure value, the amplitude adjustment module 67 increases the voltage of the speaker so that the amplitude of the speaker is equal to the maximum operation amplitude.
According to an exemplary embodiment of the present disclosure, the amplitude adjustment module 67 may be further configured to perform: and determining the adjustment direction and the adjustment amplitude of the voltage of the loudspeaker corresponding to the difference value from a pre-constructed difference voltage mapping table.
Since each functional module of the audio output device in the embodiment of the present disclosure is the same as that in the embodiment of the method described above, the description thereof is omitted herein.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, 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 (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Furthermore, the above-described figures are only schematic illustrations of processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. An audio output method, comprising:
determining an electric signal of a loudspeaker, determining a resonant frequency of the loudspeaker according to the electric signal of the loudspeaker, and calculating an air pressure value of the environment where the loudspeaker is positioned by using the resonant frequency; wherein the electrical signal of the speaker is a current signal flowing through the speaker and a voltage signal applied to the speaker;
determining a force value by using the air pressure value, and calculating the amplitude of the loudspeaker under the air pressure value by using the force value;
comparing the amplitude of the loudspeaker with the maximum working amplitude of the loudspeaker under the air pressure value to obtain a comparison result;
and adjusting the amplitude of the loudspeaker at the air pressure value to be the maximum working amplitude of the loudspeaker based on the comparison result so as to output an audio signal according to the adjusted amplitude.
2. The audio output method of claim 1, wherein adjusting the amplitude of the speaker at the air pressure value to the maximum operating amplitude of the speaker based on the comparison result comprises:
and adjusting the voltage of the loudspeaker based on the comparison result so as to adjust the amplitude of the loudspeaker at the air pressure value to be the maximum working amplitude of the loudspeaker.
3. The audio output method according to claim 2, wherein, in the case where the comparison result is a difference between the amplitude of the speaker at the air pressure value and the maximum operation amplitude of the speaker, adjusting the amplitude of the speaker at the air pressure value to the maximum operation amplitude of the speaker based on the comparison result includes:
determining an adjustment direction and an adjustment amplitude of the voltage of the speaker based on the difference value;
and adjusting the amplitude of the loudspeaker to be the maximum working amplitude of the loudspeaker under the air pressure value by using the determined adjusting direction and the determined adjusting amplitude.
4. A method of audio output according to claim 3, wherein in the case where the amplitude of the speaker is greater than the maximum operating amplitude of the speaker at the air pressure value, the voltage of the speaker is reduced so that the amplitude of the speaker is equal to the maximum operating amplitude;
and when the amplitude of the loudspeaker is smaller than the maximum working amplitude of the loudspeaker under the air pressure value, the voltage of the loudspeaker is increased to ensure that the amplitude of the loudspeaker is equal to the maximum working amplitude.
5. The audio output method of claim 3, wherein determining the direction and magnitude of adjustment of the voltage of the speaker based on the difference value comprises:
and determining the adjustment direction and the adjustment amplitude of the voltage of the loudspeaker corresponding to the difference value from a pre-constructed difference voltage mapping table.
6. An audio output device, comprising:
the air pressure determining module is used for determining an electric signal of the loudspeaker, determining the resonance frequency of the loudspeaker according to the electric signal of the loudspeaker, and calculating the air pressure value of the environment where the loudspeaker is positioned by utilizing the resonance frequency; wherein the electrical signal of the speaker is a current signal flowing through the speaker and a voltage signal applied to the speaker;
the amplitude calculation module is used for determining a force value by utilizing the air pressure value and calculating the amplitude of the loudspeaker under the air pressure value by utilizing the force value;
the amplitude comparison module is used for comparing the amplitude of the loudspeaker with the maximum working amplitude of the loudspeaker under the air pressure value to obtain a comparison result;
and the amplitude adjustment module is used for adjusting the amplitude of the loudspeaker under the air pressure value to be the maximum working amplitude of the loudspeaker based on the comparison result so as to output an audio signal according to the adjusted amplitude.
7. An audio output system, comprising:
the processor is used for determining the electric signal of the loudspeaker, determining the resonance frequency of the loudspeaker according to the electric signal of the loudspeaker, calculating the air pressure value of the environment where the loudspeaker is positioned by utilizing the resonance frequency, and sending a control instruction corresponding to the air pressure value; wherein the electrical signal of the speaker is a current signal flowing through the speaker and a voltage signal applied to the speaker;
the audio processing unit is used for responding to the control instruction, determining a force value by utilizing the air pressure value, calculating the amplitude of the loudspeaker under the air pressure value by utilizing the force value, comparing the amplitude of the loudspeaker under the air pressure value with the maximum working amplitude of the loudspeaker to obtain a comparison result, and adjusting the amplitude of the loudspeaker under the air pressure value to be the maximum working amplitude of the loudspeaker based on the comparison result;
and a speaker for outputting an audio signal at the adjusted amplitude.
8. The audio output system of claim 7, wherein the audio processing unit adjusts the amplitude of the speaker at the air pressure value to a maximum operating amplitude of the speaker based on the comparison result is configured to perform: and adjusting the voltage of the loudspeaker based on the comparison result so as to adjust the amplitude of the loudspeaker at the air pressure value to be the maximum working amplitude of the loudspeaker.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when executed by a processor, implements the audio output method according to any one of claims 1 to 5.
10. An electronic device, comprising:
a processor;
a memory for storing one or more programs that, when executed by the processor, cause the processor to implement the audio output method of any of claims 1-5.
CN202011476235.XA 2020-12-14 2020-12-14 Audio output method, device, system, storage medium and electronic equipment Active CN112616108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011476235.XA CN112616108B (en) 2020-12-14 2020-12-14 Audio output method, device, system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011476235.XA CN112616108B (en) 2020-12-14 2020-12-14 Audio output method, device, system, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112616108A CN112616108A (en) 2021-04-06
CN112616108B true CN112616108B (en) 2023-12-22

Family

ID=75234184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011476235.XA Active CN112616108B (en) 2020-12-14 2020-12-14 Audio output method, device, system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112616108B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132850B (en) * 2021-04-28 2023-05-26 Oppo广东移动通信有限公司 Speaker parameter configuration method and related device
CN113727241A (en) * 2021-08-25 2021-11-30 Oppo广东移动通信有限公司 Audio output control method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009290346A (en) * 2008-05-27 2009-12-10 Panasonic Electric Works Co Ltd Panel speaker apparatus
CN106507262A (en) * 2016-12-27 2017-03-15 深圳精拓创新科技有限公司 A kind of diaphragm of loudspeaker tester with controlled excitation source
CN106535064A (en) * 2016-12-30 2017-03-22 深圳天珑无线科技有限公司 Loudspeaker and vibrating diaphragm thereof
CN108282725A (en) * 2018-02-14 2018-07-13 钰太芯微电子科技(上海)有限公司 A kind of public address system and audio player of integrated back of the body cavity pressure perception
CN108848267A (en) * 2018-06-27 2018-11-20 维沃移动通信有限公司 Audio frequency playing method and mobile terminal
CN109495820A (en) * 2018-12-07 2019-03-19 武汉市聚芯微电子有限责任公司 The amplitude adjusting method and system of the diaphragm of loudspeaker
CN109547894A (en) * 2018-10-24 2019-03-29 维沃移动通信有限公司 A kind of electro-acoustic element amplitude method of adjustment, device and mobile terminal
CN110662153A (en) * 2019-10-31 2020-01-07 Oppo广东移动通信有限公司 Loudspeaker adjusting method and device, storage medium and electronic equipment
WO2020030001A1 (en) * 2018-08-08 2020-02-13 苏州上声电子股份有限公司 Method for designing loudspeaker mesh cover based on finite element method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7134341B2 (en) * 2003-04-28 2006-11-14 Zuli Holdings Ltd Methods and devices for determining the resonance frequency of passive mechanical resonators
WO2019136740A1 (en) * 2018-01-15 2019-07-18 深圳东原电子有限公司 Compression-type high-pitch loudspeaker assembly with horizontal omnidirectional horn array and working principle

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009290346A (en) * 2008-05-27 2009-12-10 Panasonic Electric Works Co Ltd Panel speaker apparatus
CN106507262A (en) * 2016-12-27 2017-03-15 深圳精拓创新科技有限公司 A kind of diaphragm of loudspeaker tester with controlled excitation source
CN106535064A (en) * 2016-12-30 2017-03-22 深圳天珑无线科技有限公司 Loudspeaker and vibrating diaphragm thereof
CN108282725A (en) * 2018-02-14 2018-07-13 钰太芯微电子科技(上海)有限公司 A kind of public address system and audio player of integrated back of the body cavity pressure perception
CN108848267A (en) * 2018-06-27 2018-11-20 维沃移动通信有限公司 Audio frequency playing method and mobile terminal
WO2020030001A1 (en) * 2018-08-08 2020-02-13 苏州上声电子股份有限公司 Method for designing loudspeaker mesh cover based on finite element method
CN109547894A (en) * 2018-10-24 2019-03-29 维沃移动通信有限公司 A kind of electro-acoustic element amplitude method of adjustment, device and mobile terminal
CN109495820A (en) * 2018-12-07 2019-03-19 武汉市聚芯微电子有限责任公司 The amplitude adjusting method and system of the diaphragm of loudspeaker
CN110662153A (en) * 2019-10-31 2020-01-07 Oppo广东移动通信有限公司 Loudspeaker adjusting method and device, storage medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Synchronized amplitude-and-frequency modulation for a parametric loudspeaker;Masato Nakayama;《2017 Asia-Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC)》;全文 *
压电扬声器驱动的热声制冷机中阻抗匹配研究;范理;张淑仪;王本仁;;声学学报(中文版)(01);全文 *

Also Published As

Publication number Publication date
CN112616108A (en) 2021-04-06

Similar Documents

Publication Publication Date Title
CN1972524B (en) Music file replaying method and apparatus
US9525942B2 (en) Mobile apparatus and control method thereof
CN112616108B (en) Audio output method, device, system, storage medium and electronic equipment
US10798516B2 (en) Information processing apparatus and method
CN111324196B (en) Memory operation frequency adjusting method and device, storage medium and electronic equipment
US10019222B2 (en) Method for obtaining music data, earphone and music player
CN113038337B (en) Audio playing method, wireless earphone and computer readable storage medium
CN115022775B (en) Driving circuit, terminal equipment and protection method
WO2022242528A1 (en) Volume adjustment method and terminal device
KR102565447B1 (en) Electronic device and method for adjusting gain of digital audio signal based on hearing recognition characteristics
CN112599144B (en) Audio data processing method, audio data processing device, medium and electronic equipment
JP2016187141A (en) Information processing apparatus and information processing method of the same
CN112019987A (en) Speaker device and output adjusting method for speaker
KR20190045506A (en) Method for processing audio signal and electronic device for supporting the same
CN111083250A (en) Mobile terminal and noise reduction method thereof
CN115567831A (en) Method and device for improving tone quality of loudspeaker
CN113721753A (en) Power amplifier control method and apparatus, storage medium, and electronic device
US10997984B2 (en) Sounding device, audio transmission system, and audio analysis method thereof
WO2021120247A1 (en) Hearing compensation method and device, and computer readable storage medium
CN113115178B (en) Audio signal processing method and device
KR20190043052A (en) Method for generating an audio signal using a plurality of speakers and microphones and an electronic device thereof
US20230108378A1 (en) Power amplifier management
CN109144457B (en) Audio playing device and audio control circuit thereof
CN115696114B (en) Microphone configuration adjustment method, electronic equipment and medium
CN115550820A (en) Loudspeaker control method, device, electronic equipment and 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