CN113395648B - Sound outlet hole abnormal state detection method and device - Google Patents
Sound outlet hole abnormal state detection method and device Download PDFInfo
- Publication number
- CN113395648B CN113395648B CN202010166689.0A CN202010166689A CN113395648B CN 113395648 B CN113395648 B CN 113395648B CN 202010166689 A CN202010166689 A CN 202010166689A CN 113395648 B CN113395648 B CN 113395648B
- Authority
- CN
- China
- Prior art keywords
- coefficient
- value
- blocking
- current
- frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000002159 abnormal effect Effects 0.000 title claims abstract description 48
- 238000001514 detection method Methods 0.000 title claims abstract description 36
- 230000000903 blocking effect Effects 0.000 claims abstract description 131
- 238000000034 method Methods 0.000 claims abstract description 30
- 230000009467 reduction Effects 0.000 claims description 10
- 230000003321 amplification Effects 0.000 claims description 7
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 7
- 230000002596 correlated effect Effects 0.000 claims description 6
- 230000005856 abnormality Effects 0.000 claims description 5
- 238000004364 calculation method Methods 0.000 claims description 5
- 230000003247 decreasing effect Effects 0.000 claims 2
- 230000001755 vocal effect Effects 0.000 claims 1
- 230000008859 change Effects 0.000 abstract description 5
- 238000012423 maintenance Methods 0.000 abstract description 2
- 238000012545 processing Methods 0.000 description 16
- 238000004891 communication Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 8
- 238000012360 testing method Methods 0.000 description 7
- 230000000875 corresponding effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 230000005236 sound signal Effects 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 238000007726 management method Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000006866 deterioration Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000012535 impurity Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000010287 polarization Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R29/00—Monitoring arrangements; Testing arrangements
- H04R29/001—Monitoring arrangements; Testing arrangements for loudspeakers
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)
- Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)
- Telephone Function (AREA)
Abstract
The disclosure relates to a method and a device for detecting abnormal states of sound outlet holes. The sound outlet abnormal state detection method comprises the following steps: acquiring the resonant frequency and the impedance peak value of the electroacoustic device in the working state; based on the historical blocking coefficient, determining the current blocking coefficient according to the obtained current resonance frequency and the current impedance peak value; judging whether the current blockage coefficient is smaller than a preset blockage threshold value or not; and if the current blockage coefficient is greater than or equal to the blockage threshold value, sending a prompt signal. Through resonant frequency and impedance peak under the control terminal equipment electroacoustic device operating condition to the jam state of real-time feedback sound outlet, when stifled hole, can increase the volume or reduce the volume according to the actual conditions of loudspeaker and prevent the noise, when serious or long-time stifled hole, can indicate the user to clear up or change the maintenance.
Description
Technical Field
The present disclosure relates to the field of audio processing technologies, and in particular, to a sound outlet abnormal state detection method, a sound outlet abnormal state detection apparatus, an electronic device, and a computer-readable storage medium.
Background
Terminal equipment such as cell-phone, panel computer, notebook computer generally all carry out the sound production through electro-acoustic device such as loudspeaker, and electro-acoustic device generally is located terminal equipment's casing inside to protect electro-acoustic device, simultaneously for there being good sound production effect, often set up the sound outlet in the relevant position of casing, the sound that makes electro-acoustic device send can be smooth emits.
In the using process, the sound outlet of the loudspeaker is blocked, in some cases, the sound outlet is temporarily blocked due to user operation or other reasons, for example, hands are placed outside the sound outlet when a user plays a game on a horizontal screen, in some cases, the sound outlet is accumulatively blocked, for example, the sound outlet is blocked by splashed oil or impurities such as dust, the vibration state of the loudspeaker is influenced, and abnormal conditions such as small sound, noise and the like are generated; particularly, with the development of the horn core, the amplitude is larger and smaller, and the magnetic gap is smaller and smaller, so that the noise can be generated by the polarization of the product with small vibration. Moreover, the acoustic hole is blocked, so that the acoustic performance of a cavity surrounded by the shell structure and the electroacoustic device can be changed; this causes a change in the characteristic function of the electroacoustic device, which in turn leads to a deterioration or even a deterioration in the quality of the sound emitted by the electroacoustic device.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a sound outlet abnormal state detection method, a sound outlet abnormal state detection apparatus, an electronic device, and a computer-readable storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for detecting an abnormal state of a sound outlet, including: acquiring the resonant frequency and the impedance peak value of the electroacoustic device in the working state; based on historical blocking coefficients, determining the current blocking coefficients according to the obtained current resonance frequency and the current impedance peak value; judging whether the current blockage coefficient is smaller than a preset blockage threshold value or not; and if the current blockage coefficient is larger than or equal to the blockage threshold value, sending a prompt signal.
In an embodiment, the determining a current jam coefficient according to the obtained current resonant frequency and the current impedance peak value based on the historical jam coefficient includes: judging whether the resonant frequency is smaller than a preset first frequency threshold value or not; if the resonant frequency is greater than or equal to the first frequency threshold, then: judging whether the impedance peak value is smaller than a preset impedance threshold value or not; if the impedance peak is less than the impedance threshold, then: obtaining a historical blocking coefficient, determining an increasing value of the blocking coefficient based on the resonance frequency to obtain a first blocking coefficient, and taking the first blocking coefficient as a current blocking coefficient, wherein the first blocking coefficient is larger than the historical blocking coefficient.
In an embodiment, the method further comprises: if the current blockage coefficient is smaller than the blockage threshold value, adjusting the power of the electroacoustic device according to the resonant frequency, wherein the power is positively correlated with the resonant frequency.
In one embodiment, the first plugging factor is obtained by the following equation:
in the formula, α i Is said first clogging factor, α last Is a historical clogging factor, f i For said resonant frequency, D is a predetermined amplification factor greater than or equal to 1, F 1 In order to be said first frequency threshold value,is the added value.
In an embodiment, the method further comprises: if the resonant frequency is less than the first frequency threshold, then: judging whether the resonance frequency is smaller than a preset second frequency threshold value or not, if so, acquiring a historical blocking coefficient, determining a reduction value of the blocking coefficient to obtain a second blocking coefficient, and taking the second blocking coefficient as the current blocking coefficient, wherein the second blocking coefficient is smaller than the historical blocking coefficient.
In one embodiment, the second clogging factor is obtained by the following equation:
in the formula, α j Is said second clogging coefficient, α last Is a historical clogging factor, R is a preset release factor greater than 1,is the reduced value.
In an embodiment, the terminal device further comprises an intelligent power amplifier; the acquiring of the resonant frequency and the impedance peak value of the electroacoustic device in the working state comprises the following steps: sending an electric signal to the electroacoustic device in a working state through the intelligent power amplifier, and receiving feedback information; determining the resonant frequency and the impedance peak based on the feedback information.
In one embodiment, the cue signal comprises one or more of: voice prompts, light prompts, image prompts or text prompts.
According to a second aspect of the embodiments of the present disclosure, there is provided a sound outlet abnormal state detection apparatus, the apparatus including: the acquisition unit is used for acquiring the resonant frequency and the impedance peak value of the electroacoustic device in the working state; the determining unit is used for determining a current blockage coefficient according to the acquired current resonance frequency and the current impedance peak value based on a historical blockage coefficient; the third judging unit is used for judging whether the current blocking coefficient is smaller than a preset blocking threshold value or not; and the alarm unit is used for sending out a prompt signal when the current blockage coefficient is greater than or equal to the blockage threshold value.
In one embodiment, the determining unit includes: the first judgment unit is used for judging whether the resonance frequency is smaller than a preset first frequency threshold value; the second judging unit is used for judging whether the impedance peak value is smaller than a preset impedance threshold value or not when the resonance frequency is larger than or equal to the first frequency threshold value; and the calculation unit is used for acquiring a historical jam coefficient when the impedance peak value is smaller than the impedance threshold value, determining an increase value of the jam coefficient based on the resonance frequency to obtain a first jam coefficient, and taking the first jam coefficient as the current jam coefficient, wherein the first jam coefficient is larger than the historical jam coefficient.
In one embodiment, the apparatus further comprises: and the power adjusting unit is used for adjusting the power of the electroacoustic device according to the resonant frequency when the current blockage coefficient is smaller than the blockage threshold value, wherein the power is positively correlated with the resonant frequency.
In one embodiment, the first plugging factor is obtained by the following equation:
in the formula, α i Is said first clogging coefficient, α last For historical occlusionNumber f i For said resonant frequency, D is a predetermined amplification factor greater than or equal to 1, F 1 Is the first frequency threshold value of the first frequency,the value is added.
In one embodiment, the apparatus further comprises: the fourth judging unit is used for judging whether the resonant frequency is smaller than a preset second frequency threshold value or not when the resonant frequency is smaller than the first frequency threshold value; the calculation unit is further configured to, when the resonant frequency is smaller than the second frequency threshold, obtain a historical blocking coefficient, determine a reduction value of the blocking coefficient, obtain a second blocking coefficient, and use the second blocking coefficient as the current blocking coefficient, where the second blocking coefficient is smaller than the historical blocking coefficient.
In one embodiment, the second clogging factor is obtained by the following equation:
in the formula, α j Is said second clogging coefficient, α last Is a historical clogging factor, R is a preset release factor greater than 1,is the reduced value.
In an embodiment, the terminal device further comprises an intelligent power amplifier; the acquisition unit is configured to: sending an electric signal to the electroacoustic device in a working state through the intelligent power amplifier, and receiving feedback information; determining the resonant frequency and the impedance peak based on the feedback information.
In one embodiment, the prompt signal sent by the alarm unit includes one or more of the following: voice prompts, light prompts, image prompts or text prompts.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a memory to store instructions; and the processor is used for calling the instructions stored in the memory to execute the sound outlet hole abnormal state detection method of the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium storing instructions that, when executed by a processor, perform the sound outlet abnormality state detection method of the first aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: through resonant frequency and impedance peak under the control terminal equipment electroacoustic device operating condition to the jam state of real-time feedback sound outlet, when stifled hole, can increase the volume or reduce the volume according to the actual conditions of loudspeaker and prevent the noise, when serious or long-time stifled hole, can indicate the user to clear up or change the maintenance.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a method for detecting an abnormal state of a sound outlet according to an exemplary embodiment.
Fig. 2 is a flow chart illustrating another abnormal state detection method for a sound outlet according to an exemplary embodiment.
Fig. 3 is a schematic flow chart illustrating another abnormal state detection method for sound outlet according to an exemplary embodiment.
Fig. 4 is a flow chart illustrating another method for detecting abnormal state of a sound outlet according to an exemplary embodiment.
Fig. 5 is a schematic flow chart illustrating another abnormal state detection method for sound outlet holes according to an exemplary embodiment.
Fig. 6 is a schematic block diagram illustrating a sound outlet abnormal state detection apparatus according to an exemplary embodiment.
Fig. 7 is a schematic block diagram illustrating another abnormal state detection apparatus for a sound outlet according to an exemplary embodiment.
Fig. 8 is a schematic block diagram illustrating another abnormal state detection apparatus for a sound outlet according to an exemplary embodiment.
Fig. 9 is a schematic block diagram illustrating another abnormal state detection apparatus of a sound outlet according to an exemplary embodiment.
FIG. 10 is a schematic block diagram illustrating an apparatus in accordance with an example embodiment.
FIG. 11 is a schematic block diagram illustrating an electronic device in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The present disclosure provides a sound outlet abnormal state detection method 10, which may be used for various terminal devices, such as mobile phones, tablet computers, and the like, where the terminal device may include a casing provided with a sound outlet, and an electroacoustic device located inside the casing for generating sound. Referring to fig. 1, the abnormal state detection method 10 for the sound outlet includes steps S11 to S14, which will be described in detail below:
and S11, acquiring the resonant frequency and the impedance peak value of the electroacoustic device in the working state.
When the sound outlet is blocked, vibration is formed in the inner cavity of the sound outlet to influence vibration of the electroacoustic device such as a loudspeaker, so that in the embodiment of the disclosure, the current state of the sound outlet is reflected by acquiring the resonant frequency and the impedance peak value of the electroacoustic device in the working state in the terminal equipment. Meanwhile, the resonance frequency is increased due to the reduction of the ambient temperature, so that a more accurate conclusion can be obtained based on the comprehensive judgment of the resonance frequency and the impedance peak value.
In an embodiment, the terminal device may further include a Smart Power Amplifier (Smart PA), as shown in fig. 2, step S11 may further include: step S111, sending an electric signal to an electroacoustic device in a working state through an intelligent power amplifier, and receiving feedback information; in step S112, the resonance frequency and the impedance peak are determined based on the feedback information. In this embodiment, the intelligent power amplifier can send an electric signal with a small value before and after sounding the electroacoustic device in a working state, can receive feedback information such as current, and can calculate the resonant frequency and the impedance peak value of the current electroacoustic device based on the feedback information. The electric signal with a small value can be a voltage signal or a current signal, the electric signal is not used for generating an audio signal, but can be used for acquiring feedback information through an intelligent power amplifier, and the resonant frequency and the impedance peak value of the sound hole in the current working state can be conveniently, efficiently and accurately acquired on the premise of not sending a large noise signal.
And S12, based on the historical jamming coefficient, determining the current jamming coefficient according to the acquired current resonant frequency and the current impedance peak value.
The current blocking coefficient is determined according to the current resonant frequency and the impedance peak value obtained in step S11, and by combining with a historical blocking coefficient, where the historical blocking coefficient may be obtained in the previous detection, and is used as the historical blocking coefficient in the current detection, and an initial blocking coefficient may be set, for example, the initial blocking coefficient may be set to 0, and the initial blocking coefficient may be used as the historical blocking coefficient in the first detection. During current detection, based on historical blockage coefficients, the blockage coefficients are updated by acquiring current resonant frequency and impedance peak values, so that the current blockage degree of the sound outlet is reflected.
In one embodiment, as shown in fig. 3, step S12 may include steps 121 to S123:
step S121, determining whether the resonant frequency is smaller than a preset first frequency threshold.
The more severely the vent is clogged, the higher the resonance frequency will be detected relatively. Because different terminal devices and different electroacoustic devices have different models and structures and different inherent resonant frequencies, the value of the first frequency threshold can be calculated according to the resonant frequency of the electroacoustic device measured by calibration test when the electroacoustic device leaves a factory, for example, the value can be calculated according to the following formula (1):
F 1 =t 1 ·f r
wherein, F 1 Is a first frequency threshold; t is t 1 Is a first frequency threshold coefficient and is greater than 1; f. of r And the initial resonant frequency measured by calibration test when the electroacoustic device is delivered.
If the resonant frequency is greater than or equal to the first frequency threshold, step S122 is executed to determine whether the impedance peak is smaller than the preset impedance threshold.
As described above, the resonant frequency may be affected by the ambient temperature, and the degree of clogging of the sound holes is reflected only by the increase of the resonant frequency, and further processing is performed, which may be inaccurate. Therefore, in the embodiment of the present disclosure, when the resonant frequency is determined to be greater than or equal to the first frequency threshold, it is continuously determined whether the impedance peak value is smaller than the impedance threshold, and when the sound outlet is blocked, the impedance peak value is reduced. The initial impedance of the electroacoustic device is also different according to electroacoustic devices of different models and structures, so that the value of the impedance threshold can also be calculated on the basis of the impedance peak value of the electroacoustic device measured by calibration test when the electroacoustic device leaves a factory, for example, the value can be calculated according to the following formula (2):
Z peak =k·Z peak_r
wherein Z is peak Is an impedance threshold; k is an impedance peak threshold coefficient and is less than or equal to 1; z is a linear or branched member peak_r And calibrating and testing the impedance peak value of the electroacoustic device when the electroacoustic device leaves the factory.
If the impedance peak value is smaller than the impedance threshold value, step S123 is executed, that is, a historical blocking coefficient is obtained, an increase value of the blocking coefficient is determined based on the resonant frequency, a first blocking coefficient is obtained, and the first blocking coefficient is used as a current blocking coefficient, where the first blocking coefficient is larger than the historical blocking coefficient.
When the resonance frequency is greater than or equal to the first frequency threshold value, and the impedance peak value is further judged to be smaller than the impedance threshold value, the condition that the sound outlet is blocked is indicated, and further processing is needed. And corresponding treatment is carried out according to the degree of blockage or the time of the blockage. In the above case, an increment is determined based on the acquired resonant frequency, and a new clogging coefficient, i.e., a first clogging coefficient, is obtained by adding an increment to a historical clogging coefficient, wherein the historical clogging coefficient is a clogging coefficient detected and obtained at a previous time. Based on the size of the blocking coefficient, the blocking degree can be conveniently judged, and an alarm can be given under the condition of overlong blocking time.
In one embodiment, the current blockage factor, i.e., the first blockage factor, can be obtained by the following equation (3):
in the formula, α i Is a first clogging coefficient, α last Is a historical clogging factor, f i D is a predetermined amplification factor greater than or equal to 1, F 1 Is a first frequency threshold.I.e. an increased value.
As can be seen from the above equation (3), in the foregoing case, that is, in the case that the resonant frequency is greater than or equal to the first frequency threshold and the impedance peak value is less than the impedance threshold, the currently calculated blocking coefficient is greater than the historical blocking coefficient, that is, in the periodic detection process, as long as the condition that the resonant frequency is greater than or equal to the first frequency threshold and the impedance peak value is less than the impedance threshold is satisfied, the blocking coefficient increases. By the method, the blocking time can be reflected, and the blocking coefficient is continuously accumulated under the condition of long-time blocking, so that corresponding treatment is further carried out.
And S13, judging whether the current blockage coefficient is smaller than a preset blockage threshold value or not.
After the blocking coefficient is updated, whether the current blocking coefficient is smaller than a preset blocking threshold value or not is judged, and therefore different processing is carried out according to different current conditions.
If the current jam coefficient is greater than or equal to the jam threshold value, step S14 is executed, i.e. a prompt signal is sent out.
The current jam coefficient exceeds the jam threshold value, then means this jam is serious, or the time of jam is overlength, needs clear up, can send prompt signal through terminal equipment this moment, and the suggestion user clears up the phonate hole. The prompt signal can comprise one or more of sound prompt, light prompt, image prompt, text prompt and the like, and can also send corresponding information to the terminal equipment server to inform corresponding after-sales service personnel, so that the sound effect is ensured, the electroacoustic device is protected, and better experience is provided for users.
Through the sound outlet abnormal state detection method 10 of any one of the embodiments, the state of the sound outlet can be accurately judged, so that the reminding is performed under the corresponding condition, and the normal use of the terminal equipment is ensured.
In an embodiment, as shown in fig. 4, when it is determined in step S13 that the current blockage coefficient is smaller than the blockage threshold, the sound outlet abnormal state detecting method 10 may further include: and S15, adjusting the power of the electroacoustic device according to the resonant frequency, wherein the power is positively correlated with the resonant frequency.
In this embodiment, step S13 determines that the current blockage coefficient is smaller than the blockage threshold, which indicates that the blockage of the sound outlet is not serious or persistent, and may not be cleaned, but a certain degree of blockage still exists, which may also affect sound output and reduce sound output volume. In this case, step S15 adjusts the power of the electroacoustic device according to the resonance frequency, thereby increasing the sound output volume and reducing the influence of the jam on the sound output volume. And because the more serious the jam is, the higher the volume which needs to be improved, and meanwhile, the more the jam is, the more the corresponding increase of the resonance frequency is, the more the power of the electroacoustic device is adjusted according to the currently acquired resonance frequency as a positive correlation coefficient, so that the obtained sound volume can be reasonably and properly adjusted.
In an embodiment, as shown in fig. 5, when it is determined in step S121 that the resonant frequency is smaller than the first frequency threshold, the sound outlet hole abnormal state detecting method 10 may further include: step S16, judging whether the resonant frequency is smaller than a preset second frequency threshold value; if the resonant frequency is smaller than the second frequency threshold, step S17 is executed, that is, a historical blocking coefficient is obtained, a reduction value of the blocking coefficient is determined, a second blocking coefficient is obtained, and the second blocking coefficient is used as the current blocking coefficient, wherein the second blocking coefficient is smaller than the historical blocking coefficient.
In this embodiment, when it is determined in step S121 that the resonant frequency is smaller than the first frequency threshold, it is described that the current sound outlet is not seriously blocked. Further, step S16 is performed to determine whether the resonant frequency is smaller than a second frequency threshold, where the second frequency threshold is smaller than the first frequency threshold, and the principle is the same as that of determining the first frequency threshold, or the second frequency threshold may be obtained by calculating according to the resonant frequency of the electroacoustic device measured by the calibration test when the electroacoustic device is shipped, for example, the second frequency threshold may be obtained by calculating according to the following formula (4):
F 2 =t 2 ·f r
wherein, F 2 A second frequency threshold; t is t 2 Is a second frequency threshold coefficient, and t 2 <t 1 ;f r And calibrating the resonant frequency of the electroacoustic device measured by testing when the electroacoustic device leaves the factory.
If it is determined in step S16 that the current resonant frequency is smaller than the second frequency threshold, it indicates that the current sound outlet is not blocked or the blocking degree is relatively low, and in this case, the historical blocking coefficient is further adjusted to ensure the recognition result and the reliability of the alarm. The reduction value of the blocking coefficient can be determined according to the current resonance frequency or according to a preset constant, the reduction value is subtracted from the historical blocking coefficient, namely the blocking coefficient obtained by the previous detection calculation, a second blocking coefficient is obtained, and the second blocking coefficient is used as the updated blocking coefficient.
In one embodiment, the second plugging factor may be obtained by the following equation (5):
in the formula, α j Is the second clogging coefficient, alpha last Is a plugging factor, R is a preset release factor greater than 1,i.e. determining a reduction value of the clogging factor. From equation (5), α can be found j Is 0.
The blocking coefficient is reduced under the condition that the current sound outlet is judged not to be blocked or the blocking degree is relatively low, so that the accuracy of alarming is ensured.
The method 10 for detecting abnormal state of sound outlet in the embodiment of the present disclosure may be implemented periodically, that is, a period is set, and when the calculated time reaches the period determined time length, step S11 is executed to obtain the resonant frequency and the impedance peak value of the electroacoustic device and perform the subsequent steps in the method 10 for detecting abnormal state of sound outlet. After the step S14 is executed to send out the alarm signal, or the step S15 is executed to adjust the power of the electroacoustic device according to the resonant frequency, the calculated time may be cleared, and the period may be recalculated. In some cases, if the user cleans the sound outlet according to the alarm signal, the blocking coefficient can be initialized and updated while the periodic time is cleared.
In one embodiment, in the sound outlet abnormal state detecting method 10, the determination of the current clogging coefficient may be expressed by the following formula (6):
wherein alpha is i The current blockage coefficient; alpha is alpha i-1 The historical blocking coefficient is the blocking coefficient detected by the sound hole abnormal state detection method 10 in the previous time; f. of i The current resonance frequency; f. of r Calibrating the resonant frequency of the electroacoustic device measured by testing when the electroacoustic device leaves a factory; thr is a first frequency threshold coefficient; thr.f r A first frequency threshold; d attack A preset amplification factor of greater than or equal to 1; z peak_i Is the current impedance peak; z is a linear or branched member peak_0 Is an impedance threshold; r release A preset release factor greater than 1; tht is a second frequency threshold coefficient, tht · f r Is a second frequency threshold.
It can be seen from equation (6) that the blocking coefficient increases when the currently acquired resonant frequency is greater than or equal to the first frequency threshold and the currently acquired impedance peak is less than the impedance threshold, and the upper limit is 1, that is, the blocking threshold, and the blocking coefficient is equal to 1, an alarm signal is sent. And when the currently acquired resonant frequency is less than or equal to the second frequency threshold, the blockage factor can be correspondingly reduced. The initial value of the clogging coefficient may be set to 0.
Based on the same inventive concept, fig. 6 shows an abnormal sound outlet state detection apparatus 100, which can be applied to a terminal device, where the terminal device includes a casing provided with a sound outlet, and an electroacoustic device located inside the casing for generating sound; the sound outlet abnormal state detection apparatus 100 includes: an obtaining unit 110, configured to obtain a resonant frequency and an impedance peak of the electroacoustic device in a working state; a determining unit 120, configured to determine, based on a historical blocking coefficient, a current blocking coefficient according to the obtained current resonant frequency and the current impedance peak; a third judging unit 130, configured to judge whether the current blocking coefficient is smaller than a preset blocking threshold; and the alarm unit 140 is used for sending out a prompt signal when the current blockage coefficient is greater than or equal to the blockage threshold value.
In one embodiment, as shown in fig. 7, the determining unit 120 includes: a first determining unit 121, configured to determine whether the resonant frequency is smaller than a preset first frequency threshold; a second determining unit 122, configured to determine whether the impedance peak is smaller than a preset impedance threshold when the resonant frequency is greater than or equal to the first frequency threshold; and the calculating unit 123 is configured to, when the impedance peak value is smaller than the impedance threshold value, obtain a historical blocking coefficient, determine an increase value of the blocking coefficient based on the resonance frequency, obtain a first blocking coefficient, and use the first blocking coefficient as a current blocking coefficient, where the first blocking coefficient is greater than the historical blocking coefficient.
In one embodiment, as shown in fig. 8, the sound outlet abnormal state detecting apparatus 100 further includes: and a power adjusting unit 150, configured to adjust the power of the electroacoustic device according to the resonant frequency when the current blockage coefficient is smaller than the blockage threshold, where the power is positively correlated to the resonant frequency.
In one embodiment, the first plugging factor is obtained by the following equation:
in the formula, α i Is a first clogging coefficient, α last Is a historical clogging factor, f i For the resonant frequency, D is a predetermined amplification factor greater than or equal to 1, F 1 In the form of a first frequency threshold value,to increase the value.
In one embodiment, as shown in fig. 9, the sound outlet abnormal state detecting apparatus 100 further includes: a fourth determining unit 160, configured to determine whether the resonant frequency is smaller than a preset second frequency threshold when the resonant frequency is smaller than the first frequency threshold; the calculating unit 123 is further configured to, when the resonant frequency is smaller than the second frequency threshold, obtain a historical blocking coefficient, determine a reduction value of the blocking coefficient, obtain a second blocking coefficient, and use the second blocking coefficient as the current blocking coefficient, where the second blocking coefficient is smaller than the historical blocking coefficient.
In one embodiment, the second plugging factor is obtained by the following equation:
in the formula, α j Is the second clogging coefficient, α last Is a historical clogging factor, R is a preset release factor greater than 1,to reduce the value.
In an embodiment, the terminal device further comprises a smart power amplifier; the obtaining unit 110 is configured to: sending an electric signal to the electroacoustic device in a working state through the intelligent power amplifier, and receiving feedback information; based on the feedback information, the resonant frequency and the impedance peak are determined.
In one embodiment, the alert signal sent by the alarm unit 140 includes one or more of: voice prompts, light prompts, image prompts or text prompts.
With regard to the sound outlet abnormal state detection apparatus 100 in the above-described embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 10 is a schematic block diagram illustrating an apparatus of any of the previous embodiments in accordance with an exemplary embodiment. For example, the apparatus 200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 10, the apparatus 200 may include one or more of the following components: a processing component 202, a memory 204, a power component 206, a multimedia component 208, an audio component 210, an input/output (I/O) interface 212, a sensor component 214, and a communication component 216.
The processing component 202 generally controls overall operation of the device 200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 202 may include one or more processors 220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 202 can include one or more modules that facilitate interaction between the processing component 202 and other components. For example, the processing component 202 can include a multimedia module to facilitate interaction between the multimedia component 208 and the processing component 202.
The memory 204 is configured to store various types of data to support operations at the apparatus 200. Examples of such data include instructions for any application or method operating on the device 200, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 204 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 206 provides power to the various components of the device 200. The power components 206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 200.
The multimedia component 208 includes a screen that provides an output interface between the device 200 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 208 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 200 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 210 is configured to output and/or input audio signals. For example, audio component 210 includes a Microphone (MIC) configured to receive external audio signals when apparatus 200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 204 or transmitted via the communication component 216. In some embodiments, audio component 210 also includes a speaker for outputting audio signals.
The I/O interface 212 provides an interface between the processing component 202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 214 includes one or more sensors for providing various aspects of status assessment for the device 200. For example, the sensor assembly 214 may detect an open/closed state of the device 200, the relative positioning of components, such as a display and keypad of the device 200, the sensor assembly 214 may also detect a change in the position of the device 200 or a component of the device 200, the presence or absence of user contact with the device 200, the orientation or acceleration/deceleration of the device 200, and a change in the temperature of the device 200. The sensor assembly 214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 216 is configured to facilitate wired or wireless communication between the apparatus 300 and other devices. The device 200 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 216 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a computer-readable storage medium comprising instructions, such as memory 204 comprising instructions, executable by processor 220 of apparatus 200 to perform the above-described method is also provided. For example, the computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 11 is a block diagram illustrating an electronic device 300 according to an example embodiment. For example, the apparatus 300 may be provided as a server. Referring to FIG. 11, the apparatus 300 includes a processing component 322, which further includes one or more processors, and memory resources, represented by memory 342, for storing instructions, such as applications, that are executable by the processing component 322. The application programs stored in memory 342 may include one or more modules that each correspond to a set of instructions. Further, the processing component 322 is configured to execute instructions to perform the above-described methods.
The apparatus 300 may also include a power component 326 configured to perform power management of the apparatus 300, a wired or wireless network interface 350 configured to connect the apparatus 300 to a network, and an input/output (I/O) interface 358. The apparatus 300 may operate based on an operating system stored in the memory 342, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (18)
1. A method for detecting abnormal states of sound outlet holes is characterized by comprising the following steps:
acquiring the resonant frequency and the impedance peak value of the electroacoustic device in the working state;
determining an increase value or a decrease value of a blocking coefficient according to the obtained current resonance frequency and the obtained current impedance peak value, and determining the current blocking coefficient based on the historical blocking coefficient and the increase value or the decrease value of the blocking coefficient;
judging whether the current blockage coefficient is smaller than a preset blockage threshold value or not;
and if the current blockage coefficient is larger than or equal to the blockage threshold value, sending a prompt signal.
2. The method for detecting the abnormal state of the sound outlet according to claim 1, wherein the determining the increasing value or the decreasing value of the blocking coefficient according to the obtained current resonance frequency and the current impedance peak value, and the determining the current blocking coefficient based on the historical blocking coefficient and the increasing value or the decreasing value of the blocking coefficient comprises:
judging whether the resonant frequency is smaller than a preset first frequency threshold value or not; if the resonant frequency is greater than or equal to the first frequency threshold, then:
judging whether the impedance peak value is smaller than a preset impedance threshold value or not; if the impedance peak value is smaller than the impedance threshold value, then: obtaining a historical blocking coefficient, determining an increasing value of the blocking coefficient based on the resonance frequency to obtain a first blocking coefficient, and taking the first blocking coefficient as a current blocking coefficient, wherein the first blocking coefficient is larger than the historical blocking coefficient.
3. The method of detecting an abnormal state of a sound outlet according to claim 2, further comprising:
if the current blockage coefficient is smaller than the blockage threshold value, adjusting the power of the electroacoustic device according to the resonant frequency, wherein the power is positively correlated with the resonant frequency.
4. The sound outlet hole abnormal state detecting method according to claim 3, wherein the first clogging coefficient is obtained by the following formula:
5. The method of detecting an abnormal state of a sound outlet according to claim 2, further comprising:
if the resonant frequency is less than the first frequency threshold, then:
judging whether the resonance frequency is smaller than a preset second frequency threshold value, if so, acquiring a historical blocking coefficient, determining a reduction value of the blocking coefficient to obtain a second blocking coefficient, and taking the second blocking coefficient as the current blocking coefficient, wherein the second blocking coefficient is smaller than the historical blocking coefficient.
6. The sound outlet hole abnormal state detecting method according to claim 5, wherein the second clogging coefficient is obtained by the following formula:
7. The method for detecting the abnormal state of the sound outlet hole according to claim 1, wherein the obtaining of the resonant frequency and the impedance peak value in the working state of the electroacoustic device comprises:
sending an electric signal to the electroacoustic device in a working state through an intelligent power amplifier, and receiving feedback information;
determining the resonant frequency and the impedance peak based on the feedback information.
8. The method for detecting the abnormal state of the sound outlet according to claim 1, wherein the prompt signal comprises one or more of the following: voice prompts, light prompts, image prompts or text prompts.
9. An abnormal state detection device for a sound outlet, the device comprising:
the acquisition unit is used for acquiring the resonant frequency and the impedance peak value of the electroacoustic device in the working state;
the determining unit is used for determining an increase value or a decrease value of a blockage coefficient according to the obtained current resonance frequency and the obtained current impedance peak value, and determining the current blockage coefficient based on the historical blockage coefficient and the increase value or the decrease value of the blockage coefficient;
a third judging unit, configured to judge whether the current congestion coefficient is smaller than a preset congestion threshold;
and the alarm unit is used for sending out a prompt signal when the current blockage coefficient is greater than or equal to the blockage threshold value.
10. The sound outlet hole abnormal state detection device according to claim 9, wherein the determination unit includes:
the first judgment unit is used for judging whether the resonance frequency is smaller than a preset first frequency threshold value;
the second judging unit is used for judging whether the impedance peak value is smaller than a preset impedance threshold value or not when the resonance frequency is larger than or equal to the first frequency threshold value;
and the calculation unit is used for acquiring a historical blocking coefficient when the impedance peak value is smaller than the impedance threshold value, determining an increase value of the blocking coefficient based on the resonance frequency to obtain a first blocking coefficient, and taking the first blocking coefficient as the current blocking coefficient, wherein the first blocking coefficient is larger than the historical blocking coefficient.
11. The vent abnormality state detection device according to claim 10, characterized in that the device further comprises:
and the power adjusting unit is used for adjusting the power of the electroacoustic device according to the resonant frequency when the current blockage coefficient is smaller than the blockage threshold value, wherein the power is positively correlated with the resonant frequency.
12. The sound outlet hole abnormal state detecting device according to claim 11, wherein the first clogging coefficient is obtained by the following formula:
13. The vent abnormality state detection device according to claim 10, characterized in that the device further comprises:
a fourth judging unit, configured to judge whether the resonant frequency is smaller than a preset second frequency threshold when the resonant frequency is smaller than the first frequency threshold;
the calculation unit is further configured to, when the resonant frequency is smaller than the second frequency threshold, obtain a historical blocking coefficient, determine a reduction value of the blocking coefficient, obtain a second blocking coefficient, and use the second blocking coefficient as the current blocking coefficient, where the second blocking coefficient is smaller than the historical blocking coefficient.
14. The sound outlet hole abnormal state detecting device according to claim 13, wherein the second clogging coefficient is obtained by the following formula:
15. The sound outlet hole abnormal state detecting device according to claim 9,
the acquisition unit is configured to:
sending an electric signal to the electroacoustic device in a working state through an intelligent power amplifier, and receiving feedback information;
determining the resonant frequency and the impedance peak based on the feedback information.
16. The apparatus according to claim 9, wherein the prompt signal sent by the alarm unit includes one or more of the following: voice prompts, light prompts, image prompts or text prompts.
17. An electronic device, comprising:
a memory to store instructions; and
a processor for invoking the memory-stored instructions to perform the vocal hole abnormality detection method according to any one of claims 1 to 8.
18. A computer-readable storage medium storing instructions that, when executed by a processor, perform the method of sound outlet abnormality state detection according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010166689.0A CN113395648B (en) | 2020-03-11 | 2020-03-11 | Sound outlet hole abnormal state detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010166689.0A CN113395648B (en) | 2020-03-11 | 2020-03-11 | Sound outlet hole abnormal state detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113395648A CN113395648A (en) | 2021-09-14 |
CN113395648B true CN113395648B (en) | 2022-11-18 |
Family
ID=77615363
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010166689.0A Active CN113395648B (en) | 2020-03-11 | 2020-03-11 | Sound outlet hole abnormal state detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113395648B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116944069B (en) * | 2023-05-31 | 2024-09-17 | 湘潭大学 | Lotus seed heart-removing defective product sorting device based on air flow excitation and audio frequency identification |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104244162A (en) * | 2014-10-11 | 2014-12-24 | 广东欧珀移动通信有限公司 | Noise detecting method and device of loudspeaker |
CN106534567A (en) * | 2016-11-30 | 2017-03-22 | 努比亚技术有限公司 | Loudspeaker phonate hole draining apparatus and method and mobile terminal |
CN106851515A (en) * | 2017-03-03 | 2017-06-13 | 广东欧珀移动通信有限公司 | Loudspeaker sound hole blockage detection method and device |
WO2017164380A1 (en) * | 2016-03-25 | 2017-09-28 | ヤマハ株式会社 | Speaker operation confirmation device and method |
CN108063999A (en) * | 2017-11-14 | 2018-05-22 | 维沃移动通信有限公司 | A kind of dust-proof network detecting method, mobile terminal |
CN108307284A (en) * | 2017-12-29 | 2018-07-20 | 青岛海信移动通信技术股份有限公司 | A kind of method, device and mobile terminal of automatic detection loud speaker |
-
2020
- 2020-03-11 CN CN202010166689.0A patent/CN113395648B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104244162A (en) * | 2014-10-11 | 2014-12-24 | 广东欧珀移动通信有限公司 | Noise detecting method and device of loudspeaker |
WO2017164380A1 (en) * | 2016-03-25 | 2017-09-28 | ヤマハ株式会社 | Speaker operation confirmation device and method |
CN106534567A (en) * | 2016-11-30 | 2017-03-22 | 努比亚技术有限公司 | Loudspeaker phonate hole draining apparatus and method and mobile terminal |
CN106851515A (en) * | 2017-03-03 | 2017-06-13 | 广东欧珀移动通信有限公司 | Loudspeaker sound hole blockage detection method and device |
CN108063999A (en) * | 2017-11-14 | 2018-05-22 | 维沃移动通信有限公司 | A kind of dust-proof network detecting method, mobile terminal |
CN108307284A (en) * | 2017-12-29 | 2018-07-20 | 青岛海信移动通信技术股份有限公司 | A kind of method, device and mobile terminal of automatic detection loud speaker |
Also Published As
Publication number | Publication date |
---|---|
CN113395648A (en) | 2021-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101913888B1 (en) | Control device, control method and program | |
US10663081B2 (en) | Method and apparatus for detecting water shortage for humidifier and storage medium | |
CN107493500B (en) | Multimedia resource playing method and device | |
EP3125512A1 (en) | Silent ring indication while listening music over a headset | |
CN113300664B (en) | Method, device and medium for determining motor driving signal | |
CN108462784A (en) | In Call method of adjustment and device | |
CN111009239A (en) | Echo cancellation method, echo cancellation device and electronic equipment | |
CN112817554A (en) | Alert sound control method, alert sound control device, and storage medium | |
CN113395648B (en) | Sound outlet hole abnormal state detection method and device | |
CN110392334B (en) | Microphone array audio signal self-adaptive processing method, device and medium | |
CN109769191B (en) | Audio output detection method and device and electronic equipment | |
CN109729382B (en) | Audio and video data volume processing method and device, server and electronic equipment | |
CN108600503B (en) | Voice call control method and device | |
CN111127846A (en) | Door-knocking reminding method, door-knocking reminding device and electronic equipment | |
CN112887893A (en) | Loudspeaker using method, device and medium | |
CN107677363B (en) | Noise prompting method and intelligent terminal | |
CN105204841A (en) | Measuring range adjusting method and measuring range adjusting device | |
CN115278441A (en) | Voice detection method, device, earphone and storage medium | |
CN107172557B (en) | Method and device for detecting polarity of loudspeaker and receiver | |
CN108491180B (en) | Audio playing method and device | |
CN111694539A (en) | Method, apparatus and medium for switching between earpiece and speaker | |
CN112019677B (en) | Electronic equipment control method and device | |
CN112822330B (en) | Space detection method and device, mobile terminal and storage medium | |
CN115410547B (en) | Audio processing method, device, electronic equipment and storage medium | |
US12126954B2 (en) | Method and apparatus for controlling headphones, headphones and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |