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, thestep 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, themicrophone 31 is on the back of the electronic device, around theacoustic 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, thestep 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, theacceleration 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, thestep 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, theair 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 thestep 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 thestep 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 soundproduction optimization apparatus 600 of the electronic device includes: anacquisition module 601, adetermination module 602 and acontrol module 603; the obtainingmodule 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 determiningmodule 602 is configured to determine a target audio parameter of the sound generating device according to the state information; thecontrol 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 obtainingmodule 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 obtainingmodule 601 is specifically configured to obtain a target loudness corresponding to the second frequency obtained by the obtainingmodule 601; the determiningmodule 602 is specifically configured to determine the state information of the acoustic leakage holes according to the second loudness acquired by the acquiringmodule 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 obtainingmodule 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 obtainingmodule 601 is specifically configured to obtain target amplitude information corresponding to the second frequency obtained by the obtainingmodule 601; the determiningmodule 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 acquiringmodule 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 obtainingmodule 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 obtainingmodule 601; the determiningmodule 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 acquiringmodule 601.
Optionally, in this embodiment of the application, the determiningmodule 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 determiningmodule 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 obtainingmodule 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 determiningmodule 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 obtainingmodule 601.
Optionally, in this embodiment of the application, the obtainingmodule 601 is specifically configured to obtain a time difference between the first time and the second time; the determiningmodule 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, anelectronic device 700 is further provided in this embodiment of the present application, and includes aprocessor 701, amemory 702, and a program or an instruction stored in thememory 702 and executable on theprocessor 701, where the program or the instruction is executed by theprocessor 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.
Theelectronic device 100 includes, but is not limited to: aradio frequency unit 101, anetwork module 102, anaudio output unit 103, aninput unit 104, asensor 105, adisplay unit 106, auser input unit 107, aninterface unit 108, amemory 109, and aprocessor 110. Wherein theuser input unit 107 includes:touch panel 1071 andother input devices 1072,display unit 106 includingdisplay panel 1061,input unit 104 includingimage processor 1041 andmicrophone 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 theelectronic 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 theprocessor 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.
Theelectronic 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; aprocessor 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; theprocessor 110 is further configured to determine a target audio parameter of the sound generating device according to the state information; theprocessor 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, theprocessor 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; theprocessor 110 is further specifically configured to obtain a target loudness corresponding to the second frequency; theprocessor 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, theprocessor 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; theprocessor 110 is further specifically configured to obtain target amplitude information corresponding to the second frequency; theprocessor 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, theprocessor 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; theprocessor 110 is further specifically configured to obtain target air pressure information corresponding to the second frequency; theprocessor 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, theprocessor 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; aprocessor 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, theprocessor 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; theprocessor 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, theprocessor 110 is specifically configured to obtain a time difference between the first time and the second time; aprocessor 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; theprocessor 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, theinput Unit 104 may include a Graphics Processing Unit (GPU) 1041 and amicrophone 1042, and theGraphics 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. Thedisplay unit 106 may include adisplay panel 1061, and thedisplay panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. Theuser input unit 107 includes atouch panel 1071 andother input devices 1072. Thetouch panel 1071 is also referred to as a touch screen. Thetouch 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. Thememory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. Theprocessor 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 theprocessor 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.