技术领域technical field
本发明涉及移动终端制造技术领域,尤其涉及一种移动终端中麦克风的检测方法、装置以及移动终端。The present invention relates to the technical field of mobile terminal manufacturing, in particular to a method and device for detecting a microphone in a mobile terminal and the mobile terminal.
背景技术Background technique
随着移动终端制造技术的快速发展,越来越多的移动设备开始注重语音交互功能,特别是在手机上,基本都会配备有多个麦克风进行不同场景下的语音输入,而麦克风采用内置方式,会在麦克风对应的手机表面上开孔,通过导管进行导通。由于用户使用的环境多样化,如也会有恶劣的环境等,因此常常会遇到麦克风管道孔会被堵住的问题。然而,用户自己本身并不能对麦克风进行检测,只有当用户发现麦克风采集的声音很小时才会想到去售后处,通过售后人员利用检测仪器对麦克风进行检测并清理或者更换,而用户自己不能对麦克风进行检测并做出相应的临时处理,从而影响用户的使用。With the rapid development of mobile terminal manufacturing technology, more and more mobile devices begin to focus on the voice interaction function, especially on mobile phones, which are basically equipped with multiple microphones for voice input in different scenarios, and the microphones are built-in. A hole will be opened on the surface of the mobile phone corresponding to the microphone, and the conduction will be conducted through the conduit. Due to the diversity of environments used by users, such as harsh environments, etc., the problem that the microphone pipe hole will be blocked is often encountered. However, the user himself cannot detect the microphone. Only when the user finds that the sound collected by the microphone is very small will he think of going to the after-sales office. The after-sales personnel use the detection instrument to detect and clean or replace the microphone. Detect and make corresponding temporary processing, thereby affecting the use of users.
发明内容Contents of the invention
本发明的目的旨在至少在一定程度上解决上述的技术问题之一。The object of the present invention is to solve one of the above-mentioned technical problems at least to a certain extent.
为此,本发明的第一个目的在于提出一种移动终端中麦克风的检测方法。该方法实现了麦克风的简易检测,避免了用户由于不专业而对麦克风进行误检测,无需用户到售后处也能够随时对麦克风进行异常检测,方便用户的使用,提升用户体验。Therefore, the first object of the present invention is to propose a method for detecting a microphone in a mobile terminal. The method realizes the simple detection of the microphone, avoids the misdetection of the microphone due to unprofessional users, and can detect the abnormality of the microphone at any time without the user going to the after-sales office, which is convenient for the user and improves the user experience.
本发明的第二个目的在于提出一种移动终端中麦克风的检测装置。The second object of the present invention is to provide a detection device for a microphone in a mobile terminal.
本发明的第三个目的在于提出一种移动终端。The third object of the present invention is to provide a mobile terminal.
本发明的第四个目的在于提出另一种移动终端。A fourth object of the present invention is to propose another mobile terminal.
为达上述目的,本发明第一方面实施例的移动终端中麦克风的检测方法,包括:控制所述移动终端中的音频输出设备播放预设大小的超声波检测信号;获取麦克风所采集的声音信号,并将所述声音信号转换为对应的数字信号;确定与所述麦克风对应的基准阈值,并根据所述数字信号和所述基准阈值检测所述麦克风是否发生异常。In order to achieve the above purpose, the method for detecting a microphone in a mobile terminal according to the embodiment of the first aspect of the present invention includes: controlling the audio output device in the mobile terminal to play an ultrasonic detection signal of a preset size; obtaining the sound signal collected by the microphone, and converting the sound signal into a corresponding digital signal; determining a reference threshold corresponding to the microphone, and detecting whether the microphone is abnormal according to the digital signal and the reference threshold.
根据本发明实施例的移动终端中麦克风的检测方法,控制移动终端中的音频输出设备播放预设大小的超声波检测信号,之后,获取麦克风所采集的声音信号,并将声音信号转换为对应的数字信号,然后,确定与麦克风对应的基准阈值,最后,根据数字信号和基准阈值检测麦克风是否发生异常。即通过移动终端上的已有音频输出设备输出特定的大小的音源,测试移动终端中某个位置的麦克风是否发生堵孔等异常情况,实现了麦克风的简易检测,避免了用户由于不专业而对麦克风进行误检测,无需用户到售后处也能够随时对麦克风进行异常检测,方便用户的使用,提升用户体验。According to the method for detecting a microphone in a mobile terminal according to an embodiment of the present invention, the audio output device in the mobile terminal is controlled to play an ultrasonic detection signal of a preset size, and then the sound signal collected by the microphone is acquired, and the sound signal is converted into a corresponding digital signal. signal, and then determine a reference threshold corresponding to the microphone, and finally, detect whether the microphone is abnormal according to the digital signal and the reference threshold. That is, through the existing audio output device on the mobile terminal to output a sound source of a specific size, test whether the microphone at a certain position in the mobile terminal is blocked, etc., to realize the simple detection of the microphone and avoid the user's unprofessional The microphone is misdetected, and the abnormality detection of the microphone can be performed at any time without the user going to the after-sales office, which is convenient for the user and improves the user experience.
其中,在本发明的一个实施例中,所述音频输出设备包括扬声器或受话器。Wherein, in an embodiment of the present invention, the audio output device includes a loudspeaker or a receiver.
其中,在本发明的一个实施例中,所述音频输出设备包括扬声器和受话器;其中,在本发明的实施例中,所述控制所述移动终端中的音频输出设备播放预设大小的超声波检测信号,包括:控制所述扬声器和所述受话器同时播放所述预设大小的超声波检测信号。Wherein, in an embodiment of the present invention, the audio output device includes a loudspeaker and a receiver; wherein, in an embodiment of the present invention, the audio output device in the mobile terminal is controlled to play a preset size ultrasonic detection The signal includes: controlling the speaker and the receiver to simultaneously play the ultrasonic detection signal of the preset size.
在本发明的一个实施例中,所述根据所述数字信号和基准阈值检测所述麦克风是否发生异常,包括:判断所述数字信号是否满足所述基准阈值;如果所述数字信号满足所述基准阈值,则判定所述麦克风正常;如果所述数字信号不满足所述基准阈值,则判定所述麦克风发生异常。In an embodiment of the present invention, the detecting whether the microphone is abnormal according to the digital signal and a reference threshold includes: judging whether the digital signal meets the reference threshold; if the digital signal meets the reference threshold threshold, it is determined that the microphone is normal; if the digital signal does not meet the reference threshold, it is determined that the microphone is abnormal.
在本发明的一个实施例中,在控制所述移动终端中的音频输出设备播放预设大小的超声波检测信号之前,所述方法还包括:获取所述麦克风所采集的周围环境的噪声信号;其中,所述将所述声音信号转换为对应的数字信号,包括:根据所述噪声信号对所述声音信号进行去噪,并将去噪后的所述声音信号转换为对应的数字信号。In an embodiment of the present invention, before controlling the audio output device in the mobile terminal to play the ultrasonic detection signal of a preset size, the method further includes: acquiring the noise signal of the surrounding environment collected by the microphone; wherein , the converting the sound signal into a corresponding digital signal includes: denoising the sound signal according to the noise signal, and converting the denoised sound signal into a corresponding digital signal.
在本发明的一个实施例中,当检测所述麦克风发生异常时,还包括:确定所述移动终端中检测正常的其他麦克风,并将所述其他麦克风的权限变更为使用权限以使所述其他麦克风替换所述麦克风的使用;调整所述其他麦克风的灵敏度和音频参数。In one embodiment of the present invention, when it is detected that the microphone is abnormal, it further includes: determining other microphones in the mobile terminal that are detected to be normal, and changing the authority of the other microphones to use authority so that the other microphones A microphone replaces the use of said microphone; adjusting the sensitivity and audio parameters of said other microphone.
在本发明的一个实施例中,所述基准阈值预先通过以下步骤获得:在隔音屏蔽环境下,控制所述移动终端中的音频输出设备播放所述预设大小的超声波检测信号;获取所述移动终端中各个麦克风所收集的声音信号;将所述各个麦克风所收集的声音信号转换为对应的数字信号,并将各个数字信号的大小作为所述各个麦克风的基准阈值。In one embodiment of the present invention, the reference threshold is pre-obtained through the following steps: in a sound-proof and shielding environment, controlling the audio output device in the mobile terminal to play the ultrasonic detection signal of the preset size; acquiring the mobile Sound signals collected by each microphone in the terminal; converting the sound signals collected by each microphone into corresponding digital signals, and using the magnitude of each digital signal as a reference threshold for each microphone.
在本发明的实施例中,所述确定与所述麦克风对应的基准阈值,包括:获取所述麦克风的标识,并根据所述标识从所述各个麦克风的基准阈值中确定与所述麦克风对应的基准阈值。In an embodiment of the present invention, the determining the reference threshold corresponding to the microphone includes: acquiring the identifier of the microphone, and determining the threshold corresponding to the microphone from the reference thresholds of each microphone according to the identifier. base threshold.
在本发明的一个实施例中,在控制所述移动终端中的音频输出设备播放预设大小的超声波检测信号之前,所述方法还包括:周期性地向所述移动终端的所属用户发送麦克风检测提醒;当接收到所述所属用户针对所述移动终端的麦克风检测请求时,控制所述音频输出设备播放所述预设大小的超声波检测信号。In an embodiment of the present invention, before controlling the audio output device in the mobile terminal to play an ultrasonic detection signal of a preset size, the method further includes: periodically sending a microphone detection signal to the user of the mobile terminal Reminder: when receiving the microphone detection request from the user for the mobile terminal, control the audio output device to play the ultrasonic detection signal of the preset size.
为达上述目的,本发明第二方面实施例的移动终端中麦克风的检测装置,包括:控制模块,用于控制所述移动终端中的音频输出设备播放预设大小的超声波检测信号;第一获取模块,用于获取麦克风所采集的声音信号;模数转换模块,用于将所述声音信号转换为对应的数字信号;确定模块,用于确定与所述麦克风对应的基准阈值;检测模块,用于根据所述数字信号和所述基准阈值检测所述麦克风是否发生异常。In order to achieve the above purpose, the detection device of the microphone in the mobile terminal according to the embodiment of the second aspect of the present invention includes: a control module, which is used to control the audio output device in the mobile terminal to play an ultrasonic detection signal of a preset size; the first acquisition The module is used to obtain the sound signal collected by the microphone; the analog-to-digital conversion module is used to convert the sound signal into a corresponding digital signal; the determination module is used to determine the reference threshold corresponding to the microphone; the detection module uses and detecting whether the microphone is abnormal according to the digital signal and the reference threshold.
根据本发明实施例的移动终端中麦克风的检测装置,可通过控制模块控制移动终端中的音频输出设备播放预设大小的超声波检测信号,第一获取模块获取麦克风所采集的声音信号,模数转换模块将声音信号转换为对应的数字信号,确定模块确定与麦克风对应的基准阈值,检测模块根据数字信号和基准阈值检测麦克风是否发生异常。即通过移动终端上的已有音频输出设备输出特定的大小的音源,测试移动终端中某个位置的麦克风是否发生堵孔等异常情况,实现了麦克风的简易检测,避免了用户由于不专业而对麦克风进行误检测,无需用户到售后处也能够随时对麦克风进行异常检测,方便用户的使用,提升用户体验。According to the detection device of the microphone in the mobile terminal according to the embodiment of the present invention, the audio output device in the mobile terminal can be controlled by the control module to play an ultrasonic detection signal of a preset size, the first acquisition module acquires the sound signal collected by the microphone, and performs analog-to-digital conversion The module converts the sound signal into a corresponding digital signal, the determination module determines a reference threshold corresponding to the microphone, and the detection module detects whether the microphone is abnormal according to the digital signal and the reference threshold. That is, through the existing audio output device on the mobile terminal to output a sound source of a specific size, test whether the microphone at a certain position in the mobile terminal is blocked, etc., to realize the simple detection of the microphone and avoid the user's unprofessional The microphone is misdetected, and the abnormality detection of the microphone can be performed at any time without the user going to the after-sales office, which is convenient for the user and improves the user experience.
其中,在本发明的一个实施例中,所述音频输出设备包括扬声器或受话器。Wherein, in an embodiment of the present invention, the audio output device includes a loudspeaker or a receiver.
其中,在本发明的一个实施例中,所述音频输出设备包括扬声器和受话器;其中,在本发明的实施例中,所述控制模块还用于:控制所述扬声器和所述受话器同时播放所述预设大小的超声波检测信号。Wherein, in an embodiment of the present invention, the audio output device includes a speaker and a receiver; wherein, in an embodiment of the present invention, the control module is also used to: control the speaker and the receiver to play the Ultrasonic detection signal of the preset size.
在本发明的一个实施例中,所述检测模块包括:判断单元,用于判断所述数字信号是否满足所述基准阈值;判定单元,用于在所述数字信号满足所述基准阈值时,判定所述麦克风正常,并在所述数字信号不满足所述基准阈值时,判定所述麦克风发生异常。In an embodiment of the present invention, the detection module includes: a judging unit, configured to judge whether the digital signal meets the reference threshold; a judging unit, configured to judge whether the digital signal satisfies the reference threshold The microphone is normal, and when the digital signal does not meet the reference threshold, it is determined that the microphone is abnormal.
在本发明的一个实施例中,所述装置还包括:第二获取模块,用于在所述控制模块控制所述移动终端中的音频输出设备播放预设大小的超声波检测信号之前,获取所述麦克风所采集的周围环境的噪声信号;去噪模块,用于根据所述噪声信号对所述声音信号进行去噪;其中,所述模数转换模块还用于将去噪后的所述声音信号转换为对应的数字信号。In an embodiment of the present invention, the apparatus further includes: a second acquisition module, configured to acquire the ultrasonic detection signal of a preset size before the control module controls the audio output device in the mobile terminal The noise signal of the surrounding environment collected by the microphone; the denoising module is used to denoise the sound signal according to the noise signal; wherein, the analog-to-digital conversion module is also used to convert the denoised sound signal converted to the corresponding digital signal.
在本发明的一个实施例中,当检测所述麦克风发生异常时,所述装置还包括:切换模块,用于确定所述移动终端中检测正常的其他麦克风,并将所述其他麦克风的权限变更为使用权限以使所述其他麦克风替换所述麦克风的使用;调整模块,用于调整所述其他麦克风的灵敏度和音频参数。In an embodiment of the present invention, when the microphone is detected to be abnormal, the device further includes: a switching module, configured to determine other microphones in the mobile terminal that are detected to be normal, and change the authority of the other microphones In order to enable the use of the other microphone to replace the use of the microphone; an adjustment module is used to adjust the sensitivity and audio parameters of the other microphone.
在本发明的一个实施例中,所述装置还包括:提醒模块,用于在所述控制模块控制所述移动终端中的音频输出设备播放预设大小的超声波检测信号之前,周期性地向所述移动终端的所属用户发送麦克风检测提醒;其中,所述控制模块还用于在接收到所述所属用户针对所述移动终端的麦克风检测请求时,控制所述音频输出设备播放所述预设大小的超声波检测信号。In an embodiment of the present invention, the device further includes: a reminder module, configured to periodically send an alarm message to the mobile terminal before the control module controls the audio output device in the mobile terminal to play The user of the mobile terminal sends a microphone detection reminder; wherein, the control module is further configured to control the audio output device to play the preset size when receiving a microphone detection request from the user for the mobile terminal. ultrasonic detection signal.
为达上述目的,本发明第三方面实施例的移动终端,包括本发明第二方面实施例的移动终端中麦克风的检测装置。To achieve the above purpose, the mobile terminal according to the embodiment of the third aspect of the present invention includes the device for detecting a microphone in the mobile terminal according to the embodiment of the second aspect of the present invention.
根据本发明实施例的移动终端,可通过检测装置中的控制模块控制移动终端中的音频输出设备播放预设大小的超声波检测信号,第一获取模块获取麦克风所采集的声音信号,模数转换模块将声音信号转换为对应的数字信号,确定模块确定与麦克风对应的基准阈值,检测模块根据数字信号和基准阈值检测麦克风是否发生异常。即通过移动终端上的已有音频输出设备输出特定的大小的音源,测试移动终端中某个位置的麦克风是否发生堵孔等异常情况,实现了麦克风的简易检测,避免了用户由于不专业而对麦克风进行误检测,无需用户到售后处也能够随时对麦克风进行异常检测,方便用户的使用,提升用户体验。According to the mobile terminal of the embodiment of the present invention, the audio output device in the mobile terminal can be controlled by the control module in the detection device to play an ultrasonic detection signal of a preset size, the first acquisition module acquires the sound signal collected by the microphone, and the analog-to-digital conversion module The sound signal is converted into a corresponding digital signal, the determination module determines a reference threshold corresponding to the microphone, and the detection module detects whether the microphone is abnormal according to the digital signal and the reference threshold. That is, through the existing audio output device on the mobile terminal to output a sound source of a specific size, test whether the microphone at a certain position in the mobile terminal is blocked, etc., to realize the simple detection of the microphone and avoid the user's unprofessional The microphone is misdetected, and the abnormality detection of the microphone can be performed at any time without the user going to the after-sales office, which is convenient for the user and improves the user experience.
为达上述目的,本发明第四方面实施例的移动终端,包括:一个或者多个处理器;存储器;一个或者多个程序,所述一个或者多个程序存储在所述存储器中,当被所述一个或者多个处理器执行时进行如下操作:控制所述移动终端中的音频输出设备播放预设大小的超声波检测信号;获取麦克风所采集的声音信号,并将所述声音信号转换为对应的数字信号;确定与所述麦克风对应的基准阈值,并根据所述数字信号和所述基准阈值检测所述麦克风是否发生异常。To achieve the above purpose, the mobile terminal according to the fourth aspect of the present invention includes: one or more processors; memory; one or more programs, the one or more programs are stored in the memory, and when used When the one or more processors are executed, the following operations are performed: controlling the audio output device in the mobile terminal to play an ultrasonic detection signal of a preset size; obtaining the sound signal collected by the microphone, and converting the sound signal into a corresponding digital signal; determine a reference threshold corresponding to the microphone, and detect whether the microphone is abnormal according to the digital signal and the reference threshold.
根据本发明实施例的移动终端,控制移动终端中的音频输出设备播放预设大小的超声波检测信号,之后,获取麦克风所采集的声音信号,并将声音信号转换为对应的数字信号,然后,确定与麦克风对应的基准阈值,最后,根据数字信号和基准阈值检测麦克风是否发生异常。即通过移动终端上的已有音频输出设备输出特定的大小的音源,测试移动终端中某个位置的麦克风是否发生堵孔等异常情况,实现了麦克风的简易检测,避免了用户由于不专业而对麦克风进行误检测,无需用户到售后处也能够随时对麦克风进行异常检测,方便用户的使用,提升用户体验。According to the mobile terminal of the embodiment of the present invention, the audio output device in the mobile terminal is controlled to play an ultrasonic detection signal of a preset size, and then the sound signal collected by the microphone is obtained, and the sound signal is converted into a corresponding digital signal, and then determined The reference threshold corresponding to the microphone, finally, detect whether the microphone is abnormal according to the digital signal and the reference threshold. That is, through the existing audio output device on the mobile terminal to output a sound source of a specific size, test whether the microphone at a certain position in the mobile terminal is blocked, etc., to realize the simple detection of the microphone and avoid the user's unprofessional The microphone is misdetected, and the abnormality detection of the microphone can be performed at any time without the user going to the after-sales office, which is convenient for the user and improves the user experience.
本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
附图说明Description of drawings
本发明的上述和/或附加的方面和优点从结合下面附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and comprehensible from the description of the embodiments in conjunction with the following drawings, wherein:
图1是根据本发明一个实施例的移动终端中麦克风的检测方法的流程图;1 is a flowchart of a method for detecting a microphone in a mobile terminal according to an embodiment of the present invention;
图2是根据本发明另一个实施例的移动终端中麦克风的检测方法的流程图;2 is a flowchart of a method for detecting a microphone in a mobile terminal according to another embodiment of the present invention;
图3是根据本发明一个实施例的移动终端中麦克风的检测装置的结构框图;3 is a structural block diagram of a detection device for a microphone in a mobile terminal according to an embodiment of the present invention;
图4是根据本发明一个实施例的检测模块的结构框图;Fig. 4 is a structural block diagram of a detection module according to an embodiment of the present invention;
图5是根据本发明另一个实施例的移动终端中麦克风的检测装置的结构框图;FIG. 5 is a structural block diagram of an apparatus for detecting a microphone in a mobile terminal according to another embodiment of the present invention;
图6是根据本发明又一个实施例的移动终端中麦克风的检测装置的结构框图;6 is a structural block diagram of a detection device for a microphone in a mobile terminal according to yet another embodiment of the present invention;
图7是根据本发明再一个实施例的移动终端中麦克风的检测装置的结构框图。Fig. 7 is a structural block diagram of an apparatus for detecting a microphone in a mobile terminal according to yet another embodiment of the present invention.
附图标记:Reference signs:
控制模块10、第一获取模块20、模数转换模块30、确定模块40、检测模块50、判断单元51、判定单元52、第二获取模块60、去噪模块70、切换模块80、调整模块90和提醒模块100。Control module 10, first acquisition module 20, analog-to-digital conversion module 30, determination module 40, detection module 50, judgment unit 51, judgment unit 52, second acquisition module 60, denoising module 70, switching module 80, adjustment module 90 and reminder module 100.
具体实施方式detailed description
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.
下面参考附图描述本发明实施例的移动终端中麦克风的检测方法、装置以及移动终端。The method and device for detecting a microphone in a mobile terminal and the mobile terminal according to the embodiments of the present invention will be described below with reference to the accompanying drawings.
图1是根据本发明一个实施例的移动终端中麦克风的检测方法的流程图。需要说明的是,在本发明的实施例中,该移动终端可以是手机、平板电脑、个人数字助理等具有各种操作的硬件设备。可以理解,该移动终端可以有至少一个麦克风。Fig. 1 is a flowchart of a method for detecting a microphone in a mobile terminal according to an embodiment of the present invention. It should be noted that, in the embodiment of the present invention, the mobile terminal may be a hardware device with various operations, such as a mobile phone, a tablet computer, and a personal digital assistant. It can be understood that the mobile terminal may have at least one microphone.
如图1所示,该移动终端中麦克风的检测方法可以包括:As shown in Figure 1, the detection method of microphone in this mobile terminal can comprise:
S101,控制移动终端中的音频输出设备播放预设大小的超声波检测信号。S101. Control an audio output device in a mobile terminal to play an ultrasonic detection signal of a preset size.
其中,在本发明的一个实施例中,该音频输出设备可包括扬声器或受话器。例如,可控制移动终端中的扬声器或受话器播放超声波检测信号,该检测信号的声音大小可以根据实际需要进行设定。可以理解,上述超声波检测信号可以是预先存储于移动终端中,当对移动终端的麦克风进行检测时,可从移动终端中获取预先存储的超声波检测信号,并控制扬声器或受话器播放该超声波检测信号,该超声波检测信号的播放声音大小可以是上述的预设大小。Wherein, in an embodiment of the present invention, the audio output device may include a speaker or a receiver. For example, a loudspeaker or receiver in the mobile terminal can be controlled to play an ultrasonic detection signal, and the sound level of the detection signal can be set according to actual needs. It can be understood that the above-mentioned ultrasonic detection signal may be pre-stored in the mobile terminal. When detecting the microphone of the mobile terminal, the pre-stored ultrasonic detection signal may be obtained from the mobile terminal, and the speaker or receiver may be controlled to play the ultrasonic detection signal. The volume of the playing sound of the ultrasonic detection signal may be the above-mentioned preset volume.
在本发明的另一个实施例中,该音频输出设备可包括扬声器和受话器。其中,在本发明的实施例中,可控制扬声器和受话器同时播放预设大小的超声波检测信号。也就是说,在对移动终端的麦克风进行检测时,可控制扬声器和受话器同时播放相同大小的超声波检测信号。In another embodiment of the present invention, the audio output device may include a speaker and a receiver. Wherein, in the embodiment of the present invention, the loudspeaker and the receiver can be controlled to simultaneously play an ultrasonic detection signal of a preset size. That is to say, when detecting the microphone of the mobile terminal, the speaker and the receiver can be controlled to simultaneously play ultrasonic detection signals of the same size.
举例而言,假设本发明实施例的移动终端中麦克风的检测方法可应用于移动终端,该移动终端可为用户提供检测麦克风是否发生异常的应用程序,当用户启动或运行该应用程序时,可控制移动终端中的扬声器和/或受话器播放预设大小的超声波检测信号。For example, assuming that the method for detecting a microphone in a mobile terminal according to an embodiment of the present invention can be applied to a mobile terminal, the mobile terminal can provide the user with an application program for detecting whether the microphone is abnormal, and when the user starts or runs the application program, it can Controlling the speaker and/or the receiver in the mobile terminal to play the ultrasonic detection signal with a preset size.
S102,获取麦克风所采集的声音信号,并将声音信号转换为对应的数字信号。S102. Acquire the sound signal collected by the microphone, and convert the sound signal into a corresponding digital signal.
具体地,在控制移动终端中的音频输出设备播放超声波检测信号时,可开启该移动终端的麦克风,并通过麦克风收集音频输出设备播放的超声波检测信号。当麦克风声音收集结束时,可获取该麦克风所收集到的声音信号,并通过模数转换器将该声音信号转换为对应的数字信号。可以理解,该数字信号为一个数值。Specifically, when controlling the audio output device in the mobile terminal to play the ultrasonic detection signal, the microphone of the mobile terminal can be turned on, and the ultrasonic detection signal played by the audio output device can be collected through the microphone. When the sound collection by the microphone is finished, the sound signal collected by the microphone can be obtained, and the sound signal can be converted into a corresponding digital signal by an analog-to-digital converter. It can be understood that the digital signal is a value.
作为一种示例,当音频输出设备包括扬声器和受话器时,麦克风收集声音时,可将收集到的扬声器播放的超声波检测信号和受话器播放的超声波检测信号合成一个信号,该合成信号即为上述声音信号。As an example, when the audio output device includes a speaker and a receiver, when the microphone collects sound, the collected ultrasonic detection signal played by the speaker and the ultrasonic detection signal played by the receiver can be synthesized into one signal, and the composite signal is the above-mentioned sound signal .
需要说明的是,上述麦克风可以是具有使用权限的麦克风,具有使用权限可理解为当前常被移动终端所使用、并起主导作用,如语音输入时使用该麦克风收集声音;上述麦克风还可以是移动终端中的所有麦克风,可以理解,当移动终端中有多个麦克风时,可对移动终端中的所有麦克风进行异常检测。It should be noted that the above-mentioned microphone may be a microphone with permission to use, which can be understood as being often used by mobile terminals and playing a leading role, such as using the microphone to collect sound during voice input; the above-mentioned microphone can also be a mobile For all the microphones in the terminal, it can be understood that when there are multiple microphones in the mobile terminal, anomaly detection can be performed on all the microphones in the mobile terminal.
S103,确定与麦克风对应的基准阈值,并根据数字信号和基准阈值检测麦克风是否发生异常。S103. Determine a reference threshold corresponding to the microphone, and detect whether the microphone is abnormal according to the digital signal and the reference threshold.
需要说明的是,在本发明的一个实施例中,基准阈值可预先通过以下步骤获得:在隔音屏蔽环境下,控制移动终端中的音频输出设备播放预设大小的超声波检测信号;获取移动终端中各个麦克风所收集的声音信号;将各个麦克风所收集的声音信号转换为对应的数字信号,并将各个数字信号的大小作为各个麦克风的基准阈值。It should be noted that, in one embodiment of the present invention, the reference threshold can be obtained in advance through the following steps: in a soundproof and shielding environment, control the audio output device in the mobile terminal to play an ultrasonic detection signal of a preset size; obtain the ultrasonic detection signal in the mobile terminal The sound signal collected by each microphone; the sound signal collected by each microphone is converted into a corresponding digital signal, and the magnitude of each digital signal is used as a reference threshold for each microphone.
例如,在移动终端出厂前,首先移动终端中的扬声器、受话器和麦克风需要通过产线自动化测试标准,并满足产线上的主观功能测试,然后在隔音屏蔽环境下对移动终端中的各个麦克风进行校准,如控制扬声器和受话器输出相同大小的特定超声波检测信号,各个麦克风拾取到两个位置音源的合成信号,并通过模数转换器将各个麦克风采集到的声音信号转换为对应的数字信号。作为一种示例,可进行多次测量,并针对各个麦克风,将该多次测量得到的数字信号进行求平均,并将得到的平均值作为该麦克风发生堵孔等异常情况的参考值,并将该平均值作为该麦克风的基准阈值。For example, before the mobile terminal leaves the factory, the speakers, receivers and microphones in the mobile terminal first need to pass the production line automation test standard and meet the subjective function test on the production line, and then test each microphone in the mobile terminal in a sound-proof shielding environment. Calibration, such as controlling the speaker and the receiver to output a specific ultrasonic detection signal of the same size, each microphone picks up the composite signal of two sound sources, and converts the sound signal collected by each microphone into a corresponding digital signal through an analog-to-digital converter. As an example, multiple measurements can be carried out, and for each microphone, the digital signals obtained by the multiple measurements are averaged, and the obtained average value is used as a reference value for an abnormal situation such as a hole blocking of the microphone, and the This average value serves as the baseline threshold for the microphone.
在本发明的实施例中,确定与麦克风对应的基准阈值的具体实现过程可如下:获取麦克风的标识,并根据标识从各个麦克风的基准阈值中确定与麦克风对应的基准阈值。In the embodiment of the present invention, the specific implementation process of determining the reference threshold corresponding to the microphone may be as follows: obtain the identification of the microphone, and determine the reference threshold corresponding to the microphone from the reference thresholds of each microphone according to the identification.
具体而言,在本发明的一个实施例中,在确定麦克风对应的基准阈值之后,可判断上述数字信号是否满足基准阈值,如果该数字信号满足基准阈值,则可判定该麦克风正常,如果数字信号不满足基准阈值,则判定该麦克风发生异常,如发生堵孔、麦克风器件损坏等情况。Specifically, in one embodiment of the present invention, after determining the reference threshold corresponding to the microphone, it can be judged whether the digital signal satisfies the reference threshold. If the digital signal meets the reference threshold, it can be determined that the microphone is normal. If the digital signal If the reference threshold is not met, it is determined that the microphone is abnormal, such as hole blocking, microphone device damage, and the like.
需要说明的是,在本发明的实施例中,上述基准阈值可以是单个数值,还可以是由多个数值组成的范围值。当该基准阈值为单个数值时,可将上述得到的数字信号与该基准阈值进行大小比对,如果数字信号的大小大于或等于该基准阈值,则可判定对应的麦克风正常,如果数字信号的大小小于该基准阈值,则可判定该麦克风发生异常;当该基准阈值为范围值时,可判断上述数字信号是否在该基准阈值范围之内,如果该数字信号的大小在该基准阈值范围之内,则可判断该麦克风正常,如果该数字信号的大小不在该基准阈值范围之内,则可判断该麦克风发生异常。It should be noted that, in the embodiment of the present invention, the aforementioned reference threshold may be a single value, or may be a range value composed of multiple values. When the reference threshold is a single value, the digital signal obtained above can be compared with the reference threshold. If the size of the digital signal is greater than or equal to the reference threshold, it can be determined that the corresponding microphone is normal. If the size of the digital signal If it is less than the reference threshold, it can be determined that the microphone is abnormal; when the reference threshold is a range value, it can be judged whether the above-mentioned digital signal is within the reference threshold range, if the magnitude of the digital signal is within the reference threshold range, Then it can be judged that the microphone is normal, and if the magnitude of the digital signal is not within the reference threshold range, it can be judged that the microphone is abnormal.
还需要说明的是,为了提高准确度,还可对移动终端中的麦克风进行多次检测,如果该麦克风多次测试仍然不满足对应的基准阈值,则可判定该麦克风发生异常。It should also be noted that, in order to improve the accuracy, the microphone in the mobile terminal may be detected multiple times, and if the microphone still fails to meet the corresponding reference threshold after multiple tests, it may be determined that the microphone is abnormal.
为了提升用户体验,保证在检测麦克风发生异常时也能够使得用户仍可以使用移动终端进行声音输入等功能,进一步地,在本发明的一个实施例中,当检测麦克风发生异常时,该检测方法还可包括:确定移动终端中检测正常的其他麦克风,并将其他麦克风的权限变更为使用权限以使其他麦克风替换麦克风的使用;调整其他麦克风的灵敏度和音频参数。In order to improve the user experience and ensure that the user can still use the mobile terminal to perform voice input and other functions when the microphone is detected to be abnormal, further, in one embodiment of the present invention, when the microphone is detected to be abnormal, the detection method also It may include: determining other microphones that are detected normally in the mobile terminal, and changing the authority of other microphones to use authority so that other microphones can replace the use of the microphone; adjusting the sensitivity and audio parameters of other microphones.
也就是说,还可获取移动终端中其他麦克风的检测结果,并将当前麦克风的检测结果与其他麦克风的检测结果进行对比,如果只是该当前麦克风的数字信号不满足基准阈值,则可判定该当前麦克风发生异常,并从其他麦克风中选择一个正常的麦克风,然后,将该正常的其他麦克风的权限变更为使用权限,如语音输入时使用该正常的其他麦克风收集声音,即将发生异常的麦克风切换为正常的其他麦克风,并调整该其他麦克风的灵敏度以及相应的音频参数,以保证该其他麦克风的声音输入效果。由此,在检测麦克分发生异常时通过智能切换其他位置的麦克风,解决了临时处理麦克风堵孔的问题,满足了用户的临时使用需要。That is to say, the detection results of other microphones in the mobile terminal can also be obtained, and the detection results of the current microphone are compared with the detection results of other microphones. If only the digital signal of the current microphone does not meet the reference threshold, it can be determined that the current microphone When the microphone is abnormal, select a normal microphone from other microphones, and then change the permission of the other normal microphone to use permission, such as using the other normal microphone to collect sound during voice input, and switch the abnormal microphone to Other normal microphones, and adjust the sensitivity of the other microphones and the corresponding audio parameters to ensure the sound input effect of the other microphones. As a result, by intelligently switching microphones at other locations when an abnormality occurs in the detection of the microphone component, the problem of temporarily dealing with the plugging of the microphone is solved, and the temporary use needs of the user are met.
根据本发明实施例的移动终端中麦克风的检测方法,控制移动终端中的音频输出设备播放预设大小的超声波检测信号,之后,获取麦克风所采集的声音信号,并将声音信号转换为对应的数字信号,然后,确定与麦克风对应的基准阈值,最后,根据数字信号和基准阈值检测麦克风是否发生异常。即通过移动终端上的已有音频输出设备输出特定的大小的音源,测试移动终端中某个位置的麦克风是否发生堵孔等异常情况,实现了麦克风的简易检测,避免了用户由于不专业而对麦克风进行误检测,无需用户到售后处也能够随时对麦克风进行异常检测,方便用户的使用,提升用户体验。According to the method for detecting a microphone in a mobile terminal according to an embodiment of the present invention, the audio output device in the mobile terminal is controlled to play an ultrasonic detection signal of a preset size, and then the sound signal collected by the microphone is acquired, and the sound signal is converted into a corresponding digital signal. signal, and then determine a reference threshold corresponding to the microphone, and finally, detect whether the microphone is abnormal according to the digital signal and the reference threshold. That is, through the existing audio output device on the mobile terminal to output a sound source of a specific size, test whether the microphone at a certain position in the mobile terminal is blocked, etc., to realize the simple detection of the microphone and avoid the user's unprofessional The microphone is misdetected, and the abnormality detection of the microphone can be performed at any time without the user going to the after-sales office, which is convenient for the user and improves the user experience.
图2是根据本发明另一个实施例的移动终端中麦克风的检测方法的流程图。Fig. 2 is a flowchart of a method for detecting a microphone in a mobile terminal according to another embodiment of the present invention.
为了进一步提高检测结果的准确度,在本发明的实施例中,在控制音频输出设备播放超声波检测信号之前,还可获取麦克风所采集的周围环境的噪声信号,并根据该噪声信号将麦克风之后所采集的声音信号进行去燥,以考虑周围环境给麦克风检测所带来的影响。具体地,如图2所示,该移动终端中麦克风的检测方法可以包括:In order to further improve the accuracy of the detection results, in an embodiment of the present invention, before controlling the audio output device to play the ultrasonic detection signal, the noise signal of the surrounding environment collected by the microphone can also be obtained, and the noise signal obtained after the microphone can be converted according to the noise signal. The collected sound signal is denoised to consider the impact of the surrounding environment on the microphone detection. Specifically, as shown in Figure 2, the detection method of the microphone in the mobile terminal may include:
S201,获取麦克风所采集的周围环境的噪声信号。S201. Acquire the noise signal of the surrounding environment collected by the microphone.
举例而言,假设本发明实施例的移动终端中麦克风的检测方法可应用于移动终端,该移动终端可为用户提供检测麦克风是否发生异常的应用程序,当用户启动或运行该应用程序时,可获取麦克风所收集的附近环境的噪声情况。For example, assuming that the method for detecting a microphone in a mobile terminal according to an embodiment of the present invention can be applied to a mobile terminal, the mobile terminal can provide the user with an application program for detecting whether the microphone is abnormal, and when the user starts or runs the application program, it can Obtain the noise of the surrounding environment collected by the microphone.
S202,控制移动终端中的音频输出设备播放预设大小的超声波检测信号。S202. Control the audio output device in the mobile terminal to play an ultrasonic detection signal with a preset size.
需要说明的是,在控制音频输出设备播放超声波检测信号,还可对音频输出设备进行异常检测,如,可提醒用户对移动终端的音频输出设备进行主观检测,即检测该音频输出设备是否正常,并在检测该音频输出设备正常时,控制该音频输出设备播放预设大小的超声波检测信号。It should be noted that, when the audio output device is controlled to play the ultrasonic detection signal, abnormality detection can also be performed on the audio output device. For example, the user can be reminded to perform subjective detection on the audio output device of the mobile terminal, that is, to detect whether the audio output device is normal, And when the audio output device is detected to be normal, the audio output device is controlled to play an ultrasonic detection signal of a preset size.
S203,获取麦克风所采集的声音信号。S203. Acquire the sound signal collected by the microphone.
S204,根据噪声信号对声音信号进行去噪,并将去噪后的声音信号转换为对应的数字信号。S204. Denoise the sound signal according to the noise signal, and convert the denoised sound signal into a corresponding digital signal.
S205,确定与麦克风对应的基准阈值,并根据数字信号和基准阈值检测麦克风是否发生异常。S205. Determine a reference threshold corresponding to the microphone, and detect whether the microphone is abnormal according to the digital signal and the reference threshold.
根据本发明实施例的移动终端中麦克风的检测方法,在控制音频输出设备播放超声波检测信号之前,还可获取麦克风所采集的周围环境的噪声信号,并根据该噪声信号将麦克风之后所采集的声音信号进行去燥,以考虑周围环境给麦克风检测所带来的影响,从而提高了检测结果的准确度。According to the detection method of the microphone in the mobile terminal of the embodiment of the present invention, before controlling the audio output device to play the ultrasonic detection signal, the noise signal of the surrounding environment collected by the microphone can also be obtained, and the sound collected after the microphone can be converted according to the noise signal The signal is denoised to consider the impact of the surrounding environment on the microphone detection, thereby improving the accuracy of the detection result.
为了提升用户体验,提高麦克风检测方法的可用性和可行性,进一步地,在本发明的一个实施例中,在控制移动终端中的音频输出设备播放预设大小的超声波检测信号之前,该检测方法还可包括:周期性地向移动终端的所属用户发送麦克风检测提醒;当接收到所属用户针对移动终端的麦克风检测请求时,控制音频输出设备播放预设大小的超声波检测信号。In order to improve user experience and improve the usability and feasibility of the microphone detection method, further, in one embodiment of the present invention, before controlling the audio output device in the mobile terminal to play an ultrasonic detection signal of a preset size, the detection method also It may include: periodically sending a microphone detection reminder to the user of the mobile terminal; when receiving a microphone detection request from the user for the mobile terminal, controlling the audio output device to play an ultrasonic detection signal of a preset size.
也就是说,在用户使用移动终端的过程中,可每隔一段时间(如每个月、每两个月等)向用户发送提醒信息,以提醒用户对移动终端的麦克风进行异常检测,并在接收到用户麦克风的检测请求时,可控制音频输出设备播放预设大小的超声波检测信号。That is to say, when the user is using the mobile terminal, a reminder message can be sent to the user at regular intervals (such as every month, every two months, etc.) to remind the user to perform abnormal detection on the microphone of the mobile terminal, and When a detection request from the user's microphone is received, the audio output device can be controlled to play an ultrasonic detection signal of a preset size.
与上述几种实施例提供的移动终端中麦克风的检测方法相对应,本发明的一种实施例还提供一种移动终端中麦克风的检测装置,由于本发明实施例提供的移动终端中麦克风的检测装置与上述几种实施例提供的移动终端中麦克风的检测方法相对应,因此在前述移动终端中麦克风的检测方法的实施方式也适用于本实施例提供的移动终端中麦克风的检测装置,在本实施例中不再详细描述。图3是根据本发明一个实施例的移动终端中麦克风的检测装置的结构框图。如图3所示,该移动终端中麦克风的检测装置可以包括:控制模块10、第一获取模块20、模数转换模块30、确定模块40和检测模块50。Corresponding to the detection method of the microphone in the mobile terminal provided by the above several embodiments, an embodiment of the present invention also provides a detection device for the microphone in the mobile terminal, because the detection of the microphone in the mobile terminal provided by the embodiment of the present invention The device corresponds to the detection method of the microphone in the mobile terminal provided in the above several embodiments, so the implementation of the detection method of the microphone in the mobile terminal mentioned above is also applicable to the detection device of the microphone in the mobile terminal provided in this embodiment. No more detailed description in the examples. Fig. 3 is a structural block diagram of an apparatus for detecting a microphone in a mobile terminal according to an embodiment of the present invention. As shown in FIG. 3 , the device for detecting a microphone in the mobile terminal may include: a control module 10 , a first acquisition module 20 , an analog-to-digital conversion module 30 , a determination module 40 and a detection module 50 .
具体地,控制模块10用于控制移动终端中的音频输出设备播放预设大小的超声波检测信号。Specifically, the control module 10 is used to control the audio output device in the mobile terminal to play an ultrasonic detection signal with a preset size.
其中,在本发明的一个实施例中,该音频输出设备可包括扬声器或受话器。Wherein, in an embodiment of the present invention, the audio output device may include a speaker or a receiver.
在本发明的另一个实施例中,该音频输出设备可包括扬声器和受话器。其中,在本发明的实施例中,控制模块10还用于控制扬声器和受话器同时播放预设大小的超声波检测信号。In another embodiment of the present invention, the audio output device may include a speaker and a receiver. Wherein, in the embodiment of the present invention, the control module 10 is also used to control the speaker and the receiver to simultaneously play the ultrasonic detection signal with a preset size.
第一获取模块20用于获取麦克风所采集的声音信号。The first acquiring module 20 is used for acquiring the sound signal collected by the microphone.
模数转换模块30用于将声音信号转换为对应的数字信号。The analog-to-digital conversion module 30 is used to convert the sound signal into a corresponding digital signal.
确定模块40用于确定与麦克风对应的基准阈值。The determination module 40 is used to determine a reference threshold corresponding to the microphone.
检测模块50用于根据数字信号和基准阈值检测麦克风是否发生异常。The detection module 50 is used to detect whether the microphone is abnormal according to the digital signal and the reference threshold.
具体而言,在本发明的一个实施例中,如图4所示,该检测模块50可包括:判断单元51和判定单元52。其中,判断单元51用于判断数字信号是否满足基准阈值。判定单元52用于在数字信号满足基准阈值时,判定麦克风正常,并在数字信号不满足基准阈值时,判定麦克风发生异常。Specifically, in an embodiment of the present invention, as shown in FIG. 4 , the detection module 50 may include: a judging unit 51 and a judging unit 52 . Wherein, the judging unit 51 is used for judging whether the digital signal satisfies a reference threshold. The determining unit 52 is configured to determine that the microphone is normal when the digital signal meets the reference threshold, and determine that the microphone is abnormal when the digital signal does not meet the reference threshold.
为了提高检测结果的准确度,进一步地,在本发明的一个实施例中,如图5所示,该检测装置还可包括:第二获取模块60和去噪模块70。其中,第二获取模块60用于在控制模块10控制移动终端中的音频输出设备播放预设大小的超声波检测信号之前,获取麦克风所采集的周围环境的噪声信号。去噪模块70用于根据噪声信号对声音信号进行去噪。其中,在本发明的实施例中,模数转换模块30还用于将去噪后的声音信号转换为对应的数字信号。由此,通过考虑周围环境给麦克风检测所带来的影响,以提高检测结果的准确度。In order to improve the accuracy of the detection result, further, in an embodiment of the present invention, as shown in FIG. 5 , the detection device may further include: a second acquisition module 60 and a denoising module 70 . Wherein, the second obtaining module 60 is used to obtain the noise signal of the surrounding environment collected by the microphone before the control module 10 controls the audio output device in the mobile terminal to play the ultrasonic detection signal of a preset size. The denoising module 70 is used for denoising the sound signal according to the noise signal. Wherein, in the embodiment of the present invention, the analog-to-digital conversion module 30 is also used to convert the denoised sound signal into a corresponding digital signal. Therefore, the accuracy of the detection result is improved by considering the influence of the surrounding environment on the microphone detection.
为了提升用户体验,保证在检测麦克风发生异常时也能够使得用户仍可以使用移动终端进行声音输入等功能,进一步地,在本发明的一个实施例中,如图6所示,该检测装置还可包括:切换模块80和调整模块90。其中,切换模块80在检测麦克风发生异常时,确定移动终端中检测正常的其他麦克风,并将其他麦克风的权限变更为使用权限以使其他麦克风替换麦克风的使用。调整模块90用于调整其他麦克风的灵敏度和音频参数。In order to improve the user experience and ensure that the user can still use the mobile terminal to perform voice input and other functions when detecting an abnormality in the microphone, further, in an embodiment of the present invention, as shown in Figure 6, the detection device can also It includes: a switching module 80 and an adjusting module 90 . Wherein, the switching module 80 determines other microphones detected to be normal in the mobile terminal when abnormality occurs in the detected microphone, and changes the permission of other microphones to the usage permission so that other microphones can replace the use of the microphone. The adjustment module 90 is used to adjust the sensitivity and audio parameters of other microphones.
为了提升用户体验,提高麦克风检测方法的可用性和可行性,进一步地,在本发明的一个实施例中,如图7所示,该检测装置还可包括提醒模块100,提醒模块100用于在控制模块10控制移动终端中的音频输出设备播放预设大小的超声波检测信号之前,周期性地向移动终端的所属用户发送麦克风检测提醒。其中,在本发明的实施例中,控制模块10还用于在接收到所属用户针对移动终端的麦克风检测请求时,控制音频输出设备播放预设大小的超声波检测信号。In order to improve the user experience and improve the usability and feasibility of the microphone detection method, further, in an embodiment of the present invention, as shown in FIG. The module 10 controls the audio output device in the mobile terminal to periodically send a microphone detection reminder to the user of the mobile terminal before playing the ultrasonic detection signal of a preset size. Wherein, in the embodiment of the present invention, the control module 10 is further configured to control the audio output device to play an ultrasonic detection signal of a preset size when receiving a microphone detection request from the user for the mobile terminal.
根据本发明实施例的移动终端中麦克风的检测装置,可通过控制模块控制移动终端中的音频输出设备播放预设大小的超声波检测信号,第一获取模块获取麦克风所采集的声音信号,模数转换模块将声音信号转换为对应的数字信号,确定模块确定与麦克风对应的基准阈值,检测模块根据数字信号和基准阈值检测麦克风是否发生异常。即通过移动终端上的已有音频输出设备输出特定的大小的音源,测试移动终端中某个位置的麦克风是否发生堵孔等异常情况,实现了麦克风的简易检测,避免了用户由于不专业而对麦克风进行误检测,无需用户到售后处也能够随时对麦克风进行异常检测,方便用户的使用,提升用户体验。According to the detection device of the microphone in the mobile terminal according to the embodiment of the present invention, the audio output device in the mobile terminal can be controlled by the control module to play an ultrasonic detection signal of a preset size, the first acquisition module acquires the sound signal collected by the microphone, and performs analog-to-digital conversion The module converts the sound signal into a corresponding digital signal, the determination module determines a reference threshold corresponding to the microphone, and the detection module detects whether the microphone is abnormal according to the digital signal and the reference threshold. That is, through the existing audio output device on the mobile terminal to output a sound source of a specific size, test whether the microphone at a certain position in the mobile terminal is blocked, etc., to realize the simple detection of the microphone and avoid the user's unprofessional The microphone is misdetected, and the abnormality detection of the microphone can be performed at any time without the user going to the after-sales office, which is convenient for the user and improves the user experience.
为了实现上述实施例,本发明还提出了一种移动终端,该移动终端包括上述任一个实施例的移动终端中麦克风的检测装置。In order to realize the above embodiments, the present invention further proposes a mobile terminal, which includes the device for detecting a microphone in the mobile terminal according to any one of the above embodiments.
为了实现上述实施例,本发明还提出了另一种移动终端,包括:一个或者多个处理器;存储器;一个或者多个程序,一个或者多个程序存储在存储器中,当被一个或者多个处理器执行时进行如下操作:In order to realize the above-mentioned embodiments, the present invention also proposes another mobile terminal, including: one or more processors; memory; one or more programs, one or more programs are stored in the memory, when one or more When the processor executes, it performs the following operations:
S101’,控制移动终端中的音频输出设备播放预设大小的超声波检测信号。S101', controlling the audio output device in the mobile terminal to play an ultrasonic detection signal of a preset size.
S102’,获取麦克风所采集的声音信号,并将声音信号转换为对应的数字信号。S102', acquire the sound signal collected by the microphone, and convert the sound signal into a corresponding digital signal.
S103’,确定与麦克风对应的基准阈值,并根据数字信号和基准阈值检测麦克风是否发生异常。S103', determine a reference threshold corresponding to the microphone, and detect whether the microphone is abnormal according to the digital signal and the reference threshold.
在本发明的描述中,需要理解的是,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In the description of the present invention, it should be understood that the terms "first" and "second" are used for description purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In the description of the present invention, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced listing of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium, For use with instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from instruction execution systems, devices, or devices and execute instructions), or in conjunction with these instruction execution systems, devices or equipment used. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate or transmit a program for use in or in conjunction with an instruction execution system, device, or device. More specific examples (non-exhaustive list) of computer-readable media include the following: electrical connection with one or more wires (electronic device), portable computer disk case (magnetic device), random access memory (RAM), Read Only Memory (ROM), Erasable and Editable Read Only Memory (EPROM or Flash Memory), Fiber Optic Devices, and Portable Compact Disc Read Only Memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, since the program can be read, for example, by optically scanning the paper or other medium, followed by editing, interpretation or other suitable processing if necessary. processing to obtain the program electronically and store it in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.
此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.
上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610239814.XACN105979053B (en) | 2016-04-18 | 2016-04-18 | The detection method of microphone, device and mobile terminal in mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610239814.XACN105979053B (en) | 2016-04-18 | 2016-04-18 | The detection method of microphone, device and mobile terminal in mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN105979053A CN105979053A (en) | 2016-09-28 |
| CN105979053Btrue CN105979053B (en) | 2017-09-29 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610239814.XAExpired - Fee RelatedCN105979053B (en) | 2016-04-18 | 2016-04-18 | The detection method of microphone, device and mobile terminal in mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN105979053B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106792414A (en)* | 2016-11-28 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | The microphone detection method and terminal of a kind of terminal |
| CN106610812B (en)* | 2016-12-28 | 2019-08-30 | Oppo广东移动通信有限公司 | Control method and control device |
| CN106791226B (en)* | 2017-01-13 | 2020-03-17 | 宇龙计算机通信科技(深圳)有限公司 | Call fault detection method and system |
| CN106775572B (en)* | 2017-03-30 | 2020-07-24 | 联想(北京)有限公司 | Electronic device with microphone array and control method thereof |
| CN107197069B (en)* | 2017-04-28 | 2020-06-02 | 北京小米移动软件有限公司 | Ultrasonic transmitter and receiver detection device |
| CN107172560B (en)* | 2017-06-28 | 2020-06-23 | 青岛海信移动通信技术股份有限公司 | Abnormity detection method for microphone in mobile terminal and mobile terminal |
| CN107705804A (en)* | 2017-09-26 | 2018-02-16 | 维沃移动通信有限公司 | A kind of audible device condition detection method and mobile terminal |
| CN108076199B (en)* | 2017-11-30 | 2020-10-09 | 北京小米移动软件有限公司 | Microphone air tightness detection method and device |
| CN108124042B (en)* | 2017-12-19 | 2020-07-24 | 厦门美图移动科技有限公司 | Device fault detection method and device and mobile terminal |
| CN109963246A (en)* | 2017-12-22 | 2019-07-02 | 北京小米移动软件有限公司 | Microphone detection method and equipment |
| CN108919277B (en)* | 2018-07-02 | 2022-11-22 | 深圳米唐科技有限公司 | Indoor and outdoor environment identification method and system based on sub-ultrasonic waves and storage medium |
| CN109005272B (en)* | 2018-07-24 | 2021-01-29 | Oppo(重庆)智能科技有限公司 | Voice pickup method and related products |
| CN109121046B (en)* | 2018-07-24 | 2020-09-01 | Oppo(重庆)智能科技有限公司 | Plugging hole treatment method and related product |
| CN109151699B (en)* | 2018-07-26 | 2021-05-04 | Oppo广东移动通信有限公司 | Microphone plugging detection method and related products |
| CN109089201B (en)* | 2018-07-26 | 2020-04-17 | Oppo广东移动通信有限公司 | Microphone hole blockage detection method and related product |
| CN109121060B (en)* | 2018-07-26 | 2020-12-01 | Oppo广东移动通信有限公司 | Microphone plugging detection method and related products |
| CN109151701A (en)* | 2018-07-26 | 2019-01-04 | Oppo广东移动通信有限公司 | Microphone hole blockage detection method and related product |
| CN111447540B (en)* | 2018-07-26 | 2021-08-10 | Oppo广东移动通信有限公司 | Microphone hole blockage detection method and related product |
| CN112584293B (en)* | 2018-07-26 | 2022-04-08 | Oppo广东移动通信有限公司 | Microphone plugging detection method and related products |
| CN109121035B (en)* | 2018-08-30 | 2020-10-09 | 歌尔科技有限公司 | Earphone exception handling method, earphone, system and storage medium |
| CN109951349A (en)* | 2019-01-08 | 2019-06-28 | 上海上湖信息技术有限公司 | Microphone fault detection method and device, readable storage medium storing program for executing |
| WO2020227641A1 (en)* | 2019-05-08 | 2020-11-12 | Baxter International Inc. | Patch-based physiological sensor |
| CN112102837B (en)* | 2019-06-18 | 2023-12-05 | 广东美的制冷设备有限公司 | Household electrical appliance and pickup detection method and device thereof |
| CN110390954B (en)* | 2019-08-06 | 2022-05-13 | 京东方科技集团股份有限公司 | Method and device for evaluating quality of voice product |
| CN112393799B (en)* | 2019-08-16 | 2024-10-18 | 青岛海尔多媒体有限公司 | Far-field voice equipment detection method and device and television terminal |
| CN110519676B (en)* | 2019-08-22 | 2021-04-09 | 云知声智能科技股份有限公司 | Decentralized distributed microphone pickup method |
| EP4018681A1 (en)* | 2019-09-05 | 2022-06-29 | Huawei Technologies Co., Ltd. | Microphone blocking detection control |
| CN110661805B (en)* | 2019-09-29 | 2022-05-24 | 支付宝(杭州)信息技术有限公司 | Data processing method, device, storage medium and client |
| CN110995921A (en)* | 2019-11-19 | 2020-04-10 | 维沃移动通信有限公司 | Call processing method, electronic device and computer readable storage medium |
| CN110996244B (en)* | 2019-12-23 | 2021-08-03 | 四川虹美智能科技有限公司 | Microphone array performance test method, device and system |
| CN111182434A (en)* | 2019-12-31 | 2020-05-19 | 深圳市潮流网络技术有限公司 | Conference system microphone anomaly detection method, conference system and test system |
| CN111586547B (en) | 2020-04-28 | 2022-05-06 | 北京小米松果电子有限公司 | Detection method and device of audio input module and storage medium |
| CN111522074B (en)* | 2020-05-29 | 2023-04-25 | 深圳市燕麦科技股份有限公司 | Microphone detection device and microphone detection method |
| CN112289336B (en)* | 2020-10-30 | 2023-10-27 | 维沃移动通信有限公司 | Audio signal processing method and device |
| CN115547314A (en)* | 2021-06-29 | 2022-12-30 | 佛山市顺德区美的电子科技有限公司 | Control method, control device, air conditioner and storage medium of sound collection device |
| CN113746976B (en)* | 2021-07-23 | 2023-03-28 | 荣耀终端有限公司 | Audio module detection method, electronic device and computer storage medium |
| CN115460476A (en)* | 2022-08-31 | 2022-12-09 | 杭州海康威视数字技术股份有限公司 | Audio parameter processing method, device and intercom system of an intercom system |
| CN115767345A (en)* | 2022-11-11 | 2023-03-07 | 歌尔科技有限公司 | Noise reduction method, device, earphone device, and computer-readable storage medium |
| CN116112857A (en)* | 2023-02-08 | 2023-05-12 | 深圳市冠标科技发展有限公司 | Detection method, detection device, electronic equipment and computer storage medium |
| CN115914973B (en)* | 2023-02-10 | 2023-12-01 | 浙江华创视讯科技有限公司 | Microphone channel detection method, device, computer equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102324229A (en)* | 2011-09-08 | 2012-01-18 | 中国科学院自动化研究所 | Method and system for detecting abnormal use of voice input equipment |
| WO2014062605A2 (en)* | 2012-10-18 | 2014-04-24 | Symbol Technologies, Inc. | Intentional aliasing of ultrasound to downconvert to audio tones |
| CN103929707A (en)* | 2014-04-08 | 2014-07-16 | 深圳市中兴移动通信有限公司 | Method for detecting conditions of microphone voice-grade channels and terminal |
| CN104580764A (en)* | 2013-10-18 | 2015-04-29 | 思科技术公司 | Ultrasound pairing signal control in teleconferencing system |
| CN104640054A (en)* | 2015-02-12 | 2015-05-20 | 广东欧珀移动通信有限公司 | Earphone/loudspeaker testing method and system for mobile terminal |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102324229A (en)* | 2011-09-08 | 2012-01-18 | 中国科学院自动化研究所 | Method and system for detecting abnormal use of voice input equipment |
| WO2014062605A2 (en)* | 2012-10-18 | 2014-04-24 | Symbol Technologies, Inc. | Intentional aliasing of ultrasound to downconvert to audio tones |
| CN104580764A (en)* | 2013-10-18 | 2015-04-29 | 思科技术公司 | Ultrasound pairing signal control in teleconferencing system |
| CN103929707A (en)* | 2014-04-08 | 2014-07-16 | 深圳市中兴移动通信有限公司 | Method for detecting conditions of microphone voice-grade channels and terminal |
| CN104640054A (en)* | 2015-02-12 | 2015-05-20 | 广东欧珀移动通信有限公司 | Earphone/loudspeaker testing method and system for mobile terminal |
| Publication number | Publication date |
|---|---|
| CN105979053A (en) | 2016-09-28 |
| Publication | Publication Date | Title |
|---|---|---|
| CN105979053B (en) | The detection method of microphone, device and mobile terminal in mobile terminal | |
| US9699581B2 (en) | Detection of a microphone | |
| CN109275084B (en) | Method, device, system, equipment and storage medium for testing microphone array | |
| CN103179495B (en) | The ear microphone of mobile terminal and the audio testing method of receiver and system | |
| KR101168809B1 (en) | Signaling microphone covering to the user | |
| US20170272878A1 (en) | Detection of a microphone | |
| KR102407686B1 (en) | Environmental and aggregate acoustic dosimetry | |
| US20140348357A1 (en) | Sound Effect Adjustment Method, Apparatus and Device | |
| CN113259832B (en) | Microphone array detection method and device, electronic equipment and storage medium | |
| CN101729969A (en) | Microphone testing method and system for electronic device | |
| US20100135501A1 (en) | Calibrating at least one system microphone | |
| CN106911996A (en) | Microphone state detection method, device and terminal equipment | |
| CN103179240A (en) | Audio testing method and testing system for mobile terminal | |
| CN103179496A (en) | Audio testing system and method for earphone microphone and speaker of mobile terminal | |
| CN107835482A (en) | Method, device and electronic equipment for detecting sound leakage | |
| EP3066845A1 (en) | Calibration of a microphone | |
| CN113630708A (en) | Earphone microphone abnormality detection method and device, earphone kit and storage medium | |
| US10101962B2 (en) | User input through transducer | |
| CN106453970A (en) | Speech reception quality detection method, device and terminal equipment | |
| CN102421056A (en) | Loudspeaker detection method and device | |
| US20200029162A1 (en) | Audio device and computer readable program | |
| CN114063964B (en) | Volume compensation optimization method, device, electronic device and readable storage medium | |
| CN111510841A (en) | Audio component detection method and device and electronic equipment | |
| CN117255282A (en) | Bluetooth audio acquisition method and Bluetooth headset | |
| CN111988722A (en) | Test audio generation method and analysis method |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address | ||
| CP03 | Change of name, title or address | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:Changan town in Guangdong province Dongguan 523859 usha Beach Road No. 18 Patentee before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20170929 |