Sealing performance detection method and device, and electronic equipment
By playing pink noise audio, the microphone collects signals and processes them, and obtains energy measurement indicators, the problem of microphone sealing performance detection is solved, and an efficient and unblocked detection method is achieved, which improves detection accuracy and efficiency.
Patent Information
- Application Number
- CN202110302700.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-22
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2041-03-22
AI Technical Summary
In the prior art, the detection of microphone sealing performance of electronic devices is difficult, especially when blocking the edge area of the microphone, the detection environment and scenario requirements are complex, resulting in increased detection difficulty.
By playing pink noise audio, the microphone collects sound signals, filters out noise floor signals, performs signal processing to obtain energy measurement indicators, and compares them with preset thresholds to determine the sealing performance of the microphone.
There is no need to block the microphone, reduce detection difficulty, accurately judge the sealing performance of the microphone, and improve detection efficiency and accuracy.
Smart Images

Figure CN115119127B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a sealing performance detection method and device, and an electronic device. Background Art
[0002] Electronic devices are usually equipped with one or more microphones to collect sounds outside the electronic device. For example, the user's call voice can be collected, and then the call collected by the microphone is sent to the other communication device after noise reduction and other related processing to realize the call. For another example, the user's voice can also be collected, noise reduced and modulated into a digital signal for storage. Summary of the Invention
[0003] The present disclosure provides a sealing performance detection method and device, and an electronic device to address the deficiencies in the related art.
[0004] According to a first aspect of an embodiment of the present disclosure, a method for detecting sealing performance is provided, which is applied to an electronic device. The method includes:
[0005] Get the sound signal collected by the microphone based on the pink noise audio played;
[0006] Filtering out the background noise signal in the sound signal to obtain the effective pink noise signal;
[0007] Performing signal processing on the pink noise effective signal to obtain an energy measurement index of the pink noise effective signal;
[0008] The sealing performance of the microphone is determined according to a comparison result of the energy measurement index and a preset threshold.
[0009] Optionally, obtaining a sound signal collected by a microphone based on the played pink noise audio includes:
[0010] Controlling the speaker or earpiece of the electronic device to play the pink audio;
[0011] Control the microphone to collect the sound signal.
[0012] Optionally, filtering out the background noise signal in the sound signal to obtain the effective noise signal includes:
[0013] filtering out background noise signals below a first preset frequency by high-pass filtering to obtain a sound signal to be processed;
[0014] The pink noise effective signal is intercepted and obtained according to the amplitude of the sound signal to be processed and the amplitude of the pink noise audio.
[0015] Optionally, the performing signal processing on the pink noise effective signal to obtain an energy measurement index of the pink noise effective signal includes:
[0016] Performing Fourier transform on the effective pink noise signal to obtain an intermediate signal;
[0017] Performing integration and summation processing on the intermediate signal to obtain the energy measurement index.
[0018] Optionally, the electronic device includes a sound module, and the sound module plays the pink audio;
[0019] The performing integration and summing processing on the intermediate signal to obtain the energy measurement index includes:
[0020] When the pink audio is played through the sound module of the closed cavity, the signals in all frequency bands below the second preset frequency are integrated and summed to obtain an energy measurement index;
[0021] When the pink audio is played through the sound module with an open cavity, the signals in all frequency bands of the intermediate signal are integrated and summed to obtain an energy measurement index.
[0022] Optionally, the energy measurement indicator includes sound output power and / or sound loudness.
[0023] Optionally, determining the sealing performance of the microphone according to a comparison result of the energy measurement indicator and a preset threshold value includes:
[0024] When the energy measurement indicator is greater than the preset threshold, the microphone is leaking.
[0025] Optionally, determining the sealing performance of the microphone according to a comparison result of the energy measurement indicator and a preset threshold value includes:
[0026] When the energy measurement index is greater than the preset threshold, the leakage amount of the microphone is searched according to the energy measurement index and a preset mapping relationship, where the preset mapping relationship includes a corresponding relationship between the energy measurement index and the leakage amount.
[0027] According to a second aspect of an embodiment of the present disclosure, a sealing performance detection device is provided, which is applied to an electronic device, and the detection device includes:
[0028] The first acquisition module acquires the sound signal collected by the microphone based on the played pink noise audio;
[0029] The second acquisition module filters out the background noise signal in the sound signal to obtain the effective pink noise signal;
[0030] a third acquisition module, performing signal processing on the pink noise effective signal to obtain an energy measurement index of the pink noise effective signal;
[0031] A determination module determines the sealing performance of the microphone according to a comparison result of the energy measurement index and a preset threshold.
[0032] Optionally, the first acquisition module includes:
[0033] A first control unit controls a speaker or earpiece of the electronic device to play the pink audio;
[0034] The second control unit controls the microphone to collect the sound signal.
[0035] Optionally, the second acquisition module includes:
[0036] The first processing unit filters out background noise signals below a first preset frequency through high-pass filtering to obtain a sound signal to be processed;
[0037] The second processing unit intercepts and obtains the pink noise effective signal according to the amplitude of the sound signal to be processed and the amplitude of the pink noise audio.
[0038] Optionally, the third acquisition module includes:
[0039] a third processing unit, performing Fourier transform on the pink noise effective signal to obtain an intermediate signal;
[0040] The fourth processing unit performs integration and summation processing on the intermediate signal to obtain the energy measurement index.
[0041] Optionally, the electronic device includes a sound module, and the sound module plays the pink audio;
[0042] The third processing unit includes:
[0043] The first processing sub-unit integrates and sums the signals in all frequency bands below the second preset frequency to obtain an energy measurement index when the pink noise audio is played through the sound module of the closed cavity;
[0044] The second processing sub-unit, when playing the pink audio through the sound module with an open cavity, integrates and sums the signals in all frequency bands of the intermediate signal to obtain an energy measurement index.
[0045] Optionally, the energy measurement indicator includes sound output power and / or sound loudness.
[0046] Optionally, the determination module includes:
[0047] The judging unit determines that the microphone is leaking when the energy measurement indicator is greater than the preset threshold.
[0048] Optionally, the determination module further includes:
[0049] The searching unit searches for the leakage amount of the microphone according to the energy measurement index and a preset mapping relationship when the energy measurement index is greater than the preset threshold, wherein the preset mapping relationship includes a corresponding relationship between the energy measurement index and the leakage amount.
[0050] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored. When the instructions are executed by a processor, the steps of the method described in any one of the above embodiments are implemented.
[0051] According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
[0052] processor;
[0053] a memory for storing processor-executable instructions;
[0054] The processor is configured to implement the steps of the method described in any one of the above embodiments when executing.
[0055] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:
[0056] It can be seen from the above embodiments that the present disclosure collects sound signals based on the played pink noise audio through a microphone, and processes the sound signal as a background noise signal to obtain an effective pink noise signal, thereby reducing the impact of ambient sound on the detection results. The sealing performance of the microphone is determined by comparing the energy measurement index of the effective pink noise signal with a preset threshold, without the need to block the microphone, thereby reducing the difficulty of detection.
[0057] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0059] Figure 1 The figure is a flow chart showing a method for detecting sealing performance according to an exemplary embodiment.
[0060] Figure 2 The figure is a flow chart of another method for detecting sealing performance according to an exemplary embodiment.
[0061] Figure 3 is based on Figure 2 The detection method in the sound curve graph collected by the microphone.
[0062] Figure 4 is based on Figure 2 The effective signal curve of pink noise after being processed by the detection method in .
[0063] Figure 5 This is one of the block diagrams of a sealing performance detection device according to an exemplary embodiment.
[0064] Figure 6 This is the second block diagram of a sealing performance detection device according to an exemplary embodiment.
[0065] Figure 7 This is the third block diagram of a sealing performance detection device according to an exemplary embodiment.
[0066] Figure 8 This is the fourth block diagram of a sealing performance detection device according to an exemplary embodiment.
[0067] Figure 9 This is the fifth block diagram of a sealing performance detection device according to an exemplary embodiment.
[0068] Figure 10 This is the sixth block diagram of a sealing performance detection device according to an exemplary embodiment.
[0069] Figure 11 This is the seventh block diagram of a sealing performance detection device according to an exemplary embodiment.
[0070] Figure 12 is a block diagram of a device for detecting sealing performance according to an exemplary embodiment. DETAILED DESCRIPTION
[0071] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0072] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0073] It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining."
[0074] Electronic devices are typically equipped with one or more microphones to collect sound from outside the device. Typically, the microphone includes a sound pickup hole facing the outside of the device, through which sound is collected. However, in some cases, assembly or processing issues can result in gaps in the microphone other than the sound pickup hole. Through these gaps, the microphone may collect internal noise from the device, which can interfere with the target audio collected through the sound pickup hole, affecting the performance of the microphone, the noise reduction performance of the electronic device, and call quality, resulting in a poor user experience.
[0075] In related art, a sound is collected once with the edge of the microphone blocked, and then again with the edge unblocked, to determine the sealing performance of the microphone by comparing the two sounds. However, due to the complexity of the internal layout of electronic devices and the diversity of microphone locations, blocking the microphone is becoming increasingly difficult, and thus the difficulty of testing the sealing performance of the microphone is also increasing accordingly.
[0076] Based on this, the present disclosure provides a method for detecting sealing performance, which can be applied to electronic devices, and the sealing performance of the microphone of the electronic device can be detected by the detection method. Specifically, Figure 1 As shown, the detection method may include the following steps:
[0077] In step 101, a sound signal collected by a microphone based on the played pink audio is obtained.
[0078] Pink noise audio is audio that includes pink noise. In one embodiment, the pink noise audio can be pre-stored in the electronic device. Upon receiving a trigger detection instruction, the electronic device's speaker or receiver is controlled to play the pink noise audio. By transmitting and receiving audio signals on the electronic device itself, without the need for an external player, the requirements for the detection environment and detection scenario can be reduced. Alternatively, in another embodiment, the pink noise audio can be played by an external player, which is not limited in this disclosure.
[0079] In the above embodiments, the microphone can be controlled to collect sound signals while the speaker or earpiece is playing the pink audio; or in some other embodiments, the microphone can be controlled to collect sound signals after the pink audio is played; or in some other embodiments, the microphone can be controlled to start to collect sound first, and then the pink audio is played. This disclosure is not limited to this.
[0080] In step 102, the background noise signal in the sound signal is filtered out to obtain a pink noise effective signal.
[0081] In this embodiment, the background noise signal is filtered out, and the background signal in the test environment can be filtered out, for example, human voice, device sound, or natural environment sound can be filtered out to obtain a pink noise sound effect signal.
[0082] Specifically, the background noise signal below the preset frequency can be filtered out by high-pass filtering. For example, since the frequency range of general human voice is within 150Hz, the background noise signal below 150Hz can be filtered out, thereby preventing the human voice in the detection scene collected by the microphone from affecting the detection result. Of course, in other embodiments, in order to improve accuracy, the background noise signal below 200Hz or the background noise signal below other frequencies can also be filtered out to obtain the sound signal to be processed. The present disclosure is not limited to this. Further, it can be understood that before the pink noise audio is played, the microphone may have been turned on, so the amplitude of the sound signal collected by the microphone in the initial stage is low relative to the amplitude of the pink noise audio itself, or at other times due to the influence of environmental noise, the amplitude of the sound signal collected is high relative to the amplitude of the pink noise audio itself. Therefore, the pink noise effective signal can be intercepted according to the amplitude of the sound signal to be processed and the amplitude of the pink noise audio, and the amplitude of the pink noise effective signal can be similar to the amplitude of the pink noise audio.
[0083] In step 103, signal processing is performed on the pink effective signal to obtain an energy measurement index of the pink effective signal.
[0084] In this embodiment, the pink noise effective signal can be Fourier transformed to obtain an intermediate signal, and then the intermediate signal can be integrated and summed to obtain an energy measurement index of the pink noise effective signal. In some cases, when the pink noise audio is played through a closed cavity sound module in an electronic device, such as a speaker, since the low-frequency signal of the speaker is usually transmitted to the microphone, the intermediate signal below the second preset frequency can be integrated and summed. The second preset frequency can be 600Hz, or 500Hz, or other frequencies. It can be determined specifically based on the frequency of the audio collected by the microphone based on the sound emitted by the closed cavity sound module. In some other cases, when the pink noise audio is played through an open cavity in an electronic device, such as when the pink noise audio signal is played through an open cavity earpiece, the signals in each frequency band can be collected by the microphone, so the signals in all frequency bands of the intermediate signal can be integrated and summed to obtain an energy measurement index.
[0085] In step 104, the sealing performance of the microphone is determined based on a comparison result between the energy measurement index and a preset threshold.
[0086] In this embodiment, after processing the sound signal, the resulting pink noise effective signal has essentially eliminated the influence of background sound in the detection scene. Therefore, the pink noise effective signal can be processed to obtain an energy measurement index for the pink noise effective signal. If the microphone seal is poor, the microphone may not only collect the sound signal based on the played pink noise, but also internal noise from the electronic device due to the presence of pores. Therefore, the obtained energy measurement index will be greater than a preset threshold, thereby confirming that the microphone seal is poor and leaks exist. If the microphone seal is good, the energy measurement index for the pink noise effective signal will be less than or equal to a preset threshold. The preset threshold can be determined based on the played pink noise audio, and the energy measurement index may include the loudness or output power of the pink noise effective signal.
[0087] It can be seen from the above embodiments that the present disclosure collects sound signals based on the played pink noise audio through a microphone, and processes the sound signal as a background noise signal to obtain an effective pink noise signal, thereby reducing the impact of ambient sound on the detection results. The sealing performance of the microphone is determined by comparing the energy measurement index of the effective pink noise signal with a preset threshold, without the need to block the microphone, thereby reducing the difficulty of detection.
[0088] In order to elaborate on the technical solution of the present disclosure, the following Figure 2 A specific implementation method is described as follows. Figure 2 As shown, this embodiment may include the following steps:
[0089] In step 201 , a detection instruction for detecting the sealing performance of a microphone is received.
[0090] In step 202, the microphone is activated.
[0091] In step 203, the speaker is controlled to play the pink audio stored in the electronic device.
[0092] In this embodiment, the detection instruction can be a detection instruction generated by the production line personnel triggering the electronic device; or it can be a detection instruction generated by the electronic device based on its own current state, and the present disclosure does not limit this. According to the detection instruction, the microphone can be activated first and then the speaker can be controlled to play the pink noise audio, or the speaker can be controlled to play the pink noise audio first and then the microphone can be activated, or the microphone and the speaker can be activated at the same time, and the present disclosure does not limit this. When the electronic device includes multiple microphones, it can be activated for the microphone that currently needs to be detected, or it can be activated for all microphones.
[0093] In step 204, a sound signal collected by a microphone is obtained.
[0094] In this embodiment, Figure 3 As shown in FIG, the microphone can record the pink noise audio before and during the speaker playing the pink noise audio, thereby obtaining the following Figure 3 The sound curve shown.
[0095] In step 205, high-pass filtering is performed on the sound signal to filter out sound signals below 180 Hz.
[0096] In step 206, the effective pink noise signal is intercepted according to the amplitude of the sound signal.
[0097] In this embodiment, the sound signal below 180Hz can be filtered out by high-pass filtering. Then, since the microphone is started before the speaker in the embodiment provided by the present disclosure, the microphone will collect some background sounds with low amplitude before the speaker is started. Therefore, all or part of the effective pink noise signal can be intercepted according to the amplitude of the sound signal and the amplitude of the pink noise audio, and the following is obtained: Figure 4 The sound curve of the pink noise effective signal is shown
[0098] In step 207, Fourier transform is performed on the pink effective signal.
[0099] In step 208, the signals with frequencies below 600 Hz in the pink noise effective signal are integrated and summed to obtain an energy measurement index.
[0100] In this embodiment, since the speaker of the electronic device usually has a closed cavity sound module, low-frequency signals can be considered, so the signals with frequencies below 600 Hz in the pink noise effective signal are integrated and summed to obtain an energy measurement index of the pink noise effective signal.
[0101] In step 209 , the energy metric is compared with a preset threshold.
[0102] In this embodiment, if the microphone seal is poor, the energy metric obtained will be greater than a preset threshold because the microphone may not only collect the sound signal based on the played pink noise but also the internal noise of the electronic device due to the presence of pores. This can be used to determine that the microphone seal is poor and there is a leak. If the microphone seal is good, the energy metric of the effective pink noise signal will be less than or equal to the preset threshold. Therefore, when the energy metric is greater than the preset threshold, the process can proceed to step 210; when the energy metric is less than the preset threshold, the process can proceed to step 212.
[0103] In step 210 , the leakage amount of the microphone is found according to the preset mapping relationship and the energy measurement index.
[0104] In step 211, the leakage amount is stored, and the audio collected by the microphone is subsequently processed according to the leakage amount.
[0105] In this embodiment, the preset mapping relationship includes a correspondence between an energy metric and leakage amount, which can be a relationship between a range of the energy metric and the leakage amount, or a relationship between a single energy metric value and the leakage amount. Based on the energy metric of the effective pink noise signal and the preset mapping relationship, the current microphone leakage amount can be determined. The audio captured by the microphone can then be processed based on the leakage amount to eliminate internal noise from the electronic device, thereby improving noise reduction and call quality.
[0106] In step 212, the user is prompted that the sealing performance of the microphone is good.
[0107] In this embodiment, if the energy measurement index of the effective pink noise signal is less than a preset threshold, the microphone is deemed to be detecting no noise within the electronic device and the microphone seal is good. Therefore, the user can be notified that the seal is good or that the test has passed. For example, this can be accomplished by lighting a green light, providing an audible or textual reminder, though this disclosure is not limited thereto.
[0108] Corresponding to the aforementioned embodiment of the information display method, the present disclosure also provides an embodiment of a device for detecting sealing performance.
[0109] Figure 5 This is one of the block diagrams of a sealing performance detection device according to an exemplary embodiment, and the detection device is applied to electronic equipment. Figure 5 The device includes a first acquisition module 51, a second acquisition module 52, a third acquisition module 53 and a determination module 54; wherein:
[0110] A first acquisition module 51 acquires a sound signal collected by a microphone based on the played pink audio;
[0111] The second acquisition module 52 filters out the background noise signal in the sound signal to obtain the effective pink noise signal;
[0112] A third acquisition module 53 performs signal processing on the pink noise effective signal to obtain an energy measurement index of the pink noise effective signal;
[0113] The determination module 54 determines the sealing performance of the microphone according to a comparison result between the energy measurement index and a preset threshold.
[0114] like Figure 6 As shown, Figure 6 This is a second block diagram of a sealing performance detection device according to an exemplary embodiment. Figure 5 Based on the illustrated embodiment, the first acquisition module 51 includes a first control unit 511 and a second control unit 512, wherein:
[0115] The first control unit 511 controls the speaker or receiver of the electronic device to play the pink audio;
[0116] The second control unit 512 controls the microphone to collect the sound signal.
[0117] like Figure 7 As shown, Figure 7 This is a third block diagram of a sealing performance detection device according to an exemplary embodiment. Figure 5 Based on the illustrated embodiment, the second acquisition module 52 includes a first processing unit 521 and a second processing unit 522, wherein:
[0118] The first processing unit 521 filters out background noise signals below a first preset frequency through high-pass filtering to obtain a sound signal to be processed;
[0119] The second processing unit 522 intercepts the pink noise effective signal according to the amplitude of the sound signal to be processed and the amplitude of the pink noise audio.
[0120] It should be noted that the above Figure 7The structures of the first processing unit 521 and the second processing unit 522 in the embodiment of the device shown in FIG. 5 may also be included in the aforementioned Figure 6 In the device embodiment, the present disclosure is not limited to this.
[0121] like Figure 8 As shown, Figure 8 This is a fourth block diagram of a sealing performance detection device according to an exemplary embodiment. Figure 5 Based on the illustrated embodiment, the third acquisition module 53 includes a third processing unit 531 and a fourth processing unit 532, wherein:
[0122] The third processing unit 531 performs Fourier transform on the pink noise effective signal to obtain an intermediate signal;
[0123] The fourth processing unit 532 performs integration and summation processing on the intermediate signal to obtain the energy measurement index.
[0124] It should be noted that the above Figure 8 The structures of the third processing unit 531 and the fourth processing unit 532 in the embodiment of the device shown may also be included in the aforementioned Figure 6 or Figure 7 In the device embodiment, the present disclosure is not limited to this.
[0125] like Figure 9 As shown, Figure 9 This is a fifth block diagram of a sealing performance detection device according to an exemplary embodiment, wherein the electronic device includes a sound module, and the sound module plays the pink noise audio; Figure 8 Based on the illustrated embodiment, the third processing unit 531 includes a first processing sub-unit 5311 and a second processing sub-unit 5312, wherein:
[0126] The first processing sub-unit 5311 integrates and sums the signals in all frequency bands below the second preset frequency to obtain an energy measurement index when the pink noise audio is played through the closed cavity sound module;
[0127] The second processing sub-unit 5312 integrates and sums the signals in all frequency bands of the intermediate signal to obtain an energy measurement index when the pink audio is played through the sound module with an open cavity.
[0128] Optionally, the energy measurement indicator includes sound output power and / or sound loudness.
[0129] like Figure 10 As shown, Figure 10 This is a sixth block diagram of a sealing performance detection device according to an exemplary embodiment. Figure 5 Based on the illustrated embodiment, the determination module 54 includes:
[0130] The judging unit 541 determines that the microphone is leaking when the energy measurement indicator is greater than the preset threshold.
[0131] It should be noted that the above Figure 10 The structure of the determination unit 541 in the embodiment of the device shown may also be included in the aforementioned Figure 6-Figure 9 In any one of the device embodiments, the present disclosure is not limited to this.
[0132] like Figure 11 As shown, Figure 11 This is a seventh block diagram of a sealing performance detection device according to an exemplary embodiment. Figure 10 Based on the illustrated embodiment, the determination module 54 further includes:
[0133] The searching unit 542 searches for the leakage amount of the microphone according to the energy measurement index and a preset mapping relationship when the energy measurement index is greater than the preset threshold, wherein the preset mapping relationship includes a correspondence between the energy measurement index and the leakage amount.
[0134] It should be noted that the above Figure 10 The structure of the search unit 542 in the embodiment of the device shown may also be included in the aforementioned Figure 6-Figure 9 In any one of the device embodiments, the present disclosure is not limited to this.
[0135] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0136] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying any creative work.
[0137] Correspondingly, the present disclosure also provides a sealing performance detection device, which is applied to electronic equipment, including: a processor; a memory for storing processor executable instructions; wherein the processor is configured as follows: the detection method includes: obtaining a sound signal collected by a microphone based on the played pink noise audio; filtering out the background noise signal in the sound signal to obtain a pink noise effective signal; performing signal processing on the pink noise effective signal to obtain an energy measurement index of the pink noise effective signal; and judging the sealing performance of the microphone based on the comparison result of the energy measurement index with a preset threshold.
[0138] Accordingly, the present disclosure also provides a terminal, which includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, and the one or more programs include instructions for performing the following operations: obtaining a sound signal collected by a microphone based on the played pink noise audio; filtering out the background noise signal in the sound signal to obtain a pink noise effective signal; performing signal processing on the pink noise effective signal to obtain an energy measurement index of the pink noise effective signal; and determining the sealing performance of the microphone based on a comparison result of the energy measurement index with a preset threshold.
[0139] Figure 12 FIG1 is a block diagram of a sealing performance detection device 1200 according to an exemplary embodiment. For example, the device 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0140] Reference Figure 12 , the device 1200 may include one or more of the following components: a processing component 1202 , a memory 1204 , a power component 1206 , a multimedia component 1208 , an audio component 1210 , an input / output (I / O) interface 1212 , a sensor component 1214 , and a communication component 1216 .
[0141] The processing component 1202 generally controls the overall operation of the device 1200, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 1202 may include one or more modules to facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 may include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
[0142] The memory 1204 is configured to store various types of data to support the operation of the device 1200. Examples of such data include instructions for any application or method operating on the device 1200, contact data, phone book data, messages, pictures, videos, etc. The memory 1204 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, 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 disk, or optical disk.
[0143] The power supply component 1206 provides power to the various components of the device 1200. The power supply component 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1200.
[0144] The multimedia component 1208 includes a screen that provides an output interface between the device 1200 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 input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1208 includes a front camera and / or a rear camera. When the device 1200 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0145] The audio component 1210 is configured to output and / or input audio signals. For example, the audio component 1210 includes a microphone (MIC) that is configured to receive external audio signals when the device 1200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, the audio component 1210 further includes a speaker for outputting audio signals.
[0146] I / O interface 1212 provides an interface between processing component 1202 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0147] The sensor assembly 1214 includes one or more sensors for providing various aspects of the status assessment of the device 1200. For example, the sensor assembly 1214 can detect the open / closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200. The sensor assembly 1214 can also detect changes in the position of the device 1200 or a component of the device 1200, the presence or absence of user contact with the device 1200, the orientation or acceleration / deceleration of the device 1200, and changes in the temperature of the device 1200. The sensor assembly 1214 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1214 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 can also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0148] The communication component 1216 is configured to facilitate wired or wireless communication between the device 1200 and other devices. The device 1200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR or a combination thereof. In an exemplary embodiment, the communication component 1216 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 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0149] In an exemplary embodiment, the apparatus 1200 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, microcontrollers, microprocessors, or other electronic components to perform the above-described methods.
[0150] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1204 including instructions, which can be executed by the processor 1220 of the apparatus 1200 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0151] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.
[0152] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for detecting sealing performance, characterized in that: Applied to electronic equipment, the detection method includes: Get the sound signal collected by the microphone based on the pink noise audio played; Filtering out the background noise signal in the sound signal to filter out the background signal in the test environment and obtain the effective noise signal; Performing signal processing on the pink noise effective signal to obtain an energy measurement index of the pink noise effective signal; The sealing performance of the microphone is determined according to a comparison result of the energy measurement index and a preset threshold.
2. The detection method according to claim 1, wherein The step of obtaining a sound signal collected by a microphone based on the played pink noise audio includes: Controlling the speaker or earpiece of the electronic device to play the pink audio; Control the microphone to collect the sound signal.
3. The detection method according to claim 1, wherein The filtering out of the background noise signal in the sound signal to obtain the effective pink noise signal includes: filtering out background noise signals below a first preset frequency by high-pass filtering to obtain a sound signal to be processed; The pink noise effective signal is intercepted and obtained according to the amplitude of the sound signal to be processed and the amplitude of the pink noise audio.
4. The detection method according to claim 1, wherein The performing signal processing on the pink noise effective signal to obtain an energy measurement index of the pink noise effective signal includes: Performing Fourier transform on the effective pink noise signal to obtain an intermediate signal; Performing integration and summation processing on the intermediate signal to obtain the energy measurement index.
5. The detection method according to claim 4, characterized in that The electronic device includes a sound module, and the sound module plays the pink noise audio; The performing integration and summing processing on the intermediate signal to obtain the energy measurement index includes: When the pink audio is played through the sound module of the closed cavity, the signals in all frequency bands below the second preset frequency are integrated and summed to obtain an energy measurement index; When the pink audio is played through the sound module with an open cavity, the signals in all frequency bands of the intermediate signal are integrated and summed to obtain an energy measurement index.
6. The detection method according to claim 1, characterized in that The energy measurement indicator includes sound output power and / or sound loudness.
7. The detection method according to claim 1, characterized in that Determining the sealing performance of the microphone according to a comparison result of the energy measurement indicator and a preset threshold value includes: When the energy measurement indicator is greater than the preset threshold, the microphone is leaking.
8. The detection method according to claim 7, characterized in that Determining the sealing performance of the microphone according to a comparison result of the energy measurement indicator and a preset threshold value includes: When the energy measurement index is greater than the preset threshold, the leakage amount of the microphone is searched according to the energy measurement index and a preset mapping relationship, where the preset mapping relationship includes a corresponding relationship between the energy measurement index and the leakage amount.
9. A sealing performance detection device, characterized in that: Applied to electronic equipment, the detection device includes: The first acquisition module acquires the sound signal collected by the microphone based on the played pink noise audio; The second acquisition module filters out the background noise signal in the sound signal to filter out the background signal in the test environment and obtain the effective noise signal; a third acquisition module, performing signal processing on the pink noise effective signal to obtain an energy measurement index of the pink noise effective signal; A determination module determines the sealing performance of the microphone according to a comparison result of the energy measurement index and a preset threshold.
10. The detection device according to claim 9, characterized in that: The first acquisition module includes: A first control unit controls a speaker or earpiece of the electronic device to play the pink audio; The second control unit controls the microphone to collect the sound signal.
11. The detection device according to claim 9, characterized in that: The second acquisition module includes: The first processing unit filters out background noise signals below a first preset frequency through high-pass filtering to obtain a sound signal to be processed; The second processing unit intercepts and obtains the pink noise effective signal according to the amplitude of the sound signal to be processed and the amplitude of the pink noise audio.
12. The detection device according to claim 9, characterized in that The third acquisition module includes: a third processing unit, performing Fourier transform on the pink noise effective signal to obtain an intermediate signal; The fourth processing unit performs integration and summation processing on the intermediate signal to obtain the energy measurement index.
13. The detection device according to claim 12, characterized in that: The electronic device includes a sound module, and the sound module plays the pink noise audio; The third processing unit includes: The first processing sub-unit integrates and sums the signals in all frequency bands below the second preset frequency to obtain an energy measurement index when the pink noise audio is played through the sound module of the closed cavity; The second processing sub-unit, when playing the pink audio through the sound module with an open cavity, integrates and sums the signals in all frequency bands of the intermediate signal to obtain an energy measurement index.
14. The detection device according to claim 9, characterized in that The energy measurement indicator includes sound output power and / or sound loudness.
15. The detection device according to claim 9, characterized in that The determination module includes: The judging unit determines that the microphone is leaking when the energy measurement indicator is greater than the preset threshold.
16. The detection device according to claim 15, characterized in that: The determination module further includes: The searching unit searches for the leakage amount of the microphone according to the energy measurement index and a preset mapping relationship when the energy measurement index is greater than the preset threshold, wherein the preset mapping relationship includes a corresponding relationship between the energy measurement index and the leakage amount.
17. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the instruction is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
18. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the steps of the method according to any one of claims 1 to 8 when executing.
Citation Information
Patent Citations
Voice equipment testing method and device
CN111182435A