[go: up one dir, main page]

CN110536193B - Audio signal processing method and device - Google Patents

Audio signal processing method and device Download PDF

Info

Publication number
CN110536193B
CN110536193B CN201910671546.2A CN201910671546A CN110536193B CN 110536193 B CN110536193 B CN 110536193B CN 201910671546 A CN201910671546 A CN 201910671546A CN 110536193 B CN110536193 B CN 110536193B
Authority
CN
China
Prior art keywords
audio signal
audio
preset threshold
collection module
collected
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.)
Active
Application number
CN201910671546.2A
Other languages
Chinese (zh)
Other versions
CN110536193A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910671546.2A priority Critical patent/CN110536193B/en
Publication of CN110536193A publication Critical patent/CN110536193A/en
Application granted granted Critical
Publication of CN110536193B publication Critical patent/CN110536193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/08Mouthpieces; Microphones; Attachments therefor

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a method and a device for processing an audio signal, relates to the technical field of electronics, and solves the problem that the environmental noise in the audio signal acquired by electronic equipment accounts for a relatively large proportion under the condition that a sound receiving hole connected with a main microphone is blocked and a sound receiving hole connected with an auxiliary microphone is not blocked. The electronic equipment determines that the first audio acquisition module is abnormal according to the first audio signal acquired by the first audio acquisition module, and calculates an adjustment proportion according to the amplitude value of the first audio signal and a first preset threshold, wherein the first preset threshold is the amplitude threshold of the current audio signal acquired by the first audio acquisition module; adjusting the audio signal acquired by the second audio acquisition module by adopting the adjustment proportion to obtain a second audio signal; and determining the difference value of the first audio signal and the second audio signal as the audio signal acquired by the electronic equipment.

Description

一种音频信号的处理方法及装置A kind of audio signal processing method and device

技术领域technical field

本申请涉及电子技术领域,尤其涉及一种音频信号的处理方法及装置。The present application relates to the field of electronic technology, and in particular, to a method and device for processing audio signals.

背景技术Background technique

当前的电子设备(如手机)普遍使用两个麦克风(如主MIC和副MIC)采集音频信号。在主MIC采集到的音频信号中,用户的语音信号占比较大,环境噪音占比较小。在副MIC采集到的音频信号中,用户的语音信号占比较小,环境噪音占比较大。通常,电子设备将主MIC采集到的音频信号与副MIC采集到的音频信号之间的差值作为电子设备最终获取到的音频信号,有效地屏蔽了环境噪音。Current electronic devices (such as mobile phones) commonly use two microphones (such as a primary MIC and a secondary MIC) to collect audio signals. Among the audio signals collected by the main MIC, the user's voice signal accounts for a relatively large proportion, and the environmental noise accounts for a relatively small proportion. In the audio signal collected by the secondary MIC, the user's voice signal accounts for a small proportion, and the environmental noise accounts for a relatively large proportion. Usually, the electronic device takes the difference between the audio signal collected by the main MIC and the audio signal collected by the secondary MIC as the audio signal finally obtained by the electronic device, which effectively shields the environmental noise.

为了方便采集音频信号,电子设备外壳上开设有与MIC连接的收音孔。当用户手持电子设备或电子设备周边有物体时,可能会出现主MIC连接的收音孔被堵塞,而副MIC连接的收音孔未被堵塞的情况。在这种情况下,电子设备最终获取到的音频信号中环境噪音占比较大,影响了用户体验。In order to facilitate the collection of audio signals, a sound-receiving hole connected to the MIC is provided on the shell of the electronic device. When the user holds the electronic device or there are objects around the electronic device, it may happen that the sound receiving hole connected to the main MIC is blocked, but the sound receiving hole connected to the secondary MIC is not blocked. In this case, ambient noise accounts for a large proportion of the audio signal finally obtained by the electronic device, which affects the user experience.

发明内容SUMMARY OF THE INVENTION

本申请提供一种音频信号的处理方法及装置,能够解决在主MIC连接的收音孔被堵塞,而副MIC连接的收音孔未被堵塞的情况下,电子设备最终获取到的音频信号中环境噪音占比较大,影响用户体验的问题。The present application provides an audio signal processing method and device, which can solve the environmental noise in the audio signal finally obtained by the electronic device under the condition that the sound receiving hole connected to the main MIC is blocked and the sound receiving hole connected to the secondary MIC is not blocked. It accounts for a large proportion and affects the user experience.

为达到上述目的,本申请采用如下技术方案:To achieve the above object, the application adopts the following technical solutions:

第一方面,提供一种音频信号的处理方法,该处理方法应用于包括第一音频采集模块和第二音频采集模块的电子设备。具体的,电子设备在根据第一音频采集模块采集到的第一音频信号,确定出第一音频采集模块异常后,根据第一音频信号的振幅值与第一预设阈值(第一音频采集模块当前采集音频信号的振幅阈值),计算调整比例,并采用调整比例调整第二音频采集模块采集到的音频信号,得到第二音频信号;之后,电子设备确定第一音频信号与第二音频信号的差值为该电子设备获取到的音频信号。In a first aspect, an audio signal processing method is provided, and the processing method is applied to an electronic device including a first audio collection module and a second audio collection module. Specifically, after determining that the first audio collection module is abnormal according to the first audio signal collected by the first audio collection module, the electronic device determines that the first audio collection module is abnormal according to the amplitude value of the first audio signal and the first preset threshold (the first audio collection module The amplitude threshold of the currently collected audio signal), calculate the adjustment ratio, and use the adjustment ratio to adjust the audio signal collected by the second audio acquisition module to obtain the second audio signal; after that, the electronic device determines the difference between the first audio signal and the second audio signal. The difference is the audio signal obtained by the electronic device.

在第一音频采集模块异常的场景中,电子设备适应性地调整第二音频采集模块采集到的音频信号,以得到第二音频信号,使得第一音频采集模块采集到的第一音频信号与第二音频信号之间的差值保持在预设范围内,有效地屏蔽了环境噪音,提高了用户体验。In the scenario where the first audio collection module is abnormal, the electronic device adaptively adjusts the audio signal collected by the second audio collection module to obtain the second audio signal, so that the first audio signal collected by the first audio collection module is the same as the first audio signal collected by the first audio collection module. The difference between the two audio signals is kept within a preset range, which effectively shields the ambient noise and improves the user experience.

可选的,在本申请的一种可能的实现方式中,上述“电子设备根据第一音频信号的振幅值与第一预设阈值,计算调整比例”的方法为:电子设备将第一音频信号的振幅值与第一预设阈值的比值,确定为调整比例。Optionally, in a possible implementation manner of the present application, the above-mentioned method of "the electronic device calculates the adjustment ratio according to the amplitude value of the first audio signal and the first preset threshold" is: the electronic device converts the first audio signal The ratio of the amplitude value of , and the first preset threshold is determined as the adjustment ratio.

可选的,在本申请的另一种可能的实现方式中,上述“电子设备采用调整比例调整第二音频采集模块采集到的音频信号,得到第二音频信号”的方法为:电子设备确定调整比例与第二音频采集模块采集到的音频信号的乘积为第二音频信号。Optionally, in another possible implementation manner of the present application, the above-mentioned method of "the electronic device adjusts the ratio of the audio signal collected by the second audio acquisition module to obtain the second audio signal" is: the electronic device determines the adjustment The product of the ratio and the audio signal collected by the second audio collection module is the second audio signal.

可选的,在本申请的另一种可能的实现方式中,上述“根据第一音频采集模块采集到的第一音频信号,确定第一音频采集模块异常”的方法为:电子设备判断第一音频信号的振幅值是否小于第一预设阈值,若第一音频信号的振幅值小于第一预设阈值,则确定第一音频采集模块异常;或者,电子设备判断第一音频信号的能量分布是否满足预设条件,若第一音频信号的能量分布不满足预设条件,则确定第一音频采集模块异常;或者,电子设备判断第一音频信号的振幅值是否小于第一预设阈值,以及第一音频信号的能量分布是否满足预设条件,若第一音频信号的振幅值小于第一预设阈值,且第一音频信号的能量分布不满足预设条件,则确定第一音频采集模块异常。Optionally, in another possible implementation manner of the present application, the above-mentioned method of "determining that the first audio collection module is abnormal according to the first audio signal collected by the first audio collection module" is as follows: the electronic device determines that the first audio signal is abnormal. Whether the amplitude value of the audio signal is less than the first preset threshold, if the amplitude value of the first audio signal is less than the first preset threshold, it is determined that the first audio acquisition module is abnormal; or, the electronic device determines whether the energy distribution of the first audio signal is not The preset conditions are met, and if the energy distribution of the first audio signal does not meet the preset conditions, it is determined that the first audio acquisition module is abnormal; or, the electronic device determines whether the amplitude value of the first audio signal is less than the first preset threshold, and the Whether the energy distribution of an audio signal satisfies a preset condition, if the amplitude value of the first audio signal is less than the first preset threshold, and the energy distribution of the first audio signal does not meet the preset condition, it is determined that the first audio collection module is abnormal.

可选的,在本申请的另一种可能的实现方式中,电子设备还采用调整比例调整第一预设阈值,得到调整后的第一预设阈值,以及采用调整比例调整第二预设阈值(第二音频采集模块当前采集音频信号的振幅阈值),得到调整后的第二预设阈值。调整后的第一预设阈值用于电子设备在后续过程中判断第一音频采集模块采集到的音频信号是否异常。调整后的第二预设阈值用于电子设备在后续过程中判断第二音频采集模块采集到的音频信号是否异常。Optionally, in another possible implementation manner of the present application, the electronic device further adjusts the first preset threshold by using the adjustment ratio to obtain the adjusted first preset threshold, and adjusts the second preset threshold by using the adjustment ratio. (the amplitude threshold of the audio signal currently collected by the second audio collection module), and obtain the adjusted second preset threshold. The adjusted first preset threshold is used by the electronic device to determine whether the audio signal collected by the first audio collection module is abnormal in the subsequent process. The adjusted second preset threshold is used by the electronic device to determine whether the audio signal collected by the second audio collection module is abnormal in the subsequent process.

第二方面,提供一种音频信号的处理装置,该处理装置位于包括第一音频采集模块和第二音频采集模块的电子设备,该处理装置能够实现第一方面及其任意一种可能的实现方式中的功能。这些功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块。In a second aspect, an audio signal processing device is provided, the processing device is located in an electronic device including a first audio acquisition module and a second audio acquisition module, and the processing device can implement the first aspect and any possible implementation manner thereof function in . These functions can be implemented by hardware or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions.

在本申请的一种可能的方式中,该音频信号的处理装置可以包括确定单元、计算单元和调整单元,该确定单元、计算单元和调整单元可以执行上述第一方面及其任意一种可能的实现方式的音频信号的处理方法中的相应功能。例如:确定单元,用于根据第一音频采集模块采集到的第一音频信号,确定第一音频采集模块异常。计算单元,用于在确定单元确定第一音频采集模块异常的情况下,根据第一音频信号的振幅值与第一预设阈值,计算调整比例,第一预设阈值为第一音频采集模块当前采集音频信号的振幅阈值。调整单元,用于采用调整比例调整第二音频采集模块采集到的音频信号,得到第二音频信号。确定单元,还用于确定第一音频信号与第二音频信号的差值为处理装置获取到的音频信号。In a possible manner of the present application, the audio signal processing apparatus may include a determination unit, a calculation unit, and an adjustment unit, and the determination unit, the calculation unit, and the adjustment unit may perform the above-mentioned first aspect and any one of its possible Corresponding functions in the audio signal processing method of the implementation. For example, the determining unit is configured to determine that the first audio collection module is abnormal according to the first audio signal collected by the first audio collection module. The calculation unit is configured to calculate the adjustment ratio according to the amplitude value of the first audio signal and the first preset threshold when the determination unit determines that the first audio collection module is abnormal, where the first preset threshold is the current value of the first audio collection module Amplitude threshold for acquiring audio signals. The adjustment unit is configured to adjust the audio signal collected by the second audio collection module by adjusting the ratio to obtain the second audio signal. The determining unit is further configured to determine that the difference between the first audio signal and the second audio signal is the audio signal obtained by the processing device.

第三方面,提供一种设备,包括处理器以及存储器;所述存储器与所述处理器耦合;所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述处理器执行所述指令时,所述设备执行第一方面及其任意一种可能的实现方式的音频信号的处理方法中的相应功能。In a third aspect, an apparatus is provided, comprising a processor and a memory; the memory is coupled to the processor; the memory is used to store computer program code, the computer program code including instructions, when the processor executes the When the instruction is executed, the device executes the corresponding function in the audio signal processing method of the first aspect and any possible implementation manner thereof.

第四方面,还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令;当计算机指令在音频信号的处理装置上运行时,该音频信号的处理装置执行如上述第一方面及其各种可能的实现方式所述的音频信号的处理方法。In a fourth aspect, a computer-readable storage medium is also provided, in which computer instructions are stored; when the computer instructions are executed on the audio signal processing device, the audio signal processing device executes the above-mentioned first The audio signal processing method described in the aspect and its various possible implementation manners.

第五方面,还提供一种计算机程序产品,该计算机程序产品包括计算机指令,当计算机指令在音频信号的处理装置上运行时,使得音频信号的处理装置执行如上述第一方面及其各种可能的实现方式所述的音频信号的处理方法。In a fifth aspect, a computer program product is also provided, the computer program product comprising computer instructions, when the computer instructions are executed on the audio signal processing device, the audio signal processing device is made to perform the above-mentioned first aspect and its various possibilities. The audio signal processing method described in the implementation manner.

需要说明的是,上述计算机指令可以全部或者部分存储在计算机存储介质上,其中,第一计算机存储介质可以与处理器封装在一起的,也可以与处理器单独封装,本申请对此不作限定。It should be noted that all or part of the above computer instructions may be stored on a computer storage medium, wherein the first computer storage medium may be packaged with the processor or separately packaged with the processor, which is not limited in this application.

本申请中第二方面、第三方面、第四方面、第五方面及其各种实现方式的描述,可以参考第一方面及其各种实现方式中的详细描述;并且,第二方面、第三方面、第四方面、第五方面及其各种实现方式的有益效果,可以参考第一方面及其各种实现方式中的有益效果分析,此处不再赘述。For the description of the second aspect, the third aspect, the fourth aspect, the fifth aspect and their various implementations in this application, reference may be made to the detailed descriptions in the first aspect and their various implementations; For the beneficial effects of the third aspect, the fourth aspect, the fifth aspect, and various implementations thereof, reference may be made to the analysis of the beneficial effects in the first aspect and its various implementations, which will not be repeated here.

在本申请中,上述音频信号的处理装置的名字对设备或功能模块本身不构成限定,在实际实现中,这些设备或功能模块可以以其他名称出现。只要各个设备或功能模块的功能和本申请类似,属于本申请权利要求及其等同技术的范围之内。In this application, the names of the above audio signal processing apparatuses do not limit the devices or functional modules themselves, and in actual implementation, these devices or functional modules may appear in other names. As long as the functions of each device or functional module are similar to those of the present application, they fall within the scope of the claims of the present application and their equivalents.

本申请的这些方面或其他方面在以下的描述中会更加简明易懂。These and other aspects of the present application will be more clearly understood from the following description.

附图说明Description of drawings

图1为本申请实施例提供的一种设备的硬件结构实例示意图;1 is a schematic diagram of a hardware structure example of a device provided by an embodiment of the present application;

图2A为本申请实施例中主麦克风和副麦克风的分布示意图一;2A is a schematic diagram 1 of the distribution of the primary microphone and the secondary microphone in the embodiment of the present application;

图2B为本申请实施例中主麦克风和副麦克风的分布示意图二;FIG. 2B is a schematic diagram 2 of the distribution of the main microphone and the secondary microphone in the embodiment of the present application;

图3为本申请实施例提供的音频信号的处理方法的流程示意图一;3 is a schematic flowchart 1 of an audio signal processing method provided by an embodiment of the present application;

图4为本申请实施例提供的音频信号的处理方法的流程示意图二;4 is a second schematic flowchart of a method for processing an audio signal according to an embodiment of the present application;

图5为本申请实施例中音频信号的处理装置的结构示意图;5 is a schematic structural diagram of an apparatus for processing audio signals in an embodiment of the present application;

图6为本申请实施例中计算机程序产品的结构示意图。FIG. 6 is a schematic structural diagram of a computer program product in an embodiment of the present application.

具体实施方式Detailed ways

本申请实施例提供一种音频信号的处理方法,可以应用于包括至少两个音频采集模块(如麦克风)的电子设备。具体可以应用于在建立语音通信后,电子设备采集用户的语音数据的过程中。An embodiment of the present application provides an audio signal processing method, which can be applied to an electronic device including at least two audio collection modules (eg, microphones). Specifically, it can be applied to the process of collecting the user's voice data by the electronic device after the voice communication is established.

以包括第一音频采集模块和第二音频采集模块的电子设备为例,在确定第一音频采集模块异常的情况下,为了降低电子设备获取到的音频信号中环境噪音的占比,电子设备适应性调整第二音频采集模块采集到的音频信号,使得第一音频采集模块采集到的音频信号与第二音频采集模块调整后的音频信号之间的差值保持在预设范围内,有效地屏蔽了环境噪音,提高了用户体验。Taking an electronic device including a first audio acquisition module and a second audio acquisition module as an example, when it is determined that the first audio acquisition module is abnormal, in order to reduce the proportion of environmental noise in the audio signal acquired by the electronic device, the electronic device adapts to Adjust the audio signal collected by the second audio collection module, so that the difference between the audio signal collected by the first audio collection module and the audio signal adjusted by the second audio collection module remains within the preset range, effectively shielding It reduces the ambient noise and improves the user experience.

举例来说,本申请实施例中的电子设备可以是手机(如图1所示的手机100)、平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digitalassistant,PDA)、上网本、可穿戴电子设备等终端设备。本申请实施例对电子设备的具体形式不做特殊限制。For example, the electronic device in this embodiment of the present application may be a mobile phone (mobile phone 100 shown in FIG. 1 ), a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a netbook, Terminal equipment such as wearable electronic devices. The embodiments of the present application do not specifically limit the specific form of the electronic device.

例如,上述电子设备可以用于与其他电子设备之间建立语音通话,并执行本申请实施例提供的方法,获取用于表示用户的语音数据的音频信号。或者,上述电子设备中安装有用于语音通话的客户端,该客户端可以在与其他客户端之间建立通信链路后,执行本申请实施例提供的方法,获取用于表示用户的语音数据的音频信号。For example, the above electronic device may be used to establish a voice call with other electronic devices, and execute the method provided by the embodiment of the present application to obtain an audio signal representing the user's voice data. Alternatively, the above-mentioned electronic device is installed with a client for voice calls, and the client may execute the method provided by the embodiment of the present application after establishing a communication link with other clients to obtain a voice data representing the user. audio signal.

如图1所示,以手机100作为上述电子设备为例,手机100具体可以包括:处理器101、射频(radio frequency,RF)电路102、存储器103、触摸屏104、蓝牙装置105、一个或多个传感器106、WiFi装置107、定位装置108、音频电路109、外设接口110以及电源装置111等部件。这些部件可通过一根或多根通信总线或信号线(图1中未示出)进行通信。本领域技术人员可以理解,图1中示出的硬件结构并不构成对手机的限定,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 1 , taking the mobile phone 100 as the above electronic device as an example, the mobile phone 100 may specifically include: a processor 101 , a radio frequency (RF) circuit 102 , a memory 103 , a touch screen 104 , a Bluetooth device 105 , one or more Sensor 106 , WiFi device 107 , positioning device 108 , audio circuit 109 , peripheral interface 110 , power supply device 111 and other components. These components may communicate via one or more communication buses or signal lines (not shown in FIG. 1 ). Those skilled in the art can understand that the hardware structure shown in FIG. 1 does not constitute a limitation on the mobile phone, and the mobile phone 100 may include more or less components than the one shown, or combine some components, or arrange different components.

下面结合图1对手机100的各个部件进行具体的介绍:Each component of the mobile phone 100 is described in detail below with reference to FIG. 1 :

处理器101是手机100的控制中心,利用各种接口和线路连接手机100的各个部分,通过运行或执行存储在存储器103内的应用程序,以及调用存储在存储器103内的数据,执行手机100的各种功能和处理数据。在一些实施例中,处理器101可包括一个或多个处理单元。在本申请实施例一些实施例中,上述处理器101还可以包括指纹验证芯片,用于对采集到的指纹进行验证。The processor 101 is the control center of the mobile phone 100, uses various interfaces and lines to connect various parts of the mobile phone 100, and executes the functions of the mobile phone 100 by running or executing the application programs stored in the memory 103 and calling the data stored in the memory 103. Various functions and processing data. In some embodiments, the processor 101 may include one or more processing units. In some embodiments of the embodiments of the present application, the above-mentioned processor 101 may further include a fingerprint verification chip, which is used to verify the collected fingerprints.

射频电路102可用于在收发信息或通话过程中,无线信号的接收和发送。特别地,射频电路102可以将基站的下行数据接收后,给处理器101处理;另外,将涉及上行的数据发送给基站。通常,射频电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路102还可以通过无线通信和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。The radio frequency circuit 102 can be used for receiving and transmitting wireless signals during the process of sending and receiving information or talking. In particular, the radio frequency circuit 102 can process the downlink data of the base station to the processor 101 after receiving it; in addition, send the uplink data to the base station. Typically, radio frequency circuits include, but are not limited to, antennas, at least one amplifier, transceivers, couplers, low noise amplifiers, duplexers, and the like. In addition, the radio frequency circuit 102 may also communicate with other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile Communications, General Packet Radio Service, Code Division Multiple Access, Wideband Code Division Multiple Access, Long Term Evolution, email, short message service, and the like.

存储器103用于存储应用程序以及数据,处理器101通过运行存储在存储器103的应用程序以及数据,执行手机100的各种功能以及数据处理。存储器103主要包括存储程序区以及存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等);存储数据区可以存储根据使用手机100时所创建的数据(比如音频数据、电话本等)。此外,存储器103可以包括高速随机存取存储器(RAM),还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。存储器103可以存储各种操作系统,例如,

Figure BDA0002141878350000041
操作系统,
Figure BDA0002141878350000042
操作系统等。上述存储器103可以是独立的,通过上述通信总线与处理器101相连接;存储器103也可以和处理器101集成在一起。The memory 103 is used to store application programs and data, and the processor 101 executes various functions of the mobile phone 100 and data processing by running the application programs and data stored in the memory 103 . The memory 103 mainly includes a stored program area and a stored data area, wherein the stored program area can store an operating system and an application program (such as a sound playback function, an image playback function, etc.) required for at least one function; 100 created data (such as audio data, phone book, etc.). In addition, the memory 103 may include high-speed random access memory (RAM), and may also include non-volatile memory, such as magnetic disk storage devices, flash memory devices, or other volatile solid-state storage devices, and the like. The memory 103 may store various operating systems, for example,
Figure BDA0002141878350000041
operating system,
Figure BDA0002141878350000042
operating system, etc. The above-mentioned memory 103 may be independent and connected to the processor 101 through the above-mentioned communication bus; the memory 103 may also be integrated with the processor 101 .

触摸屏104具体可以包括触控板104-1和显示器104-2。The touch screen 104 may specifically include a touch panel 104-1 and a display 104-2.

其中,触控板104-1可采集手机100的用户在其上或附近的触摸事件(比如用户使用手指、触控笔等任何适合的物体在触控板104-1上或在触控板104-1附近的操作),并将采集到的触摸信息发送给其他器件(例如处理器101)。其中,用户在触控板104-1附近的触摸事件可以称之为悬浮触控;悬浮触控可以是指,用户无需为了选择、移动或拖动目标(例如图标等)而直接接触触控板,而只需用户位于设备附近以便执行所想要的功能。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型来实现触控板104-1。The touchpad 104-1 can collect touch events on or near the user of the mobile phone 100 (for example, the user uses a finger, a stylus, or any other suitable object on the touchpad 104-1 or on the touchpad 104). -1 operation near), and send the collected touch information to other devices (for example, the processor 101). Among them, the user's touch event near the touchpad 104-1 may be called a hovering touch; the hovering touch may refer to the fact that the user does not need to directly touch the touchpad in order to select, move or drag an object (such as an icon, etc.). , but only if the user is near the device in order to perform the desired function. In addition, various types of resistive, capacitive, infrared, and surface acoustic waves can be used to implement the touch panel 104-1.

显示器(也称为显示屏)104-2可用于显示由用户输入的信息或提供给用户的信息以及手机100的各种菜单。可以采用液晶显示器、有机发光二极管等形式来配置显示器104-2。触控板104-1可以覆盖在显示器104-2之上,当触控板104-1检测到在其上或附近的触摸事件后,传送给处理器101以确定触摸事件的类型,随后处理器101可以根据触摸事件的类型在显示器104-2上提供相应的视觉输出。虽然在图1中,触控板104-1与显示屏104-2是作为两个独立的部件来实现手机100的输入和输出功能,但是在某些实施例中,可以将触控板104-1与显示屏104-2集成而实现手机100的输入和输出功能。可以理解的是,触摸屏104是由多层的材料堆叠而成,本申请实施例中只展示出了触控板(层)和显示屏(层),其他层在本申请实施例中不予记载。另外,触控板104-1可以以全面板的形式配置在手机100的正面,显示屏104-2也可以以全面板的形式配置在手机100的正面,这样在手机的正面就能够实现无边框的结构。A display (also referred to as a display screen) 104 - 2 may be used to display information entered by or provided to the user as well as various menus of the cell phone 100 . The display 104-2 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The touchpad 104-1 can be overlaid on the display 104-2. When the touchpad 104-1 detects a touch event on or near it, it is transmitted to the processor 101 to determine the type of the touch event, and then the processor 101 may provide corresponding visual output on display 104-2 according to the type of touch event. Although in FIG. 1, the touchpad 104-1 and the display screen 104-2 are used as two independent components to realize the input and output functions of the mobile phone 100, in some embodiments, the touchpad 104-1 1 is integrated with the display screen 104-2 to realize the input and output functions of the mobile phone 100. It can be understood that the touch screen 104 is formed by stacking multiple layers of materials. Only the touch panel (layer) and the display screen (layer) are shown in the embodiments of the present application, and other layers are not described in the embodiments of the present application. . In addition, the touch panel 104-1 can be arranged on the front of the mobile phone 100 in the form of a full panel, and the display screen 104-2 can also be arranged on the front of the mobile phone 100 in the form of a full panel, so that the front of the mobile phone can be frameless Structure.

另外,手机100还可以具有指纹识别功能。例如,可以在手机100的背面(例如后置摄像头的下方)配置指纹采集器件112,或者在手机100的正面(例如触摸屏104的下方)配置指纹采集器件112。又例如,可以在触摸屏104中配置指纹采集器件112来实现指纹识别功能,即指纹采集器件112可以与触摸屏104集成在一起来实现手机100的指纹识别功能。在这种情况下,该指纹采集器件112配置在触摸屏104中,可以是触摸屏104的一部分,也可以以其他方式配置在触摸屏104中。本申请实施例中的指纹采集器件112的主要部件是指纹传感器,该指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。In addition, the mobile phone 100 may also have a fingerprint recognition function. For example, the fingerprint acquisition device 112 may be configured on the back of the mobile phone 100 (eg, below the rear camera), or the fingerprint acquisition device 112 may be configured on the front of the mobile phone 100 (eg, below the touch screen 104 ). For another example, the fingerprint collection device 112 can be configured in the touch screen 104 to realize the fingerprint identification function, that is, the fingerprint collection device 112 can be integrated with the touch screen 104 to realize the fingerprint identification function of the mobile phone 100 . In this case, the fingerprint collection device 112 is configured in the touch screen 104, which may be a part of the touch screen 104, or may be configured in the touch screen 104 in other ways. The main component of the fingerprint collection device 112 in the embodiment of the present application is a fingerprint sensor, and the fingerprint sensor can adopt any type of sensing technology, including but not limited to optical, capacitive, piezoelectric or ultrasonic sensing technology.

手机100还可以包括蓝牙装置105,用于实现手机100与其他短距离的设备(例如手机、智能手表等)之间的数据交换。本申请实施例中的蓝牙装置可以是集成电路或者蓝牙芯片等。The mobile phone 100 may also include a Bluetooth device 105 for realizing data exchange between the mobile phone 100 and other short-range devices (eg, mobile phones, smart watches, etc.). The Bluetooth device in this embodiment of the present application may be an integrated circuit or a Bluetooth chip or the like.

手机100还可以包括至少一种传感器106,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触摸屏104的显示器的亮度,接近传感器可在手机100移动到耳边时,关闭显示器的电源。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机100还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Cell phone 100 may also include at least one sensor 106, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display of the touch screen 104 according to the brightness of the ambient light, and the proximity sensor may turn off the power of the display when the mobile phone 100 is moved to the ear . As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. that can be configured on the mobile phone 100, we will not Repeat.

无线保真(wireless fidelity,WiFi)装置107,用于为手机100提供遵循Wi-Fi相关标准协议的网络接入,手机100可以通过WiFi装置107接入到Wi-Fi接入点,进而帮助用户收发电子邮件、浏览网页和访问流媒体等,它为用户提供了无线的宽带互联网访问。在其他一些实施例中,该WiFi装置107也可以作为Wi-Fi无线接入点,可以为其他设备提供Wi-Fi网络接入。A wireless fidelity (WiFi) device 107 is used to provide the mobile phone 100 with network access that complies with Wi-Fi related standard protocols, and the mobile phone 100 can access the Wi-Fi access point through the WiFi device 107, thereby helping the user Send and receive e-mail, browse the web and access streaming media, etc., it provides users with wireless broadband Internet access. In some other embodiments, the WiFi device 107 can also serve as a Wi-Fi wireless access point, and can provide Wi-Fi network access for other devices.

定位装置108,用于为手机100提供地理位置。可以理解的是,该定位装置108具体可以是全球定位系统(global positioning system,GPS)或北斗卫星导航系统、俄罗斯GLONASS等定位系统的接收器。定位装置108在接收到上述定位系统发送的地理位置后,将该信息发送给处理器101进行处理,或者发送给存储器103进行保存。在另外的一些实施例中,该定位装置108还可以是辅助全球卫星定位系统(assisted global positioningsystem,AGPS)的接收器,AGPS系统通过作为辅助服务器来协助定位装置108完成测距和定位服务,在这种情况下,辅助定位服务器通过无线通信网络与设备例如手机100的定位装置108(即GPS接收器)通信而提供定位协助。在另外的一些实施例中,该定位装置108也可以是基于Wi-Fi接入点的定位技术。由于每一个Wi-Fi接入点都有一个全球唯一的媒体访问控制(media access control,MAC)地址,设备在开启Wi-Fi的情况下即可扫描并收集周围的Wi-Fi接入点的广播信号,因此可以获取到Wi-Fi接入点广播出来的MAC地址;设备将这些能够标示Wi-Fi接入点的数据(例如MAC地址)通过无线通信网络发送给位置服务器,由位置服务器检索出每一个Wi-Fi接入点的地理位置,并结合Wi-Fi广播信号的强弱程度,计算出该设备的地理位置并发送到该设备的定位装置108中。The positioning device 108 is used to provide the mobile phone 100 with a geographic location. It can be understood that, the positioning device 108 may specifically be a receiver of a global positioning system (global positioning system, GPS), a Beidou satellite navigation system, a Russian GLONASS or other positioning systems. After receiving the geographic location sent by the positioning system, the positioning device 108 sends the information to the processor 101 for processing, or sends the information to the memory 103 for storage. In other embodiments, the positioning device 108 may also be a receiver of an assisted global positioning system (AGPS), and the AGPS system acts as an auxiliary server to assist the positioning device 108 to complete ranging and positioning services. In this case, the assisted positioning server communicates with the positioning device 108 (ie, the GPS receiver) of the device, such as the mobile phone 100, through a wireless communication network to provide positioning assistance. In some other embodiments, the positioning device 108 may also be a positioning technology based on a Wi-Fi access point. Since each Wi-Fi access point has a globally unique media access control (MAC) address, the device can scan and collect surrounding Wi-Fi access points when Wi-Fi is turned on. broadcast signal, so the MAC address broadcast by the Wi-Fi access point can be obtained; the device sends these data (such as MAC address) that can identify the Wi-Fi access point to the location server through the wireless communication network, and the location server retrieves The geographic location of each Wi-Fi access point is calculated, and combined with the strength of the Wi-Fi broadcast signal, the geographic location of the device is calculated and sent to the positioning device 108 of the device.

音频电路109、扬声器113、麦克风114可提供用户与手机100之间的音频接口。音频电路109可将接收到的音频数据转换后的电信号,传输到扬声器113,由扬声器113转换为声音信号输出;另一方面,麦克风114将收集的声音信号转换为电信号,由音频电路109接收后转换为音频数据,再将音频数据输出至射频电路102以发送给比如另一手机,或者将音频数据输出至存储器103以便进一步处理。The audio circuit 109 , the speaker 113 , and the microphone 114 may provide an audio interface between the user and the cell phone 100 . The audio circuit 109 can transmit the received audio data converted electrical signal to the speaker 113, and the speaker 113 converts it into a sound signal for output; on the other hand, the microphone 114 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 109 After receiving, it is converted into audio data, and then the audio data is output to the radio frequency circuit 102 for sending to another mobile phone, for example, or the audio data is output to the memory 103 for further processing.

手机100可以包括两个或两个以上的麦克风114。以手机100包括主麦克风和副麦克风为例。这两个麦克风可以均部署于触摸屏104的下方,如图2A所示;也可以是主麦克风部署于触摸屏104的下方,副麦克风部署于手机100的背面,如图2B所示,当然主麦克风和副麦克风在手机100中的部署位置还可以为其他,这里不再一一列举。Cell phone 100 may include two or more microphones 114 . Take the mobile phone 100 including a primary microphone and a secondary microphone as an example. The two microphones can be deployed below the touch screen 104, as shown in FIG. 2A; the main microphone can also be deployed below the touch screen 104, and the secondary microphone is deployed on the back of the mobile phone 100, as shown in FIG. 2B, of course, the main microphone and The deployment position of the secondary microphone in the mobile phone 100 may also be other, which will not be listed one by one here.

外设接口110,用于为外部的输入/输出设备(例如键盘、鼠标、外接显示器、外部存储器、用户识别模块卡等)提供各种接口。例如通过通用串行总线(universal serial bus,USB)接口与鼠标连接,通过用户识别模块卡卡槽上的金属触点与电信运营商提供的用户识别模块卡(subscriber identification module,SIM)卡进行连接。外设接口110可以被用来将上述外部的输入/输出外围设备耦接到处理器101和存储器103。The peripheral interface 110 is used to provide various interfaces for external input/output devices (eg, keyboard, mouse, external display, external memory, user identification module card, etc.). For example, the mouse is connected to the mouse through a universal serial bus (USB) interface, and the subscriber identification module (SIM) card provided by the telecom operator is connected through the metal contacts on the card slot of the subscriber identification module. . The peripheral interface 110 may be used to couple the aforementioned external input/output peripherals to the processor 101 and the memory 103 .

在本发明实施例中,手机100可通过外设接口110与设备组内的其他设备进行通信,例如,通过外设接口110可接收其他设备发送的显示数据进行显示等,本发明实施例对此不作任何限制。In this embodiment of the present invention, the mobile phone 100 can communicate with other devices in the device group through the peripheral interface 110 , for example, the display data sent by other devices can be received and displayed through the peripheral interface 110 . No restrictions apply.

手机100还可以包括给各个部件供电的电源装置111(比如电池和电源管理芯片),电池可以通过电源管理芯片与处理器101逻辑相连,从而通过电源装置111实现管理充电、放电、以及功耗管理等功能。The mobile phone 100 may also include a power supply device 111 (such as a battery and a power management chip) for supplying power to various components. The battery may be logically connected to the processor 101 through the power management chip, so as to manage charging, discharging, and power consumption management through the power supply device 111. and other functions.

尽管图1未示出,手机100还可以包括摄像头(前置摄像头和/或后置摄像头)、闪光灯、微型投影装置、近场通信(near field communication,NFC)装置等,在此不再赘述。Although not shown in FIG. 1 , the mobile phone 100 may further include a camera (a front camera and/or a rear camera), a flash, a pico-projection device, a near field communication (NFC) device, etc., which will not be repeated here.

其中,本申请实施例提供的音频信号的处理方法的执行主体可以为音频信号的处理装置,该处理装置可以是用于电子设备(如图1所示的手机100),或者该电子设备的中央处理器(central processing unit,CPU),或者该电子设备中的用于处理音频信号的模块,或者该电子设备中用于处理音频信号的客户端。Wherein, the execution subject of the audio signal processing method provided by the embodiment of the present application may be an audio signal processing device, and the processing device may be used in an electronic device (such as the mobile phone 100 shown in FIG. 1 ), or a central part of the electronic device. A processor (central processing unit, CPU), or a module in the electronic device for processing audio signals, or a client in the electronic device for processing audio signals.

本申请实施例以包括第一音频模块和第二音频模块的电子设备执行音频信号的处理方法为例,对本申请提供的音频信号的处理方法进行说明。The embodiments of the present application describe the method for processing audio signals provided by the present application by taking an electronic device including a first audio module and a second audio module for processing an audio signal as an example.

下面通过具体实施例对本申请实施例提供的一种音频信号的处理方法进行详细说明。The following describes an audio signal processing method provided by an embodiment of the present application in detail through specific embodiments.

如图3所示,本申请实施例提供的音频信号的处理方法包括:As shown in FIG. 3 , the audio signal processing method provided by the embodiment of the present application includes:

S301、电子设备获取第一音频采集模块采集的音频信号1和第二音频采集模块采集的音频信号2。S301. The electronic device acquires the audio signal 1 collected by the first audio collection module and the audio signal 2 collected by the second audio collection module.

S302、电子设备根据音频信号1,确定第一音频采集模块异常。S302, the electronic device determines, according to the audio signal 1, that the first audio collection module is abnormal.

可选的,电子设备可以根据音频信号1的振幅值和/或能量分布,确定第一音频采集模块异常。Optionally, the electronic device may determine that the first audio collection module is abnormal according to the amplitude value and/or energy distribution of the audio signal 1 .

其中,电子设备可以采用下述方法确定:电子设备采样单位周期内的音频信号1,得到音频信号1的采样值,并计算音频信号1的采样值的振幅的绝对值,以及计算多个采样值的振幅的绝对值的平均值,得到音频信号1的采样值的振幅的平均值,该平均值为音频信号1的振幅值。Wherein, the electronic device can use the following method to determine: the electronic device samples the audio signal 1 in the unit period, obtains the sampled value of the audio signal 1, and calculates the absolute value of the amplitude of the sampled value of the audio signal 1, and calculates a plurality of sampled values. The average value of the absolute value of the amplitude of the audio signal 1 is obtained, and the average value of the amplitude of the sampled values of the audio signal 1 is obtained, and the average value is the amplitude value of the audio signal 1 .

如果与第一音频采集模块连接的收音孔被堵塞,则会导致第一音频采集模块收集到的音频信号1的振幅大幅降低,可能小于第一预设阈值,该第一预设阈值为第一音频采集模块采集音频信号的阈值。基于此,电子设备可以对音频信号1进行时域分析,确定音频信号1的振幅是否小于第一预设阈值。If the sound-receiving hole connected to the first audio collection module is blocked, the amplitude of the audio signal 1 collected by the first audio collection module will be greatly reduced, which may be smaller than the first preset threshold, and the first preset threshold is the first The audio collection module collects the threshold value of the audio signal. Based on this, the electronic device can perform time domain analysis on the audio signal 1 to determine whether the amplitude of the audio signal 1 is smaller than the first preset threshold.

当确定音频信号1的振幅小于第一预设阈值时,电子设备确定第一音频采集模块采集到的音频信号1的振幅小于第一预设阈值时的持续时长是否大于预设时长,预设时长可以根据设计需要动态设置。When it is determined that the amplitude of the audio signal 1 is less than the first preset threshold, the electronic device determines whether the duration when the amplitude of the audio signal 1 collected by the first audio acquisition module is less than the first preset threshold is greater than the preset duration, and the preset duration It can be dynamically set according to the design needs.

电子设备通过第一音频采集模块采集用户语音通话的音频信号,计算用户语音通话时的音频信号的振幅值,通过比较用户语音通话时的音频信号的振幅值与第一预设阈值的大小,确定用户语音通话时的音频信号的振幅值是否小于第一预设阈值,即:确定第一音频采集模块采集到音频信号1的振幅值是否小于第一预设阈值。The electronic device collects the audio signal of the user's voice call through the first audio collection module, calculates the amplitude value of the audio signal during the user's voice call, and determines by comparing the amplitude value of the audio signal during the user's voice call with the size of the first preset threshold. Whether the amplitude value of the audio signal during the user's voice call is smaller than the first preset threshold, that is, determining whether the amplitude value of the audio signal 1 collected by the first audio collection module is smaller than the first preset threshold.

本申请实施例中第一音频采集模块采集音频信号的阈值称为第一预设阈值,第二音频采集模块采集音频信号的阈值称为第二预设阈值。In the embodiment of the present application, the threshold for collecting audio signals by the first audio collection module is referred to as the first preset threshold, and the threshold for collecting audio signals by the second audio collection module is referred to as the second preset threshold.

在实际应用中,可以根据实验获取本申请实施例的预设阈值(第一预设阈值或第二预设阈值),即:将收音孔堵塞,收音孔被堵塞时采集音频信号,收音孔被堵塞时采集到的音频信号的振幅即为预设阈值。In practical applications, the preset threshold (the first preset threshold or the second preset threshold) in the embodiment of the present application can be obtained according to experiments, that is, the sound-receiving hole is blocked, the audio signal is collected when the sound-receiving hole is blocked, and the sound-receiving hole is blocked. The amplitude of the audio signal collected when blocked is the preset threshold.

这里对第一预设阈值的确定进行描述。可选的,可以将与第一音频采集模块连接的收音孔堵塞后,采用第一音频采集模块多次采集音频信号,获取多次采集到的音频信号的振幅的平均值,将得到的平均值作为第一预设阈值。作为一种实施方式,当通过多次采集音频信号得到第一预设阈值时,可以通过采集具有不同声波特性的音频信号(例如男声,女声,老人,儿童等)得到第一预设阈值。作为一种实施方式,可以通过不同堵塞方式堵塞与第一音频采集模块连接的收音孔(如,不同堵塞角度,利用不同物体堵塞收音孔等),分别获取第一音频采集模块在各种不同堵塞方式下所采集到的音频信号的振幅,计算所获取的音频信号的振幅的平均值得到第一预设阈值。The determination of the first preset threshold is described here. Optionally, after the sound-receiving hole connected to the first audio collection module may be blocked, the first audio collection module may be used to collect audio signals for multiple times, and the average value of the amplitudes of the multiple collected audio signals may be obtained, and the obtained average value may be as the first preset threshold. As an embodiment, when the first preset threshold is obtained by collecting audio signals multiple times, the first preset threshold can be obtained by collecting audio signals with different sound wave characteristics (eg, male voice, female voice, elderly, children, etc.). As an embodiment, the sound-receiving holes connected to the first audio collection module can be blocked in different blocking ways (eg, different blocking angles, using different objects to block the sound-receiving holes, etc.) The amplitude of the audio signal collected in the mode is calculated, and the average value of the amplitude of the acquired audio signal is calculated to obtain the first preset threshold.

第二预设阈值的确定方法可以参考第一预设阈值的确定方法,这里不再一一赘述。For the method for determining the second preset threshold, reference may be made to the method for determining the first preset threshold, which will not be repeated here.

此外,因为低频信号能量相对强,高频信号能量相对弱;当收音孔被堵塞时,大部分低频信号可以通过缝隙或壳体共振方式通过收音孔被音频采集模块采集到;但大部分高频信号无法通过收音孔被音频采集模块采集到;因此当收音孔被堵塞时,音频采集模块所采集到的音频信号主要是低频信号。In addition, because the low-frequency signal energy is relatively strong, the high-frequency signal energy is relatively weak; when the sound-receiving hole is blocked, most of the low-frequency signals can be collected by the audio acquisition module through the sound-receiving hole through the gap or shell resonance; but most high-frequency signals can be collected by the audio acquisition module. The signal cannot be collected by the audio collection module through the sound-receiving hole; therefore, when the sound-receiving hole is blocked, the audio signal collected by the audio collection module is mainly low-frequency signal.

基于此,电子设备可以对音频信号1进行傅里叶FFT转换后得到音频信号1的能量分布,通过判断采集到的音频信号1的能量分布是否满足预设条件,即:将频率高于预设频点的音频信号1的能量值求和作为高频能量值,将频率低于所述预设频点的音频信号1的能量值求和作为低频能量值;判断高频能量值与所述低频能量值的比值是否小于预设值,如果高频能量值与所述低频能量值的比值小于预设值,则确定音频信号1的能量分布不满足预设条件。Based on this, the electronic device can perform Fourier FFT transformation on the audio signal 1 to obtain the energy distribution of the audio signal 1, and by judging whether the collected energy distribution of the audio signal 1 satisfies the preset condition, that is, the frequency is higher than the preset frequency. The summation of the energy values of the audio signal 1 of the frequency point is used as the high frequency energy value, and the summation of the energy values of the audio signal 1 of the frequency lower than the preset frequency point is used as the low frequency energy value; Whether the ratio of the energy values is smaller than the preset value, if the ratio of the high frequency energy value to the low frequency energy value is smaller than the preset value, it is determined that the energy distribution of the audio signal 1 does not meet the preset condition.

如果音频信号1的振幅小于第一预设阈值和/或音频信号1的能量分布不满足预设条件,则电子设备确定第一音频采集模块异常,即确定于第一音频采集模块连接的收音孔被堵塞或者电子设备中第一音频采集模块的语音输入异常。If the amplitude of the audio signal 1 is smaller than the first preset threshold and/or the energy distribution of the audio signal 1 does not meet the preset conditions, the electronic device determines that the first audio collection module is abnormal, that is, the sound receiving hole connected to the first audio collection module is determined by the electronic device. It is blocked or the voice input of the first audio collection module in the electronic device is abnormal.

S303、电子设备计算音频信号1的振幅值与第一预设阈值的比值,得到调整比例。S303, the electronic device calculates the ratio of the amplitude value of the audio signal 1 to the first preset threshold to obtain the adjustment ratio.

调整比例为:音频信号1的振幅值/第一预设阈值。The adjustment ratio is: the amplitude value of the audio signal 1/the first preset threshold.

S304、电子设备采用调整比例调整音频信号2,得到音频信号3。S304 , the electronic device adjusts the audio signal 2 by adjusting the ratio to obtain the audio signal 3 .

S305、电子设备确定音频信号1与音频信号3的差值为电子设备最终获取到的音频信号。S305, the electronic device determines that the difference between the audio signal 1 and the audio signal 3 is the audio signal finally obtained by the electronic device.

音频信号1的振幅值小于第一预设阈值,为了屏蔽环境噪音,电子设备适应性地将音频信号2调整为音频信号3,使得音频信号1与音频信号3之间的差值保持预设范围内。The amplitude value of the audio signal 1 is less than the first preset threshold. In order to shield the ambient noise, the electronic device adaptively adjusts the audio signal 2 to the audio signal 3, so that the difference between the audio signal 1 and the audio signal 3 remains within the preset range. Inside.

此外,在调整音频信号2后,电子设备还需要调整第一预设阈值和第二预设阈值,以便于电子设备在后续收音过程中,判断音频采集模块是否异常。In addition, after adjusting the audio signal 2, the electronic device also needs to adjust the first preset threshold and the second preset threshold, so that the electronic device can determine whether the audio collection module is abnormal in the subsequent audio collection process.

如图4所示,本申请实施例提供的处理方法还包括S401。As shown in FIG. 4 , the processing method provided by the embodiment of the present application further includes S401.

S401、电子设备采用调整比例调整第一预设阈值,得到调整后的第一预设阈值,以及采用调整比例调整第二预设阈值,得到调整后的第二预设阈值。S401. The electronic device adjusts the first preset threshold using an adjustment ratio to obtain an adjusted first preset threshold, and adjusts the second preset threshold using an adjustment ratio to obtain an adjusted second preset threshold.

综上,在第一音频采集模块异常的情况下,电子设备通过适应性调整第二音频采集模块采集的音频信号,使得最终获取到的音频信号较为清晰,环境噪音较小,提高了用户体验。To sum up, when the first audio acquisition module is abnormal, the electronic device adaptively adjusts the audio signal collected by the second audio acquisition module, so that the finally obtained audio signal is clearer and the ambient noise is small, which improves the user experience.

上述主要从方法的角度对本申请实施例提供的方案进行了介绍。为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The solutions provided by the embodiments of the present application have been introduced above mainly from the perspective of methods. In order to realize the above-mentioned functions, it includes corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that the present application can be implemented in hardware or a combination of hardware and computer software with the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.

本申请实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the electronic device may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.

如图5所示,为本申请实施例提供的一种音频信号的处理装置的结构示意图。音频信号的处理装置用于处于音频采集模块采集到的音频信号,例如用于执行图3和/或图4所示的方法。音频信号的处理装置可以包括确定单元50、计算单元51和调整单元52。As shown in FIG. 5 , it is a schematic structural diagram of an audio signal processing apparatus provided by an embodiment of the present application. The audio signal processing apparatus is used for the audio signal collected by the audio collection module, for example, used to execute the method shown in FIG. 3 and/or FIG. 4 . The audio signal processing apparatus may include a determination unit 50 , a calculation unit 51 and an adjustment unit 52 .

确定单元50,用于根据第一音频采集模块采集到的第一音频信号,确定第一音频采集模块异常。计算单元51,用于在确定单元50确定第一音频采集模块异常的情况下,根据第一音频信号的振幅值与第一预设阈值,计算调整比例,第一预设阈值为第一音频采集模块当前采集音频信号的振幅阈值。调整单元52,用于采用调整比例调整第二音频采集模块采集到的音频信号,得到第二音频信号。确定单元50,还用于确定第一音频信号与第二音频信号的差值为处理装置获取到的音频信号。The determination unit 50 is configured to determine, according to the first audio signal collected by the first audio collection module, that the first audio collection module is abnormal. The calculation unit 51 is configured to calculate the adjustment ratio according to the amplitude value of the first audio signal and the first preset threshold when the determination unit 50 determines that the first audio acquisition module is abnormal, and the first preset threshold is the first audio acquisition The amplitude threshold of the audio signal currently collected by the module. The adjustment unit 52 is configured to adjust the audio signal collected by the second audio collection module by adjusting the ratio to obtain the second audio signal. The determining unit 50 is further configured to determine that the difference between the first audio signal and the second audio signal is the audio signal obtained by the processing device.

例如,结合图3和图4,确定单元50可以用于执行S302和S305,计算单元51可以用于执行S303,调整单元52可以用于执行S304和S401。For example, in conjunction with FIG. 3 and FIG. 4 , the determining unit 50 may be used to perform S302 and S305 , the computing unit 51 may be used to perform S303 , and the adjusting unit 52 may be used to perform S304 and S401 .

可选的,计算单元51具体用于:将第一音频信号的振幅值与第一预设阈值的比值,确定为调整比例。Optionally, the calculating unit 51 is specifically configured to: determine the ratio of the amplitude value of the first audio signal to the first preset threshold as the adjustment ratio.

可选的,调整单元52具体用于:确定调整比例与第二音频采集模块采集到的音频信号的乘积为第二音频信号。Optionally, the adjustment unit 52 is specifically configured to: determine that the product of the adjustment ratio and the audio signal collected by the second audio collection module is the second audio signal.

可选的,确定单元50具体用于:判断第一音频信号的振幅值是否小于第一预设阈值;若第一音频信号的振幅值小于第一预设阈值,则确定第一音频采集模块异常;或者,判断第一音频信号的能量分布是否满足预设条件;若第一音频信号的能量分布不满足预设条件,则确定第一音频采集模块异常;或者,判断第一音频信号的振幅值是否小于第一预设阈值,以及第一音频信号的能量分布是否满足预设条件;若第一音频信号的振幅值小于第一预设阈值,且第一音频信号的能量分布不满足预设条件,则确定第一音频采集模块异常。Optionally, the determining unit 50 is specifically configured to: determine whether the amplitude value of the first audio signal is less than the first preset threshold; if the amplitude value of the first audio signal is less than the first preset threshold, then determine that the first audio collection module is abnormal. Or, determine whether the energy distribution of the first audio signal satisfies the preset condition; if the energy distribution of the first audio signal does not meet the preset condition, then determine that the first audio acquisition module is abnormal; or, determine the amplitude value of the first audio signal Whether it is less than the first preset threshold, and whether the energy distribution of the first audio signal satisfies the preset conditions; if the amplitude value of the first audio signal is less than the first preset threshold, and the energy distribution of the first audio signal does not meet the preset conditions , it is determined that the first audio collection module is abnormal.

可选的,调整单元52还用于:采用调整比例,对第一预设阈值进行调整,得到调整后的第一预设阈值;采用调整比例,对第二预设阈值进行调整,得到调整后的第二预设阈值,第二预设阈值为第二音频采集模块当前采集音频信号的振幅阈值。Optionally, the adjustment unit 52 is further configured to: use an adjustment ratio to adjust the first preset threshold to obtain an adjusted first preset threshold; use an adjustment ratio to adjust the second preset threshold to obtain an adjusted The second preset threshold is the amplitude threshold of the audio signal currently collected by the second audio collection module.

当然,本申请实施例提供的音频信号的处理装置包括但不限于上述模块,例如音频信号的处理装置还可以包括存储单元53。Of course, the audio signal processing apparatus provided in the embodiment of the present application includes but is not limited to the above-mentioned modules. For example, the audio signal processing apparatus may further include a storage unit 53 .

存储单元53可以用于存储该音频信号的处理装置的程序代码等。The storage unit 53 may be used to store program codes and the like of the processing device of the audio signal.

作为一个示例,结合图1,音频信号的处理装置中的确定单元50、计算单元51和调整单元52实现的功能与图1中的处理器101的功能相同,存储单元53实现的功能与图1中的存储器103的功能相同。As an example, referring to FIG. 1 , the functions implemented by the determining unit 50 , the calculating unit 51 and the adjusting unit 52 in the audio signal processing apparatus are the same as those of the processor 101 in FIG. 1 , and the functions implemented by the storage unit 53 are the same as those implemented in FIG. 1 . The function of the memory 103 in is the same.

本实施例中相关内容的解释可参考上述方法实施例,此处不再赘述。For the explanation of the relevant content in this embodiment, reference may be made to the foregoing method embodiment, which will not be repeated here.

本申请另一实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当指令在音频信号的处理装置上运行时,该音频信号的处理装置执行上述方法实施例所示的方法流程中的各个步骤。Another embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on an audio signal processing apparatus, the audio signal processing apparatus executes the foregoing method embodiments The individual steps in the method flow shown.

本申请另一实施例还提供一种电子设备,该电子设备包括上述音频信号的处理装置。Another embodiment of the present application further provides an electronic device, which includes the above-mentioned apparatus for processing audio signals.

在一些实施例中,所公开的方法可以实施为以机器可读格式被编码在计算机可读存储介质上的或者被编码在其它非瞬时性介质或者制品上的计算机程序指令。In some embodiments, the disclosed methods may be implemented as computer program instructions encoded in a machine-readable format on a computer-readable storage medium or on other non-transitory media or articles of manufacture.

图6示意性地示出本申请实施例提供的计算机程序产品的概念性局部视图,所述计算机程序产品包括用于在计算设备上执行计算机进程的计算机程序。FIG. 6 schematically shows a conceptual partial view of a computer program product provided by an embodiment of the present application, where the computer program product includes a computer program for executing a computer process on a computing device.

在一个实施例中,计算机程序产品是使用信号承载介质60来提供的。所述信号承载介质60可以包括一个或多个程序指令,其当被一个或多个处理器运行时可以提供以上针对图3或图4描述的功能或者部分功能。因此,例如,参考图3中所示的实施例,S301~S305的一个或多个特征可以由与信号承载介质60相关联的一个或多个指令来承担。此外,图6中的程序指令也描述示例指令。In one embodiment, the computer program product is provided using signal bearing medium 60 . The signal bearing medium 60 may include one or more program instructions, which, when executed by one or more processors, may provide the functions or portions of the functions described above with respect to FIG. 3 or FIG. 4 . Thus, for example, with reference to the embodiment shown in FIG. 3 , one or more of the features of S301 - S305 may be undertaken by one or more instructions associated with the signal bearing medium 60 . In addition, the program instructions in FIG. 6 also describe example instructions.

在一些示例中,信号承载介质60可以包含计算机可读介质61,诸如但不限于,硬盘驱动器、紧密盘(CD)、数字视频光盘(DVD)、数字磁带、存储器、只读存储记忆体(read-onlymemory,ROM)或随机存储记忆体(random access memory,RAM)等等。In some examples, the signal bearing medium 60 may include a computer readable medium 61 such as, but not limited to, a hard drive, a compact disc (CD), a digital video disc (DVD), a digital tape, a memory, a read only memory (read only memory) -onlymemory, ROM) or random access memory (random access memory, RAM) and so on.

在一些实施方式中,信号承载介质60可以包含计算机可记录介质62,诸如但不限于,存储器、读/写(R/W)CD、R/W DVD、等等。In some implementations, the signal bearing medium 60 may include a computer recordable medium 62 such as, but not limited to, memory, read/write (R/W) CD, R/W DVD, and the like.

在一些实施方式中,信号承载介质60可以包含通信介质63,诸如但不限于,数字和/或模拟通信介质(例如,光纤电缆、波导、有线通信链路、无线通信链路、等等)。In some embodiments, signal bearing medium 60 may include communication medium 63 such as, but not limited to, digital and/or analog communication media (eg, fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).

信号承载介质60可以由无线形式的通信介质63(例如,遵守IEEE 802.11标准或者其它传输协议的无线通信介质)来传达。一个或多个程序指令可以是,例如,计算机可执行指令或者逻辑实施指令。Signal bearing medium 60 may be conveyed by a wireless form of communication medium 63 (eg, a wireless communication medium conforming to the IEEE 802.11 standard or other transmission protocol). The one or more program instructions may be, for example, computer-executable instructions or logic-implemented instructions.

在一些示例中,诸如针对图3或图4描述的音频信号的处理装置可以被配置为,响应于通过计算机可读介质61、计算机可记录介质62、和/或通信介质63中的一个或多个程序指令,提供各种操作、功能、或者动作。In some examples, a processing apparatus such as the audio signal described with respect to FIG. 3 or FIG. 4 may be configured to, in response to passing through one or more of computer readable medium 61 , computer recordable medium 62 , and/or communication medium 63 , A program instruction that provides various operations, functions, or actions.

应该理解,这里描述的布置仅仅是用于示例的目的。因而,本领域技术人员将理解,其它布置和其它元素(例如,机器、接口、功能、顺序、和功能组等等)能够被取而代之地使用,并且一些元素可以根据所期望的结果而一并省略。另外,所描述的元素中的许多是可以被实现为离散的或者分布式的组件的、或者以任何适当的组合和位置来结合其它组件实施的功能实体。It should be understood that the arrangements described herein are for illustrative purposes only. Thus, those skilled in the art will understand that other arrangements and other elements (eg, machines, interfaces, functions, sequences, and groups of functions, etc.) can be used instead and that some elements may be omitted altogether depending on the desired results . Additionally, many of the described elements are functional entities that may be implemented as discrete or distributed components, or in conjunction with other components in any suitable combination and position.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机执行指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digitalsubscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer-executed instructions are loaded and executed on the computer, the flow or function according to the embodiments of the present application is generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.) means to another website site, computer, server or data center. Computer-readable storage media can be any available media that can be accessed by a computer or data storage devices including one or more servers, data centers, etc., that can be integrated with the media. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.

以上所述,仅为本申请的具体实施方式。熟悉本技术领域的技术人员根据本申请提供的具体实施方式,可想到变化或替换,都应涵盖在本申请的保护范围之内。The above descriptions are merely specific embodiments of the present application. Those skilled in the art can think of changes or substitutions based on the specific embodiments provided by the present application, which should all fall within the protection scope of the present application.

Claims (10)

1.一种音频信号的处理方法,应用于包括第一音频采集模块和第二音频采集模块的电子设备,其特征在于,包括:1. a processing method of audio signal, applied to the electronic equipment comprising the first audio frequency acquisition module and the second audio frequency acquisition module, is characterized in that, comprises: 根据所述第一音频采集模块采集到的第一音频信号,确定所述第一音频采集模块异常;According to the first audio signal collected by the first audio collection module, it is determined that the first audio collection module is abnormal; 将所述第一音频信号的振幅值与第一预设阈值的比值,确定为调整比例,所述第一预设阈值为所述第一音频采集模块当前采集音频信号的振幅阈值;determining the ratio of the amplitude value of the first audio signal to the first preset threshold value as the adjustment ratio, and the first preset threshold value is the amplitude threshold value of the audio signal currently collected by the first audio collection module; 采用所述调整比例调整所述第二音频采集模块采集到的音频信号,得到第二音频信号;Using the adjusting ratio to adjust the audio signal collected by the second audio collection module to obtain a second audio signal; 确定所述第一音频信号与所述第二音频信号的差值为所述电子设备获取到的音频信号。It is determined that the difference between the first audio signal and the second audio signal is the audio signal obtained by the electronic device. 2.根据权利要求1所述的处理方法,其特征在于,所述采用所述调整比例调整所述第二音频采集模块采集到的音频信号,得到第二音频信号,包括:2. The processing method according to claim 1, wherein the adjusting the audio signal collected by the second audio acquisition module using the adjustment ratio to obtain the second audio signal, comprising: 确定所述调整比例与所述第二音频采集模块采集到的音频信号的乘积为所述第二音频信号。It is determined that the product of the adjustment ratio and the audio signal collected by the second audio collection module is the second audio signal. 3.根据权利要求2所述的处理方法,其特征在于,所述根据所述第一音频采集模块采集到的第一音频信号,确定所述第一音频采集模块异常,包括:3. The processing method according to claim 2, wherein, determining that the first audio collection module is abnormal according to the first audio signal collected by the first audio collection module, comprising: 判断所述第一音频信号的振幅值是否小于所述第一预设阈值;若所述第一音频信号的振幅值小于所述第一预设阈值,则确定所述第一音频采集模块异常;Determine whether the amplitude value of the first audio signal is less than the first preset threshold; if the amplitude value of the first audio signal is less than the first preset threshold, determine that the first audio collection module is abnormal; 或者,or, 判断所述第一音频信号的能量分布是否满足预设条件;若所述第一音频信号的能量分布不满足所述预设条件,则确定所述第一音频采集模块异常;Determine whether the energy distribution of the first audio signal satisfies a preset condition; if the energy distribution of the first audio signal does not meet the preset condition, determine that the first audio collection module is abnormal; 或者,or, 判断所述第一音频信号的振幅值是否小于所述第一预设阈值,以及所述第一音频信号的能量分布是否满足预设条件;若所述第一音频信号的振幅值小于所述第一预设阈值,且所述第一音频信号的能量分布不满足所述预设条件,则确定所述第一音频采集模块异常。Determine whether the amplitude value of the first audio signal is smaller than the first preset threshold, and whether the energy distribution of the first audio signal satisfies the preset condition; if the amplitude value of the first audio signal is smaller than the first audio signal A preset threshold, and the energy distribution of the first audio signal does not meet the preset condition, it is determined that the first audio collection module is abnormal. 4.根据权利要求1-3中任意一项所述的处理方法,其特征在于,所述处理方法还包括:4. The processing method according to any one of claims 1-3, wherein the processing method further comprises: 采用所述调整比例调整所述第一预设阈值,得到调整后的第一预设阈值;Using the adjustment ratio to adjust the first preset threshold to obtain the adjusted first preset threshold; 采用所述调整比例调整第二预设阈值,得到调整后的第二预设阈值,所述第二预设阈值为所述第二音频采集模块当前采集音频信号的振幅阈值。Using the adjustment ratio to adjust the second preset threshold, the adjusted second preset threshold is obtained, and the second preset threshold is the amplitude threshold of the audio signal currently collected by the second audio collection module. 5.一种音频信号的处理装置,其特征在于,位于包括第一音频采集模块和第二音频采集模块的电子设备,所述处理装置包括:5. A processing device of an audio signal, characterized in that it is located in an electronic device comprising a first audio acquisition module and a second audio acquisition module, and the processing device comprises: 确定单元,用于根据所述第一音频采集模块采集到的第一音频信号,确定所述第一音频采集模块异常;a determining unit, configured to determine that the first audio collection module is abnormal according to the first audio signal collected by the first audio collection module; 计算单元,用于在所述确定单元确定所述第一音频采集模块异常的情况下,将所述第一音频信号的振幅值与第一预设阈值的比值,确定为调整比例,所述第一预设阈值为所述第一音频采集模块当前采集音频信号的振幅阈值;A calculation unit, configured to determine the ratio of the amplitude value of the first audio signal to the first preset threshold as the adjustment ratio when the determining unit determines that the first audio collection module is abnormal, and the first audio signal is A preset threshold is the amplitude threshold of the audio signal currently collected by the first audio collection module; 调整单元,用于采用所述调整比例调整第二音频采集模块采集到的音频信号,得到第二音频信号;an adjustment unit, configured to adjust the audio signal collected by the second audio collection module by using the adjustment ratio to obtain the second audio signal; 所述确定单元,还用于确定所述第一音频信号与所述第二音频信号的差值为所述处理装置获取到的音频信号。The determining unit is further configured to determine that the difference between the first audio signal and the second audio signal is the audio signal obtained by the processing device. 6.根据权利要求5所述的处理装置,其特征在于,所述调整单元具体用于:6. The processing device according to claim 5, wherein the adjustment unit is specifically used for: 确定所述调整比例与所述第二音频采集模块采集到的音频信号的乘积为所述第二音频信号。It is determined that the product of the adjustment ratio and the audio signal collected by the second audio collection module is the second audio signal. 7.根据权利要求6所述的处理装置,其特征在于,所述确定单元具体用于:7. The processing device according to claim 6, wherein the determining unit is specifically configured to: 判断所述第一音频信号的振幅值是否小于所述第一预设阈值;若所述第一音频信号的振幅值小于所述第一预设阈值,则确定所述第一音频采集模块异常;Determine whether the amplitude value of the first audio signal is less than the first preset threshold; if the amplitude value of the first audio signal is less than the first preset threshold, determine that the first audio collection module is abnormal; 或者,or, 判断所述第一音频信号的能量分布是否满足预设条件;若所述第一音频信号的能量分布不满足所述预设条件,则确定所述第一音频采集模块异常;Determine whether the energy distribution of the first audio signal satisfies a preset condition; if the energy distribution of the first audio signal does not meet the preset condition, determine that the first audio collection module is abnormal; 或者,or, 判断所述第一音频信号的振幅值是否小于所述第一预设阈值,以及所述第一音频信号的能量分布是否满足预设条件;若所述第一音频信号的振幅值小于所述第一预设阈值,且所述第一音频信号的能量分布不满足所述预设条件,则确定所述第一音频采集模块异常。Determine whether the amplitude value of the first audio signal is smaller than the first preset threshold, and whether the energy distribution of the first audio signal satisfies the preset condition; if the amplitude value of the first audio signal is smaller than the first audio signal A preset threshold, and the energy distribution of the first audio signal does not meet the preset condition, it is determined that the first audio collection module is abnormal. 8.根据权利要求5-7中任意一项所述的处理装置,其特征在于,所述调整单元还用于:8. The processing device according to any one of claims 5-7, wherein the adjustment unit is further configured to: 采用所述调整比例,对所述第一预设阈值进行调整,得到调整后的所述第一预设阈值;Using the adjustment ratio, the first preset threshold is adjusted to obtain the adjusted first preset threshold; 采用所述调整比例,对第二预设阈值进行调整,得到调整后的所述第二预设阈值,所述第二预设阈值为所述第二音频采集模块当前采集音频信号的振幅阈值。Using the adjustment ratio, the second preset threshold is adjusted to obtain the adjusted second preset threshold, where the second preset threshold is the amplitude threshold of the audio signal currently collected by the second audio collection module. 9.一种计算机可读存储介质,包括指令,其特征在于,当所述指令在音频信号的处理装置上运行时,使得所述音频信号的处理装置执行如权利要求1-4中任意一项所述的音频信号的处理方法。9. A computer-readable storage medium, comprising instructions, characterized in that, when the instructions are executed on an audio signal processing device, the audio signal processing device is made to execute any one of claims 1-4 The audio signal processing method. 10.一种设备,其特征在于,包括:处理器以及存储器;10. A device, comprising: a processor and a memory; 所述存储器与所述处理器耦合;所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述处理器执行所述指令时,所述设备执行如权利要求1-4中任意一项所述的音频信号的处理方法。The memory is coupled to the processor; the memory is used to store computer program code, the computer program code including instructions, when the processor executes the instructions, the device performs as in claims 1-4 Any one of the audio signal processing methods.
CN201910671546.2A 2019-07-24 2019-07-24 Audio signal processing method and device Active CN110536193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910671546.2A CN110536193B (en) 2019-07-24 2019-07-24 Audio signal processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910671546.2A CN110536193B (en) 2019-07-24 2019-07-24 Audio signal processing method and device

Publications (2)

Publication Number Publication Date
CN110536193A CN110536193A (en) 2019-12-03
CN110536193B true CN110536193B (en) 2020-12-22

Family

ID=68660803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910671546.2A Active CN110536193B (en) 2019-07-24 2019-07-24 Audio signal processing method and device

Country Status (1)

Country Link
CN (1) CN110536193B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111667842B (en) * 2020-06-10 2023-10-31 北京达佳互联信息技术有限公司 Audio signal processing method and device
CN114548141B (en) * 2020-11-10 2025-09-05 华为技术有限公司 Method, device, electronic device and readable storage medium for generating waveform file
CN113590868A (en) * 2021-06-11 2021-11-02 深圳供电局有限公司 Sound threshold updating method and device, computer equipment and storage medium
CN113630504B (en) * 2021-08-16 2024-03-12 上海明略人工智能(集团)有限公司 Method and device for acquiring abnormal information of recording system, electronic equipment and storage medium
CN115641882B (en) * 2022-10-27 2023-05-12 深圳市移文科技有限公司 Intelligent starting method and device for recording of wearable equipment and wearable equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331359A (en) * 2016-08-31 2017-01-11 广东欧珀移动通信有限公司 A voice signal collection method, device and terminal
CN109561222A (en) * 2017-09-27 2019-04-02 华为终端(东莞)有限公司 A kind of method for detecting abnormality and device of voice data

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7995771B1 (en) * 2006-09-25 2011-08-09 Advanced Bionics, Llc Beamforming microphone system
CN202957890U (en) * 2012-08-07 2013-05-29 歌尔声学股份有限公司 Voice reinforcing device applied to handset
CN102801861B (en) * 2012-08-07 2015-08-19 歌尔声学股份有限公司 A kind of sound enhancement method and device being applied to mobile phone
CN106303804B (en) * 2016-07-28 2019-11-19 维沃移动通信有限公司 Microphone control method and mobile terminal
CN109005272B (en) * 2018-07-24 2021-01-29 Oppo(重庆)智能科技有限公司 Voice pickup method and related products

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331359A (en) * 2016-08-31 2017-01-11 广东欧珀移动通信有限公司 A voice signal collection method, device and terminal
CN109561222A (en) * 2017-09-27 2019-04-02 华为终端(东莞)有限公司 A kind of method for detecting abnormality and device of voice data

Also Published As

Publication number Publication date
CN110536193A (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN110536193B (en) Audio signal processing method and device
US11470058B2 (en) Network connection method, mobile terminal, electronic device, and graphical user interface
WO2019036942A1 (en) Display method and device
CN109067425B (en) A method and device for reducing interference
WO2021023061A1 (en) Quasi-co-location qcl information determination method, configuration method and related device
CN108235308B (en) Data reporting method, device, mobile terminal and computer readable medium
WO2018161962A1 (en) Method, electronic device and system for sharing images
CN108683444B (en) Data transmission method and related products
CN110971335B (en) Signal processing method and device and electronic equipment
CN111565088B (en) Interference method of sensor signal in terminal equipment and related device
US20220124556A1 (en) Uplink transmission drop method, uplink transmission drop configuration method, and related device
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
CN109348504A (en) Power detection method, mobile terminal and power detection circuit
CN110855313A (en) Signal control method and electronic equipment
CN110149639B (en) Interference processing method, terminal equipment and network side equipment
WO2022218196A1 (en) Transmission power control method and related device
CN108377483A (en) A kind of processing method and mobile terminal of bluetooth channel
CN108882084B (en) Wearable equipment electric quantity balancing method and related product
CN107466387B (en) Method and device for detecting touch mode
CN110636530B (en) Method for processing adjacent channel interference and terminal equipment
WO2023236972A1 (en) Communication environment security warning method and apparatus, terminal device, and storage medium
CN109618278B (en) Positioning method and mobile terminal
CN108683800B (en) Mobile terminal, position detection method and related products
CN111585666B (en) A power compensation method and electronic device
CN109194998A (en) Data transmission method and device, electronic equipment and computer readable medium

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