CN110602626A - Microphone hole misplug detection method and electronic equipment - Google Patents
Microphone hole misplug detection method and electronic equipment Download PDFInfo
- Publication number
- CN110602626A CN110602626A CN201911016133.7A CN201911016133A CN110602626A CN 110602626 A CN110602626 A CN 110602626A CN 201911016133 A CN201911016133 A CN 201911016133A CN 110602626 A CN110602626 A CN 110602626A
- Authority
- CN
- China
- Prior art keywords
- microphone
- microphone hole
- vector
- characteristic vector
- feature vector
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2420/00—Details of connection covered by H04R, not provided for in its groups
- H04R2420/05—Detection of connection of loudspeakers or headphones to amplifiers
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)
- Telephone Function (AREA)
- Telephone Set Structure (AREA)
Abstract
The invention discloses a method for detecting the false insertion of a microphone hole and electronic equipment, wherein the method comprises the following steps: acquiring a sound signal collected by a microphone; extracting the characteristics of the sound signals to obtain a first characteristic vector; matching the first characteristic vector with a predetermined second characteristic vector, wherein the second characteristic vector is a characteristic vector corresponding to a noise signal when the microphone hole is inserted by mistake; and prompting the microphone hole to be inserted wrongly under the condition that the first feature vector is matched with the second feature vector. By acquiring the sound signals collected by the microphone and carrying out feature extraction and matching on the sound signals, whether the sound signals are inserted into the microphone hole by mistake can be effectively detected; after the mistaken insertion of the microphone hole is determined, the user can be prompted to mistakenly insert the microphone hole, so that the user can conveniently stop the mistaken insertion operation of the microphone hole in time based on the prompt, and the problem that the microphone is damaged due to the fact that the user further mistakenly inserts the microphone hole is solved.
Description
Technical Field
The invention relates to the field of terminals, in particular to a microphone hole misplug detection method and electronic equipment.
Background
In the existing electronic equipment, such as a mobile phone, the SIM card holder may be usually disposed on the top or bottom of the electronic equipment due to the aesthetic and overall layout considerations of the electronic equipment, and a microphone is usually disposed on the top or bottom of the electronic equipment, so that the card pin hole and the microphone hole of the SIM card holder may be located on the same end face of the electronic equipment.
Generally, when using the SIM card socket in the electronic device, a user may insert a card pin of the SIM card into a card pin hole of the card socket. However, the card pin hole and the microphone hole are located on the same end face of the electronic device, so that a user can easily insert the card pin into the microphone hole by mistake, the microphone is damaged and cannot be normally used, and the use experience of the user is seriously influenced.
Disclosure of Invention
The embodiment of the invention provides a method for detecting mistaken insertion of a microphone hole and electronic equipment, and aims to solve the problem that a user is easy to mistakenly insert a card pin into the microphone hole in the existing electronic equipment, so that a microphone is damaged.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, a method for detecting a mis-insertion of a microphone hole is provided, the method including:
acquiring a sound signal collected by a microphone;
extracting the characteristics of the sound signals to obtain a first characteristic vector;
matching the first characteristic vector with a predetermined second characteristic vector, wherein the second characteristic vector is a characteristic vector corresponding to a noise signal when the microphone hole is inserted by mistake;
and prompting the microphone hole to be inserted wrongly under the condition that the first feature vector is matched with the second feature vector.
In a second aspect, an electronic device is provided, the electronic device comprising:
the acquisition module acquires the sound signals collected by the microphone;
the feature extraction module is used for extracting features of the sound signals to obtain a first feature vector;
the matching module is used for matching the first characteristic vector with a predetermined second characteristic vector, wherein the second characteristic vector is a characteristic vector corresponding to a noise signal when the microphone hole is inserted by mistake;
and the prompting module prompts the microphone hole to be inserted by mistake under the condition that the first characteristic vector is matched with the second characteristic vector.
In a third aspect, an electronic device is provided, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method according to the first aspect.
According to the technical scheme provided by the embodiment of the invention, in the process that a user uses the electronic equipment, the microphone can collect the sound signal, the electronic equipment can extract the feature vector in the sound signal after acquiring the sound signal collected by the microphone, and match the feature vector with the feature vector corresponding to the noise signal inserted into the microphone hole by mistake, and under the condition that the feature vector in the sound signal is matched with the feature vector corresponding to the noise signal inserted into the microphone hole by mistake, the user is prompted to insert the microphone hole by mistake. Therefore, by acquiring the sound signal collected by the microphone and carrying out feature extraction and matching on the sound signal, whether the user is inserted into the microphone hole by mistake can be effectively detected; after confirming the misplug microphone hole, because can indicate the user to misplug the microphone hole, consequently, can be convenient for the user in time stop the misplug operation to the microphone hole based on the suggestion to avoid because the further misplug microphone hole of user leads to the problem of microphone damage, guarantee that the microphone can normal use.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram of a prior art chuck pin hole and microphone hole;
FIG. 2 is a schematic diagram of a microphone hole design structure in an electronic device according to the prior art;
FIG. 3 is a flow chart of a method for detecting a mis-insertion of a microphone hole according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for detecting a mis-insertion of a microphone hole according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
Detailed Description
In the existing electronic device, a card socket of the SIM card and a microphone may be generally included, where the card socket of the SIM card corresponds to a card pin hole, and when a card pin is inserted into the card pin hole, the card socket may be ejected out, so that a user may place the SIM card in the card socket; the microphone corresponds to one microphone hole, and a user using the electronic equipment can conveniently carry out voice communication.
Generally, in consideration of the aesthetic appearance and the overall layout of the electronic device, the card socket of the SIM card and the microphone may be disposed on the same side of the electronic device, so that the card pin hole and the microphone hole may be located on the same end surface of the electronic device, as shown in fig. 1, the card pin hole and the microphone hole are located on the same end surface of the electronic device and are closer to each other.
In practical application, when a user uses a card holder in an electronic device, the card pin can be inserted into the card pin hole of the card holder, however, since the card pin hole and the microphone hole are located on the same end face of the electronic device, the user can easily insert the card pin into the microphone hole by mistake, and when the user inserts the microphone hole by mistake, the sound guide channel of the microphone is usually damaged, so that the microphone cannot be normally used.
In the prior art, in order to avoid the above problems, a retaining wall is usually disposed at the sound guide channel of the microphone, and when a user mistakenly inserts into the microphone hole, the retaining wall can protect the sound guide channel of the microphone to a certain extent, so as to ensure that the microphone can be normally used. As shown in fig. 2.
Fig. 2 may be a cross-sectional view taken along line a-a' of fig. 1, in fig. 2, a sub-plate, a sealing silicone ring, a middle frame (a cover), a sealing PET, a sound guiding channel, and a retaining wall are disposed at the microphone, and the retaining wall may protect the sound guiding channel.
However, in practical application, after the user mistakenly inserts the microphone hole, if the card seat of the SIM is not popped out, the user often uses the card needle to poke the microphone hole by a large force many times, so that the retaining wall is poked through easily, the side wall of the sound guide channel is damaged, the air leakage of the sound guide channel is caused, and then the sound receiving effect of the microphone becomes poor, even becomes invalid, and the use experience of the user is seriously influenced. In addition, when the retaining wall of the sound guide channel is pierced through, the whole middle frame is usually required to be replaced when maintenance is performed, so that the maintenance cost is high.
In order to solve the technical problem, the embodiment of the invention can prompt the user after the user inserts the microphone hole by mistake and before the user pokes the microphone hole by a large force, so that the user can stop the operation of the false insertion, and the problem that the microphone is damaged and cannot be normally used because the user pokes the microphone hole by a large force is solved.
In order to achieve the above object, an embodiment of the present invention provides a method for detecting erroneous insertion of a microphone hole and an electronic device, where the method includes: acquiring a sound signal collected by a microphone; extracting the characteristics of the sound signals to obtain a first characteristic vector; matching the first characteristic vector with a predetermined second characteristic vector, wherein the second characteristic vector is a characteristic vector corresponding to a noise signal when the microphone hole is inserted by mistake; and prompting the microphone hole to be inserted wrongly under the condition that the first feature vector is matched with the second feature vector.
Therefore, by acquiring the sound signal collected by the microphone and carrying out feature extraction and matching on the sound signal, whether the user is inserted into the microphone hole by mistake can be effectively detected; after confirming the misplug microphone hole, because can indicate the user to misplug the microphone hole, consequently, can be convenient for the user in time stop the misplug operation to the microphone hole based on the suggestion to avoid because the further misplug microphone hole of user leads to the problem of microphone damage, guarantee that the microphone can normal use.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the technical solution provided in the embodiment of the present invention may be used to detect whether the card pin is inserted into the microphone hole by mistake, and may also be used to detect whether other foreign objects are inserted into the microphone hole by mistake. The electronic device where the microphone hole is located may be a smart phone, a tablet computer, a game machine, a learning machine, or the like, which is not limited specifically herein.
The technical solutions provided by the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Fig. 3 is a flowchart illustrating a method for detecting a mis-insertion of a microphone hole according to an embodiment of the present application. The method is as follows.
S302: a sound signal collected by a microphone is acquired.
In S302, during the use of the electronic device by the user, a microphone in the electronic device may acquire a sound signal in a microphone guide channel in real time, and after the microphone acquires the sound signal, the electronic device may acquire the sound signal.
S304: and extracting the characteristics of the sound signals to obtain a first characteristic vector.
In S304, after acquiring the sound signal collected by the microphone, the electronic device may perform feature extraction on the sound signal to obtain a feature vector, so as to facilitate subsequent determination of whether the sound signal is a sound signal when the card pin is inserted into the microphone hole by mistake. For the convenience of distinction, the feature vector obtained by feature extraction of the sound signal may be referred to as a first feature vector.
When the feature extraction is performed on the sound signal, the following steps may be included:
firstly: the sound signal is pre-processed.
In the preprocessing of the sound signal, a mute portion included in the sound signal may be removed, and a portion where the sound information remains, thereby obtaining a first preprocessed signal. Wherein, the mute part of the sound signal is usually located at the beginning and the end of the sound signal, and the part with sound information is usually located in the middle of the sound signal.
And secondly, framing the first preprocessed signal to obtain a second preprocessed signal.
The main purpose of framing the preprocessed sound signal in this embodiment is to facilitate the subsequent digitization of the second preprocessed signal. When the first preprocessed signal is framed, specific implementation manners can be referred to in the existing framing method, and detailed description is omitted here.
And thirdly, performing digital processing on the second preprocessed signal to obtain a multi-dimensional vector.
In this embodiment, the second preprocessing signal is digitized, which can be understood as converting each frame of waveform after framing into a multidimensional vector containing sound information, so as to obtain a multidimensional vector corresponding to the multi-frame waveform.
And finally, extracting the features of the multi-dimensional vector to obtain a first feature vector.
When the feature extraction is performed on the multi-dimensional vector, the feature extraction can be performed by using an existing algorithm for performing feature extraction on the multi-dimensional vector of the sound, which is not described in detail herein.
S306: and matching the first feature vector with a predetermined second feature vector.
In S306, after obtaining the first feature vector, the first feature vector may be matched with a predetermined second feature vector, where the second feature vector may be understood as a feature vector corresponding to the sound signal when the card pin is inserted into the microphone hole by mistake. For the sake of convenience of distinction, the sound signal when the card pin is erroneously inserted into the microphone hole may be referred to as a noise signal.
In this embodiment, the second feature vector may be obtained by determining in advance in the following manner:
first, a plurality of noise signals collected by the microphone when the microphone hole is inserted by mistake a plurality of times are acquired.
Specifically, the operation of mistakenly inserting the card pin into the microphone hole can be simulated for multiple times, and when the mistaken inserting into the microphone hole is simulated, the microphone collects the noise signals in the sound guide channel, wherein the noise signals collected by the microphone can comprise sound signals of scraping of the card pin on a metal surface and plastic surfaces.
In this embodiment, in order to accurately determine whether the sound signal in S302 is the sound signal of the card pin inserted into the microphone hole in the following process, when the operation of inserting the card pin into the microphone hole is simulated for multiple times, the angle and force of the card pin inserted in the microphone hole may be different each time.
Then, after acquiring the plurality of noise signals, feature extraction may be performed on the plurality of noise signals to obtain feature vectors corresponding to the plurality of noise signals, that is, the second feature vector described above. When extracting the features of the noise signal, the specific implementation manner may refer to the step of extracting the features of the sound signal described in S304, and a description thereof is not repeated here.
After the second feature vector is obtained, the second feature vector may be stored in a database, so that when the first feature vector is matched with the second feature vector, the first feature vector may be matched with the second feature vector stored in the database.
In this embodiment, after the first feature vector and the second feature vector are matched, the matching result may include the following two types:
the first method comprises the following steps: the first feature vector and the second feature vector are successfully matched;
and the second method comprises the following steps: the first feature vector and the second feature vector fail to match.
If the matching result is the first type, it may be determined that the sound signal acquired in S302 is a sound signal when the card pin is inserted into the microphone hole by mistake, and at this time, S308 may be executed; if the matching result is the second type, it may be determined that the sound signal acquired in S302 is not a sound signal when the card pin is inserted into the microphone hole by mistake, and at this time, it may be determined that the card pin is not inserted into the microphone hole by mistake, and the sound signal collected by the microphone is a sound signal when the microphone is normally used.
S308: and prompting the microphone hole to be inserted wrongly under the condition that the first feature vector is matched with the second feature vector.
In S308, if the first feature vector is matched with the second feature vector, it can be stated that the sound signal corresponding to the first feature vector is a sound signal when the card pin is inserted into the microphone hole by mistake, that is, the user may mistakenly insert the card pin into the microphone hole, and at this time, the user may be prompted to mistakenly insert the card pin into the microphone hole.
In this embodiment, when the user is prompted to mistakenly insert the microphone hole, the method may be implemented by at least one of the following methods:
controlling the electronic equipment to vibrate;
controlling the electronic equipment to send out prompt tones;
and displaying the prompt information of the misinsertion on a screen of the electronic equipment.
The prompt information for the misinsertion may be a text prompt, an animation prompt, or the like, and is not limited in this respect.
It should be understood that when the electronic device is controlled to emit the prompt sound, a ring prompt mode may be adopted, a voice prompt mode may also be adopted, and other prompt sounds may also be adopted, which are not specifically limited herein. In addition, when the prompt message of the misinsertion is displayed on the screen, the correct position of the card needle hole can be displayed, so that a user can insert the card needle into the correct position according to the prompt.
After prompting the user to insert the microphone hole by mistake, the user can determine that the current card pin is inserted into the microphone hole and not into the card pin hole based on the prompt, and stop the error insertion operation, so that the problem that the microphone is damaged due to the fact that the user further inserts the microphone hole by mistake can be avoided.
Optionally, in this embodiment, if the first feature vector is not matched with the second feature vector, it may be stated that the sound signal corresponding to the first feature vector is not a sound signal when the card pin is inserted into the microphone hole by mistake, but a sound signal when the microphone is normally used, that is, the user does not insert the card pin into the microphone hole by mistake, and at this time, the electronic device may not need to prompt.
For facilitating understanding of the technical solution provided by the embodiment of the present invention, refer to fig. 4. Fig. 4 is a schematic flow chart of a method for detecting a mis-insertion of a microphone hole according to an embodiment of the present invention, which may specifically include the following steps:
s401: a sound signal collected by a microphone is acquired.
When a user uses the electronic device, a microphone in the electronic device can acquire a sound signal in the sound guide channel in real time, and the electronic device can acquire the sound signal acquired by the microphone in real time.
S402: and performing feature extraction on the sound signal to obtain a first feature vector.
When the feature extraction is carried out on the sound signal, the method comprises the following steps: preprocessing a sound signal, and removing a mute part included in the sound signal to obtain a first preprocessed signal; framing the first preprocessed signal to obtain a second preprocessed signal; carrying out digital processing on the second preprocessed signal to obtain a multidimensional vector; and performing feature extraction on the multi-dimensional vector to obtain a first feature vector.
The specific implementation of this step can be referred to the specific implementation of the corresponding step in the embodiment shown in fig. 3, and the description is not repeated here.
S403: and matching the first feature vector with a predetermined second feature vector.
The second feature vector is a feature vector corresponding to the noise signal when the microphone hole is erroneously inserted, and can be obtained by extracting features of the noise signal when the microphone hole is erroneously inserted, and specific implementation may refer to specific implementation of corresponding steps in the embodiment shown in fig. 3, and will not be described repeatedly here.
S404: and judging whether the first feature vector is matched with the second feature vector.
If the first feature vector is matched with the second feature vector, it may be determined that the sound signal corresponding to the first feature vector is a sound signal when the card pin is inserted into the microphone hole by mistake, and at this time, S405 may be performed; if the first feature vector does not match the second feature vector, it may be determined that the sound signal corresponding to the first feature vector is not the sound signal when the card pin is inserted into the microphone hole by mistake, but the sound signal when the microphone is normally used, and at this time, S406 may be performed.
S405: prompting the wrong insertion into the microphone hole.
When the user is prompted to insert the microphone hole by mistake, the method can be realized by at least one of the following modes:
the vibration of the electronic device is controlled, the electronic device is controlled to emit a prompt sound, and a prompt message of misinsertion is displayed in the electronic device, which is not specifically limited herein.
S406: and (6) ending.
In practical applications, the detection of whether the microphone hole is inserted incorrectly may be a real-time loop process, and this embodiment only takes a real-time detection process as an example.
According to the technical scheme provided by the embodiment of the invention, in the process that a user uses the electronic equipment, the microphone can collect the sound signal, the electronic equipment can extract the feature vector in the sound signal after acquiring the sound signal collected by the microphone, and match the feature vector with the feature vector corresponding to the noise signal inserted into the microphone hole by mistake, and under the condition that the feature vector in the sound signal is matched with the feature vector corresponding to the noise signal inserted into the microphone hole by mistake, the user is prompted to insert the microphone hole by mistake. Therefore, by acquiring the sound signal collected by the microphone and carrying out feature extraction and matching on the sound signal, whether the user is inserted into the microphone hole by mistake can be effectively detected; after confirming the misplug microphone hole, because can indicate the user to misplug the microphone hole, consequently, can be convenient for the user in time stop the misplug operation to the microphone hole based on the suggestion to avoid because the further misplug microphone hole of user leads to the problem of microphone damage, guarantee that the microphone can normal use.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device includes: an obtaining module 51, a feature extracting module 52, a matching module 53 and a prompting module 54, wherein:
an acquisition module 51 that acquires a sound signal collected by a microphone;
a feature extraction module 52, configured to perform feature extraction on the sound signal to obtain a first feature vector;
a matching module 53, configured to match the first feature vector with a predetermined second feature vector, where the second feature vector is a feature vector corresponding to a noise signal when the microphone hole is erroneously inserted;
and the prompting module 54 prompts the microphone hole to be inserted by mistake when the first feature vector is matched with the second feature vector.
Optionally, the feature extraction module 52 performs feature extraction on the sound signal to obtain a first feature vector, and includes:
preprocessing the sound signal, and removing a mute part included in the sound signal to obtain a first preprocessed signal;
framing the first preprocessing to obtain a second preprocessing signal;
performing digital processing on the second preprocessed signal to obtain a multi-dimensional vector;
and performing feature extraction on the multi-dimensional vector to obtain the first feature vector.
Optionally, the matching module 53 determines to obtain the second feature vector by:
acquiring a plurality of noise signals collected by the microphone when the microphone is inserted into the microphone hole by mistake for a plurality of times;
and extracting the characteristics of the plurality of noise signals to obtain the second characteristic vector.
Optionally, the prompt module 54, which prompts misplug into the microphone hole, includes at least one of:
controlling the electronic equipment to vibrate;
controlling the electronic equipment to send out a prompt tone;
and displaying the prompt information of the misinsertion in a screen of the electronic equipment.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 3 to fig. 4, and is not described herein again to avoid repetition. In the embodiment of the invention, in the process of using the electronic equipment by a user, the microphone can collect the sound signals, the electronic equipment can extract the feature vector in the sound signals after acquiring the sound signals collected by the microphone, and match the feature vector with the feature vector corresponding to the noise signals inserted into the microphone hole by mistake, and prompt the user to insert the microphone hole by mistake under the condition that the feature vector in the sound signals is matched with the feature vector corresponding to the noise signals inserted into the microphone hole by mistake. Therefore, by acquiring the sound signal collected by the microphone and carrying out feature extraction and matching on the sound signal, whether the user is inserted into the microphone hole by mistake can be effectively detected; after confirming the misplug microphone hole, because can indicate the user to misplug the microphone hole, consequently, can be convenient for the user in time stop the misplug operation to the microphone hole based on the suggestion to avoid because the further misplug microphone hole of user leads to the problem of microphone damage, guarantee that the microphone can normal use.
Figure 6 is a schematic diagram of a hardware configuration of an electronic device implementing various embodiments of the invention,
the electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 110 is configured to acquire a sound signal collected by a microphone; extracting the characteristics of the sound signals to obtain a first characteristic vector; matching the first characteristic vector with a predetermined second characteristic vector, wherein the second characteristic vector is a characteristic vector corresponding to a noise signal when the microphone hole is inserted by mistake; and prompting the microphone hole to be inserted wrongly under the condition that the first feature vector is matched with the second feature vector.
In the embodiment of the invention, in the process of using the electronic equipment by a user, the microphone can collect the sound signals, the electronic equipment can extract the feature vector in the sound signals after acquiring the sound signals collected by the microphone, and match the feature vector with the feature vector corresponding to the noise signals inserted into the microphone hole by mistake, and prompt the user to insert the microphone hole by mistake under the condition that the feature vector in the sound signals is matched with the feature vector corresponding to the noise signals inserted into the microphone hole by mistake. Therefore, by acquiring the sound signal collected by the microphone and carrying out feature extraction and matching on the sound signal, whether the user is inserted into the microphone hole by mistake can be effectively detected; after confirming the misplug microphone hole, because can indicate the user to misplug the microphone hole, consequently, can be convenient for the user in time stop the misplug operation to the microphone hole based on the suggestion to avoid because the further misplug microphone hole of user leads to the problem of microphone damage, guarantee that the microphone can normal use.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 601 may also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 601 in case of the phone call mode.
The electronic device 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the electronic apparatus 600 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the electronic apparatus 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 610 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609, thereby performing overall monitoring of the electronic device. Processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The electronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 may be logically connected to the processor 610 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In addition, the electronic device 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the foregoing method for detecting a microphone jack misplug, and can achieve the same technical effect, and in order to avoid repetition, the details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the foregoing method for detecting a mis-insertion of a microphone hole, and can achieve the same technical effect, and is not described herein again to avoid repetition. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising" is used to specify the presence of stated features, integers, steps, operations, elements, components, operations.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A microphone hole misplug detection method is applied to electronic equipment and is characterized by comprising the following steps:
acquiring a sound signal collected by a microphone;
extracting the characteristics of the sound signals to obtain a first characteristic vector;
matching the first characteristic vector with a predetermined second characteristic vector, wherein the second characteristic vector is a characteristic vector corresponding to a noise signal when the microphone hole is inserted by mistake;
and prompting the microphone hole to be inserted wrongly under the condition that the first feature vector is matched with the second feature vector.
2. The method of claim 1, wherein performing feature extraction on the sound signal to obtain a first feature vector comprises:
preprocessing the sound signal, and removing a mute part included in the sound signal to obtain a first preprocessed signal;
framing the first preprocessed signal to obtain a second preprocessed signal;
performing digital processing on the second preprocessed signal to obtain a multi-dimensional vector;
and performing feature extraction on the multi-dimensional vector to obtain the first feature vector.
3. The method of claim 1, wherein the second eigenvector is determined by:
acquiring a plurality of noise signals collected by the microphone when the microphone is inserted into the microphone hole by mistake for a plurality of times;
and extracting the characteristics of the plurality of noise signals to obtain the second characteristic vector.
4. The method of claim 1, wherein the prompting for misinsertion into the microphone aperture comprises at least one of:
controlling the electronic equipment to vibrate;
controlling the electronic equipment to send out a prompt tone;
and displaying the prompt information of the misinsertion in a screen of the electronic equipment.
5. An electronic device, comprising
The acquisition module acquires the sound signals collected by the microphone;
the feature extraction module is used for extracting features of the sound signals to obtain a first feature vector;
the matching module is used for matching the first characteristic vector with a predetermined second characteristic vector, wherein the second characteristic vector is a characteristic vector corresponding to a noise signal when the microphone hole is inserted by mistake;
and the prompting module prompts the microphone hole to be inserted by mistake under the condition that the first characteristic vector is matched with the second characteristic vector.
6. The electronic device of claim 5, wherein the feature extraction module performs feature extraction on the sound signal to obtain a first feature vector, and comprises:
preprocessing the sound signal, and removing a mute part included in the sound signal to obtain a first preprocessed signal;
framing the first preprocessed signal to obtain a second preprocessed signal;
performing digital processing on the second preprocessed signal to obtain a multi-dimensional vector;
and performing feature extraction on the multi-dimensional vector to obtain the first feature vector.
7. The electronic device of claim 5, wherein the matching module determines the second feature vector by:
acquiring a plurality of noise signals collected by the microphone when the microphone is inserted into the microphone hole by mistake for a plurality of times;
and extracting the characteristics of the plurality of noise signals to obtain the second characteristic vector.
8. The electronic device of claim 5, wherein the prompt module, the prompt being misinsertion into the microphone aperture, comprises at least one of:
controlling the electronic equipment to vibrate;
controlling the electronic equipment to send out a prompt tone;
and displaying the prompt information of the misinsertion in a screen of the electronic equipment.
9. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911016133.7A CN110602626B (en) | 2019-10-23 | 2019-10-23 | Microphone hole misplug detection method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911016133.7A CN110602626B (en) | 2019-10-23 | 2019-10-23 | Microphone hole misplug detection method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110602626A true CN110602626A (en) | 2019-12-20 |
CN110602626B CN110602626B (en) | 2021-09-21 |
Family
ID=68850393
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911016133.7A Active CN110602626B (en) | 2019-10-23 | 2019-10-23 | Microphone hole misplug detection method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110602626B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111929734A (en) * | 2020-05-29 | 2020-11-13 | 维沃移动通信有限公司 | Electronic apparatus and control method |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1897054A (en) * | 2005-07-14 | 2007-01-17 | 松下电器产业株式会社 | Device and method for transmitting alarm according various acoustic signals |
CN101170843A (en) * | 2007-11-30 | 2008-04-30 | 清华大学 | Speaker online pure voice failure diagnosis method |
CN104811864A (en) * | 2015-04-20 | 2015-07-29 | 深圳市冠旭电子有限公司 | Method and system for self-adaptive adjustment of audio effect |
CN106060235A (en) * | 2016-05-05 | 2016-10-26 | 广东小天才科技有限公司 | Startup and shutdown control method and device applied to mobile equipment and mobile equipment |
US20160364963A1 (en) * | 2015-06-12 | 2016-12-15 | Google Inc. | Method and System for Detecting an Audio Event for Smart Home Devices |
CN107154264A (en) * | 2017-05-18 | 2017-09-12 | 北京大生在线科技有限公司 | The method that online teaching wonderful is extracted |
CN109803207A (en) * | 2017-11-17 | 2019-05-24 | 英特尔公司 | Mark to the audio signal in ambient sound and the guidance to the autonomous vehicles in response to the mark |
CN110324776A (en) * | 2019-06-28 | 2019-10-11 | 维沃移动通信有限公司 | Misplug the hole MIC based reminding method and terminal device |
-
2019
- 2019-10-23 CN CN201911016133.7A patent/CN110602626B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1897054A (en) * | 2005-07-14 | 2007-01-17 | 松下电器产业株式会社 | Device and method for transmitting alarm according various acoustic signals |
CN101170843A (en) * | 2007-11-30 | 2008-04-30 | 清华大学 | Speaker online pure voice failure diagnosis method |
CN104811864A (en) * | 2015-04-20 | 2015-07-29 | 深圳市冠旭电子有限公司 | Method and system for self-adaptive adjustment of audio effect |
US20160364963A1 (en) * | 2015-06-12 | 2016-12-15 | Google Inc. | Method and System for Detecting an Audio Event for Smart Home Devices |
CN106060235A (en) * | 2016-05-05 | 2016-10-26 | 广东小天才科技有限公司 | Startup and shutdown control method and device applied to mobile equipment and mobile equipment |
CN107154264A (en) * | 2017-05-18 | 2017-09-12 | 北京大生在线科技有限公司 | The method that online teaching wonderful is extracted |
CN109803207A (en) * | 2017-11-17 | 2019-05-24 | 英特尔公司 | Mark to the audio signal in ambient sound and the guidance to the autonomous vehicles in response to the mark |
CN110324776A (en) * | 2019-06-28 | 2019-10-11 | 维沃移动通信有限公司 | Misplug the hole MIC based reminding method and terminal device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111929734A (en) * | 2020-05-29 | 2020-11-13 | 维沃移动通信有限公司 | Electronic apparatus and control method |
Also Published As
Publication number | Publication date |
---|---|
CN110602626B (en) | 2021-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109078319B (en) | Game interface display method and terminal | |
CN107742072B (en) | Face recognition method and mobile terminal | |
CN110109593B (en) | Screen capturing method and terminal equipment | |
CN108347512B (en) | Identity recognition method and mobile terminal | |
CN108135033B (en) | Bluetooth connection method and mobile terminal | |
CN108650408B (en) | Screen unlocking method and mobile terminal | |
CN108391008B (en) | Message reminding method and mobile terminal | |
CN108074574A (en) | Audio-frequency processing method, device and mobile terminal | |
CN110096203B (en) | Screenshot method and mobile terminal | |
CN109544172B (en) | Display method and terminal equipment | |
CN109726121B (en) | Verification code obtaining method and terminal equipment | |
CN109166164B (en) | Expression picture generation method and terminal | |
CN109144228A (en) | A kind of fingerprint identification method and mobile terminal | |
CN110069407B (en) | Function test method and device for application program | |
CN109885490B (en) | Picture comparison method and device | |
CN111007980A (en) | Information input method and terminal equipment | |
CN108270928B (en) | Voice recognition method and mobile terminal | |
CN108388459B (en) | Message display processing method and mobile terminal | |
CN108307048B (en) | Message output method and device and mobile terminal | |
CN110602626B (en) | Microphone hole misplug detection method and electronic equipment | |
CN109819331B (en) | Video call method, device and mobile terminal | |
CN111401283A (en) | Face recognition method and device, electronic equipment and storage medium | |
CN109451143B (en) | Call method and mobile terminal | |
CN108430025B (en) | Detection method and mobile terminal | |
CN110324776B (en) | Miss-plugging MIC hole reminding method and terminal equipment |
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 |