CN112188378A - Electronic equipment sound production optimization method and device and electronic equipment - Google Patents

Electronic equipment sound production optimization method and device and electronic equipment Download PDF

Info

Publication number
CN112188378A
CN112188378A CN202011040009.7A CN202011040009A CN112188378A CN 112188378 A CN112188378 A CN 112188378A CN 202011040009 A CN202011040009 A CN 202011040009A CN 112188378 A CN112188378 A CN 112188378A
Authority
CN
China
Prior art keywords
audio signal
hole
sound
target
parameter
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
CN202011040009.7A
Other languages
Chinese (zh)
Other versions
CN112188378B (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011040009.7A priority Critical patent/CN112188378B/en
Publication of CN112188378A publication Critical patent/CN112188378A/en
Application granted granted Critical
Publication of CN112188378B publication Critical patent/CN112188378B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

The application discloses a method and a device for optimizing sounding of electronic equipment and the electronic equipment, belongs to the technical field of communication, and can solve the problem that the electronic equipment cannot guarantee normal conversation requirements of a user when an acoustic leakage hole is blocked. The method comprises the following steps: the electronic equipment acquires the state information of the acoustic leakage hole through the hole blocking detection device under the condition that the sound generation device outputs a first audio signal according to a first audio parameter; the electronic equipment determines a target audio parameter of the sounding device according to the state information; the electronic equipment controls the sounding device to output the first audio signal according to the target audio parameter.

Description

Electronic equipment sound production optimization method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a sound production optimization method and device for electronic equipment and the electronic equipment.
Background
At present, when a user uses an electronic device to make a call, the electronic device transmits sound to different directions by taking an earphone as a center, so that other users around the user can easily hear the content of the call made by the user, and privacy is leaked. Namely, the privacy leakage problem caused by sound leakage is easy to occur during the user conversation.
In order to solve the above problem, in the related art, in order to improve the problem of sound leakage of the earpiece, a leakage hole (for example, a slit is formed near the camera and serves as the leakage hole) is formed in the back of the electronic device, and meanwhile, a debugging parameter is set in the electronic device, and a sound signal output by the earpiece and a sound signal output by the leakage hole are simultaneously debugged by using the debugging parameter, so that the sound signal output by the earpiece and the sound signal output by the leakage hole cancel each other, and the problem of sound leakage of the earpiece is further improved.
However, since the leakage hole is usually exposed to the external environment, it is easy to get into dust or be blocked by the hand of the user, thereby causing the quality of the sound signal output from the leakage hole to be deteriorated or even the sound signal cannot be output. Therefore, under the condition that the leakage hole is blocked, the sound signal of leakage hole output not only can't solve the sound leakage problem of earphone, still can still use the sound wave signal of originally setting up debugging parameter debugging leakage hole output and the sound wave signal of earphone output still because electronic equipment, lead to the tone quality that the sound signal of earphone output corresponds to seriously worsen, and then lead to the user can't listen to the sound that spreads out of earphone, promptly, electronic equipment can't ensure user's normal conversation demand.
Disclosure of Invention
The embodiment of the application aims to provide a sound production optimization method and device for electronic equipment and the electronic equipment, and the method and device can solve the problems that a user cannot listen to sound transmitted by a receiver and the electronic equipment cannot guarantee normal call requirements of the user under the condition that a leakage hole is blocked.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for optimizing sound production of an electronic device, where the electronic device includes a display screen, a housing, a sound-producing device and a hole blocking detection device, the display screen is connected to the housing and encloses a mounting cavity, the sound-producing device is disposed in the mounting cavity, the sound-producing device separates the mounting cavity into a front sound cavity and a rear sound cavity, an acoustic leakage hole is opened on a first surface of the housing away from the display screen, the acoustic leakage hole is communicated with the rear sound cavity, the hole blocking detection device is disposed in one of the rear sound cavity and the acoustic leakage hole, and the method includes: the electronic equipment acquires the state information of the acoustic leakage hole through the hole blockage detection device under the condition that the sound production device outputs a first audio signal according to a first audio parameter; the electronic equipment determines a target audio parameter of the sounding device according to the state information; the electronic equipment controls the sound generating device to output the first audio signal according to the target audio parameter.
In a second aspect, an embodiment of the present application provides a sound optimization device for an electronic device, where the electronic device includes a display screen, a casing, a sound-generating device and a hole-blocking detection device, the display screen is connected to the casing and encloses the casing to form an installation cavity, the sound-generating device is disposed in the installation cavity, the sound-generating device divides the installation cavity into a front sound cavity and a rear sound cavity, an acoustic leakage hole is formed in a first surface of the casing facing away from the display screen, the acoustic leakage hole is communicated with the rear sound cavity, and the hole-blocking detection device is disposed in one of the rear sound cavity and the acoustic leakage hole; the above-mentioned device includes: the device comprises an acquisition module, a determination module and a control module; the acquisition module is configured to acquire state information of the acoustic leak hole through the hole blockage detection device when the sound generation device outputs a first audio signal according to a first audio parameter; the determining module is configured to determine a target audio parameter of the sound generating device according to the state information acquired by the acquiring module; the control module is configured to control the sound generating device to output the first audio signal according to the target audio parameter determined by the determining module.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In this embodiment of the present application, a hole plugging detection device is disposed in an applied electronic device, and when a sound generation device of the electronic device outputs a first audio signal, the electronic device may obtain state information of the acoustic leakage hole through the hole plugging detection device (for example, the acoustic leakage hole is plugged, or the acoustic leakage hole is not plugged), and then the electronic device may determine a target audio parameter of the sound generation device according to the state information, and finally, the electronic device may control the first audio signal output by the sound generation device of the electronic device using the target audio parameter. So, electronic equipment leaks the signal parameter that the hole sent the sound signal through acquireing above-mentioned acoustics, under the condition that the hole was leaked to the acoustics was blocked up, electronic equipment can in time monitor the present state information of hole was leaked to the acoustics through stifled hole detection device, and then can use the first audio signal degree of the final output of target audio parameter nimble control sound production device that corresponds with state information, make the user all can guarantee the quality of sound signal under any circumstances, make the user can normally listen to the sound that the earphone spreads, guarantee user's normal conversation demand.
Drawings
Fig. 1 is a flowchart illustrating a method for optimizing a sound emission of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of an application of a sound production optimization method of an electronic device according to an embodiment of the present application;
fig. 3 is a second schematic diagram illustrating an application of a sound optimization method for an electronic device according to an embodiment of the present application;
fig. 4 is a third schematic diagram of an application of a sound production optimization method for an electronic device according to an embodiment of the present application;
fig. 5 is a fourth schematic diagram illustrating an application of a sound production optimization method for an electronic device according to an embodiment of the present application;
fig. 6 is a fifth schematic view illustrating an application of a sound production optimization method for an electronic device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a sound production optimization device of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 9 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The nouns appearing in the present application will be explained below:
1. frequency response
The frequency response is a frequency response, and refers to a phenomenon that when an audio signal output at a constant voltage is connected to a system of an electronic device, a sound pressure level generated by the system of the electronic device increases or attenuates with a change in frequency, and a phase changes with the frequency. In the embodiment of the application, the frequency response can be changed by changing the preset frequency response parameter in the electronic device.
2. Loudness
Loudness is the sensation of distinguishing the strength of sound caused by a certain intensity of sound waves acting on human auditory organs. The loudness is not only determined by the physical strength of the sound, but also has a certain relationship with the frequency of the sound. The unit of loudness is Song (song). A pure tone with a frequency of 1000Hz and an intensity of 40dB (sensory level) above the hearing threshold produces a loudness of 1 sone. In general, sound (1000Hz pure tone) increases by 10dB (sound pressure level), with an increase in loudness of about 1 fold.
The method for optimizing the sound production of the electronic device according to the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The method for optimizing the sound production of the electronic equipment can be applied to a scene that a user uses the electronic equipment with the acoustic leakage hole arranged on the back of the electronic equipment for conversation.
For the above call scenario, it is assumed that a user uses an electronic device with an acoustic leak hole at the back of the electronic device to make a call. When a user uses the electronic device, when the earphone of the electronic device outputs the sound signal 1, a part of the sound signal may leak from the earphone to a direction other than the direction of the ear of the user, that is, a sound leakage signal corresponding to the earphone, and at the same time, the electronic device also outputs a part of the sound signal 2 from the acoustic leakage hole. Since the acoustic leak hole at the back of the electronic device communicates with the internal space of the electronic device, a cavity is formed. Before the electronic equipment manufacturer leaves the factory, the electronic equipment manufacturer can test and debug the sound signal 2 transmitted by the cavity and the sound signal 1 output by the receiver, a sound signal parameter A is set for the sound signal 1 and the sound signal 2, the sound signal parameter A can enable the sound signal 1 to correspond to the sound leakage signal and the sound signal 2 to be mutually offset, for example, when the signal amplitude of the sound signal 1 is at a wave peak, the signal amplitude of the sound signal 2 can be at a wave trough, and therefore the sound signal leakage can be mutually offset, and therefore the sound leakage signal can be well reduced or even eliminated. However, in the above process, if the user's finger accidentally blocks the acoustic leakage hole, or the dust entering the acoustic leakage hole is blocked, when the electronic device still uses the acoustic signal parameter a to debug the acoustic signal 1 and the acoustic signal 2, since both the signal amplitude and the signal frequency of the acoustic signal 2 will change, not only the sound leakage signal from the earphone cannot be eliminated, but also the electronic device uses the acoustic signal a to debug the acoustic signal 1, and further, the tone quality of the debugged acoustic signal a output by the earphone will also be seriously degraded, even the user cannot use the electronic device to make a normal call.
In the embodiment of the present application, a hole blockage detection device is disposed in an applied electronic device, and when a receiver of the electronic device outputs a sound signal 1, the electronic device may obtain state information of the acoustic leakage hole in advance through the hole blockage detection device, that is, obtain whether the hole blockage detection device is in a blocked state or an unblocked state in advance. Then, the electronic device may determine, according to the state information of the acoustic leak, an audio parameter matched with the state information, and further determine a target audio parameter used by the earpiece. And finally, the electronic equipment debugs the sound signal 1 according to the target audio parameter and controls the receiver to output the debugged sound signal 1. So, electronic equipment leaks the status information in hole through the judgement acoustics, leaks under the condition that the hole plugged up at the acoustics, and electronic equipment can in time monitor the change that the signal parameter that the hole sent sound signal 2 is leaked to the acoustics, and then can confirm the target audio parameter that uses when the sound signal 1 of earphone output, makes the user all can guarantee the quality of sound signal 1 under any circumstance, makes the user can normally listen to the sound that the earphone spreads, ensures user's normal conversation demand.
The embodiment provides a sound production optimization method of electronic equipment, the electronic equipment that this embodiment was used includes the display screen, a housing, sound production device and stifled hole detection device, above-mentioned display screen is connected with above-mentioned casing and encloses and close and form the installation cavity, above-mentioned sound production device sets up in above-mentioned installation cavity, above-mentioned sound production device separates above-mentioned installation cavity for preceding sound chamber and back sound chamber, above-mentioned casing deviates from the first surface of above-mentioned display screen and has seted up acoustics and leaked the hole, above-mentioned acoustics leaks the hole and is linked together with above-mentioned back sound chamber, be provided with above-mentioned stifled hole detection device in one of above-mentioned back sound chamber and above-mentioned acoustics leakage hole, this electronic equipment's sound production optimization method includes following step 301:
step 301: the sound production optimizing device of the electronic equipment obtains the state information of the acoustic leakage hole through the hole blocking detection device under the condition that the sound production device outputs a first audio signal according to a first audio parameter.
In the embodiment of the present application, the sound generating device may be used in an electronic device for outputting a sound signal. In one example, the sound generating device may be a receiver of an electronic device.
In an embodiment of the present application, the first audio signal may be a sound signal output by a sound generating device of an electronic device.
In an example, the sound signal output by the sound generating device may be a sound signal corresponding to the sound information output by the sound generating device during the call when the electronic device starts a call mode, or a sound signal corresponding to the sound information output by the sound generating device when the electronic device plays the sound information in the chat software.
In this embodiment, the first audio parameter may be a parameter that is pre-stored in the electronic device and used for debugging the first audio signal, thereby preventing the first audio signal from being leaked.
It should be noted that, the front sound cavity of the electronic device is communicated with the receiver, and after the sound generating device outputs the first audio signal according to the first audio parameter, the first audio signal is transmitted from the receiver to the ear of the user through the front sound cavity. Because the first audio signal is a sound signal which can be normally listened to by human ears, the propagation of the first audio signal does not have the directional positioning function, but the first audio signal is transmitted to all directions and positions, so that the sound signal which is not directly transmitted to the ears of the user generates a sound leakage signal corresponding to the first audio signal in the air around the earphone. Meanwhile, in the process that the first audio signal is transmitted to all directions, a part of the audio signal can be transmitted to the rear sound cavity in the electronic equipment and is output through the acoustic leakage hole.
It can be understood that, under the condition that the acoustic leakage hole is not blocked, the first audio signal sent by the first audio parameter through the acoustic device is debugged, so that the audio signal output by the earphone and the audio signal output by the acoustic leakage hole can be mutually offset, and then the sound leakage phenomenon is reduced or even eliminated.
In this embodiment, the hole plugging detection device may be configured to detect current state information of the acoustic leakage hole.
In the embodiment of the present application, the state information may be a state in which the acoustic leak hole is blocked or a state in which the acoustic leak hole is not blocked.
In the embodiment of the present application, since the hole plugging detection device is disposed near the acoustic leakage hole in a normal condition, when the second audio signal is emitted from the acoustic leakage hole, the hole plugging detection device can timely obtain the state information of the acoustic leakage hole according to the acoustic signal leaked from the acoustic leakage hole.
Step 302: and the sound production optimization device of the electronic equipment determines the target audio parameters of the sound production device according to the state information.
In this embodiment of the present application, after the sound production optimization device of the electronic device obtains the state information of the acoustic leak, an audio parameter matched with the state information is determined, where the audio parameter is a target audio parameter.
It should be noted that, in two different states, that is, when the acoustic leakage hole is blocked and unblocked, the sound production optimization device of the electronic device can adjust the first audio signal emitted by the sound production device through two different audio parameters. Under the condition that the acoustic leakage hole is not blocked, after a sound production optimization device of the electronic equipment uses an audio parameter matched with the unblocked state to debug a first audio signal emitted by a sound production device, the audio signal transmitted backwards by an earphone of the first audio signal and the audio signal transmitted by the acoustic leakage hole of the first audio signal can be mutually counteracted; under the condition that acoustics leak hole blockked up, the first audio signal that the audio parameter debugging sound production device that electronic equipment's vocal optimization device used and matches with the jam state sent can ensure that first audio signal can be accepted for the user's ear by the audio signal that the earphone spreads, the audio signal that can hear clearly, and then can guarantee this audio signal quality.
Optionally, in this embodiment of the application, the target audio parameter includes a target frequency response parameter and a target gain parameter, and the target gain parameter includes a compensation gain and a suppression gain.
In this embodiment, the frequency response may be a sound pressure level distribution range corresponding to each frequency point of the sound signal.
In this embodiment of the application, the target frequency response parameter may be a sound pressure level distribution range corresponding to each frequency point of the predetermined first audio signal, that is, the electronic device provides the sound pressure level corresponding to the first audio signal through the target frequency response parameter. For example, the predetermined target frequency response parameter may be-10 dB to 20dB, and when the frequency response of the first audio signal exceeds the target frequency response parameter, the frequency response of the first audio signal should be adjusted according to the target frequency response parameter. In this way, by setting the target frequency response range, the sound received by the user can be made within an acceptable range.
In this embodiment of the present application, the target gain parameter may be used to adjust loudness corresponding to different frequency points in the sound signal. It will be appreciated that in addition to maintaining the sound pressure level within an acceptable range for the user during the listening of voice messages or calls by the user using the handset, the loudness of the sound signal should be prevented from changing abruptly, e.g., suddenly changing, which also greatly affects the actual listening experience of the user. Therefore, the target gain parameter can enable the sound signal to fluctuate more smoothly in the frequency range corresponding to the target frequency response parameter, and generally, the electronic device can smooth the peak or the trough which appears suddenly in the sound pressure level.
For example, when the loudness of the first audio signal is lower than the predetermined loudness, the loudness may be increased using the compensation gain, and when the loudness of the first audio signal is higher than the predetermined loudness, the loudness may be decreased using the throttle gain, so that the loudness of the first audio signal that the electronic device transmits from the front sound cavity is always within the range of loudness suitable for listening by the user.
In this embodiment of the present application, the target frequency response parameter and the target gain parameter may be preset by an electronic device or may be set by a user in a user-defined manner, which is not limited in this embodiment of the present application.
Step 303: and the sound production optimization device of the electronic equipment controls the sound production device to output the first audio signal according to the target audio parameter.
In an embodiment of the present application, the target audio parameters include: the frequency response of the target frequency of the first audio signal and the loudness of the first audio signal.
Illustratively, by adjusting the frequency response, the first audio signal can be within a relatively smooth sound pressure level distribution range, and the sound level received by the ear of the user can be within an acceptable range.
Illustratively, the loudness refers to: and sound pressure levels corresponding to all frequency points of the electronic equipment. In the process of first audio signal propagation, sound signal can produce the harmonic wave in the preceding sound cavity at some frequency points to make the sound pressure level grow suddenly, through adjusting loudness, can make the too big part of sound pressure level reduce in the first audio signal, also make the too big part of loudness weaken, make the sound that user's ear received not too sharp. On the contrary, the sound signal may suddenly become smaller at some frequency points, and by adjusting the loudness, the part of the first audio signal with too small sound pressure level may be increased, that is, the part with too small loudness is enhanced.
In the embodiment of the application, the electronic device may preset a predetermined frequency response and a predetermined loudness, determine a predetermined distribution range of the sound pressure level, and then adjust the distribution range corresponding to the first audio signal exceeding the predetermined distribution range to be within the predetermined distribution range according to the distribution range of the sound pressure level corresponding to each frequency point of the first audio signal. Then, the electronic device may adjust the sound pressure levels corresponding to the frequency points exceeding the predetermined loudness and being lower than the predetermined loudness in the adjusted first audio signal, specifically, the electronic device may use a filter to compensate the positive gain for the sound pressure level corresponding to the frequency point with insufficient loudness, adjust the loudness, reduce the loudness to a normal loudness matched with the front and rear loudness, and may also use a filter to compensate the negative gain for the sound pressure level corresponding to the frequency point with excessively high loudness, and improve the loudness to a normal loudness matched with the front and rear loudness.
According to the sound production optimization method of the electronic equipment, the electronic equipment is provided with the hole blocking detection device, under the condition that the sound production device of the electronic equipment outputs the first audio signal, the sound production optimization device of the electronic equipment can acquire state information of the acoustic leakage hole through the hole blocking detection device (for example, the leakage hole is blocked or the leakage hole is not blocked), then the electronic equipment can determine the target audio parameter of the sound production device according to the state information, and finally, the sound production optimization device of the electronic equipment can control the first audio signal output by the sound production device of the electronic equipment by using the target audio parameter. So, the sound production optimizing apparatus of electronic equipment is through obtaining the signal parameter that above-mentioned acoustics leaks the hole and sends sound signal, under the circumstances that acoustics leaks the hole and is blockked up, the sound production optimizing apparatus of electronic equipment can in time monitor the present state information of acoustics leakage hole through stifled hole detection device, and then can use the first audio signal degree of the final output of target audio parameter flexible control sound production device that corresponds with state information, make the user all can guarantee sound signal's quality under any circumstances, make the user can normally listen to the sound that the earphone spreads, ensure user's normal conversation demand.
Optionally, in this embodiment of the application, the hole blockage detecting device may be three different hole blockage detecting devices, and different hole blockage detecting devices may use different detection methods, so as to determine the state information of the acoustic leakage hole.
First plugged hole detection device:
for example, in the case that the hole blockage detection device is a microphone disposed at the back of the electronic device and around the acoustic leak hole, the step 301 may include the following steps 301a1 to 301a 3:
step 301a 1: and the sound production optimization device of the electronic equipment acquires a second frequency of a second audio signal output through the acoustic leakage hole and acquires a second loudness of the second audio signal through the microphone.
Step 301a 2: a sound production optimization device of the electronic equipment acquires a target loudness corresponding to the second frequency;
step 301a 3: and the sound production optimization device of the electronic equipment determines the state information of the acoustic leakage hole according to the second loudness and the target loudness.
Illustratively, as shown in fig. 2, the microphone 31 is on the back of the electronic device, around the acoustic leak hole 32.
Illustratively, the second audio signal may be an audio signal leaked by the acoustic leak hole.
For example, the target loudness may be a preset loudness preset by the electronic device, and when the acoustic leak hole is not blocked, the preset loudness corresponds to the frequency of the second audio signal.
In one example, the target loudness may be pre-stored in the electronic device in a list corresponding to the frequencies, where the list may be obtained by simulation in a laboratory before the electronic device leaves a factory, that is, when the loudness corresponding to the second frequency matches the target loudness, it may be determined that the state information of the acoustic leak hole is in an unblocked state, otherwise, the state information of the acoustic leak hole is in a blocked state.
It should be noted that the target loudness information may be a threshold range corresponding to a second frequency of the second audio signal, and the loudness corresponding to the second frequency in matching with the target loudness information may be a loudness corresponding to a frequency of the second audio signal within the threshold range.
Therefore, the electronic equipment acquires the loudness corresponding to different frequencies of the second audio signal through the microphone and compares the loudness with the target loudness at the frequency, so that the state information of the acoustic leakage hole is accurately determined, the audio parameter matched with the state information is used for controlling the sound production device to output the first audio signal, and the signal quality of the first audio signal listened by a user is guaranteed.
A second plugged hole detection device:
for example, in the case that the hole blockage detecting device is an acceleration sensor disposed on a battery cover of the electronic device, the step 301 may include the following steps 301b1 to 301b 3:
step 301b 1: the sound production optimization device of the electronic device acquires a second frequency of the second audio signal output through the acoustic leakage hole, and acquires second amplitude information of the second audio signal output through the acoustic leakage hole through the acceleration sensor.
Step 301b 2: the sound emission optimization device of the electronic device acquires target amplitude information corresponding to the second frequency.
Step 301b 3: and the sound production optimization device of the electronic equipment determines the state information of the acoustic leakage hole according to the second amplitude information and the target amplitude information.
Illustratively, as shown in fig. 3, the acceleration sensor 41 is in communication with a sound guide hole corresponding to the acoustic leak hole inside the electronic device.
For example, the second frequency of the second audio signal may refer to the foregoing description, and is not described herein again.
For example, the acceleration sensor may be disposed inside the battery cover.
It should be noted that, when the hole blockage detection device is an acceleration sensor disposed on the battery cover of the electronic device, when the sound generation device generates a first audio signal, a part of the audio signal in the first audio signal needs to pass through the sound guide groove in the process of entering the rear sound cavity, and when the part of the audio signal passes through the sound guide groove, the part of the audio signal may cause the battery cover to vibrate, the vibration corresponds to amplitude information, different frequencies of the part of the audio signal correspond to different amplitude information, and the part of the audio signal finally generates a second audio signal, so that different frequencies of the second audio signal may also correspond to different amplitude information.
Illustratively, the target amplitude information is amplitude information corresponding to the second frequency, which is preset in advance by the electronic device when the acoustic leakage hole is not blocked.
In one example, the target amplitude information may be pre-stored in the electronic device in a list corresponding to the frequency, and the list may be obtained by analog simulation in a laboratory before the electronic device leaves a factory. That is, when the amplitude corresponding to the second frequency matches the target amplitude information, it may be determined that the state information of the acoustic leak hole is not in a blocked state, otherwise, the state information of the acoustic leak hole is in a blocked state.
The target amplitude information may be a threshold range corresponding to a second frequency, and the amplitude corresponding to the second frequency may be within the threshold range when matching the target amplitude information.
Example 1: under the condition that the hole blocking detection device is an acceleration sensor arranged on a battery cover of the electronic equipment, after an acoustic leakage hole is blocked, because a back sound cavity is in a closed state, airflow cannot smoothly flow out, so that internal sound pressure is high, further, the frequency spectrum component of the second audio signal is remarkably changed, the resonance frequency moves towards a high-frequency direction, namely, air in a sound guide groove of the back sound cavity is in a closed state, the battery cover cannot start to vibrate, amplitude information corresponding to the battery cover is remarkably reduced, the amplitude information of the battery cover corresponding to the second audio signal is reduced by about 20% compared with target amplitude information under the same frequency, and further, the state information of the acoustic leakage hole can be determined through the remarkably reduced difference.
Therefore, the electronic equipment acquires the amplitude information corresponding to different frequencies of the second audio signal through the acceleration sensor, the amplitude information is compared with the target amplitude information under the frequencies, and the acceleration sensor is placed inside the battery cover, so that the acceleration sensor is not interfered by external noise, and the state information of the acoustic leakage hole can be accurately determined, so that the audio parameter matched with the state information is used for controlling the sound generating device to output the first audio signal, and the signal quality of the first audio signal listened by a user is guaranteed.
Third plugged hole detection device:
for example, in the case that the hole blockage detection device is a barometric pressure sensor disposed in the sound guide groove of the rear sound cavity, the step 301 may include the following steps 301c1 to 301c 3:
step 301c 1: the sound production optimizing device of the electronic equipment obtains a second frequency of a second audio signal output through the acoustic leakage hole, and obtains second air pressure information of the sound guide groove when the second audio signal passes through the sound guide groove of the rear sound cavity through the air pressure sensor.
Step 301c 2: a sound production optimization device of the electronic equipment acquires target air pressure information corresponding to the second frequency;
step 301c 3: and the sound production optimization device of the electronic equipment determines the state information of the acoustic leakage hole according to the second air pressure information and the target air pressure information.
Illustratively, when the air pressure sensor is arranged in the sound guide groove of the rear sound cavity, when the sound guide groove transmits the second audio signal at a certain frequency, the air pressure change condition of the second audio signal is different under two different conditions that the state information of the acoustic leakage hole is blocked or unblocked.
Illustratively, as shown in fig. 4, the air pressure sensor 51 is arranged inside the electronic device and in the sound guide groove of the back sound cavity.
For example, the target air pressure information may be pre-stored in the electronic device in a form of a list corresponding to the frequency, where the list may be obtained by simulation in a laboratory before the electronic device leaves a factory, that is, when the air pressure information corresponding to the second frequency is matched with the target air pressure information, it may be determined that the state information of the acoustic leak hole is not in a blocked state, otherwise, the state information of the acoustic leak hole is in a blocked state.
The target air pressure information may be a threshold range corresponding to a second frequency, and the air pressure corresponding to the second frequency may be within the threshold range when the air pressure corresponding to the second frequency is matched with the target air pressure information.
In one example, in the case where the hole clogging detection means is a pressure sensor disposed in the sound guide groove of the rear sound chamber, the sound pressure of the rear sound chamber of the second audio signal can be increased by 20dB on average after the acoustic leak hole is clogged, and therefore, the pressure sensor can easily detect the state information of clogging of the leak hole.
Further, the air pressure sensor can be communicated with the outside through the leakage hole. Therefore, under the state that the leakage hole is not blocked, the air pressure sensor can be used as a conventional air pressure meter for obtaining the ambient air pressure, and the functions of the electronic equipment are enriched.
Therefore, the electronic equipment acquires the air pressure information corresponding to different frequencies of the second audio signal through the air pressure sensor, compares the air pressure information with the target air pressure information under the frequencies, and can accurately determine the state information of the acoustic leakage hole, so that the audio parameter matched with the state information is used for controlling the sound production device to output the first audio signal, and the signal quality of the first audio signal listened to by the user is guaranteed.
Optionally, in this embodiment of the present application, in the step 302, the method for optimizing sound emission of an electronic device according to this embodiment of the present application may further include the following step a1 or step a 2:
step A1: and the sound production optimization device of the electronic equipment takes the first audio parameter as the target audio parameter under the condition that the signal parameter of the second audio signal corresponding to the acoustic leakage hole is smaller than a preset threshold value.
Illustratively, the first audio parameter is an adjustment parameter in the case where the acoustic leak hole is not clogged.
Step A2: and the sound production optimization device of the electronic equipment takes the second parameter as the target audio parameter when the signal parameter of the second audio signal corresponding to the acoustic leakage hole is greater than or equal to the preset threshold value.
Illustratively, the second parameter is a tuning parameter at which the acoustic leak hole is plugged.
For example, the first parameter and the second parameter may be preset by the electronic device, or may be set by a user in a self-defined manner.
For example, the first parameter may be an optimal listening effect that can be obtained by a user after the electronic device debugs the first audio signal by using the parameter when the acoustic leakage hole is not blocked; the second parameter may be an optimal listening effect that a user can obtain after the electronic device uses the parameter to debug the first audio signal when the acoustic leakage hole is blocked.
For example, the predetermined threshold may be preset by the electronic device, or may be set by a user in a self-defined manner, which is not limited in the embodiment of the present application.
For example, the predetermined threshold may include a correspondence threshold between any sound frequency and sound amplitude in the second audio signal, where the correspondence threshold may be stored in the electronic device in a preset mapping relationship. For example, it can be preset in the electronic device that when the sound frequency is 100HZ, the sound amplitude is 20 dB; when the sound frequency is 200HZ, the sound amplitude is 40 dB; when the sound frequency is 400HZ, the sound amplitude is 50 dB; when the sound frequency is 800HZ, the sound amplitude is 65 dB.
In one example, when a signal parameter (i.e., a signal amplitude corresponding to any signal frequency of the second audio signal) of the second audio signal acquired by the electronic device is smaller than the predetermined threshold, it may be determined that the acoustic leak hole is not blocked, and the first audio signal is adjusted using the first parameter.
In another example, when a signal parameter (i.e., a signal amplitude corresponding to any signal frequency of the second audio signal) of the second audio signal acquired by the electronic device is greater than or equal to the predetermined threshold, it may be determined that the acoustic leak hole is not blocked, and the first audio signal is adjusted using the second parameter.
It can be understood that, as shown in fig. 5, which illustrates a variation of the second audio signal obtained by the microphone at the back of the electronic device and around the acoustic leak hole during the conversation of the electronic device when the acoustic leak hole of the electronic device is blocked and unblocked, wherein, when the acoustic leak hole is unblocked, the second audio signal corresponds to curve 1; when the acoustic leak hole is blocked, the second audio signal corresponds to curve 2. Compared with the curve 1, the curve 2 shows that the attenuation of the low-frequency part corresponding to the second audio signal is obvious, the sound pressure level corresponding to the frequency point of the low frequency band is obviously reduced, meanwhile, the corresponding relation between the frequency of the second audio signal and the sound pressure level is also obviously changed, the curve 2 intersects with the curve 1, the curve 2 obviously moves to the left, and the distribution trend of the frequency and the sound pressure level in the curve 2 is obviously changed.
Example 2: under the condition that the acoustic leakage hole is not blocked, after the electronic device receives a second audio signal transmitted by the acoustic leakage hole and received by a microphone on the back of the electronic device and around the acoustic leakage hole, if the electronic device detects that the sound pressure levels corresponding to different frequencies of the second audio signal are smaller than a predetermined threshold, the electronic device can determine that the first parameter can be used as an adjusting parameter (i.e., the target audio parameter) to adjust the first audio signal output by a receiver (i.e., the sound generating device).
Example 3: under the condition that the acoustic leakage hole is blocked, after the electronic device receives a second audio signal transmitted by the acoustic leakage hole and received by a microphone on the back of the electronic device and around the acoustic leakage hole, if the electronic device detects that the sound pressure levels corresponding to different frequencies of the second audio signal are greater than a predetermined threshold, the electronic device may determine that the second parameter is used as an adjustment parameter (i.e., the target audio parameter) to adjust a first audio signal output by a receiver (i.e., the sound generating device).
Therefore, when the acoustic leakage hole is blocked, the electronic equipment can determine the adopted target audio parameter by judging the relation between the second audio signal transmitted by the acoustic leakage hole and the preset threshold value, so that under the condition that the acoustic leakage hole is blocked, the tone quality of the sound signal output by the sound production device can be ensured, and the efficiency of using the electronic equipment by a user is improved.
Optionally, in this embodiment of the present application, before the step 301, the method for optimizing sound emission of an electronic device provided in this embodiment of the present application may further include the following steps B1 and B2:
step B1: the sound production optimizing device of the electronic equipment acquires the first time and the second time.
For example, the first time is a time when the sound generating device outputs an initial audio signal, and the second time is a time when the hole blockage detecting device receives a target audio signal corresponding to the initial audio signal.
Step B2: and the sound production optimizing device of the electronic equipment determines the signal source of the target audio signal according to the first time and the second time.
For example, the target audio signal is the first audio signal or the second audio signal, the first audio signal is a signal output by the earphone from the initial audio signal, and the second audio signal is a signal output by the initial audio signal through the acoustic leak hole.
Illustratively, the initial audio signal may be a sound signal output by a receiver.
The signal source may be, for example, an earpiece or an acoustic leak.
For example, in a normal condition, after the sound generating device emits the initial audio signal, since the sound propagation direction is non-concentrated, the initial audio signal is output by the earpiece through the front sound cavity, and after the first audio signal is formed, the hole blockage detecting device may also receive the first audio signal. At the same time, the hole blockage detection device will also receive the second audio signal. The second time of the first audio signal and the second time of the second audio signal received by the hole blockage detection device are different for the initial audio signal sent out at the same time. As shown in fig. 6, taking the hole blockage detection device as the back microphone as an example, since the transmission path of the first audio signal is longer than that of the second audio signal, the second time when the target audio signal is the first audio signal is later than that when the target audio signal is the second audio signal. Therefore, the electronic equipment can judge whether the signal source received by the hole plugging detection device is output by the receiver or output by the acoustic leakage hole according to the first time and the second time.
It should be noted that, for the initial audio signal sent by the sound generating device at the same time, the signal amplitude variation between the first audio signal and the second audio signal received by the hole blocking detecting device and matched with the initial audio signal is basically the same, so that when the electronic device processes the first audio signal and the second audio signal received by the hole blocking detecting device internally, the matching and comparison can be automatically performed, and then the first audio signal and the second audio signal at the same time can be accurately distinguished.
Therefore, the electronic equipment can judge which are the second audio signals through receiving different time of the same audio signal, so that the second audio signals are analyzed, and whether the acoustic leakage hole is blocked or not can be accurately judged.
Optionally, in this embodiment of the present application, in the step B2, the method for optimizing sound emission of an electronic device provided in this embodiment of the present application may include the following steps C1 to C3:
step C1: and the sound production optimization device of the electronic equipment acquires the time difference between the first time and the second time.
Step C2: and the sound production optimization device of the electronic equipment determines the target audio signal to be the second audio signal under the condition that the time difference is smaller than or equal to the time preset threshold value.
Step C3: and the sound production optimization device of the electronic equipment determines the target audio signal to be the first audio signal under the condition that the time difference is greater than the time preset threshold value.
For example, the time preset threshold may be pre-stored in the electronic device.
For example, the time preset threshold may be preset by the electronic device, or may be user-defined.
For example, since the difference between the second time and the first time corresponding to the first audio signal is significantly longer than the difference between the second time and the first time corresponding to the second audio signal, the target audio signal received by the hole blockage detection device may be determined to be the first audio signal or the second audio signal by comparing the time difference between the first time and the second time with a preset time threshold.
Therefore, after the electronic equipment accurately judges and receives the second audio signal in the target audio signal, whether the acoustic leakage hole is blocked or not can be accurately judged, and then the first audio signal is adjusted by using different parameters, so that the tone quality of the user listening to the voice from the receiver is ensured.
In the sound production optimization method for the electronic device according to the embodiment of the present application, the execution subject may be a sound production optimization apparatus of the electronic device, or a control module in the sound production optimization apparatus of the electronic device, for executing the sound production optimization method for the electronic device. The embodiment of the present application takes a method for executing sound production optimization of an electronic device by using a sound production optimization device of the electronic device as an example, and describes the sound production optimization device of the electronic device provided in the embodiment of the present application.
Fig. 7 is a schematic structural diagram of a possible sound production optimization device for implementing an electronic device according to an embodiment of the present application. As shown in fig. 7, the sound production optimization device of the electronic device is applied to the electronic device, the electronic device comprises a display screen, a housing, a sound production device and a hole blocking detection device, the display screen is connected with the housing and encloses to form a mounting cavity, the sound production device is arranged in the mounting cavity, the sound production device separates the mounting cavity into a front sound cavity and a rear sound cavity, an acoustic leakage hole is formed in a first surface of the housing, which deviates from the display screen, the acoustic leakage hole is communicated with the rear sound cavity, and the hole blocking detection device is arranged in one of the rear sound cavity and the acoustic leakage hole. The sound production optimization apparatus 600 of the electronic device includes: an acquisition module 601, a determination module 602 and a control module 603; the obtaining module 601 is configured to obtain the state information of the acoustic leak hole through the hole blockage detecting device when the sound generating device outputs a first audio signal according to a first audio parameter; the determining module 602 is configured to determine a target audio parameter of the sound generating device according to the state information; the control module 603 is configured to control the sound generating device to output the first audio signal according to the target audio parameter.
The embodiment of the application provides a sound production optimizing apparatus for an electronic device, a hole blocking detection device is arranged in an applied electronic device, and under the condition that a receiver of the sound production optimizing apparatus for the electronic device outputs a first audio signal, the sound production optimizing apparatus for the electronic device can acquire state information (for example, a leakage hole is blocked or the leakage hole is not blocked) of the acoustic leakage hole through the hole blocking detection device, and then the sound production optimizing apparatus for the electronic device can determine a target audio parameter of the sound production device according to the state information, and finally, the sound production optimizing apparatus for the electronic device can use the target audio parameter to control the first audio signal output by the sound production device of the electronic device. So, the sound production optimizing apparatus of electronic equipment is through obtaining the signal parameter that above-mentioned acoustics leaks the hole and sends sound signal, under the circumstances that acoustics leaks the hole and is blockked up, the sound production optimizing apparatus of electronic equipment can in time monitor the present state information of acoustics leakage hole through stifled hole detection device, and then can use the first audio signal degree of the final output of target audio parameter flexible control sound production device that corresponds with state information, make the user all can guarantee sound signal's quality under any circumstances, make the user can normally listen to the sound that the earphone spreads, ensure user's normal conversation demand.
Optionally, in this embodiment of the application, the target audio parameter includes a target frequency response parameter and a target gain parameter, and the target gain parameter includes a compensation gain and a suppression gain.
Optionally, in this embodiment of the application, in a case that the hole blockage detection device is a microphone disposed on the back of the electronic device and around the acoustic leakage hole, the obtaining module 601 is specifically configured to obtain a frequency of a second audio signal output through the acoustic leakage hole, and obtain a second loudness of the second audio signal through the microphone; the obtaining module 601 is specifically configured to obtain a target loudness corresponding to the second frequency obtained by the obtaining module 601; the determining module 602 is specifically configured to determine the state information of the acoustic leakage holes according to the second loudness acquired by the acquiring module 601 and the target loudness.
Optionally, in this embodiment of the application, in a case that the hole blockage detection device is an acceleration sensor disposed on a battery cover of the electronic device, the obtaining module 601 is specifically configured to obtain a second frequency of a second audio signal output through the acoustic leakage hole, and obtain second amplitude information of the second audio signal output through the acoustic leakage hole through the acceleration sensor; the obtaining module 601 is specifically configured to obtain target amplitude information corresponding to the second frequency obtained by the obtaining module 601; the determining module 602 is specifically configured to determine the state information of the acoustic leak according to the second amplitude information and the target amplitude information acquired by the acquiring module 601.
Optionally, in this embodiment of the application, in a case that the hole blockage detection device is an air pressure sensor disposed in the sound guiding groove of the rear sound cavity, the obtaining module 601 is specifically configured to obtain a second frequency of a second audio signal output through the acoustic leakage hole, and obtain, by the air pressure sensor, second air pressure information of the sound guiding groove when the second audio signal passes through the sound guiding groove of the rear sound cavity; the obtaining module is specifically configured to obtain target air pressure information corresponding to the second frequency obtained by the obtaining module 601; the determining module 602 is specifically configured to determine the state information of the acoustic leak according to the second air pressure information and the target air pressure information acquired by the acquiring module 601.
Optionally, in this embodiment of the application, the determining module 602 is specifically configured to, when a signal parameter of the second audio signal corresponding to the acoustic leak is smaller than a predetermined threshold, take the first audio parameter as the target audio parameter; the determining module 602 is further specifically configured to take the second audio parameter as the target audio parameter when the signal parameter of the second audio signal corresponding to the acoustic leak is greater than or equal to the predetermined threshold; the first audio parameter is an adjusting parameter when the state information of the acoustic leakage hole is not blocked, and the second audio parameter is an adjusting parameter when the state information of the acoustic leakage hole is blocked.
Optionally, in this embodiment of the application, the obtaining module 601 is further configured to obtain a first time and a second time, where the first time is a time when the sound generating device outputs an initial audio signal, and the second time is a time when the hole blockage detecting device receives a target audio signal corresponding to the initial audio signal; the determining module 602 is further configured to determine a signal source of the target audio signal according to the first time and the second time, where the target audio signal is the first audio signal or the second audio signal, the first audio signal is a signal output by the sound generating device from the initial audio signal, and the second audio signal is a signal output by the acoustic leak from the initial audio signal from the obtaining module 601.
Optionally, in this embodiment of the application, the obtaining module 601 is specifically configured to obtain a time difference between the first time and the second time; the determining module 602 is specifically configured to determine that the target audio signal is a second audio signal corresponding to the acoustic leak hole when the time difference obtained by the obtaining module is smaller than or equal to the preset time threshold; and determining the target audio signal as the first audio signal when the time difference is larger than the preset time threshold.
The sound production optimization device of the electronic device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The sound production optimization device of the electronic device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The sound production optimization device of the electronic device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 6, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 8, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the embodiment of the sound production optimization method for an electronic device, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110. Wherein the user input unit 107 includes: touch panel 1071 and other input devices 1072, display unit 106 including display panel 1061, input unit 104 including image processor 1041 and microphone 1042, memory 109 may be used to store software programs (e.g., an operating system, application programs needed for at least one function), and various data.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The electronic device 100 comprises a display screen, a shell, a sounding device and a hole blockage detection device, wherein the display screen is connected with the shell and encloses to form a mounting cavity, the sounding device is arranged in the mounting cavity, the sounding device divides the mounting cavity into a front sound cavity and a rear sound cavity, an acoustic leakage hole is formed in a first surface of the shell, which is far away from the display screen, and communicated with the rear sound cavity, and the hole blockage detection device is arranged in one of the rear sound cavity and the acoustic leakage hole; a processor 110, configured to obtain state information of the acoustic leak hole through the hole blockage detection device when the sound generation device outputs a first audio signal according to a first audio parameter; the processor 110 is further configured to determine a target audio parameter of the sound generating device according to the state information; the processor 110 is further configured to control the sound generating device to output the first audio signal according to the target audio parameter.
The application provides an electronic device, be provided with the stifled hole detection device in the electronic device who uses, under the circumstances that the sound production device of this electronic device exported first audio signal, electronic device can obtain the state information of above-mentioned acoustics leakage hole through this stifled hole detection device (for example, the leakage hole is stopped up, or the leakage hole is not stopped up), then this electronic device can be according to this state information, confirm the target audio parameter of this sound production device, finally, this electronic device can use the first audio signal of the sound production device output of this target audio parameter control electronic device. So, electronic equipment leaks the signal parameter that the hole sent the sound signal through acquireing above-mentioned acoustics, under the condition that the hole was leaked to the acoustics was blocked up, electronic equipment can in time monitor the present state information of hole was leaked to the acoustics through stifled hole detection device, and then can use the first audio signal degree of the final output of target audio parameter nimble control sound production device that corresponds with state information, make the user all can guarantee the quality of sound signal under any circumstances, make the user can normally listen to the sound that the earphone spreads, guarantee user's normal conversation demand.
Optionally, in a case that the hole blockage detection device is a microphone disposed at a back of the electronic device and around the acoustic leakage hole, the processor 110 is specifically configured to obtain a second frequency of a second audio signal output through the acoustic leakage hole, and obtain a second loudness of the second audio signal through the microphone; the processor 110 is further specifically configured to obtain a target loudness corresponding to the second frequency; the processor 110 is further specifically configured to determine state information of the acoustic leak holes according to the second loudness and the target loudness.
Optionally, in a case that the hole blockage detection device is an acceleration sensor disposed on a battery cover of the electronic device, the processor 110 is specifically configured to obtain a second frequency of the second audio signal output through the acoustic leakage hole, and obtain second amplitude information of the second audio signal output through the acoustic leakage hole through the acceleration sensor; the processor 110 is further specifically configured to obtain target amplitude information corresponding to the second frequency; the processor 110 is further specifically configured to determine status information of the acoustic leak hole according to the second amplitude information and the target amplitude information.
Optionally, in a case that the hole blockage detection device is an air pressure sensor disposed in the sound guiding groove of the rear sound cavity, the processor 110 is specifically configured to obtain a second frequency of a second audio signal output through the acoustic leakage hole, and obtain, by the air pressure sensor, second air pressure information of the sound guiding groove when the second audio signal passes through the sound guiding groove of the rear sound cavity; the processor 110 is further specifically configured to obtain target air pressure information corresponding to the second frequency; the processor 110 is further specifically configured to determine status information of the acoustic leak hole according to the second air pressure information and the target air pressure information.
Optionally, the processor 110 is specifically configured to, when a signal parameter of the second audio signal corresponding to the acoustic leak is smaller than a predetermined threshold, take the first audio parameter as the target audio parameter; a processor 110, specifically configured to take the second audio parameter as the target audio parameter when the signal parameter of the second audio signal corresponding to the acoustic leak is greater than or equal to the predetermined threshold; the first audio parameter is an adjusting parameter when the acoustic leakage hole is not blocked, and the second audio parameter is an adjusting parameter when the acoustic leakage hole is blocked.
Optionally, the processor 110 is further configured to obtain a first time and a second time, where the first time is a time when the sound generating device outputs an initial audio signal, and the second time is a time when the hole blockage detecting device receives a target audio signal corresponding to the initial audio signal; the processor 110 is further configured to determine a signal source of the target audio signal according to the first time and the second time, where the target audio signal is the first audio signal or the second audio signal, the first audio signal is a signal output by the earphone from the initial audio signal, and the second audio signal is a signal output by the acoustic leak from the initial audio signal.
Optionally, the processor 110 is specifically configured to obtain a time difference between the first time and the second time; a processor 110, configured to determine that the target audio signal is the second audio signal corresponding to the acoustic leak when the time difference is smaller than or equal to the preset time threshold; the processor 110 is specifically configured to determine that the target audio signal corresponding to the acoustic leak is the first audio signal when the time difference is greater than the preset time threshold.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the sound production optimization method for an electronic device, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is configured to run a program or an instruction, implement each process of the embodiment of the sound production optimization method for the electronic device, and achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (18)

1. The utility model provides an electronic equipment's sound production optimization method, its characterized in that, electronic equipment includes display screen, casing, sound production device and stifled hole detection device, the display screen with the casing is connected and encloses and close and form the installation cavity, sound production device set up in the installation cavity, sound production device will the installation cavity is separated for preceding sound chamber and back sound chamber, the casing deviates from acoustics exposure hole has been seted up on the first surface of display screen, acoustics exposure hole with back sound chamber is linked together, back sound chamber with one in the acoustics exposure hole is provided with stifled hole detection device, the method includes:
acquiring state information of the acoustic leakage hole through the hole blockage detection device under the condition that the sounding device outputs a first audio signal according to a first audio parameter;
determining a target audio parameter of the sounding device according to the state information;
and controlling the sounding device to output the first audio signal according to the target audio parameter.
2. The method of claim 1, wherein the target audio parameters comprise a target frequency response parameter and a target gain parameter, and wherein the target gain parameter comprises a compensation gain and a suppression gain.
3. The method of claim 1, wherein in a case where the hole blockage detection device is a microphone disposed at a back of the electronic device around the acoustic leak hole, the obtaining of the state information of the acoustic leak hole by the hole blockage detection device comprises:
obtaining a second frequency of a second audio signal output through the acoustic leak hole and obtaining a second loudness of the second audio signal by the microphone;
acquiring a target loudness corresponding to the second frequency;
and determining state information of the acoustic leakage holes according to the second loudness and the target loudness.
4. The method according to claim 1, wherein in a case where the hole blockage detection means is an acceleration sensor provided on a battery cover of the electronic device, the acquiring of the state information of the acoustic leakage hole by the hole blockage detection means includes:
acquiring a second frequency of a second audio signal output through the acoustic leakage hole, and acquiring second amplitude information of the second audio signal output through the acoustic leakage hole by the acceleration sensor;
acquiring target amplitude information corresponding to the second frequency;
and determining the state information of the acoustic leakage hole according to the second amplitude information and the target amplitude information.
5. The method according to claim 1, wherein in the case where the hole blockage detection means is a barometric sensor disposed in a sound guide groove of the back sound chamber, the acquiring of the state information of the acoustic leak hole by the hole blockage detection means includes:
acquiring a second frequency of a second audio signal output through the acoustic leakage hole, and acquiring second air pressure information of a sound guide groove when the second audio signal passes through the sound guide groove of the rear sound cavity through the air pressure sensor;
acquiring target air pressure information corresponding to the second frequency;
and determining the state information of the acoustic leakage hole according to the second air pressure information and the target air pressure information.
6. The method of claim 1, wherein determining the target audio parameter that matches the signal parameter comprises:
taking the first audio parameter as the target audio parameter when the signal parameter of the second audio signal corresponding to the acoustic leak is smaller than a predetermined threshold value;
taking a second audio parameter as the target audio parameter when a signal parameter of a second audio signal corresponding to the acoustic leak is greater than or equal to the predetermined threshold;
the first audio parameter is an adjusting parameter when the state information of the acoustic leakage hole is not blocked, and the second audio parameter is an adjusting parameter when the state information of the acoustic leakage hole is blocked.
7. The method according to claim 1, wherein before acquiring the state information of the acoustic leak hole outputting the second audio signal by the hole clogging detection means, the method further comprises:
acquiring first time and second time, wherein the first time is the time when an initial audio signal is output by a sound generating device, and the second time is the time when a target audio signal corresponding to the initial audio signal is received by a hole blocking detection device;
and determining a signal source of the target audio signal according to the first time and the second time, wherein the target audio signal is the first audio signal or the second audio signal, the first audio signal is a signal output by the initial audio signal through the sound generating device, and the second audio signal is a signal output by the initial audio signal through the acoustic leak hole.
8. The method of claim 7, wherein determining the target audio signal received by the hole blockage detection device based on the first time and the second time comprises:
acquiring a time difference between the first time and the second time;
determining that the target audio signal is the second audio signal corresponding to the acoustic leak hole when the time difference is smaller than or equal to the preset time threshold;
and determining the target audio signal as the first audio signal when the time difference is larger than the time preset threshold value.
9. The utility model provides an electronic equipment's sound production optimizing apparatus, a serial communication port, electronic equipment includes display screen, casing, sound production device and stifled hole detection device, the display screen with the casing is connected and encloses and close and form the installation cavity, sound production device set up in the installation cavity, sound production device will the installation cavity is separated for preceding sound chamber and back sound chamber, the casing deviates from acoustics exposure hole has been seted up on the first surface of display screen, acoustics exposure hole with back sound chamber is linked together, back sound chamber with acoustics is provided with in one in the exposure hole stifled hole detection device, the device includes: the device comprises an acquisition module, a determination module and a control module;
the acquisition module is used for acquiring the state information of the acoustic leakage hole through the hole blockage detection device under the condition that the sounding device outputs a first audio signal according to a first audio parameter;
the determining module is used for determining a target audio parameter of the sound generating device according to the state information acquired by the acquiring module;
the control module is used for controlling the sounding device to output the first audio signal according to the target audio parameter determined by the determination module.
10. The apparatus of claim 9, wherein the target audio parameters comprise a target frequency response parameter and a target gain parameter, and wherein the target gain parameter comprises a compensation gain and a suppression gain.
11. The apparatus of claim 9, wherein, in the case where the hole blockage detection device is a microphone disposed on the back of the electronic device around the acoustic leak hole,
the acquiring module is specifically configured to acquire a frequency of a second audio signal output through the acoustic leakage hole, and acquire a second loudness of the second audio signal through the microphone;
the obtaining module is specifically further configured to obtain a target loudness corresponding to the second frequency obtained by the obtaining module;
the determining module is specifically configured to determine the state information of the acoustic leak hole according to the second loudness acquired by the acquiring module and the target loudness.
12. The apparatus according to claim 1, wherein in the case where the hole clogging detection means is an acceleration sensor provided on a battery cover of the electronic device,
the acquiring module is specifically configured to acquire a second frequency of the second audio signal output through the acoustic leakage hole, and acquire, by the acceleration sensor, second amplitude information of the second audio signal output through the acoustic leakage hole;
the acquisition module is specifically configured to acquire target amplitude information corresponding to the second frequency acquired by the acquisition module;
the determining module is specifically configured to determine state information of the acoustic leak according to the second amplitude information and the target amplitude information acquired by the acquiring module.
13. The apparatus according to claim 9, wherein in the case where the hole blockage detecting means is a gas pressure sensor disposed in a sound guide groove of the rear sound chamber,
the acquisition module is specifically configured to acquire a second frequency of a second audio signal output through the acoustic leakage hole, and acquire, by the air pressure sensor, second air pressure information of the sound guiding groove when the second audio signal passes through the sound guiding groove of the rear sound cavity;
the acquisition module is specifically configured to acquire target air pressure information corresponding to the second frequency acquired by the acquisition module;
the determining module is specifically configured to determine state information of the acoustic leak according to the second air pressure information and the target air pressure information acquired by the acquiring module.
14. The apparatus of claim 9,
the determining module is specifically configured to take a first audio parameter as the target audio parameter when a signal parameter of the second audio signal corresponding to the acoustic leak is smaller than a predetermined threshold;
the determining module is specifically further configured to take a second audio parameter as the target audio parameter when a signal parameter of a second audio signal corresponding to the acoustic leak is greater than or equal to the predetermined threshold;
the first audio parameter is an adjusting parameter when the state information of the acoustic leakage hole is not blocked, and the second audio parameter is an adjusting parameter when the state information of the acoustic leakage hole is blocked.
15. The apparatus of claim 9,
the acquisition module is further configured to acquire a first time and a second time, where the first time is a time when the receiver outputs an initial audio signal, and the second time is a time when the hole blockage detection device receives a target audio signal corresponding to the initial audio signal;
the determining module is further configured to determine a signal source of the target audio signal according to the first time and the second time, where the target audio signal is the first audio signal or the second audio signal, the first audio signal is a signal output by the sound generating device from the initial audio signal, and the second audio signal is a signal output by the acoustic leak hole from the initial audio signal.
16. The apparatus of claim 15,
the obtaining module is specifically configured to obtain a time difference between the first time and the second time;
the determining module is specifically configured to determine that the target audio signal is the second audio signal corresponding to the acoustic leak hole when the time difference obtained by the obtaining module is smaller than or equal to the preset time threshold; and determining the target audio signal as the first audio signal when the time difference is larger than the time preset threshold value.
17. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the sound production optimization method of the electronic device according to any one of claims 1-8.
18. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the sound production optimization method of an electronic device according to any one of claims 1-8.
CN202011040009.7A 2020-09-28 2020-09-28 Sound production optimization method and device of electronic equipment, electronic equipment and readable storage medium Active CN112188378B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011040009.7A CN112188378B (en) 2020-09-28 2020-09-28 Sound production optimization method and device of electronic equipment, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011040009.7A CN112188378B (en) 2020-09-28 2020-09-28 Sound production optimization method and device of electronic equipment, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112188378A true CN112188378A (en) 2021-01-05
CN112188378B CN112188378B (en) 2021-08-17

Family

ID=73944666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011040009.7A Active CN112188378B (en) 2020-09-28 2020-09-28 Sound production optimization method and device of electronic equipment, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112188378B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1511039A1 (en) * 2003-08-25 2005-03-02 LG Electronics Inc. Apparatus and method for adjusting output level of audio data to be reproduced
DE102004047069A1 (en) * 2004-09-28 2006-04-06 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Device and method for changing a segmentation of an audio piece
CN102202137A (en) * 2011-07-04 2011-09-28 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and call tone quality regulation method thereof
GB201409952D0 (en) * 2014-06-05 2014-07-16 Nokia Corp An apparatus and method for providing an apparatus comprising an audio transducer
CN104505111A (en) * 2014-11-27 2015-04-08 东莞宇龙通信科技有限公司 Terminal and terminal sound playing method
US20170111739A1 (en) * 2015-06-26 2017-04-20 Compal Electronics, Inc. Method and portable electronic apparatus for adaptively adjusting playback effect of speakers
CN106851515A (en) * 2017-03-03 2017-06-13 广东欧珀移动通信有限公司 Speaker voice giving hole plug detection method and device
CN106878885A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 Electronic installation and the detection method based on air pressure
CN106878865A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 The control method and control device of electroacoustic component
CN107071119A (en) * 2017-04-26 2017-08-18 维沃移动通信有限公司 A kind of sound removing method and mobile terminal
CN107835482A (en) * 2017-10-17 2018-03-23 广东欧珀移动通信有限公司 Detection method, device and the electronic equipment of sound leakage rate
EP3451700A1 (en) * 2017-08-28 2019-03-06 "BOCORE" GmbH Device for reproducing an audio signal
CN110166587A (en) * 2019-04-24 2019-08-23 维沃移动通信有限公司 A kind of mobile terminal
CN111314837A (en) * 2020-02-19 2020-06-19 上海闻泰信息技术有限公司 Anti-blocking method, device, equipment and storage medium for sound outlet of sound production device
CN111614823A (en) * 2020-05-19 2020-09-01 深圳传音控股股份有限公司 Screen sounding and external sounding compatible method, device, equipment and storage medium

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1511039A1 (en) * 2003-08-25 2005-03-02 LG Electronics Inc. Apparatus and method for adjusting output level of audio data to be reproduced
DE102004047069A1 (en) * 2004-09-28 2006-04-06 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. Device and method for changing a segmentation of an audio piece
CN102202137A (en) * 2011-07-04 2011-09-28 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and call tone quality regulation method thereof
GB201409952D0 (en) * 2014-06-05 2014-07-16 Nokia Corp An apparatus and method for providing an apparatus comprising an audio transducer
CN104505111A (en) * 2014-11-27 2015-04-08 东莞宇龙通信科技有限公司 Terminal and terminal sound playing method
US20170111739A1 (en) * 2015-06-26 2017-04-20 Compal Electronics, Inc. Method and portable electronic apparatus for adaptively adjusting playback effect of speakers
CN106851515A (en) * 2017-03-03 2017-06-13 广东欧珀移动通信有限公司 Speaker voice giving hole plug detection method and device
CN106878885A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 Electronic installation and the detection method based on air pressure
CN106878865A (en) * 2017-03-03 2017-06-20 广东欧珀移动通信有限公司 The control method and control device of electroacoustic component
CN107071119A (en) * 2017-04-26 2017-08-18 维沃移动通信有限公司 A kind of sound removing method and mobile terminal
EP3451700A1 (en) * 2017-08-28 2019-03-06 "BOCORE" GmbH Device for reproducing an audio signal
CN107835482A (en) * 2017-10-17 2018-03-23 广东欧珀移动通信有限公司 Detection method, device and the electronic equipment of sound leakage rate
CN110166587A (en) * 2019-04-24 2019-08-23 维沃移动通信有限公司 A kind of mobile terminal
CN111314837A (en) * 2020-02-19 2020-06-19 上海闻泰信息技术有限公司 Anti-blocking method, device, equipment and storage medium for sound outlet of sound production device
CN111614823A (en) * 2020-05-19 2020-09-01 深圳传音控股股份有限公司 Screen sounding and external sounding compatible method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李晓荣: ""压电扬声器的设计特点和应用"", 《中国西部声学学术交流会论文集》 *

Also Published As

Publication number Publication date
CN112188378B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
JP6903148B2 (en) Off-head detection for in-ear headsets
CN105280195B (en) The processing method and processing device of voice signal
CN113676803A (en) Active noise reduction method and device
US9992568B2 (en) Method and apparatus for audio playback
US12014716B2 (en) Method for reducing occlusion effect of earphone, and related apparatus
US20230008818A1 (en) Sound masking method and apparatus, and terminal device
CN109086027B (en) Audio signal playing method and terminal
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
CN207652638U (en) Earphone
CN114040285B (en) Method and device for generating feedforward filter parameters of earphone, earphone and storage medium
WO2022252781A1 (en) Noise reduction control method, electronic device, and computer-readable storage apparatus
CN111770404A (en) Recording method, recording device, electronic equipment and readable storage medium
CN110517711A (en) Playback method, device, storage medium and the electronic equipment of audio
CN112394901A (en) Audio output mode adjusting method and device and electronic equipment
CN112822001B (en) Control method of electronic equipment and electronic equipment
CN112188378B (en) Sound production optimization method and device of electronic equipment, electronic equipment and readable storage medium
CN110098843B (en) Signal transmission method and device and electronic equipment
CN115038009B (en) Audio control method, wearable device and electronic device
CN109658945B (en) Howling prevention method, howling prevention device, electronic equipment and storage medium
WO2022199354A1 (en) Call volume adjustment method and apparatus, and terminal and storage medium
CN113824838B (en) Sounding control method and device, electronic equipment and storage medium
CN105472128A (en) Call control method and call control device
CN115225998A (en) Earphone noise reduction method and device, earphone equipment and computer readable storage medium
CN109819118B (en) Volume adjusting method and mobile terminal
CN113905124A (en) Audio control method, electronic equipment and audio playing system

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