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
- sound signal
- feature vector
- electronic device
- eigenvector
- 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
- 238000001514 detection method Methods 0.000 title claims description 6
- 230000005236 sound signal Effects 0.000 claims abstract description 96
- 239000013598 vector Substances 0.000 claims abstract description 86
- 238000000034 method Methods 0.000 claims abstract description 44
- 238000000605 extraction Methods 0.000 claims abstract description 41
- 238000003780 insertion Methods 0.000 claims abstract description 31
- 230000037431 insertion Effects 0.000 claims abstract description 30
- 238000007781 pre-processing Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012545 processing Methods 0.000 claims description 8
- 238000009432 framing Methods 0.000 claims description 6
- 239000000284 extract Substances 0.000 claims description 4
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 7
- 230000000694 effects Effects 0.000 description 3
- 230000004888 barrier function Effects 0.000 description 2
- 230000003796 beauty Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000007789 sealing Methods 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000002184 metal Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229920001296 polysiloxane Polymers 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000006748 scratching Methods 0.000 description 1
- 230000002393 scratching effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
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 Set Structure (AREA)
- Telephone Function (AREA)
Abstract
本发明公开了一种麦克风孔的误插入检测方法、电子设备,该方法包括:获取由麦克风采集到的声音信号;对所述声音信号进行特征提取,得到第一特征向量;将所述第一特征向量与预先确定的第二特征向量进行匹配,所述第二特征向量为误插入麦克风孔时的杂音信号对应的特征向量;在所述第一特征向量与所述第二特征向量匹配的情况下,提示误插入所述麦克风孔。通过获取麦克风采集到的声音信号,并将该声音信号进行特征提取和匹配,可以有效地检测是否误插入麦克风孔;在确定误插入麦克风孔后,由于可以提示用户误插入麦克风孔,因此,可以便于用户基于提示及时停止对麦克风孔的误插入操作,从而避免用户的进一步误插入麦克风孔导致麦克风损坏的问题。
The invention discloses a method for detecting a wrong insertion of a microphone hole and an electronic device. The method includes: acquiring a sound signal collected by a microphone; performing feature extraction on the sound signal to obtain a first feature vector; The eigenvector is matched with a predetermined second eigenvector, and the second eigenvector is the eigenvector corresponding to the noise signal when it is mistakenly inserted into the microphone hole; in the case where the first eigenvector matches the second eigenvector Next, it prompts that the microphone is inserted into the hole by mistake. By obtaining the sound signal collected by the microphone, and performing feature extraction and matching on the sound signal, it is possible to effectively detect whether the microphone hole is inserted by mistake; It is convenient for the user to stop the wrong insertion operation of the microphone hole in time based on the prompt, so as to avoid the problem that the user further wrongly inserts the microphone hole and causes the microphone to be damaged.
Description
技术领域technical field
本发明涉及终端领域,尤其涉及一种麦克风孔的误插入检测方法、电子设备。The invention relates to the field of terminals, in particular to a method for detecting wrong insertion of a microphone hole and electronic equipment.
背景技术Background technique
在现有的电子设备例如手机中,出于对电子设备的美观和整体的布局考虑,通常可以将SIM卡的卡座设置在电子设备的顶部或底部,而在电子设备的顶部或底部,通常还会设置麦克风,因此,就会出现SIM卡卡座的卡针孔与麦克风孔位于电子设备同一端面的情况。In existing electronic equipment such as mobile phones, for the sake of the beauty and overall layout of the electronic equipment, the card holder of the SIM card can usually be arranged on the top or bottom of the electronic equipment, and at the top or bottom of the electronic equipment, usually A microphone is also provided. Therefore, the card pinhole of the SIM card holder and the microphone hole are located at the same end face of the electronic device.
通常,用户在使用上述电子设备中的SIM卡座时,可以将SIM卡的卡针插入卡座的卡针孔中。然而,由于卡针孔与麦克风孔位于电子设备的同一端面,因此,用户很容易将卡针误插入麦克风孔中,从而造成麦克风损坏,无法正常使用,严重影响用户的使用体验。Usually, when using the SIM card holder in the electronic device, the user can insert the card pin of the SIM card 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, it is easy for the user to insert the card pin into the microphone hole by mistake, resulting in damage to the microphone, which cannot be used normally, and seriously affects the user experience.
发明内容Contents of the invention
本发明实施例提供一种麦克风孔的误插入检测方法和电子设备,以解决在现有的电子设备中,用户容易将卡针误插入麦克风孔,从而造成麦克风损坏的问题。Embodiments of the present invention provide a method for detecting incorrect insertion of a microphone hole and an electronic device, so as to solve the problem that a user easily inserts a stuck pin into a microphone hole by mistake in an existing electronic device, thereby causing damage to the microphone.
为了解决上述技术问题,本发明是这样实现的:In order to solve the problems of the technologies described above, the present invention is achieved in that:
第一方面,提供了一种麦克风孔的误插入检测方法,该方法包括:In a first aspect, a method for detecting misinsertion of a microphone hole is provided, the method comprising:
获取由麦克风采集到的声音信号;Obtain the sound signal collected by the microphone;
对所述声音信号进行特征提取,得到第一特征向量;performing feature extraction on the sound signal to obtain a first feature vector;
将所述第一特征向量与预先确定的第二特征向量进行匹配,所述第二特征向量为误插入麦克风孔时的杂音信号对应的特征向量;Matching the first eigenvector with a predetermined second eigenvector, the second eigenvector is the eigenvector corresponding to the noise signal when the microphone hole is inserted by mistake;
在所述第一特征向量与所述第二特征向量匹配的情况下,提示误插入所述麦克风孔。If the first eigenvector matches the second eigenvector, it is prompted that the microphone hole is incorrectly inserted.
第二方面,提供了一种电子设备,该电子设备包括:In a second aspect, an electronic device is provided, and the electronic device includes:
获取模块,获取由麦克风采集到的声音信号;The acquisition module acquires the sound signal collected by the microphone;
特征提取模块,对所述声音信号进行特征提取,得到第一特征向量;A feature extraction module, which extracts features from the sound signal to obtain a first feature vector;
匹配模块,将所述第一特征向量与预先确定的第二特征向量进行匹配,所述第二特征向量为误插入麦克风孔时的杂音信号对应的特征向量;A matching module, matching the first feature vector with a predetermined second feature vector, where the second feature vector is the feature vector corresponding to the noise signal when the microphone hole is inserted by mistake;
提示模块,在所述第一特征向量与所述第二特征向量匹配的情况下,提示误插入所述麦克风孔。A prompting module, in the case that the first feature vector matches the second feature vector, prompting that the microphone hole is wrongly inserted.
第三方面,提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的方法的步骤。In a third aspect, an electronic device is provided, the electronic device includes a processor, a memory, and a computer program stored on the memory and operable on the processor, when the computer program is executed by the processor The steps of the method described in the first aspect are realized.
第四方面,提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method according to the first aspect are implemented .
本发明实施例提供的技术方案,在用户使用电子设备的过程中,麦克风可以采集声音信号,电子设备在获取到麦克风采集的声音信号后,可以提取声音信号中的特征向量,并将该特征向量与误插入麦克风孔时的杂音信号对应的特征向量进行匹配,在声音信号中的特征向量与误插入麦克风孔时的杂音信号对应的特征向量匹配的情况下,提示用户误插入麦克风孔。这样,通过获取麦克风采集到的声音信号,并将该声音信号进行特征提取和匹配,可以有效地检测用户是否误插入麦克风孔;在确定误插入麦克风孔后,由于可以提示用户误插入麦克风孔,因此,可以便于用户基于提示及时停止对麦克风孔的误插入操作,从而避免由于用户的进一步误插入麦克风孔导致麦克风损坏的问题,保证麦克风可以正常使用。According to the technical solution provided by the embodiment of the present invention, when the user is using the electronic device, the microphone can collect the sound signal. Match the eigenvector corresponding to the noise signal when the microphone is inserted into the hole by mistake, and prompt the user to insert the microphone by mistake when the feature vector in the sound signal matches the eigenvector corresponding to the noise signal when the microphone is inserted by mistake. In this way, by obtaining the sound signal collected by the microphone, and performing feature extraction and matching on the sound signal, it is possible to effectively detect whether the user has inserted the microphone hole by mistake; Therefore, it is convenient for the user to stop the wrong insertion operation of the microphone hole in time based on the prompt, thereby avoiding the problem of damage to the microphone caused by the user's further wrong insertion into the microphone hole, and ensuring that the microphone can be used normally.
附图说明Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention, and constitute a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention, and do not constitute improper limitations to the present invention. In the attached picture:
图1是现有技术的一种卡针孔和麦克风孔的示意图;Fig. 1 is a schematic diagram of a card pinhole and a microphone hole in the prior art;
图2是现有技术的一种电子设备中麦克风孔的设计结构示意图;Fig. 2 is a schematic diagram of the design structure of a microphone hole in an electronic device of the prior art;
图3是本发明的一个实施例麦克风孔的误插入检测方法的流程示意图;3 is a schematic flow diagram of a method for detecting misinsertion of a microphone hole according to an embodiment of the present invention;
图4是本发明的一个实施例麦克风孔的误插入检测方法的流程示意图;Fig. 4 is a schematic flow chart of a method for detecting misinsertion of a microphone hole according to an embodiment of the present invention;
图5是本发明的一个实施例电子设备的结构示意图;Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
图6为实现本发明各个实施例的一种电子设备的硬件结构示意图。FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
具体实施方式Detailed ways
在现有的电子设备中,通常可以包括SIM卡的卡座和麦克风,其中,SIM卡的卡座对应一个卡针孔,当卡针插入卡针孔时可以弹出卡座,以便用户可以在卡座中放置SIM卡;麦克风对应一个麦克风孔,可以便于使用电子设备的用户进行语音通话。In an existing electronic device, it usually includes a SIM card holder and a microphone, wherein the SIM card holder corresponds to a card pinhole, and when the card pin is inserted into the card pinhole, the card holder can be popped up so that the user can The SIM card is placed in the seat; the microphone corresponds to a microphone hole, which is convenient for the user of the electronic device to make a voice call.
通常,出于对电子设备的美观和整体的布局考虑,可以将SIM卡的卡座和麦克风设置在电子设备的同一侧,这样,就会出现卡针孔和麦克风孔位于电子设备同一端面的情况,如图1所示,卡针孔与麦克风孔位于电子设备的同一端面且距离较近。Usually, for the sake of the beauty and overall layout of the electronic equipment, the card holder of the SIM card and the microphone can be arranged on the same side of the electronic equipment, so that the card pin hole and the microphone hole are located on the same end face of the electronic equipment. , as shown in Figure 1, the card pin hole and the microphone hole are located on the same end face of the electronic device and the distance is relatively close.
在实际应用中,当用户使用电子设备中的卡座时,可以将卡针插入卡座的卡针孔中,然而,由于卡针孔与麦克风孔位于电子设备的同一端面,因此,用户很容易将卡针误插入麦克风孔中,当用户误插入麦克风孔时,通常会损坏麦克风的导音通道,导致麦克风无法正常使用。In practical applications, when the user uses the card holder in the 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, it is easy for the user to Insert the card pin into the microphone hole by mistake. When the user inserts the microphone hole by mistake, it will usually damage the sound guide channel of the microphone, resulting in the failure of the microphone to work normally.
在现有技术中,为了避免上述问题,通常会在麦克风的导音通道处设置挡墙,当用户误插入麦克风孔时,挡墙可以对麦克风的导音通道起到一定的保护作用,从而保证麦克风可以正常使用。如图2所示。In the prior art, in order to avoid the above problems, a barrier wall is usually installed at the sound guide channel of the microphone. When the user inserts the microphone hole by mistake, the barrier wall can protect the sound guide channel of the microphone to a certain extent, thereby ensuring The microphone works fine. as shown in picture 2.
图2可以是沿图1所示A-A’线的剖面图,在图2中,麦克风处设置有副板、密封硅胶圈、中框(面盖)、密封PET、导音通道以及挡墙,挡墙可以对导音通道起到保护作用。Figure 2 can be a cross-sectional view along the AA' line shown in Figure 1. In Figure 2, the microphone is provided with a sub-board, a sealing silicone ring, a middle frame (face cover), a sealing PET, a sound guide channel and a retaining wall , The retaining wall can protect the sound guide channel.
然而,在实际应用中,当用户误插入麦克风孔后,若SIM的卡座未弹出,则用户往往会使用卡针多次大力捅插麦克风孔,这样,很容易导致挡墙被捅穿,导音通道侧壁受损,导致导音通道漏气,进而会导致麦克风的收音效果变差,甚至失效,严重影响用户的使用体验。此外,当导音通道的挡墙被捅穿后,在进行维修时通常需要更换整个中框,导致维修的成本比较高。However, in practical applications, when the user inserts the microphone hole by mistake, if the card holder of the SIM does not pop up, the user will often use the card pin to insert the microphone hole several times vigorously. The side wall of the sound channel is damaged, resulting in air leakage in the sound guide channel, which in turn will lead to poor sound collection effect of the microphone, or even failure, which seriously affects the user experience. In addition, when the retaining wall of the sound guide channel is pierced, it is usually necessary to replace the entire middle frame during maintenance, resulting in relatively high maintenance costs.
为了解决上述技术问题,本发明实施例可以在用户误插入麦克风孔后,并在用户大力捅插麦克风孔之前,对用户进行提示,这样,可以使用户停止误插入的操作,从而避免由于用户大力捅插麦克风孔导致的麦克风损坏,无法正常使用的问题。In order to solve the above-mentioned technical problems, the embodiment of the present invention can prompt the user after the user inserts the microphone hole by mistake and before the user vigorously inserts the microphone hole. The problem that the microphone cannot be used normally due to the damage caused by poking the microphone hole.
为了实现上述目的,本发明实施例提出一种麦克风孔的误插入检测方法、电子设备,该方法包括:获取由麦克风采集到的声音信号;对所述声音信号进行特征提取,得到第一特征向量;将所述第一特征向量与预先确定的第二特征向量进行匹配,所述第二特征向量为误插入麦克风孔时的杂音信号对应的特征向量;在所述第一特征向量与所述第二特征向量匹配的情况下,提示误插入所述麦克风孔。In order to achieve the above object, an embodiment of the present invention proposes a method for detecting incorrect insertion of a microphone hole and an electronic device, the method comprising: acquiring a sound signal collected by a microphone; performing feature extraction on the sound signal to obtain a first feature vector ; matching the first eigenvector with a predetermined second eigenvector, the second eigenvector is the eigenvector corresponding to the noise signal when it is mistakenly inserted into the microphone hole; when the first eigenvector and the second eigenvector correspond If the two eigenvectors match, it prompts that the microphone hole is wrongly inserted.
这样,通过获取麦克风采集到的声音信号,并将该声音信号进行特征提取和匹配,可以有效地检测用户是否误插入麦克风孔;在确定误插入麦克风孔后,由于可以提示用户误插入麦克风孔,因此,可以便于用户基于提示及时停止对麦克风孔的误插入操作,从而避免由于用户的进一步误插入麦克风孔导致麦克风损坏的问题,保证麦克风可以正常使用。In this way, by obtaining the sound signal collected by the microphone, and performing feature extraction and matching on the sound signal, it is possible to effectively detect whether the user has inserted the microphone hole by mistake; Therefore, it is convenient for the user to stop the wrong insertion operation of the microphone hole in time based on the prompt, thereby avoiding the problem of damage to the microphone caused by the user's further wrong insertion into the microphone hole, and ensuring that the microphone can be used normally.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
需要说明的是,本发明实施例提供的技术方案可以用于检测卡针是否误插入麦克风孔,还可以用于检测其他异物是否误插入麦克风孔,这里不做具体限定,为了便于理解,以下可以以卡针误插入麦克风孔为例进行说明。麦克风孔所在的电子设备可以是智能手机,也可以是平板电脑,还可以是游戏机、学习机等,这里也不做具体限定。It should be noted that the technical solution provided by the embodiment of the present invention can be used to detect whether a card pin is mistakenly inserted into the microphone hole, and can also be used to detect whether other foreign objects are mistakenly inserted into the microphone hole. There is no specific limitation here. For ease of understanding, the following can Take the pin inserted into the microphone hole by mistake as an example. The electronic device where the microphone hole is located may be a smart phone, a tablet computer, a game console, a learning machine, etc., which are not specifically limited here.
以下结合附图,详细说明本发明各实施例提供的技术方案。The technical solutions provided by various embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.
图3是本申请的一个实施例麦克风孔的误插入检测方法的流程示意图。所述方法如下所述。Fig. 3 is a schematic flowchart of a method for detecting a wrong insertion of a microphone hole according to an embodiment of the present application. The method is described below.
S302:获取由麦克风采集到的声音信号。S302: Acquire the sound signal collected by the microphone.
在S302中,用户在使用电子设备的过程中,电子设备中的麦克风可以实时采集麦克风导音通道中的声音信号,在麦克风采集到声音信号后,电子设备可以获取该声音信号。In S302, when the user is using the electronic device, the microphone in the electronic device may collect the sound signal in the sound guide channel of the microphone in real time, and after the sound signal is collected by the microphone, the electronic device may obtain the sound signal.
S304:对所述声音信号进行特征提取,得到第一特征向量。S304: Perform feature extraction on the sound signal to obtain a first feature vector.
在S304中,电子设备在获取到由麦克风采集的声音信号后,为了便于后续判断该声音信号是否是卡针误插入麦克风孔时的声音信号,可以对该声音信号进行特征提取,得到特征向量。这里为了便于区分,可以将对声音信号进行特征提取得到的特征向量称为第一特征向量。In S304, after the electronic device acquires the sound signal collected by the microphone, it may perform feature extraction on the sound signal to obtain a feature vector in order to facilitate subsequent determination of whether the sound signal is a sound signal when a pin is mistakenly inserted into the microphone hole. Here, for the convenience of distinction, the feature vector obtained by performing feature extraction on the sound signal may be referred to as the first feature vector.
在对声音信号进行特征提取时,可以包括如下步骤:When performing feature extraction on the sound signal, the following steps can be included:
首先:对声音信号进行预处理。First: Preprocessing the sound signal.
在对声音信号进行预处理时,可以去除声音信号中包括的静音部分,保留有声音信息的部分,从而得到第一预处理信号。其中,声音信号的静音部分通常位于声音信号的开头和结尾,有声音信息的部分通常位于声音信号的中间。When the audio signal is preprocessed, the silent part included in the audio signal can be removed, and the part containing the audio information can be retained, so as to obtain the first preprocessed signal. Wherein, the silent 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.
其次,对第一预处理信号进行分帧,得到第二预处理信号。Secondly, the first pre-processed signal is divided into frames to obtain the second pre-processed signal.
本实施例对预处理后的声音信号进行分帧的主要目的,是便于后续对第二预处理信号的数字化。在对第一预处理信号进行分帧时,具体实现方式可以参见现有的分帧方法,这里不再详细说明。In this embodiment, the main purpose of dividing the preprocessed sound signal into frames is to facilitate subsequent digitization of the second preprocessed signal. When the first pre-processed signal is divided into frames, the specific implementation manner may refer to the existing framing method, which will not be described in detail here.
再次,对第二预处理信号进行数字化处理,得到多维向量。Again, digitize the second preprocessed signal to obtain a multidimensional vector.
本实施例将第二预处理信号进行数字化处理,可以理解为将分帧后的每一帧波形转化为包含声音信息的多维向量,得到与多帧波形对应的多维向量。In this embodiment, the second preprocessing signal is digitized, which can be understood as converting each frame of waveform after framing into a multi-dimensional vector containing sound information to obtain a multi-dimensional vector corresponding to the multi-frame waveform.
最后,对多维向量进行特征提取,得到第一特征向量。Finally, feature extraction is performed on the multi-dimensional vector to obtain the first feature vector.
在对多维向量进行特征提取时,可以采用现有的对声音的多维向量进行特征提取的算法实现,这里不再详细说明。When performing feature extraction on multi-dimensional vectors, existing algorithms for feature extraction on multi-dimensional vectors of sounds can be used, and details will not be described here.
S306:将所述第一特征向量与预先确定的第二特征向量进行匹配。S306: Match the first feature vector with a predetermined second feature vector.
在S306中,在得到第一特征向量后,可以将第一特征向量与预先确定的第二特征向量进行匹配,其中,第二特征向量可以理解为卡针误插入麦克风孔时的声音信号对应的特征向量。这里为了便于区分,可以将卡针误插入麦克风孔时的声音信号称为杂音信号。In S306, after the first eigenvector is obtained, the first eigenvector can be matched with a predetermined second eigenvector, wherein the second eigenvector can be understood as the corresponding sound signal when the stuck needle is mistakenly inserted into the microphone hole Feature vector. Here, for the convenience of distinction, the sound signal when the stuck pin is mistakenly inserted into the microphone hole may be called a noise signal.
本实施例中,第二特征向量可以通过以下方式预先确定得到:In this embodiment, the second eigenvector can be pre-determined in the following manner:
首先,获取多次误插入麦克风孔时由麦克风采集到的多个杂音信号。First, multiple noise signals collected by the microphone when the microphone is inserted into the hole by mistake for many times are acquired.
具体地,可以多次模拟卡针误插入麦克风孔的操作,并在模拟误插入麦克风孔时,由麦克风采集导音通道中的杂音信号,其中,麦克风采集的杂音信号可以包括卡针刮擦金属表面以及塑料表面的声音信号。Specifically, it is possible to simulate the operation of the card pin being inserted into the microphone hole by mistake for many times, and when simulating the wrong insertion into the microphone hole, the microphone collects the noise signal in the sound guide channel, wherein the noise signal collected by the microphone may include the card pin scratching the metal Acoustic signals on surfaces and plastic surfaces.
本实施例中,为了便后于后续可以准确地判断S302中的声音信号是否是卡针误插入麦克风孔的声音信号,在多次模拟卡针误插入麦克风孔的操作时,每次卡针误插入时的角度和力度可以不同。In this embodiment, in order to accurately determine whether the sound signal in S302 is the sound signal of a stuck needle being inserted into the microphone hole by mistake in the follow-up, when the operation of simulating the mistakenly inserted microphone hole of the stuck needle for many times, each time the stuck needle is mistakenly inserted into the microphone hole The angle and strength of insertion can vary.
其次,在采集得到多各杂音信号后,可以对多个杂音信号进行特征提取,得到多个杂音信号对应的特征向量,即上述记载的第二特征向量。其中,在对杂音信号进行特征提取时,具体实现方式可以参见S304中记载的对声音信号进行特征提取的步骤,这里不再重复说明。Secondly, after the multiple noise signals are collected, feature extraction may be performed on the multiple noise signals to obtain feature vectors corresponding to the multiple noise signals, that is, the second feature vector described above. Wherein, when performing feature extraction on a noise signal, for a specific implementation manner, refer to the step of performing feature extraction on a sound signal recorded in S304 , which will not be repeated here.
在得到第二特征向量后,可以将第二特征向量存储在数据库中,这样,在将第一特征向量与第二特征向量进行匹配时,可以将第一特征向量与数据库中存储的第二特征向量进行匹配。After obtaining the second feature vector, the second feature vector can be stored in the database, so that when matching the first feature vector with the second feature vector, the first feature vector can be compared with the second feature vector stored in the database vector to match.
本实施例中,在将第一特征向量与第二特征向量进行匹配后,匹配结果可以包括以下两种:In this embodiment, after matching the first feature vector with the second feature vector, the matching results may include the following two types:
第一种:第一特征向量与第二特征向量匹配成功;The first type: the first eigenvector and the second eigenvector are successfully matched;
第二种:第一特征向量与第二特征向量匹配失败。The second type: the first eigenvector fails to match the second eigenvector.
若匹配结果是第一种,则可以确定S302中获取到的声音信号为卡针误插入麦克风孔时的声音信号,此时,可以执行S308;若匹配结果是第二种,则可以确定S302中获取到的声音信号不是卡针误插入麦克风孔时的声音信号,此时,可以确定卡针没有误插入麦克风孔,且麦克风采集到的声音信号为正常使用麦克风时的声音信号。If the matching result is the first type, it can be determined that the sound signal obtained in S302 is the sound signal when the stuck needle is inserted into the microphone hole by mistake, at this time, S308 can be executed; if the matching result is the second type, it can be determined that in S302 The acquired sound signal is not the sound signal when the stuck pin is mistakenly inserted into the microphone hole. At this time, it can be determined that the stuck pin is not mistakenly inserted into the microphone hole, and the sound signal collected by the microphone is the sound signal when the microphone is used normally.
S308:在所述第一特征向量与所述第二特征向量匹配的情况下,提示误插入所述麦克风孔。S308: If the first feature vector matches the second feature vector, prompt that the microphone hole is incorrectly inserted.
在S308中,若第一特征向量与第二特征向量匹配,则可以说明第一特征向量对应的声音信号为卡针误插入麦克风孔时的声音信号,即用户误将卡针插入了麦克风孔,此时可以提示用户误插入麦克风孔。In S308, if the first eigenvector matches the second eigenvector, it can be explained that the sound signal corresponding to the first eigenvector is the sound signal when the stuck pin is inserted into the microphone hole by mistake, that is, the user mistakenly inserted the stuck pin into the microphone hole, At this time, the user may be prompted to insert the microphone hole by mistake.
本实施例中,在提示用户误插入麦克风孔时,可以通过以下至少一种方式实现:In this embodiment, when the user is prompted to insert the microphone hole by mistake, it can be realized in at least one of the following ways:
控制电子设备振动;control electronic equipment vibration;
控制电子设备发出提示音;Control the electronic equipment to send out the prompt sound;
在电子设备的屏幕中显示误插入的提示信息。A prompt message of wrong insertion is displayed on the screen of the electronic device.
其中,误插入的提示信息可以是文字提示,也可以是动画提示等,这里不做具体限定。Wherein, the mistakenly inserted prompt information may be a text prompt, or an animation prompt, etc., which is not specifically limited here.
应理解,在控制电子设备发出提示音时,可以采用响铃的提示方式,也可以采用语音的提示方式,还可以是其他提示音,这里不做具体限定。此外,在屏幕中显示误插入的提示信息时,还可以显示正确的卡针孔位置,以便用户可以根据提示将卡针插入正确位置。It should be understood that when the electronic device is controlled to send out the prompt sound, the prompt manner of ringing may be adopted, the prompt manner of voice may also be adopted, and other prompt sounds may also be used, which are not specifically limited here. In addition, when the prompt message of wrong insertion is displayed on the screen, the correct pin hole position can also be displayed, so that the user can insert the pin into the correct position according to the prompt.
在向用户提示误插入麦克风孔后,用户可以基于提示确定当前卡针插入的是麦克风孔,不是卡针孔,并停止误插入操作,从而可以避免由于用户的进一步误插入麦克风孔导致麦克风损坏的问题。After prompting the user to mistakenly insert the microphone hole, the user can determine that the current stuck pin is inserted into the microphone hole instead of the stuck pin hole based on the prompt, and stop the wrong insertion operation, thereby avoiding the possibility of damage to the microphone due to further wrong insertion of the user into the microphone hole question.
可选地,本实施例中,若第一特征向量与第二特征向量不匹配,则可以说明第一特征向量对应的声音信号不是卡针误插入麦克风孔时的声音信号,而是正常使用麦克风时的声音信号,即用户没有将卡针误插入麦克风孔,此时电子设备可以无需进行提示。Optionally, in this embodiment, if the first eigenvector does not match the second eigenvector, it can be explained that the sound signal corresponding to the first eigenvector is not the sound signal when the pin is inserted into the microphone hole by mistake, but the normal use of the microphone When the sound signal is used, that is, the user does not insert the card pin into the microphone hole by mistake, and the electronic device does not need to prompt at this time.
为了便于理解本发明实施例提供的技术方案,可以参见图4。图4为本发明的一个实施例麦克风孔的误插入检测方法的流程示意图,具体可以包括以下步骤:In order to facilitate understanding of the technical solutions provided by the embodiments of the present invention, refer to FIG. 4 . Fig. 4 is a schematic flow chart of a method for detecting misinsertion of a microphone hole according to an embodiment of the present invention, which may specifically include the following steps:
S401:获取由麦克风采集到的声音信号。S401: Acquire a sound signal collected by a microphone.
用户在使用电子设备的过程中,电子设备中的麦克风可以实时采集导音通道中的声音信号,电子设备可以实时获取麦克风采集到的声音信号。When the user is using the electronic device, the microphone in the electronic device can collect the sound signal in the sound guide channel in real time, and the electronic device can obtain the sound signal collected by the microphone in real time.
S402:对声音信号进行特征提取,得到第一特征向量。S402: Perform feature extraction on the sound signal to obtain a first feature vector.
在对声音信号进行特征提取时,包括:对声音信号进行预处理,去除声音信号中包括的静音部分,得到第一预处理信号;对第一预处理信号进行分帧,得到第二预处理信号;对第二预处理信号进行数字化处理,得到多维向量;对多维向量进行特征提取,得到第一特征向量。When performing feature extraction on the sound signal, it includes: preprocessing the sound signal, removing the silent part included in the sound signal, and obtaining a first preprocessing signal; performing framing on the first preprocessing signal, and obtaining a second preprocessing signal. ; Digitally process the second preprocessing signal to obtain a multi-dimensional vector; perform feature extraction on the multi-dimensional vector to obtain a first feature vector.
本步骤的具体实现可以参见图3所示实施例中相应步骤的具体实现,这里不再重复描述。For the specific implementation of this step, reference may be made to the specific implementation of corresponding steps in the embodiment shown in FIG. 3 , and the description will not be repeated here.
S403:将第一特征向量与预先确定的第二特征向量进行匹配。S403: Match the first feature vector with a predetermined second feature vector.
第二特征向量为误插入麦克风孔时的杂音信号对应的特征向量,可以通过对误插入麦克风孔时的杂音信号进行特征提取得到,具体实现可以参见图3所示实施例中相应步骤的具体实现,这里不再重复描述。The second eigenvector is the eigenvector corresponding to the noise signal when it is mistakenly inserted into the microphone hole, and it can be obtained by performing feature extraction on the noise signal when it is mistakenly inserted into the microphone hole. , the description will not be repeated here.
S404:判断第一特征向量与第二特征向量是否匹配。S404: Determine whether the first feature vector matches the second feature vector.
若第一特征向量与第二特征向量匹配,则可以确定第一特征向量对应的声音信号为卡针误插入麦克风孔时的声音信号,此时,可以执行S405;若第一特征向量与第二特征向量不匹配,则可以确定第一特征向量对应的声音信号不是卡针误插入麦克风孔时的声音信号,而是正常使用麦克风时的声音信号,此时,可以执行S406。If the first eigenvector matches the second eigenvector, it can be determined that the sound signal corresponding to the first eigenvector is the sound signal when the stuck needle is mistakenly inserted into the microphone hole. At this time, S405 can be executed; if the first eigenvector matches the second If the eigenvectors do not match, it can be determined that the sound signal corresponding to the first eigenvector is not the sound signal when the pin is mistakenly inserted into the microphone hole, but the sound signal when the microphone is used normally. At this time, S406 can be executed.
S405:提示误插入麦克风孔。S405: Prompt that the microphone is inserted into the hole by mistake.
在提示用户误插入麦克风孔时,可以通过以下至少一种方式实现:When prompting the user to insert the microphone hole by mistake, it can be implemented in at least one of the following ways:
控制电子设备振动,控制电子设备发出提示音,在电子设备中显示误插入的提示信息等,这里不做具体限定。Controlling the vibration of the electronic device, controlling the electronic device to emit a prompt sound, and displaying a prompt message of wrong insertion in the electronic device, etc., are not specifically limited here.
S406:结束。S406: end.
在实际应用中,对麦克风孔是否误插入的检测可以是实时循环的过程,本实施例仅以一次实时地的检测过程为例进行说明。In practical applications, the detection of whether the microphone hole is incorrectly inserted may be a real-time loop process, and this embodiment only takes a real-time detection process as an example for illustration.
本发明实施例提供的技术方案,在用户使用电子设备的过程中,麦克风可以采集声音信号,电子设备在获取到麦克风采集的声音信号后,可以提取声音信号中的特征向量,并将该特征向量与误插入麦克风孔时的杂音信号对应的特征向量进行匹配,在声音信号中的特征向量与误插入麦克风孔时的杂音信号对应的特征向量匹配的情况下,提示用户误插入麦克风孔。这样,通过获取麦克风采集到的声音信号,并将该声音信号进行特征提取和匹配,可以有效地检测用户是否误插入麦克风孔;在确定误插入麦克风孔后,由于可以提示用户误插入麦克风孔,因此,可以便于用户基于提示及时停止对麦克风孔的误插入操作,从而避免由于用户的进一步误插入麦克风孔导致麦克风损坏的问题,保证麦克风可以正常使用。According to the technical solution provided by the embodiment of the present invention, when the user is using the electronic device, the microphone can collect the sound signal. Match the eigenvector corresponding to the noise signal when the microphone is inserted into the hole by mistake, and prompt the user to insert the microphone by mistake when the feature vector in the sound signal matches the eigenvector corresponding to the noise signal when the microphone is inserted by mistake. In this way, by obtaining the sound signal collected by the microphone, and performing feature extraction and matching on the sound signal, it is possible to effectively detect whether the user has inserted the microphone hole by mistake; Therefore, it is convenient for the user to stop the wrong insertion operation of the microphone hole in time based on the prompt, thereby avoiding the problem of damage to the microphone caused by the user's further wrong insertion into the microphone hole, and ensuring that the microphone can be used normally.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other implementations are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that 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. Multitasking and parallel processing are also possible or may be advantageous in certain embodiments.
图5是本发明的一个实施例电子设备的结构示意图。所述电子设备包括:获取模块51、特征提取模块52、匹配模块53和提示模块54,其中:Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device includes: an acquisition module 51, a feature extraction module 52, a matching module 53 and a prompt module 54, wherein:
获取模块51,获取由麦克风采集到的声音信号;Acquisition module 51, obtains the sound signal that is collected by microphone;
特征提取模块52,对所述声音信号进行特征提取,得到第一特征向量;Feature extraction module 52, carries out feature extraction to described sound signal, obtains the first feature vector;
匹配模块53,将所述第一特征向量与预先确定的第二特征向量进行匹配,所述第二特征向量为误插入麦克风孔时的杂音信号对应的特征向量;The matching module 53 matches the first feature vector with a predetermined second feature vector, and the second feature vector is a feature vector corresponding to the noise signal when the microphone hole is inserted by mistake;
提示模块54,在所述第一特征向量与所述第二特征向量匹配的情况下,提示误插入所述麦克风孔。The prompting module 54 prompts that the microphone is wrongly inserted into the hole when the first feature vector matches the second feature vector.
可选地,所述特征提取模块52,对所述声音信号进行特征提取,得到第一特征向量,包括:Optionally, the feature extraction module 52 performs feature extraction on the sound signal to obtain a first feature vector, including:
对所述声音信号进行预处理,去除所述声音信号中包括的静音部分,得到第一预处理信号;Preprocessing the sound signal, removing the silent 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 preprocessing signal to obtain a multidimensional vector;
对所述多维向量进行特征提取,得到所述第一特征向量。Feature extraction is performed on the multi-dimensional vector to obtain the first feature vector.
可选地,所述匹配模块53,通过以下方式确定得到所述第二特征向量:Optionally, the matching module 53 determines to obtain the second feature vector in the following manner:
获取多次误插入所述麦克风孔时由所述麦克风采集到的多个杂音信号;Obtaining a plurality of noise signals collected by the microphone when it is mistakenly inserted into the microphone hole for many times;
对所述多个杂音信号进行特征提取,得到所述第二特征向量。Feature extraction is performed on the plurality of noise signals to obtain the second feature vector.
可选地,所述提示模块54,所述提示误插入所述麦克风孔,包括以下至少一种:Optionally, the prompting module 54, where the prompting is mistakenly inserted into the microphone hole, includes at least one of the following:
控制电子设备振动;control electronic equipment vibration;
控制所述电子设备发出提示音;controlling the electronic device to emit a prompt sound;
在所述电子设备的屏幕中显示误插入的提示信息。A prompt message of wrong insertion is displayed on the screen of the electronic device.
本发明实施例提供的电子设备能够实现图3至图4的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。本发明实施例中,在用户使用电子设备的过程中,麦克风可以采集声音信号,电子设备在获取到麦克风采集的声音信号后,可以提取声音信号中的特征向量,并将该特征向量与误插入麦克风孔时的杂音信号对应的特征向量进行匹配,在声音信号中的特征向量与误插入麦克风孔时的杂音信号对应的特征向量匹配的情况下,提示用户误插入麦克风孔。这样,通过获取麦克风采集到的声音信号,并将该声音信号进行特征提取和匹配,可以有效地检测用户是否误插入麦克风孔;在确定误插入麦克风孔后,由于可以提示用户误插入麦克风孔,因此,可以便于用户基于提示及时停止对麦克风孔的误插入操作,从而避免由于用户的进一步误插入麦克风孔导致麦克风损坏的问题,保证麦克风可以正常使用。The electronic device provided by the embodiment of the present invention can implement various processes implemented by the electronic device in the method embodiments in FIG. 3 to FIG. 4 , and details are not repeated here to avoid repetition. In the embodiment of the present invention, when the user is using the electronic device, the microphone can collect the sound signal, and after the electronic device obtains the sound signal collected by the microphone, it can extract the feature vector in the sound signal, and combine the feature vector with the wrong insertion The eigenvector corresponding to the noise signal when the microphone hole is inserted is matched, and when the eigenvector in the sound signal matches the eigenvector corresponding to the noise signal when the microphone hole is inserted by mistake, the user is prompted to insert the microphone hole by mistake. In this way, by obtaining the sound signal collected by the microphone, and performing feature extraction and matching on the sound signal, it is possible to effectively detect whether the user has inserted the microphone hole by mistake; Therefore, it is convenient for the user to stop the wrong insertion operation of the microphone hole in time based on the prompt, thereby avoiding the problem of damage to the microphone caused by the user's further wrong insertion into the microphone hole, and ensuring that the microphone can be used normally.
图6为实现本发明各个实施例的一种电子设备的硬件结构示意图,FIG. 6 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention,
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、处理器610、以及电源611等部件。本领域技术人员可以理解,图6中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。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 Power supply 611 and other components. Those skilled in the art can understand that the structure of the electronic device shown in Figure 6 does not constitute a limitation on the electronic device, and the electronic device may include more or less components than shown in the illustration, or combine certain components, or different components layout. In the embodiment of the present invention, electronic devices include but are not limited to mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
其中,处理器110,用于获取由麦克风采集到的声音信号;对所述声音信号进行特征提取,得到第一特征向量;将所述第一特征向量与预先确定的第二特征向量进行匹配,所述第二特征向量为误插入麦克风孔时的杂音信号对应的特征向量;在所述第一特征向量与所述第二特征向量匹配的情况下,提示误插入所述麦克风孔。Wherein, the processor 110 is configured to acquire a sound signal collected by a microphone; perform feature extraction on the sound signal to obtain a first feature vector; match the first feature vector with a predetermined second feature vector, The second eigenvector is the eigenvector corresponding to the noise signal when the microphone hole is wrongly inserted; if the first eigenvector matches the second eigenvector, it prompts that the microphone hole is wrongly inserted.
本发明实施例中,在用户使用电子设备的过程中,麦克风可以采集声音信号,电子设备在获取到麦克风采集的声音信号后,可以提取声音信号中的特征向量,并将该特征向量与误插入麦克风孔时的杂音信号对应的特征向量进行匹配,在声音信号中的特征向量与误插入麦克风孔时的杂音信号对应的特征向量匹配的情况下,提示用户误插入麦克风孔。这样,通过获取麦克风采集到的声音信号,并将该声音信号进行特征提取和匹配,可以有效地检测用户是否误插入麦克风孔;在确定误插入麦克风孔后,由于可以提示用户误插入麦克风孔,因此,可以便于用户基于提示及时停止对麦克风孔的误插入操作,从而避免由于用户的进一步误插入麦克风孔导致麦克风损坏的问题,保证麦克风可以正常使用。In the embodiment of the present invention, when the user is using the electronic device, the microphone can collect the sound signal, and after the electronic device obtains the sound signal collected by the microphone, it can extract the feature vector in the sound signal, and combine the feature vector with the wrong insertion The eigenvector corresponding to the noise signal when the microphone hole is inserted is matched, and when the eigenvector in the sound signal matches the eigenvector corresponding to the noise signal when the microphone hole is inserted by mistake, the user is prompted to insert the microphone hole by mistake. In this way, by obtaining the sound signal collected by the microphone, and performing feature extraction and matching on the sound signal, it is possible to effectively detect whether the user has inserted the microphone hole by mistake; Therefore, it is convenient for the user to stop the wrong insertion operation of the microphone hole in time based on the prompt, thereby avoiding the problem of damage to the microphone caused by the user's further wrong insertion into the microphone hole, and ensuring that the microphone can be used normally.
应理解的是,本发明实施例中,射频单元601可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器610处理;另外,将上行的数据发送给基站。通常,射频单元601包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元601还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 can be used for receiving and sending signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 610; in addition, the Uplink data is sent to the base station. Generally, the 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. In addition, the radio frequency unit 601 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块602为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 602, such as helping users send and receive emails, browse web pages, and access streaming media.
音频输出单元603可以将射频单元601或网络模块602接收的或者在存储器609中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元603还可以提供与电子设备600执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元603包括扬声器、蜂鸣器以及受话器等。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 device 600 (eg, call signal reception sound, message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
输入单元604用于接收音频或视频信号。输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元606上。经图形处理器6041处理后的图像帧可以存储在存储器609(或其它存储介质)中或者经由射频单元601或网络模块602进行发送。麦克风6042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元601发送到移动通信基站的格式输出。The input unit 604 is used for receiving audio or video signals. The input unit 604 may include a graphics processing unit (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processing unit 6041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 606 . The image frames processed by the graphics processor 6041 may be stored in the memory 609 (or other storage media) or sent 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 can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 601 for output in the case of a phone call mode.
电子设备600还包括至少一种传感器605,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板6061的亮度,接近传感器可在电子设备600移动到耳边时,关闭显示面板6061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器605还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 6061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of electronic equipment (such as horizontal and vertical screen switching, related games) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 605 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
显示单元606用于显示由用户输入的信息或提供给用户的信息。显示单元606可包括显示面板6061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板6061。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 in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
用户输入单元607可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板6071上或在触控面板6071附近的操作)。触控面板6071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器610,接收处理器610发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板6071。除了触控面板6071,用户输入单元607还可以包括其他输入设备6072。具体地,其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 607 can be used to receive input numbers or character information, and generate key signal input 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 . The touch panel 6071, also referred to as a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 6071 or near the touch panel 6071). operate). The touch panel 6071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the For the processor 610, receive the command sent by the processor 610 and execute it. In addition, the touch panel 6071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 6071 , the user input unit 607 may also include other input devices 6072 . Specifically, other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
进一步的,触控面板6071可覆盖在显示面板6061上,当触控面板6071检测到在其上或附近的触摸操作后,传送给处理器610以确定触摸事件的类型,随后处理器610根据触摸事件的类型在显示面板6061上提供相应的视觉输出。虽然在图6中,触控面板6071与显示面板6061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板6071与显示面板6061集成而实现电子设备的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 6071 can be covered on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near it, it will be sent to the processor 610 to determine the type of the touch event, and then the processor 610 can The type of event provides a corresponding visual output on the display panel 6061. Although in FIG. 6, the touch panel 6071 and the display panel 6061 are used as two independent components to realize the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 can be integrated. The implementation of the input and output functions of the electronic device is not specifically limited here.
接口单元608为外部装置与电子设备600连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元608可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备600内的一个或多个元件或者可以用于在电子设备600和外部装置之间传输数据。The interface unit 608 is an interface for connecting an external device to the electronic device 600 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 608 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.
存储器609可用于存储软件程序以及各种数据。存储器609可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器609可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 609 can be used to store software programs as well as various data. The memory 609 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 609 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
处理器610是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器609内的软件程序和/或模块,以及调用存储在存储器609内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器610可包括一个或多个处理单元;优选的,处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。The processor 610 is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609 , to perform various functions of the electronic equipment and process data, so as to monitor the electronic equipment as a whole. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that, the foregoing modem processor may not be integrated into the processor 610 .
电子设备600还可以包括给各个部件供电的电源611(比如电池),优选的,电源611可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 600 can also include a power supply 611 (such as a battery) for supplying power to various components. Preferably, the power supply 611 can be logically connected to the processor 610 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.
另外,电子设备600包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 600 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种电子设备,包括处理器610,存储器609,存储在存储器609上并可在所述处理器610上运行的计算机程序,该计算机程序被处理器610执行时实现上述麦克风孔的误插入检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides an electronic device, including a processor 610, a memory 609, and a computer program stored in the memory 609 and operable on the processor 610. When the computer program is executed by the processor 610 The various processes of the above embodiment of the method for detecting the wrong insertion of the microphone hole can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述麦克风孔的误插入检测方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random AccessMemory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned embodiment of the method for detecting a wrong insertion of a microphone hole is implemented, and can To achieve the same technical effect, in order to avoid repetition, no more details are given here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.
Claims (10)
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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111929734A (en) * | 2020-05-29 | 2020-11-13 | 维沃移动通信有限公司 | Electronic apparatus and control method |
WO2024240052A1 (en) * | 2023-05-19 | 2024-11-28 | 华为技术有限公司 | Terminal device |
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 | 清华大学 | On-line Pure Tone Fault Diagnosis Method for Loudspeakers |
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 | 清华大学 | On-line Pure Tone Fault Diagnosis Method for Loudspeakers |
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 (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111929734A (en) * | 2020-05-29 | 2020-11-13 | 维沃移动通信有限公司 | Electronic apparatus and control method |
WO2024240052A1 (en) * | 2023-05-19 | 2024-11-28 | 华为技术有限公司 | Terminal device |
Also Published As
Publication number | Publication date |
---|---|
CN110602626B (en) | 2021-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107799125A (en) | A kind of audio recognition method, mobile terminal and computer-readable recording medium | |
CN107977652B (en) | Method for extracting screen display content and mobile terminal | |
CN108347512B (en) | Identity recognition method and mobile terminal | |
CN107742072B (en) | Face recognition method and mobile terminal | |
CN107679514A (en) | A kind of face identification method and electronic equipment | |
CN109523253B (en) | A payment method and device | |
CN107864353B (en) | A video recording method and mobile terminal | |
CN110928407B (en) | Information display method and device | |
CN107832110A (en) | A kind of information processing method and mobile terminal | |
CN107845057A (en) | One kind is taken pictures method for previewing and mobile terminal | |
CN109166164B (en) | Expression picture generation method and terminal | |
CN107623778A (en) | Incoming call answering method and mobile terminal | |
CN110807405A (en) | A detection method and electronic device for a candid camera device | |
CN109005336A (en) | A kind of image capturing method and terminal device | |
CN107770598B (en) | A detection method for synchronous playback, and a mobile terminal | |
CN108376096A (en) | A kind of message display method and mobile terminal | |
CN107734170A (en) | A kind of notification message processing method, mobile terminal and wearable device | |
CN110213686A (en) | A kind of detection method and terminal of earphone socket | |
CN109144228A (en) | A kind of fingerprint identification method and mobile terminal | |
CN108650408A (en) | A screen unlocking method and mobile terminal | |
CN108924319B (en) | Proximity detection method and mobile terminal | |
CN108769410A (en) | A kind of method for sending information and mobile terminal | |
CN108446665A (en) | A kind of face identification method and mobile terminal | |
CN110602626A (en) | Microphone hole misplug detection method and electronic equipment | |
CN108121642A (en) | A kind of failure solves method, server and mobile terminal |
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 |