CN112616108A - 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
CN112616108A
CN112616108A CN202011476235.XA CN202011476235A CN112616108A CN 112616108 A CN112616108 A CN 112616108A CN 202011476235 A CN202011476235 A CN 202011476235A CN 112616108 A CN112616108 A CN 112616108A
Authority
CN
China
Prior art keywords
amplitude
air pressure
loudspeaker
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.)
Granted
Application number
CN202011476235.XA
Other languages
Chinese (zh)
Other versions
CN112616108B (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

Images

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 an electronic device, and relates to the technical field of audio control. The audio output method includes: determining the air pressure value of the environment where the loudspeaker is located; 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; the amplitude of the speaker at the air pressure value is adjusted based on the comparison result to output an audio signal at the adjusted amplitude. The audio playing effect of the loudspeaker can be improved.

Description

Audio output method, device, system, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of audio control technologies, and in particular, to an audio output method, an audio output apparatus, an audio output system, a computer-readable storage medium, and an electronic device.
Background
As one of the common functions of electronic devices, the electronic device may play audio through a speaker, for example, play voice messages, music, ring tones, etc. through the speaker.
However, when playing audio, the audio playing effect of the speaker may be poor, and even more, the speaker may fail.
Disclosure of Invention
The present disclosure provides an audio output method, an audio output apparatus, an audio output system, a computer-readable storage medium, and an electronic device, so as to overcome the problem of poor audio playing effect of the electronic device at least to a certain extent.
According to a first aspect of the present disclosure, there is provided an audio output method including: determining the air pressure value of the environment where the loudspeaker is located; 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; the amplitude of the speaker at the air pressure value is adjusted based on the comparison result to output an audio signal at 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 located; 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 the 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 located 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 the audio signal according to 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 audio output method described above.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising a processor; 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, an air pressure value of an environment in which a speaker is located is determined, an amplitude of the speaker at the air pressure value is calculated, the amplitude is compared with a maximum working amplitude of the speaker, and the amplitude of the speaker is adjusted using a comparison result to output an audio signal according to the adjusted amplitude. This disclosed scheme is through the amplitude adjustment process based on the atmospheric pressure value, can effectively adjust the audio signal of speaker output, has avoided because the problem of the environment atmospheric pressure of locating leads to the not good problem of speaker broadcast effect, has improved the stability of electronic equipment complete machine audio.
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 to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. 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 structural 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 according to an embodiment of the present disclosure;
fig. 5 schematically shows a flowchart of the overall process of the audio output scheme of the 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. 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 flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
The inventor finds that the audio playing effect of the loudspeaker of the electronic equipment is influenced by the air pressure of the environment. For example, in high altitude areas or in very low pressure environments, the amplitude of the speaker may exceed the maximum operating amplitude (denoted as Xmax), which significantly affects the audio playback performance of the speaker and, even more, may cause the speaker to fail.
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 operating amplitude, and in this case, although the interference of the air pressure may be avoided to some extent, the playing effect of the speaker cannot be fully exerted.
In view of the above, the present disclosure provides a new solution for controlling the audio output of a speaker.
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, the audio output system of the 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 an air pressure value of an environment in which the speaker is located, and send a control instruction corresponding to the determined air pressure value to the audio processing unit 12. It should be understood that different air pressure values may correspond to different control commands. In addition, the air pressure value may be divided into a plurality of steps, each step may correspond to the same control command, for example, the air pressure value may be divided into a low air pressure range, a middle air pressure range and a high air pressure range, all the air pressure values in the low air pressure range correspond to the same control command, all the air pressure values in the middle air pressure range correspond to another control command, and all the air pressure values in the high air pressure range may correspond to yet another control command.
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 to 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 the adjusted amplitude. Specifically, audio processing unit 12 may receive an audio signal from processor 11, transmit the audio signal to speaker 13 at an adjusted amplitude, and output the audio signal from speaker 13.
For the process of the processor 11 determining the air pressure value of the environment in which the speaker is located, the processor 11 may determine the resonance frequency of the speaker (denoted as F0), and calculate the air pressure value of the environment in which the speaker is located using the resonance frequency.
Specifically, the audio processing unit 12 may collect an electrical signal of the speaker 13, that is, collect an I/V signal of the speaker 13, and feed the I/V signal back to the processor 11. In this case, the processor 11 may determine the resonant frequency of the loudspeaker 13 from the I/V signal of the loudspeaker.
For the process of adjusting the amplitude by 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), which is a unit configured independently of the processor 11.
However, the functionality of the audio processing unit 12 may also be integrated in the processor 11, whereby in further embodiments of the present disclosure the audio output system may comprise only the processor 11 and the loudspeaker 13. The present disclosure is not so limited.
It should be understood that the audio output scheme of the exemplary embodiments of the present disclosure is applied to a scene in which an electronic device plays audio. That is, the above-described audio output system may be configured in an electronic device. The electronic device disclosed by the present disclosure may be any device having an audio playing function, and particularly may be a mobile phone, a tablet computer, a personal computer, and a smart wearable device such as a smart watch and 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 bring any limitation to the functions and the scope of use 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, which 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: a processor 210, an internal memory 221, an external memory interface 222, a Universal Serial Bus (USB) interface 230, a charging management Module 240, a power management Module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication Module 250, a wireless communication Module 260, an audio Module 270, a speaker 271, a microphone 272, a microphone 273, an earphone interface 274, a sensor Module 280, a display 290, a camera Module 291, a pointer 292, a motor 293, a button 294, and a Subscriber Identity Module (SIM) card interface 295. The sensor module 280 may include a depth sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light 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 unit is separately configured independently of the processor, the electronic apparatus 200 further includes an audio processing unit.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement 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: the Processor 210 may include an Application Processor (AP), a modem Processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband Processor, and/or a Neural Network Processor (NPU), and the like. The different processing units may be separate devices or may be integrated into one or more processors. Additionally, a memory may be provided in processor 210 for storing instructions and data.
Internal memory 221 may be used to store computer-executable program code, including instructions. The internal memory 221 may include a program storage area and a data storage area. The external memory interface 222 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device 200.
The electronic device 200 may implement an audio function through the audio module 270, the speaker 271, the receiver 272, the microphone 273, the headphone interface 274, the application processor, and the like. Such as music playing, recording, etc.
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. 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. Additionally, as described above, in some embodiments, audio module 270 may be disposed in processor 210, or some functional modules of audio module 270 may be disposed in processor 210.
The 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, ring tones, or listen to hands-free calls through the speaker 271.
The present disclosure also provides a computer-readable storage medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device.
A computer 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 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 present 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 an electronic device, cause the electronic device to implement the method as described in the embodiments below.
The flowchart 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 described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
Fig. 3 schematically shows a flowchart of an audio output method according to an exemplary embodiment of the present disclosure. As a whole, the various 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:
and 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, which is referred to as a current signal flowing through the speaker and a voltage signal applied to the speaker, and is generally referred to as an I/V signal, may be obtained. The processor may receive the I/V signal fed back by the Smart PA.
Next, the resonance frequency (or called resonance frequency) of the speaker may be calculated according to the I/V signal of the speaker, for example, the resonance frequency of the speaker may be fitted by using the least square method, and the disclosure does not limit the process.
The resonant frequency can then be used to calculate a barometric pressure value for the environment in which the speaker is located. It should be understood that the environment described herein is the current environment.
Specifically, the formula for calculating the resonant frequency F0 of the speaker is shown in formula 1:
Figure BDA0002835471260000081
where M represents the speaker system vibrating mass, K represents the speaker system stiffness, and K can be derived from equation 2:
K=Kms+Kb(formula 2)
Wherein, KmsDenotes the monomer stiffness, KbDenotes the rear chamber stiffness, and KbThis can be obtained from equation 3:
Figure BDA0002835471260000082
where ρ represents the air density, c0Representing the speed of sound, SD the effective radiation area, V0Indicating the volume of the rear chamber, P the air pressureThe value is obtained.
Therefore, when 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 formula 1 to the formula 3, namely the air pressure value of the environment where the loudspeaker is located.
According to other embodiments of the present disclosure, the air pressure value of the environment where the speaker is located may be determined through a manual input by a user or based on a sensing manner of an air pressure sensor, which is not limited by the present disclosure.
And 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 by using the value of the intermediate parameter. Wherein the intermediate parameter may be the force compliance (denoted as C)m) Or called vibration compliance, characterizes the compliance of the support member of a loudspeaker vibration system.
For determining CmAccording to some embodiments of the present disclosure, a compliance corresponding to the air pressure value may be found out by using a pre-constructed air pressure compliance mapping relation table.
However, according to other embodiments of the present disclosure, C may also be obtained by calculationm. Specifically, CmEqual to 1/K, and can directly calculate C under the condition of obtaining the rigidity K of the loudspeaker system based on the air pressure value Pm. As can be appreciated, CmIs inversely related to the pressure value P, i.e. the greater the pressure value P, the greater CmThe smaller; the smaller the pressure value P is, CmThe larger.
Next, the amplitude of the speaker at this air pressure value can be calculated based on equation 4:
Figure BDA0002835471260000091
wherein ξaRepresenting the amplitude of the loudspeaker, FaRepresenting speaker driving force, omega signal frequency, ZmRepresenting the loudspeaker impedance, RmIndicating loudspeaker damping, MmRepresenting the vibrating mass of the loudspeaker.
And 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 denoted Xmax, it being understood that it is generally determined by the structure of the loudspeaker, that is to say once the loudspeaker has been determined, it 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 operating amplitude of the speaker, resulting in a comparison result. Wherein the comparison is indicative of the degree to which the amplitude of the loudspeaker at the air pressure value deviates from the maximum operating amplitude.
In some embodiments, the amplitude of the speaker at the air pressure value minus the maximum operating amplitude may be used to characterize the comparison.
It will be appreciated that the proportion of deviation may also be used to characterise the comparison, for example by dividing the difference by the maximum operating amplitude.
And 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 where the comparison result is a difference between the amplitude of the speaker at the air pressure value and the maximum operating amplitude of the speaker, first, the adjustment direction and the adjustment magnitude of the voltage of the speaker may be determined based on the difference; next, the voltage of the speaker may be adjusted using the determined adjustment direction and adjustment magnitude of the voltage.
Specifically, when the amplitude of the speaker is larger than Xmax at the air pressure value, the voltage of the speaker is decreased, that is, the voltage is adjusted in the direction of decreasing the control voltage so that the amplitude of the speaker is equal to Xmax, and at this time, the amplitude is adjusted to be a voltage amplitude corresponding to Xmax from the calculated amplitude.
In the case where 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 a direction to control the voltage to be raised so that the amplitude of the speaker becomes equal to Xmax, and at this time, the amplitude is adjusted to be raised from the calculated amplitude to a voltage amplitude corresponding 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 operating amplitude Xmax may be acquired.
In step S406, a difference between 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, and if the difference is smaller than 0, step S410 is performed, and if the difference is larger than 0, step S412 is performed.
In step S410, the voltage of the speaker is raised so that the amplitude of the speaker is equal to Xmax.
In step S412, the voltage of the speaker is reduced so that the amplitude of the speaker becomes equal to Xmax.
It will be appreciated that if the calculated amplitude is equal to Xmax, no adjustment is made to the amplitude, or the amplitude of the adjustment 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 when the calculated amplitude is within the Xmax ± Δ range, the amplitude may not be adjusted. The value of Δ is not limited by this disclosure.
That is, in some embodiments of the present disclosure, a process of determining a 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 adjusted amplitude is Xmax. However, the present disclosure may also include schemes that are not Xmax after tuning. Specifically, a difference voltage mapping table may be pre-constructed, in which a correspondence between the difference and the voltage adjustment is recorded, and by querying the mapping table, the adjustment direction and the adjustment amplitude of the speaker voltage corresponding to the difference may be determined. It should be noted that, in the case where the amplitude calculated in step S34 is greater than the maximum working amplitude, the corresponding voltage adjustment mode exists in the mapping table, and the amplitude obtained after the adjustment is equal to or less than the maximum working amplitude. The present disclosure does not limit the specific mapping relationships in the table.
Furthermore, in the above embodiment of using the deviation ratio to characterize the comparison result, the voltage adjustment direction and the adjustment magnitude can be determined by means of a reference ratio, and the present disclosure does not limit the specific processing procedure.
After the amplitude of the speaker is adjusted, 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 as to the type of audio signal and may include, but is not limited to, voice, music, ring tones, movie audio, and the like.
It is to be understood that the above-described process of adjusting the amplitude may precede the formal output of the audio signal to ensure stable output of high quality audio. It is also possible to dynamically adjust the amplitude of the output audio signal during the audio playing process, which is not limited by the present disclosure.
The entire process of the audio output scheme of the embodiment of the present disclosure will be explained 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 an 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 formula 1 to formula 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 obtained amplitude and Xmax is calculated.
In step S510, it is determined whether the difference is less than 0 or greater than 0. If the difference is less than 0, go to step S512; in the case where the difference is greater than 0, step S514 is performed.
In step S512, the voltage of the speaker is raised so that the amplitude of the speaker is equal to Xmax.
In step S514, the voltage of the speaker is reduced so that the amplitude of the speaker is equal to Xmax.
In step S516, the audio signal is output at the adjusted amplitude.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Further, an audio output device is also provided in the present exemplary 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 where 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 under the air pressure value with the maximum working amplitude of the speaker 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 with 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 loudspeaker; and calculating the air pressure value of the environment where the loudspeaker is located by utilizing the resonance frequency.
According to an exemplary embodiment of the present disclosure, the process of the air pressure determination module 61 determining the resonance frequency of the speaker may be configured to perform: determining an electrical signal of the loudspeaker; the resonance frequency of the loudspeaker is determined according to the electric signal of the loudspeaker.
According to an exemplary embodiment of the present disclosure, the amplitude calculation module 63 may be configured to perform: determining the value of the intermediate parameter using the air pressure value; using the values of the intermediate parameters, the amplitude of the loudspeaker at the air pressure value is calculated.
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.
According to an exemplary embodiment of the present disclosure, in case that the comparison result is a difference value of the amplitude of the speaker at the air pressure value and the maximum operation amplitude of the speaker, 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; and adjusting the voltage of the loudspeaker by using the determined adjusting direction and adjusting amplitude.
According to an exemplary embodiment of the present disclosure, in the case that the amplitude of the speaker is greater than the maximum operating amplitude of the speaker at the air pressure value, the amplitude adjustment module 67 decreases the voltage of the speaker so that the amplitude of the speaker is equal to the maximum operating amplitude; in the event that the amplitude of the speaker is less than the maximum operating amplitude of the speaker at the air pressure value, the amplitude adjustment module 67 increases the voltage of the speaker such that the amplitude of the speaker is equal to the maximum operating 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 from a difference voltage mapping table which is constructed in advance.
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, it is not described herein again.
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 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 functionality of two or more modules or units described above may be embodied in one module or unit, according to 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 (15)

1. An audio output method, comprising:
determining the air pressure value of the environment where the loudspeaker is located;
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;
adjusting the amplitude of the speaker at the air pressure value based on the comparison result to output an audio signal at the adjusted amplitude.
2. The audio output method of claim 1, wherein determining the air pressure value of the environment in which the speaker is located comprises:
determining a resonant frequency of the loudspeaker;
and calculating the air pressure value of the environment where the loudspeaker is positioned by using the resonance frequency.
3. The audio output method of claim 2, wherein determining the resonant frequency of the speaker comprises:
determining an electrical signal of the speaker;
and determining the resonance frequency of the loudspeaker according to the electric signal of the loudspeaker.
4. The audio output method of claim 1, wherein calculating the amplitude of the speaker at the air pressure value comprises:
determining a value of an intermediate parameter using the air pressure value;
calculating the amplitude of the loudspeaker at the air pressure value using the value of the intermediate parameter.
5. The audio output method of claim 1, wherein adjusting the amplitude of the speaker at the air pressure value based on the comparison comprises:
and adjusting the voltage of the loudspeaker based on the comparison result so as to adjust the amplitude of the loudspeaker under the air pressure value.
6. The audio output method of claim 5, wherein in the case that the comparison result is a difference between the amplitude of the speaker at the air pressure value and a maximum operating amplitude of the speaker, adjusting the voltage of the speaker based on the comparison result comprises:
determining an adjustment direction and an adjustment magnitude of a voltage of the speaker based on the difference;
and adjusting the voltage of the loudspeaker by using the determined adjusting direction and adjusting amplitude.
7. The audio output method according to claim 6, wherein in a case where the amplitude of the speaker is larger than a 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 under the condition that the amplitude of the loudspeaker is smaller than the maximum working amplitude of the loudspeaker under the air pressure value, raising the voltage of the loudspeaker to make the amplitude of the loudspeaker equal to the maximum working amplitude.
8. The audio output method of claim 6, wherein determining the adjustment direction and the adjustment magnitude of the voltage of the speaker based on the difference comprises:
and determining the adjustment direction and the adjustment amplitude of the voltage of the loudspeaker corresponding to the difference from a difference voltage mapping table which is constructed in advance.
9. 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 located;
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.
10. An audio output system, comprising:
the processor is used for determining the air pressure value of the environment where the loudspeaker is located 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 the audio signal according to the adjusted amplitude.
11. The audio output system of claim 10, wherein the processor performing the process of determining the air pressure value of the environment in which the speaker is located is configured to perform: and determining the resonance frequency of the loudspeaker, and calculating the air pressure value of the environment where the loudspeaker is located by using the resonance frequency.
12. The audio output system of claim 11, wherein the audio processing unit is further configured to collect an electrical signal of the speaker and send the electrical signal of the speaker to the processor;
the processor is configured to determine a resonant frequency of the speaker from the electrical signal of the speaker.
13. The audio output system of claim 10, wherein the audio processing unit, based on the comparison, adjusting the amplitude of the speaker at the air pressure value 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 under the air pressure value.
14. A computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the audio output method of any one of claims 1 to 8.
15. 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 to 8.
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 true CN112616108A (en) 2021-04-06
CN112616108B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132850A (en) * 2021-04-28 2021-07-16 Oppo广东移动通信有限公司 Loudspeaker 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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040211260A1 (en) * 2003-04-28 2004-10-28 Doron Girmonsky Methods and devices for determining the resonance frequency of passive mechanical resonators
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
US20190222925A1 (en) * 2018-01-15 2019-07-18 Shenzhen Dongyuan Electronics Co., Ltd. Compression-Type High-Pitch Loudspeaker Assembly with Horizontal Omnidirectional Horn Array
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

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040211260A1 (en) * 2003-04-28 2004-10-28 Doron Girmonsky Methods and devices for determining the resonance frequency of passive mechanical resonators
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
US20190222925A1 (en) * 2018-01-15 2019-07-18 Shenzhen Dongyuan Electronics Co., Ltd. Compression-Type High-Pitch Loudspeaker Assembly with Horizontal Omnidirectional Horn Array
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
MASATO NAKAYAMA: "Synchronized amplitude-and-frequency modulation for a parametric loudspeaker", 《2017 ASIA-PACIFIC SIGNAL AND INFORMATION PROCESSING ASSOCIATION ANNUAL SUMMIT AND CONFERENCE (APSIPA ASC)》 *
范理;张淑仪;王本仁;: "压电扬声器驱动的热声制冷机中阻抗匹配研究", 声学学报(中文版), no. 01 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113132850A (en) * 2021-04-28 2021-07-16 Oppo广东移动通信有限公司 Loudspeaker parameter configuration method and related device
WO2022227793A1 (en) * 2021-04-28 2022-11-03 Oppo广东移动通信有限公司 Loudspeaker parameter configuration method and related apparatus
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

Also Published As

Publication number Publication date
CN112616108B (en) 2023-12-22

Similar Documents

Publication Publication Date Title
US10051368B2 (en) Mobile apparatus and control method thereof
CN1972524B (en) Music file replaying method and apparatus
CN111324196B (en) Memory operation frequency adjusting method and device, storage medium and electronic equipment
US10284943B2 (en) Method and apparatus for adjusting sound field of an earphone and a terminal
US10798516B2 (en) Information processing apparatus and method
CN112616108B (en) Audio output method, device, system, storage medium and electronic equipment
CN113038337B (en) Audio playing method, wireless earphone and computer readable storage medium
KR20200085226A (en) Customized audio processing based on user-specific and hardware-specific audio information
JP2016187141A (en) Information processing apparatus and information processing method of the same
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
US11398242B2 (en) Electronic device for determining noise control parameter on basis of network connection information and operating method thereof
CN112599144B (en) Audio data processing method, audio data processing device, medium and electronic equipment
CN111800699B (en) Volume adjustment prompting method and device, earphone equipment and storage medium
JP2021164109A (en) Sound field correction method, sound field correction program and sound field correction system
CN111739496B (en) Audio processing method, device and storage medium
CN115567831A (en) Method and device for improving tone quality of loudspeaker
US10997984B2 (en) Sounding device, audio transmission system, and audio analysis method thereof
KR20190043052A (en) Method for generating an audio signal using a plurality of speakers and microphones and an electronic device thereof
CN112954548B (en) Method and device for combining sound collected by terminal microphone and headset
JP6952524B2 (en) Recorder, recording method and program for recording
JP2019169864A (en) Vibration device and information apparatus
CN116709154A (en) Sound field calibration method and related device
CN112071291A (en) Low-delay audio processing device, system and method
KR20200107125A (en) E electronic device, method, and computer readable medium for reduced correlation

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