[go: up one dir, main page]

CN108076199A - The air-tightness detection method and device of microphone - Google Patents

The air-tightness detection method and device of microphone Download PDF

Info

Publication number
CN108076199A
CN108076199A CN201711237411.2A CN201711237411A CN108076199A CN 108076199 A CN108076199 A CN 108076199A CN 201711237411 A CN201711237411 A CN 201711237411A CN 108076199 A CN108076199 A CN 108076199A
Authority
CN
China
Prior art keywords
microphone
intensity
voice signal
voice
airtightness
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
Application number
CN201711237411.2A
Other languages
Chinese (zh)
Other versions
CN108076199B (en
Inventor
孙伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711237411.2A priority Critical patent/CN108076199B/en
Publication of CN108076199A publication Critical patent/CN108076199A/en
Application granted granted Critical
Publication of CN108076199B publication Critical patent/CN108076199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/24Arrangements for testing
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/03Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
    • G10L25/21Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters the extracted parameters being power information
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephone Set Structure (AREA)
  • Telephone Function (AREA)

Abstract

本公开是关于一种麦克风的气密性检测方法及装置,所述方法包括:在接收到用于检测麦克风气密性的指令时,控制听筒播放语音信号;在与麦克风对应的麦克孔处于第一预设状态下,确定麦克风接收到语音信号的第一强度;在麦克孔处于第二预设状态下,确定麦克风接收到语音信号的第二强度;基于第一强度和第二强度检测麦克风的气密性。本公开技术方案可以提高麦克风气密性检测的准确度。

The present disclosure relates to a method and device for detecting the airtightness of a microphone. The method includes: when receiving an instruction for detecting the airtightness of the microphone, controlling the earpiece to play a voice signal; when the microphone hole corresponding to the microphone is in the first position In a preset state, determine the first strength of the voice signal received by the microphone; when the microphone hole is in a second preset state, determine the second strength of the voice signal received by the microphone; detect the strength of the microphone based on the first strength and the second strength air tightness. The technical proposal of the disclosure can improve the accuracy of microphone air tightness detection.

Description

麦克风的气密性检测方法及装置Method and device for detecting air tightness of microphone

技术领域technical field

本公开涉及通信技术领域,尤其涉及一种麦克风的气密性检测方法及装置。The present disclosure relates to the field of communication technologies, and in particular to a microphone airtightness detection method and device.

背景技术Background technique

麦克风在移动终端上充当着送话器的角色,并且移动终端上开设有用于拾取语音信号的麦克孔,语音信号进入麦克孔后,经过麦克风的拾音结构进入麦克风中,并由麦克风将该语音信号发送给对端。由此可知,麦克风的气密性好坏直接决定移动终端的通话音质。The microphone acts as a microphone on the mobile terminal, and the mobile terminal is equipped with a microphone hole for picking up the voice signal. After the voice signal enters the microphone hole, it enters the microphone through the sound pickup structure of the microphone, and the voice is received by the microphone. The signal is sent to the peer. It can be seen that the airtightness of the microphone directly determines the call quality of the mobile terminal.

在相关技术中,通过外置的喇叭发声检测麦克风的气密性。具体地,喇叭与麦克风相距一定的距离(例如,20厘米),控制喇叭发声,在堵住麦克孔的情况下,移动终端检测麦克风接收到的声音信号大小,在不堵住麦克孔的情况下,移动终端再检测麦克风接收到的声音信号大小,如果两次检测到的声音信号的差值大于阈值,则表示麦克风气密性良好。由于麦克风的气密性好坏除了与麦克孔相关之外,还与拾音结构相关,而外置喇叭的检测方式只能检测麦克孔的气密性,不能检测拾音结构的气密性,因此通过外置喇叭检测麦克风气密性好坏并不准确。In the related art, the airtightness of the microphone is detected by sounding from an external speaker. Specifically, the speaker and the microphone are separated by a certain distance (for example, 20 centimeters), and the speaker is controlled to make a sound. When the microphone hole is blocked, the mobile terminal detects the size of the sound signal received by the microphone. , the mobile terminal then detects the magnitude of the sound signal received by the microphone, and if the difference between the two detected sound signals is greater than a threshold, it indicates that the airtightness of the microphone is good. Since the airtightness of the microphone is not only related to the microphone hole, but also related to the pickup structure, and the detection method of the external speaker can only detect the airtightness of the microphone hole, not the airtightness of the pickup structure. Therefore, it is not accurate to detect the airtightness of the microphone through the external speaker.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开实施例提供一种麦克风的气密性检测方法及装置,用以提高麦克风气密性检测的准确度。In order to overcome the problems existing in the related technologies, embodiments of the present disclosure provide a microphone airtightness detection method and device, so as to improve the accuracy of the microphone airtightness detection.

根据本公开实施例的第一方面,提供一种麦克风的气密性检测方法,所述方法包括:According to a first aspect of an embodiment of the present disclosure, a method for detecting air tightness of a microphone is provided, the method comprising:

在接收到用于检测麦克风气密性的指令时,控制听筒播放语音信号;When an instruction for detecting the airtightness of the microphone is received, the earpiece is controlled to play a voice signal;

在与所述麦克风对应的麦克孔处于第一预设状态下,确定所述麦克风接收到所述语音信号的第一强度;When the microphone hole corresponding to the microphone is in a first preset state, determine a first strength of the voice signal received by the microphone;

在所述麦克孔处于第二预设状态下,确定所述麦克风接收到所述语音信号的第二强度;When the microphone hole is in a second preset state, determine a second strength of the voice signal received by the microphone;

基于所述第一强度和所述第二强度检测所述麦克风的气密性。Airtightness of the microphone is detected based on the first intensity and the second intensity.

在一实施例中,所述基于所述第一强度和第二强度检测所述麦克风的气密性,可包括:In an embodiment, the detecting the airtightness of the microphone based on the first intensity and the second intensity may include:

确定所述第一强度与所述第二强度的差值绝对值;determining an absolute value of the difference between the first intensity and the second intensity;

基于所述差值绝对值与预设阈值之间的大小关系,检测所述麦克风的气密性。Based on the size relationship between the absolute value of the difference and a preset threshold, the airtightness of the microphone is detected.

在一实施例中,所述控制听筒播放语音信号,可包括:In an embodiment, the controlling the earpiece to play the voice signal may include:

确定所述麦克风与所述听筒之间的距离;determining a distance between the microphone and the earpiece;

从预设列表中查找与所述距离对应的语音强度,所述预设列表用于记录所述麦克风与所述听筒之间的距离与语音强度之间的对应关系;Finding the voice intensity corresponding to the distance from a preset list, the preset list being used to record the correspondence between the distance between the microphone and the earpiece and the voice intensity;

控制听筒播放具有所述语音强度的语音信号。The earpiece is controlled to play the voice signal with the voice intensity.

在一实施例中,所述控制听筒播放语音信号,可包括:In an embodiment, the controlling the earpiece to play the voice signal may include:

读取本地预先设置的语音信号;Read the local preset voice signal;

将读取的语音信号通过所述听筒播放。The read voice signal is played through the earpiece.

根据本公开实施例的第二方面,提供一种麦克风的气密性检测装置,所述装置包括:According to a second aspect of an embodiment of the present disclosure, there is provided an airtightness detection device for a microphone, the device comprising:

播放模块,被配置为在接收到用于检测麦克风气密性的指令时,控制听筒播放语音信号;The playback module is configured to control the earpiece to play the voice signal when receiving the instruction for detecting the airtightness of the microphone;

第一确定模块,被配置为在与所述麦克风对应的麦克孔处于第一预设状态下,确定所述麦克风接收到所述语音信号的第一强度;The first determination module is configured to determine a first strength of the voice signal received by the microphone when the microphone hole corresponding to the microphone is in a first preset state;

第二确定模块,被配置为在所述麦克孔处于第二预设状态下,确定所述麦克风接收到所述语音信号的第二强度;The second determining module is configured to determine a second strength of the voice signal received by the microphone when the microphone hole is in a second preset state;

检测模块,被配置为基于所述第一强度和所述第二强度检测所述麦克风的气密性。A detection module configured to detect airtightness of the microphone based on the first intensity and the second intensity.

在一实施例中,所述检测模块,可包括:In one embodiment, the detection module may include:

第一确定子模块,被配置为确定所述第一强度与所述第二强度的差值绝对值;The first determination submodule is configured to determine the absolute value of the difference between the first intensity and the second intensity;

检测子模块,被配置为基于所述差值绝对值与预设阈值之间的大小关系,检测所述麦克风的气密性。The detection submodule is configured to detect the airtightness of the microphone based on the magnitude relationship between the absolute value of the difference and a preset threshold.

在一实施例中,所述播放模块,可包括:In one embodiment, the playback module may include:

第二确定子模块,被配置为确定所述麦克风与所述听筒之间的距离;The second determining submodule is configured to determine the distance between the microphone and the earpiece;

查找子模块,被配置为从预设列表中查找与所述距离对应的语音强度,所述预设列表用于记录所述麦克风与所述听筒之间的距离与语音强度之间的对应关系;The search submodule is configured to search for the voice intensity corresponding to the distance from a preset list, and the preset list is used to record the correspondence between the distance between the microphone and the earpiece and the voice intensity;

第一播放子模块,被配置为控制听筒播放具有所述语音强度的语音信号。The first playing submodule is configured to control the earpiece to play the voice signal with the voice intensity.

在一实施例中,所述播放模块,还可包括:In an embodiment, the playing module may further include:

读取子模块,被配置为读取本地预先设置的语音信号;The reading sub-module is configured to read a local preset voice signal;

第二播放子模块,被配置为将读取的语音信号通过所述听筒播放。The second playing submodule is configured to play the read voice signal through the earpiece.

根据本公开实施例的第三方面,提供一种麦克风的气密性检测装置,包括:According to a third aspect of an embodiment of the present disclosure, there is provided an airtightness detection device for a microphone, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,所述处理器被配置为:Wherein, the processor is configured as:

在接收到用于检测麦克风气密性的指令时,控制听筒播放语音信号;When an instruction for detecting the airtightness of the microphone is received, the earpiece is controlled to play a voice signal;

在与所述麦克风对应的麦克孔处于第一预设状态下,确定所述麦克风接收到所述语音信号的第一强度;When the microphone hole corresponding to the microphone is in a first preset state, determine a first strength of the voice signal received by the microphone;

在所述麦克孔处于第二预设状态下,确定所述麦克风接收到所述语音信号的第二强度;When the microphone hole is in a second preset state, determine a second strength of the voice signal received by the microphone;

基于所述第一强度和所述第二强度检测所述麦克风的气密性。Airtightness of the microphone is detected based on the first intensity and the second intensity.

本公开的实施例提供的技术方案可以包括以下有益效果:移动终端在接收到用于检测麦克风气密性的指令时,可以控制听筒播放语音信号,然后在与麦克风对应的麦克孔处于第一预设状态下,确定麦克风接收到语音信号的第一强度,并在麦克孔处于第二预设状态下,确定麦克风接收到语音信号的第二强度,最后基于第一强度和第二强度检测麦克风的气密性。本公开利用听筒播放语音信号的检测方式除了可以检测麦克孔的气密性,还可以检测麦克风的拾音结构的气密性,从而能够提高麦克风气密性检测的准确度。此外,通过听筒播放语音信号代替外置喇叭发声,来检测麦克风的气密性,由于避免采用采购用于检测气密性的外置喇叭,因此可以节约检测成本。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: when the mobile terminal receives an instruction for detecting the airtightness of the microphone, it can control the earpiece to play a voice signal, and then when the microphone hole corresponding to the microphone is in the first preset In the preset state, determine the first strength of the voice signal received by the microphone, and determine the second strength of the voice signal received by the microphone when the microphone hole is in the second preset state, and finally detect the strength of the microphone based on the first strength and the second strength air tightness. In addition to the airtightness of the microphone hole, the airtightness of the sound pickup structure of the microphone can be detected by the detection method of the voice signal played by the earpiece in the present disclosure, thereby improving the accuracy of the airtightness detection of the microphone. In addition, the airtightness of the microphone is detected by playing a voice signal through the earpiece instead of the sound of the external speaker. Since the purchase of an external speaker for detecting airtightness is avoided, the detection cost can be saved.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.

图1是根据一示例性实施例示出的一种麦克风的气密性检测方法的流程图;Fig. 1 is a flow chart of a method for detecting the airtightness of a microphone according to an exemplary embodiment;

图2A是根据一示例性实施例示出的另一种麦克风的气密性检测方法的流程图;Fig. 2A is a flow chart of another microphone airtightness detection method according to an exemplary embodiment;

图2B是根据图2A所示实施例示出的一种移动终端上的麦克风与听筒的示意图;Fig. 2B is a schematic diagram of a microphone and an earpiece on a mobile terminal according to the embodiment shown in Fig. 2A;

图3是根据一示例性实施例示出的又一种麦克风的气密性检测方法的流程图;Fig. 3 is a flow chart showing yet another airtightness detection method of a microphone according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种麦克风的气密性检测装置的框图;Fig. 4 is a block diagram of an air tightness detection device for a microphone according to an exemplary embodiment;

图5是根据一示例性实施例示出的另一种麦克风的气密性检测装置的框图;Fig. 5 is a block diagram of another microphone airtightness detection device according to an exemplary embodiment;

图6是根据一示例性实施例示出的又一种麦克风的气密性检测装置的框图;Fig. 6 is a block diagram of yet another microphone airtightness detection device according to an exemplary embodiment;

图7是根据一示例性实施例示出的一种适用于麦克风的气密性检测装置的框图。Fig. 7 is a block diagram of an air tightness detection device suitable for a microphone according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

图1是根据一示例性实施例示出的一种麦克风的气密性检测方法的流程图,该麦克风的气密性检测方法可以应用在移动终端(例如:智能手机、平板电脑)上,可以通过在移动终端上安装应用的方式或者在移动终端的用户桌面上快捷按钮的方式实现,如图1所示,该麦克风的气密性检测方法包括如下步骤:Fig. 1 is a flow chart of a method for detecting the airtightness of a microphone according to an exemplary embodiment, the method for detecting the airtightness of a microphone can be applied to a mobile terminal (for example: a smart phone, a tablet computer), and can be passed The mode of installing application on the mobile terminal or the mode of the shortcut button on the user's desktop of the mobile terminal is realized, as shown in Figure 1, the airtightness detection method of this microphone comprises the following steps:

在步骤101中,在接收到用于检测麦克风气密性的指令时,控制听筒播放语音信号。In step 101, when an instruction for detecting the airtightness of the microphone is received, the earpiece is controlled to play a voice signal.

在一实施例中,移动终端上可以安装麦克风气密性检测的应用,在需要进行麦克风气密性检测时,用户可以打开该应用并输入检测指令,检测指令可以为字母、数字、字符或三者的任意组合。从而移动终端能够接收到该检测指令,并启动麦克风气密性检测的过程。In one embodiment, an application for detecting the airtightness of the microphone can be installed on the mobile terminal. When the airtightness of the microphone needs to be detected, the user can open the application and input the detection instruction. The detection instruction can be letters, numbers, characters or three characters. any combination of those. Therefore, the mobile terminal can receive the detection instruction, and start the process of detecting the airtightness of the microphone.

在另一实施例中,移动终端本地可以预先设置语音信号,从而移动终端可以读取本地预先设置的语音信号,并将读取的语音信号通过听筒播放。In another embodiment, the mobile terminal can preset the voice signal locally, so that the mobile terminal can read the locally preset voice signal, and play the read voice signal through the earpiece.

其中,听筒播放的语音信号的频率为预设频率,且该预设频率在人发声频率范围之内。例如,预设频率可以设置为300Hz至3400Hz之间的任一频率。Wherein, the frequency of the voice signal played by the earpiece is a preset frequency, and the preset frequency is within the frequency range of human voice. For example, the preset frequency can be set to any frequency between 300Hz and 3400Hz.

在步骤102中,在与麦克风对应的麦克孔处于第一预设状态下,确定该麦克风接收到语音信号的第一强度。In step 102, when the microphone hole corresponding to the microphone is in a first preset state, determine the first strength of the voice signal received by the microphone.

在一实施例中,第一预设状态可以是麦克孔通畅状态,从而第一强度指的是麦克孔通畅状态下接收到语音信号的强度。In an embodiment, the first preset state may be the unobstructed state of the microphone hole, so the first intensity refers to the intensity of the voice signal received under the unobstructed state of the microphone hole.

在步骤103中,在麦克孔处于第二预设状态下,确定麦克风接收到语音信号的第二强度。In step 103, when the microphone hole is in the second preset state, determine the second strength of the voice signal received by the microphone.

在一实施例中,第二预设状态可以是麦克孔被堵上的状态,从而第二强度指的是麦克孔被堵上状态下接收到语音信号的强度。本领域技术人员可以理解的是,第一预设状态和第二预设状态中的“第一”和“第二”仅用于区分不同的状态,在本公开中的第一预设状态是用于表示麦克孔通畅情况,第二预设状态是用于表示麦克孔被堵上情况。In an embodiment, the second preset state may be a state that the microphone hole is blocked, so the second intensity refers to the strength of the voice signal received in the state that the microphone hole is blocked. Those skilled in the art can understand that the "first" and "second" in the first preset state and the second preset state are only used to distinguish different states, and the first preset state in the present disclosure is The second preset state is used to indicate that the microphone hole is blocked.

其中,为了确保麦克孔被彻底堵上,可以利用压缩性海绵堵住麦克孔。Wherein, in order to ensure that the microphone hole is completely blocked, a compressible sponge can be used to block the microphone hole.

值得说明的是,移动终端的麦克风采集到的语音信号,需要首先通过最外部的麦克孔,然后再经过内部的拾音结构才可采集到,因此麦克风的气密性好坏与麦克孔和拾音结构的气密性相关。其中,麦克孔的气密性可以通过播放到外部的语音信号检测,而听筒播放的语音信号通常会在移动终端内部泄露,因此拾音结构的气密性可以通过内部泄露的语音信号检测。It is worth noting that the voice signal collected by the microphone of the mobile terminal must first pass through the outermost microphone hole, and then pass through the internal sound pickup structure. Therefore, the airtightness of the microphone depends on the microphone hole and the pickup. The airtightness of the sound structure is related. Among them, the airtightness of the microphone hole can be detected by the voice signal played to the outside, and the voice signal played by the earpiece is usually leaked inside the mobile terminal, so the airtightness of the sound pickup structure can be detected by the voice signal leaked inside.

需要说明的是,本公开对步骤102与步骤103的执行顺序不进行限制,既可以先执行步骤102,也可以先执行步骤103。It should be noted that the present disclosure does not limit the execution order of step 102 and step 103, and step 102 or step 103 may be executed first.

在步骤104中,基于第一强度和第二强度检测麦克风的气密性。In step 104, the airtightness of the microphone is detected based on the first intensity and the second intensity.

对于如何基于第一强度和第二强度检测麦克风的气密性的描述,可以参见下述图3所示实施例的相关描述,本公开在此先不详述。For the description of how to detect the airtightness of the microphone based on the first intensity and the second intensity, reference may be made to the related description of the embodiment shown in FIG. 3 below, and the present disclosure will not be described in detail here.

本实施例中,移动终端在接收到用于检测麦克风气密性的指令时,可以控制听筒播放语音信号,然后在与麦克风对应的麦克孔处于第一预设状态下,确定麦克风接收到语音信号的第一强度,并在麦克孔处于第二预设状态下,确定麦克风接收到语音信号的第二强度,最后基于第一强度和第二强度检测麦克风的气密性。本公开利用听筒播放语音信号的检测方式除了可以检测麦克孔的气密性,还可以检测麦克风的拾音结构的气密性,从而能够提高麦克风气密性检测的准确度。此外,通过听筒播放语音信号代替外置喇叭发声,来检测麦克风的气密性,由于避免采用采购用于检测气密性的外置喇叭,因此可以节约检测成本。In this embodiment, when the mobile terminal receives the instruction for detecting the airtightness of the microphone, it can control the earpiece to play the voice signal, and then determine that the microphone has received the voice signal when the microphone hole corresponding to the microphone is in the first preset state. The first strength of the microphone, and when the microphone hole is in the second preset state, determine the second strength of the voice signal received by the microphone, and finally detect the airtightness of the microphone based on the first strength and the second strength. In addition to the airtightness of the microphone hole, the airtightness of the sound pickup structure of the microphone can be detected by the detection method of the voice signal played by the earpiece in the present disclosure, thereby improving the accuracy of the airtightness detection of the microphone. In addition, the airtightness of the microphone is detected by playing a voice signal through the earpiece instead of the sound of the external speaker. Since the purchase of an external speaker for detecting airtightness is avoided, the detection cost can be saved.

在一实施例中,上述步骤104,可包括:In an embodiment, the above step 104 may include:

确定所述第一强度与所述第二强度的差值绝对值;determining an absolute value of the difference between the first intensity and the second intensity;

基于所述差值绝对值与预设阈值之间的大小关系,检测所述麦克风的气密性。Based on the size relationship between the absolute value of the difference and a preset threshold, the airtightness of the microphone is detected.

在一实施例中,上述步骤101,可包括:In an embodiment, the above step 101 may include:

确定所述麦克风与所述听筒之间的距离;determining a distance between the microphone and the earpiece;

从预设列表中查找与所述距离对应的语音强度,所述预设列表用于记录所述麦克风与所述听筒之间的距离与语音强度之间的对应关系;Finding the voice intensity corresponding to the distance from a preset list, the preset list being used to record the correspondence between the distance between the microphone and the earpiece and the voice intensity;

控制听筒播放具有所述语音强度的语音信号。The earpiece is controlled to play the voice signal with the voice intensity.

在一实施例中,上述步骤101,还可包括:In an embodiment, the above step 101 may further include:

读取本地预先设置的语音信号;Read the local preset voice signal;

将读取的语音信号通过所述听筒播放。The read voice signal is played through the earpiece.

具体如何检测麦克风的气密性的,请参考后续实施例。For how to detect the airtightness of the microphone, please refer to the subsequent embodiments.

至此,本公开实施例提供的上述方法,可以准确检测麦克风的气密性,并且可以节约检测成本。So far, the above method provided by the embodiments of the present disclosure can accurately detect the airtightness of the microphone, and can save the detection cost.

下面以具体实施例来说明本公开实施例提供的技术方案。The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.

图2A是根据一示例性实施例示出的另一种麦克风的气密性检测方法的流程图;图2B是根据图2A所示实施例示出的一种移动终端上的麦克风与听筒的示意图,本实施例利用本公开实施例提供的上述方法,以如何控制听筒播放语音信号为例进行示例性说明,如图2A所示,包括如下步骤:Fig. 2A is a flow chart of another method for detecting the airtightness of a microphone according to an exemplary embodiment; Fig. 2B is a schematic diagram of a microphone and an earpiece on a mobile terminal according to the embodiment shown in Fig. 2A. Embodiment Using the above method provided by the embodiment of the present disclosure, how to control the handset to play a voice signal is used as an example to illustrate, as shown in FIG. 2A, including the following steps:

在步骤201中,确定麦克风与听筒之间的距离。In step 201, the distance between the microphone and the receiver is determined.

在一实施例中,通常麦克风采集到的语音信号的强度,除了与语音信号本身的强度有关之外,还与麦克风与发声源之间的距离有关,而通常对于用于检测麦克风气密性的语音信号的强度具有一定的要求。因此,在控制听筒播放语音信号之前,可以先确定麦克风与听筒之间的距离。In one embodiment, the strength of the speech signal collected by the microphone is not only related to the strength of the speech signal itself, but also related to the distance between the microphone and the sound source. The strength of the voice signal has certain requirements. Therefore, before controlling the earpiece to play the voice signal, the distance between the microphone and the earpiece can be determined first.

其中,由于移动终端上设置的麦克风不止一个,因此移动终端可以预先配置每个麦克风与听筒之间的距离,以区分每个麦克风的位置。例如,通常在移动终端的底部设置有麦克风(主麦克风),用于通电话时拾取用户的声音;在移动终端顶部背面,靠近摄像头位置设置有麦克风(辅麦克风),用于辅助主麦克风拾取用户的声音。Wherein, since more than one microphone is set on the mobile terminal, the mobile terminal can pre-configure the distance between each microphone and the earpiece to distinguish the position of each microphone. For example, a microphone (main microphone) is usually installed at the bottom of the mobile terminal to pick up the user’s voice when talking on the phone; on the back of the top of the mobile terminal, a microphone (auxiliary microphone) is installed near the camera to assist the main microphone to pick up the user’s voice. the sound of.

在步骤202中,从预设列表中查找与该距离对应的语音强度,该预设列表用于记录麦克风与听筒之间的距离与语音强度之间的对应关系。In step 202, the voice intensity corresponding to the distance is searched from a preset list, which is used to record the correspondence between the distance between the microphone and the earpiece and the voice intensity.

在一实施例中,在进行检测过程中,为了保证到达每个麦克孔的语音信号的强度一致,移动终端可以预先配置一个预设列表,用于记录麦克风与听筒之间的距离与语音强度之间的对应关系,该预设列表中记录的距离对应的语音强度可以通过实验得到,通常,距离越远对应的语音强度越大。In an embodiment, during the detection process, in order to ensure that the intensity of the voice signal reaching each microphone hole is consistent, the mobile terminal can pre-configure a preset list for recording the distance between the microphone and the earpiece and the voice intensity. The corresponding relationship between the voice intensities corresponding to the distances recorded in the preset list can be obtained through experiments. Generally, the farther the distance is, the greater the corresponding voice intensities are.

在一示例性的场景中,如图2B所示,移动终端上的麦克风16为主麦克风,麦克风17为辅麦克风,麦克风16与听筒15之间的距离为D1,麦克风17与听筒15之间的距离为D2,距离D1对应的语音强度可以为dB1,距离D2对应的语音强度可以为dB2,由于D1>D2,因此,dB1>dB2。In an exemplary scenario, as shown in FIG. 2B , the microphone 16 on the mobile terminal is the main microphone, the microphone 17 is the auxiliary microphone, the distance between the microphone 16 and the receiver 15 is D1, and the distance between the microphone 17 and the receiver 15 is D1. The distance is D2, the speech intensity corresponding to the distance D1 may be dB1, the speech intensity corresponding to the distance D2 may be dB2, and since D1>D2, therefore, dB1>dB2.

在步骤203中,控制听筒播放具有该语音强度的语音信号。In step 203, the earpiece is controlled to play the voice signal with the voice intensity.

在一实施例中,移动终端可以读取本地预先设置的语音信号,并以该语音强度大小通过听筒播放该语音信号。In an embodiment, the mobile terminal can read a locally preset voice signal, and play the voice signal through the earpiece with the voice intensity.

在另一示例性场景中,如上述步骤202所示的场景,如果检测的是主麦克风的气密性,则听筒播放语音强度为dB1的语音信号,如果检测的是辅麦克风的气密性,则听筒播放语音强度为dB2的语音信号。In another exemplary scenario, as in the scenario shown in step 202 above, if the airtightness of the main microphone is detected, the earpiece plays a voice signal with a voice intensity of dB1; if the airtightness of the secondary microphone is detected, Then the earpiece plays a voice signal with a voice intensity of dB2.

本实施例中,由于移动终端上不止有一个麦克风,因此移动终端可以通过麦克风与听筒之间的距离控制要播放的语音信号的语音强度,以保证到达每个麦克孔的语音信号的强度一致,方便后续利用阈值判断麦克风的气密性好坏。In this embodiment, since there is more than one microphone on the mobile terminal, the mobile terminal can control the voice intensity of the voice signal to be played through the distance between the microphone and the earpiece, so as to ensure that the intensity of the voice signal reaching each microphone hole is consistent, It is convenient to use the threshold to judge the airtightness of the microphone later.

图3是根据一示例性实施例示出的另一种麦克风的气密性检测方法的流程图;本实施例利用本公开实施例提供的上述方法,以如何基于第一强度和第二强度检测麦克风的气密性为例进行示例性说明,如图3所示,包括如下步骤:Fig. 3 is a flow chart showing another airtightness detection method of a microphone according to an exemplary embodiment; this embodiment utilizes the above-mentioned method provided by the embodiment of the present disclosure to determine how to detect the microphone based on the first intensity and the second intensity The airtightness of the airtightness is taken as an example, as shown in Figure 3, including the following steps:

在步骤301中,确定第一强度与第二强度的差值绝对值。In step 301, the absolute value of the difference between the first intensity and the second intensity is determined.

在步骤302中,基于该差值绝对值与预设阈值之间的大小关系,检测麦克风的气密性。In step 302, the airtightness of the microphone is detected based on the magnitude relationship between the absolute value of the difference and a preset threshold.

在一实施例中,如果该差值绝对值超过预设阈值,则确定麦克风的气密性良好,如果该差值绝对值未超过预设阈值,则确定麦克风的气密性不好。In an embodiment, if the absolute value of the difference exceeds a preset threshold, it is determined that the airtightness of the microphone is good, and if the absolute value of the difference does not exceed the preset threshold, it is determined that the airtightness of the microphone is not good.

其中,预设阈值可以根据实际经验进行设置。如果确定麦克风气密性良好,则表示其对应的麦克孔和拾音结构的气密性均是好的,而如果确定麦克风气密性不好,则表示可能其对应的麦克孔气密性不好,也可能是其对应的拾音结构气密性不好。也可能其对应的麦克孔和拾音结构的气密性均不好。Wherein, the preset threshold can be set according to actual experience. If it is determined that the airtightness of the microphone is good, it means that the airtightness of the corresponding microphone hole and the pickup structure are good, and if it is determined that the airtightness of the microphone is not good, it means that the airtightness of the corresponding microphone hole may not be good. Well, it may also be that the corresponding pickup structure is not airtight. It is also possible that the airtightness of the corresponding microphone hole and the pickup structure is not good.

在一示例性场景中,预设阈值为150,如表1所示,分别在四种情形下侧得的第一强度和第二强度。第一种情形表示的是麦克孔气密性好,而拾音结构气密性不好;第二种情形表示的是麦克孔和拾音结构气密性均好;第三种情形表示的是麦克孔气密性不好,而拾音结构气密性好;第四种情形表示的是麦克孔和拾音结构的气密性均不好。因此对于第一、三、四种情形下的麦克风,由第二强度与第一强度的差值绝对值均未超过150可知,麦克风的气密性均不好;对于第三种情形下的麦克风,由第二强度与第一强度的差值绝对值超过150可知,麦克风的气密性良好。此外,上述图2所示的实施例,听筒播放的语音信号到达每个麦克孔的语音强度均一致,对于第四种情形下的麦克风,即使在麦克孔被堵上时,测得的第二强度比第一种和第二种情形都大,因此可以进一步确定第四种情形下的麦克风的麦克孔和拾音结构气密性均不好。In an exemplary scenario, the preset threshold is 150. As shown in Table 1, the first intensity and the second intensity are respectively obtained in four situations. The first case shows that the airtightness of the microphone hole is good, but the airtightness of the pickup structure is not good; the second case shows that the airtightness of the microphone hole and the pickup structure is good; the third case shows that The airtightness of the microphone hole is not good, but the airtightness of the pickup structure is good; the fourth case shows that the airtightness of both the microphone hole and the pickup structure is not good. Therefore, for the microphones in the first, third, and fourth situations, the absolute value of the difference between the second intensity and the first intensity does not exceed 150. It can be seen that the airtightness of the microphones is not good; for the microphones in the third situation , from the absolute value of the difference between the second intensity and the first intensity exceeding 150, it can be seen that the airtightness of the microphone is good. In addition, in the above-mentioned embodiment shown in FIG. 2, the voice intensity of the voice signal played by the earpiece reaching each microphone hole is consistent. For the microphone in the fourth situation, even when the microphone hole is blocked, the measured second The strength is greater than that of the first and second cases, so it can be further confirmed that the airtightness of the microphone hole and the pickup structure of the microphone in the fourth case is not good.

one two three Four 第一强度first intensity 200200 200200 200200 200200 第二强度second intensity 100100 00 100100 150150

表1Table 1

本实施例中,移动终端通过听筒播放语音信号,并利用第一预设状态下的第一强度与第二预设状态下的第二强度的差值绝对值与预设阈值之间的大小关系判断麦克风的气密性好坏。从而本公开利用听筒播放语音信号的检测方式除了可以检测麦克孔的气密性,还可以检测麦克风的拾音结构的气密性,从而能够提高麦克风的气密性检测准确度。此外,通过听筒播放语音信号代替外置喇叭发声,来检测麦克风的气密性,由于避免采用采购用于检测气密性的外置喇叭,因此可以节约检测成本。In this embodiment, the mobile terminal plays the voice signal through the earpiece, and uses the magnitude relationship between the absolute value of the difference between the first intensity in the first preset state and the second intensity in the second preset state and the preset threshold Judge the airtightness of the microphone. Therefore, in the present disclosure, the detection method of playing voice signals by the earpiece can not only detect the airtightness of the microphone hole, but also detect the airtightness of the sound pickup structure of the microphone, thereby improving the accuracy of airtightness detection of the microphone. In addition, the airtightness of the microphone is detected by playing a voice signal through the earpiece instead of the sound of the external speaker. Since the purchase of an external speaker for detecting airtightness is avoided, the detection cost can be saved.

图4是根据一示例性实施例示出的一种麦克风的气密性检测装置的框图,如图4所示,用于麦克风的气密性检测装置包括:Fig. 4 is a block diagram of an airtightness detection device for a microphone according to an exemplary embodiment. As shown in Fig. 4, the airtightness detection device for a microphone includes:

播放模块41,被配置为在接收到用于检测麦克风气密性的指令时,控制听筒播放语音信号;The playback module 41 is configured to control the earpiece to play a voice signal when receiving an instruction for detecting the airtightness of the microphone;

第一确定模块42,被配置为在与所述麦克风对应的麦克孔处于第一预设状态下,确定所述麦克风接收到所述语音信号的第一强度;The first determination module 42 is configured to determine a first strength of the voice signal received by the microphone when the microphone hole corresponding to the microphone is in a first preset state;

第二确定模块43,被配置为在所述麦克孔处于第二预设状态下,确定所述麦克风接收到所述语音信号的第二强度;The second determination module 43 is configured to determine a second strength of the voice signal received by the microphone when the microphone hole is in a second preset state;

检测模块44,被配置为基于所述第一强度和所述第二强度检测所述麦克风的气密性。The detection module 44 is configured to detect the airtightness of the microphone based on the first intensity and the second intensity.

在一实施例中,所述播放模块41,可以包括(图4中未示出):In one embodiment, the playing module 41 may include (not shown in FIG. 4 ):

读取子模块,被配置为读取本地预先设置的语音信号;The reading sub-module is configured to read a local preset voice signal;

第二播放子模块,被配置为将读取的语音信号通过所述听筒播放。The second playing submodule is configured to play the read voice signal through the earpiece.

图5是根据一示例性实施例示出的另一种麦克风的气密性检测装置的框图,基于上述图4所示实施例的基础上,如图5所示,所述检测模块44,包括:Fig. 5 is a block diagram of another microphone airtightness detection device according to an exemplary embodiment. Based on the embodiment shown in Fig. 4 above, as shown in Fig. 5, the detection module 44 includes:

第一确定子模块441,被配置为确定所述第一强度与所述第二强度的差值绝对值;The first determination submodule 441 is configured to determine the absolute value of the difference between the first intensity and the second intensity;

检测子模块442,被配置为基于所述差值绝对值与预设阈值之间的大小关系,检测所述麦克风的气密性。The detection sub-module 442 is configured to detect the airtightness of the microphone based on the magnitude relationship between the absolute value of the difference and a preset threshold.

图6是根据一示例性实施例示出的又一种麦克风的气密性检测装置的框图,基于上述图4所示实施例的基础上,如图6所示,所述播放模块41,包括:Fig. 6 is a block diagram of yet another microphone airtightness detection device according to an exemplary embodiment. Based on the above-mentioned embodiment shown in Fig. 4, as shown in Fig. 6, the playback module 41 includes:

第二确定子模块411,被配置为确定所述麦克风与所述听筒之间的距离;The second determining submodule 411 is configured to determine the distance between the microphone and the earpiece;

查找子模块412,被配置为从预设列表中查找与所述距离对应的语音强度,所述预设列表用于记录所述麦克风与所述听筒之间的距离与语音强度之间的对应关系;The search submodule 412 is configured to search for the voice intensity corresponding to the distance from a preset list, and the preset list is used to record the correspondence between the distance between the microphone and the earpiece and the voice intensity ;

第一播放子模块413,被配置为控制听筒播放具有所述语音强度的语音信号。The first playing submodule 413 is configured to control the earpiece to play the voice signal with the voice intensity.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the foregoing embodiments, the specific manner in which each module executes operations has been described in detail in the embodiments related to the method, and will not be described in detail here.

图7是根据一示例性实施例示出的一种适用于麦克风的气密性检测装置的框图。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 7 is a block diagram of an air tightness detection device suitable for a microphone according to an exemplary embodiment. For example, the apparatus 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电源组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。7, device 700 may include one or more of the following components: processing component 702, memory 704, power supply component 706, multimedia component 708, audio component 710, input/output (I/O) interface 712, sensor component 714, and communication component 716 .

处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理部件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally controls the overall operations of the device 700, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 702 may include one or more processors 720 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 702 may include one or more modules that facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702 .

存储器704被配置为存储各种类型的数据以支持在设备700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。Memory 704 is configured to store various types of data to support operations at device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. The memory 704 can be realized by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件706为装置700的各种组件提供电源。电源组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电源相关联的组件。Power component 706 provides power to various components of device 700 . Power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 700 .

多媒体组件708包括在所述装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当设备700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 708 includes a screen that provides an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 708 includes a front camera and/or a rear camera. When the device 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a microphone (MIC), which is configured to receive external audio signals when the device 700 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 704 or sent via communication component 716 . In some embodiments, the audio component 710 also includes a speaker for outputting audio signals.

I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到设备700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 714 includes one or more sensors for providing various aspects of status assessment for device 700 . For example, the sensor component 714 can detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor component 714 can also detect a change in the position of the device 700 or a component of the device 700 , the presence or absence of user contact with the device 700 , the device 700 orientation or acceleration/deceleration and the temperature change of the device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 714 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件716被配置为便于装置700和其他设备之间有线或无线方式的通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 716 is configured to facilitate wired or wireless communication between the apparatus 700 and other devices. The device 700 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器720执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 704 including instructions, which can be executed by the processor 720 of the device 700 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

其中,处理器720被配置为:Wherein, the processor 720 is configured as:

在接收到用于检测麦克风气密性的指令时,控制听筒播放语音信号;When an instruction for detecting the airtightness of the microphone is received, the earpiece is controlled to play a voice signal;

在与所述麦克风对应的麦克孔处于第一预设状态下,确定所述麦克风接收到所述语音信号的第一强度;When the microphone hole corresponding to the microphone is in a first preset state, determine a first strength of the voice signal received by the microphone;

在所述麦克孔处于第二预设状态下,确定所述麦克风接收到所述语音信号的第二强度;When the microphone hole is in a second preset state, determine a second strength of the voice signal received by the microphone;

基于所述第一强度和所述第二强度检测所述麦克风的气密性。Airtightness of the microphone is detected based on the first intensity and the second intensity.

本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. a kind of air-tightness detection method of microphone, which is characterized in that the described method includes:
When receiving to detect the instruction of microphone air-tightness, control receiver plays voice signal;
Under being in the first preset state in Mike hole corresponding with the microphone, determine that the microphone receives the voice First intensity of signal;
Under being in the second preset state in the Mike hole, determine that the microphone receives the last the second of the voice signal Degree;
Air-tightness based on microphone described in first intensity and second intensity detection.
2. according to the method described in claim 1, it is characterized in that, described be based on first intensity and the second intensity detection institute The air-tightness of microphone is stated, including:
Determine the absolute difference of first intensity and second intensity;
Based on the magnitude relationship between the absolute difference and predetermined threshold value, the air-tightness of the microphone is detected.
3. according to the method described in claim 1, it is characterized in that, it is described control receiver play voice signal, including:
Determine the distance between the microphone and the receiver;
Searched from the presets list with described apart from corresponding voice intensity, described the presets list for record the microphone and Correspondence between the distance between described receiver and voice intensity;
Receiver is controlled to play the voice signal with the voice intensity.
4. according to the method described in claim 1, it is characterized in that, it is described control receiver play voice signal, including:
Read local pre-set voice signal;
The voice signal of reading is played by the receiver.
5. a kind of air-tightness detection device of microphone, which is characterized in that described device includes:
Playing module is configured as when receiving to detect the instruction of microphone air-tightness, and control receiver plays voice letter Number;
First determining module is configured as under being in the first preset state in Mike hole corresponding with the microphone, determines institute State the first intensity that microphone receives the voice signal;
Second determining module is configured as under being in the second preset state in the Mike hole, determines that the microphone receives Second intensity of the voice signal;
Detection module is configured as the air-tightness based on microphone described in first intensity and second intensity detection.
6. device according to claim 5, which is characterized in that the detection module, including:
First determination sub-module is configured to determine that the absolute difference of first intensity and second intensity;
Detection sub-module is configured as, based on the magnitude relationship between the absolute difference and predetermined threshold value, detecting the wheat The air-tightness of gram wind.
7. device according to claim 5, which is characterized in that the playing module, including:
Second determination sub-module is configured to determine that the distance between the microphone and the receiver;
Submodule is searched, is configured as searching with described apart from corresponding voice intensity, described the presets list from the presets list For recording the correspondence between the distance between the microphone and the receiver and voice intensity;
First plays submodule, is configured as control receiver and plays the voice signal with the voice intensity.
8. device according to claim 5, which is characterized in that the playing module, including:
Reading submodule is configured as reading local pre-set voice signal;
Second plays submodule, is configured as playing the voice signal of reading by the receiver.
9. a kind of air-tightness detection device of microphone, which is characterized in that described device includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
When receiving to detect the instruction of microphone air-tightness, control receiver plays voice signal;
Under being in the first preset state in Mike hole corresponding with the microphone, determine that the microphone receives the voice First intensity of signal;
Under being in the second preset state in the Mike hole, determine that the microphone receives the last the second of the voice signal Degree;
Air-tightness based on microphone described in first intensity and second intensity detection.
CN201711237411.2A 2017-11-30 2017-11-30 Microphone air tightness detection method and device Active CN108076199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711237411.2A CN108076199B (en) 2017-11-30 2017-11-30 Microphone air tightness detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711237411.2A CN108076199B (en) 2017-11-30 2017-11-30 Microphone air tightness detection method and device

Publications (2)

Publication Number Publication Date
CN108076199A true CN108076199A (en) 2018-05-25
CN108076199B CN108076199B (en) 2020-10-09

Family

ID=62157529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711237411.2A Active CN108076199B (en) 2017-11-30 2017-11-30 Microphone air tightness detection method and device

Country Status (1)

Country Link
CN (1) CN108076199B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151145A (en) * 2018-09-07 2019-01-04 深圳市万普拉斯科技有限公司 A kind of detection method and device of voice-grade channel
CN109275084A (en) * 2018-09-12 2019-01-25 北京小米智能科技有限公司 Test method, device, system, equipment and the storage medium of microphone array
CN110636432A (en) * 2019-09-29 2019-12-31 深圳市火乐科技发展有限公司 Microphone testing method and related equipment
EP3823311A4 (en) * 2018-07-26 2021-08-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. MICROPHONE HOLE OBSTRUCTION DETECTION PROCESS AND RELATED PRODUCT
EP3823312A4 (en) * 2018-07-26 2021-08-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. METHOD OF DETECTING A BLOCKING OF A MICROPHONE HOLE AND RELATED PRODUCT

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4398147A (en) * 1981-04-15 1983-08-09 Western Electric Company, Inc. Methods of testing multifrequency dialing signals
US20060285697A1 (en) * 2005-06-17 2006-12-21 Comfozone, Inc. Open-air noise cancellation for diffraction control applications
CN102572671A (en) * 2010-12-20 2012-07-11 歌尔声学股份有限公司 Test method, test tool and test system for microphone tightness
CN104640054A (en) * 2015-02-12 2015-05-20 广东欧珀移动通信有限公司 Earphone/loudspeaker testing method and system for mobile terminal
CN104702787A (en) * 2015-03-12 2015-06-10 深圳市欧珀通信软件有限公司 Sound acquisition method applied to MT (Mobile Terminal) and MT
CN105372026A (en) * 2015-10-15 2016-03-02 Tcl移动通信科技(宁波)有限公司 Air tightness detection device and method of microphone pickup structure path
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal
CN106791186A (en) * 2017-01-22 2017-05-31 惠州Tcl移动通信有限公司 It is a kind of to detect the method and system that microphone sound hole is blocked
CN107071123A (en) * 2017-03-24 2017-08-18 上海与德科技有限公司 Mobile terminal sound chamber method for testing tightness and test device
CN107172560A (en) * 2017-06-28 2017-09-15 青岛海信移动通信技术股份有限公司 The method for detecting abnormality and mobile terminal of microphone in a kind of mobile terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4398147A (en) * 1981-04-15 1983-08-09 Western Electric Company, Inc. Methods of testing multifrequency dialing signals
US20060285697A1 (en) * 2005-06-17 2006-12-21 Comfozone, Inc. Open-air noise cancellation for diffraction control applications
CN102572671A (en) * 2010-12-20 2012-07-11 歌尔声学股份有限公司 Test method, test tool and test system for microphone tightness
CN104640054A (en) * 2015-02-12 2015-05-20 广东欧珀移动通信有限公司 Earphone/loudspeaker testing method and system for mobile terminal
CN104702787A (en) * 2015-03-12 2015-06-10 深圳市欧珀通信软件有限公司 Sound acquisition method applied to MT (Mobile Terminal) and MT
CN105372026A (en) * 2015-10-15 2016-03-02 Tcl移动通信科技(宁波)有限公司 Air tightness detection device and method of microphone pickup structure path
CN105979053A (en) * 2016-04-18 2016-09-28 广东欧珀移动通信有限公司 Method and device for detecting microphone in mobile terminal and mobile terminal
CN106791186A (en) * 2017-01-22 2017-05-31 惠州Tcl移动通信有限公司 It is a kind of to detect the method and system that microphone sound hole is blocked
CN107071123A (en) * 2017-03-24 2017-08-18 上海与德科技有限公司 Mobile terminal sound chamber method for testing tightness and test device
CN107172560A (en) * 2017-06-28 2017-09-15 青岛海信移动通信技术股份有限公司 The method for detecting abnormality and mobile terminal of microphone in a kind of mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3823311A4 (en) * 2018-07-26 2021-08-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. MICROPHONE HOLE OBSTRUCTION DETECTION PROCESS AND RELATED PRODUCT
EP3823312A4 (en) * 2018-07-26 2021-08-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. METHOD OF DETECTING A BLOCKING OF A MICROPHONE HOLE AND RELATED PRODUCT
US11234089B2 (en) 2018-07-26 2022-01-25 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Microphone hole blockage detection method, microphone hole blockage detection device, and wireless earphone
CN109151145A (en) * 2018-09-07 2019-01-04 深圳市万普拉斯科技有限公司 A kind of detection method and device of voice-grade channel
CN109275084A (en) * 2018-09-12 2019-01-25 北京小米智能科技有限公司 Test method, device, system, equipment and the storage medium of microphone array
CN110636432A (en) * 2019-09-29 2019-12-31 深圳市火乐科技发展有限公司 Microphone testing method and related equipment

Also Published As

Publication number Publication date
CN108076199B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
KR102475586B1 (en) Method and device for pickup volume control, and storage medium
US10191717B2 (en) Method and apparatus for triggering execution of operation instruction
CN108076199B (en) Microphone air tightness detection method and device
CN107426428A (en) Electronic equipment and display lightness regulating method
CN106331338A (en) Volume adjustment method and device
CN106888327B (en) Voice playback method and device
CN106339168A (en) Screen control method and device
CN105812507B (en) Portable electronic device and control method thereof
CN106101365A (en) Communication process adjusts the method and device of mike
CN107102772A (en) Touch control method and device
CN108051370A (en) Ambient light detection method and device, electronic equipment
US10885298B2 (en) Method and device for optical fingerprint recognition, and computer-readable storage medium
CN108462784A (en) In Call method of adjustment and device
CN106127132A (en) The reminding method of slidingtype typing fingerprint and device, electronic equipment
CN105975038A (en) Prompt method and device of charging port detection result
CN106484296A (en) Mobile terminal prevents processing method, device and the equipment of false touch
CN106941635A (en) Audio amplifier connection method and device
CN108206884B (en) Terminal, adjusting method for communication signal transmitted by terminal and electronic equipment
CN107368280A (en) Method for controlling volume, device and the interactive voice equipment of interactive voice
CN109862171A (en) Terminal equipment control method and device
CN107656616A (en) Input interface displaying method, device, electronic equipment
CN109769191A (en) Audio output detection method and device, electronic equipment
CN107390929A (en) Control method, device and the storage medium of touch-control system
CN106774662B (en) Equipment, windowing protective case, information display method and device with protective case
CN106453981B (en) Electronic equipment voice message processing method and device

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