[go: up one dir, main page]

CN116634332A - Microphone noise reduction processing method and computer storage medium - Google Patents

Microphone noise reduction processing method and computer storage medium Download PDF

Info

Publication number
CN116634332A
CN116634332A CN202310659036.XA CN202310659036A CN116634332A CN 116634332 A CN116634332 A CN 116634332A CN 202310659036 A CN202310659036 A CN 202310659036A CN 116634332 A CN116634332 A CN 116634332A
Authority
CN
China
Prior art keywords
target
noise reduction
reduction processing
processing algorithm
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310659036.XA
Other languages
Chinese (zh)
Other versions
CN116634332B (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.)
Shenzhen Pinsheng Technology Co ltd
Original Assignee
Shenzhen Pinsheng Technology 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 Shenzhen Pinsheng Technology Co ltd filed Critical Shenzhen Pinsheng Technology Co ltd
Priority to CN202310659036.XA priority Critical patent/CN116634332B/en
Publication of CN116634332A publication Critical patent/CN116634332A/en
Application granted granted Critical
Publication of CN116634332B publication Critical patent/CN116634332B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/04Circuits for transducers, loudspeakers or microphones for correcting frequency response
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

本申请实施例公开了一种麦克风降噪处理方法及计算机存储介质,应用于电子设备,电子设备包括麦克风和环境传感器,该方法包括:通过环境传感器获取目标环境参数;确定与目标环境参数对应的目标降噪处理算法;获取目标降噪处理算法的第一降噪处理算法控制参数;获取麦克风的目标硬件参数;确定与目标硬件参数对应的目标评分值;根据目标评分值对第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数;通过麦克风获取第一音频文件;基于目标降噪处理算法以及第二降噪处理算法控制参数对第一音频文件进行降噪处理,得到第二音频文件。采用本申请实施例可以提升麦克风的降噪能力。

The embodiment of the present application discloses a microphone noise reduction processing method and a computer storage medium, which are applied to electronic equipment, and the electronic equipment includes a microphone and an environmental sensor. The method includes: acquiring target environmental parameters through the environmental sensors; Target noise reduction processing algorithm; obtain the first noise reduction processing algorithm control parameters of the target noise reduction processing algorithm; obtain the target hardware parameters of the microphone; determine the target score value corresponding to the target hardware parameter; perform the first noise reduction processing according to the target score value Adjust the algorithm control parameters to obtain the second noise reduction processing algorithm control parameters; obtain the first audio file through the microphone; perform noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the second noise reduction processing algorithm control parameters, and obtain the second audio file. The noise reduction capability of the microphone can be improved by adopting the embodiments of the present application.

Description

麦克风降噪处理方法及计算机存储介质Microphone noise reduction processing method and computer storage medium

技术领域technical field

本申请涉及电子技术领域,具体涉及一种麦克风降噪处理方法及计算机存储介质。The present application relates to the field of electronic technology, and in particular to a microphone noise reduction processing method and a computer storage medium.

背景技术Background technique

实际应用中,麦克风是由声音的振动传到麦克风的振膜上,振膜上的电磁线圈绕组和环绕在动圈麦头的磁铁形成磁力场切割,形成微弱的波动电流,这样变化的电流送到后面的声音处理电路进行放大处理,但是,在声音放大的过程中,噪声也会被放大,因此,如何提升麦克风的降噪能力的问题亟待解决。In practical application, the microphone is transmitted from the vibration of sound to the diaphragm of the microphone. The electromagnetic coil winding on the diaphragm and the magnet surrounding the moving coil head form a magnetic field cutting, forming a weak fluctuating current. However, in the process of sound amplification, the noise will also be amplified. Therefore, the problem of how to improve the noise reduction ability of the microphone needs to be solved urgently.

发明内容Contents of the invention

本申请实施例提供了一种麦克风降噪处理方法及计算机存储介质,有助于提升麦克风的降噪能力。Embodiments of the present application provide a microphone noise reduction processing method and a computer storage medium, which help to improve the noise reduction capability of the microphone.

第一方面,本申请实施例提供一种麦克风降噪处理方法,所述电子设备包括麦克风和环境传感器,所述方法包括:In the first aspect, an embodiment of the present application provides a microphone noise reduction processing method, where the electronic device includes a microphone and an environmental sensor, and the method includes:

通过所述环境传感器获取目标环境参数;Obtaining target environmental parameters through the environmental sensor;

确定与所述目标环境参数对应的目标降噪处理算法;determining a target noise reduction processing algorithm corresponding to the target environment parameter;

获取所述目标降噪处理算法的第一降噪处理算法控制参数;Acquiring a first noise reduction processing algorithm control parameter of the target noise reduction processing algorithm;

获取所述麦克风的目标硬件参数;Acquiring target hardware parameters of the microphone;

确定与所述目标硬件参数对应的目标评分值;determining a target score value corresponding to the target hardware parameter;

根据所述目标评分值对所述第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数;adjusting the control parameters of the first noise reduction processing algorithm according to the target score value to obtain the control parameters of the second noise reduction processing algorithm;

获取第一音频文件;Obtain the first audio file;

基于所述目标降噪处理算法以及所述第二降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到第二音频文件。Perform noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the control parameters of the second noise reduction processing algorithm to obtain a second audio file.

第二方面,本申请实施例提供了一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如第一方面所述的方法。In a second aspect, an embodiment of the present application provides a computer-readable storage medium, which is characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method as described in the first aspect.

实施本申请实施例,具备如下有益效果:Implementing the embodiment of the present application has the following beneficial effects:

可以看出,本申请实施例中所描述的麦克风降噪处理方法及计算机存储介质,应用于电子设备,电子设备包括麦克风和环境传感器,通过环境传感器获取目标环境参数,确定与目标环境参数对应的目标降噪处理算法,获取目标降噪处理算法的第一降噪处理算法控制参数,获取麦克风的目标硬件参数,确定与目标硬件参数对应的目标评分值,根据目标评分值对第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数,通过麦克风获取第一音频文件,基于目标降噪处理算法以及第二降噪处理算法控制参数对第一音频文件进行降噪处理,得到第二音频文件,由于目标降噪处理算法适配外界环境,第二降噪处理算法控制参数适配硬件环境,进而,降噪效果更加符合实际环境以及硬件环境,有助于提升降噪处理效果,提升麦克风的降噪能力。It can be seen that the microphone noise reduction processing method and computer storage medium described in the embodiments of the present application are applied to electronic equipment, and the electronic equipment includes a microphone and an environmental sensor. The target environmental parameters are obtained through the environmental sensors, and the corresponding target environmental parameters are determined. The target noise reduction processing algorithm obtains the first noise reduction processing algorithm control parameters of the target noise reduction processing algorithm, obtains the target hardware parameters of the microphone, determines the target score value corresponding to the target hardware parameter, and performs the first noise reduction processing according to the target score value. The algorithm control parameters are adjusted to obtain the second noise reduction processing algorithm control parameters, the first audio file is obtained through the microphone, and the first audio file is subjected to noise reduction processing based on the target noise reduction processing algorithm and the second noise reduction processing algorithm control parameters to obtain For the second audio file, because the target noise reduction processing algorithm adapts to the external environment, the control parameters of the second noise reduction processing algorithm adapt to the hardware environment, and then the noise reduction effect is more in line with the actual environment and hardware environment, which helps to improve the noise reduction processing effect , to improve the noise reduction capability of the microphone.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本申请实施例提供的一种麦克风降噪处理方法的流程示意图;FIG. 1 is a schematic flowchart of a microphone noise reduction processing method provided by an embodiment of the present application;

图2是本申请实施例提供的一种电子设备的结构示意图;FIG. 2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

图3是本申请实施例提供的一种麦克风降噪处理装置的功能单元组成框图。Fig. 3 is a block diagram of functional units of a microphone noise reduction processing device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiment of the application. Obviously, the described embodiment is only It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present application and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

本申请实施例中,电子设备可以为任一包括麦克风的设备,电子设备可以包括以下至少一种:智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、行车记录仪、服务器、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备(如智能手表、蓝牙耳机)等,上述仅是举例,而非穷举,包含但不限于上述电子设备。In the embodiment of the present application, the electronic device can be any device including a microphone, and the electronic device can include at least one of the following: smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, palmtop computers, driving records Instruments, servers, laptops, mobile Internet devices (MID, Mobile Internet Devices) or wearable devices (such as smart watches, Bluetooth headsets), etc., the above are just examples, not exhaustive, including but not limited to the above-mentioned electronic devices.

下面对本申请实施例进行详细介绍。The following describes the embodiments of the present application in detail.

请参阅图1,图1是本申请实施例提供的一种麦克风降噪处理方法的流程示意图,所述电子设备包括麦克风和环境传感器,所述方法包括:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a microphone noise reduction processing method provided in an embodiment of the present application. The electronic device includes a microphone and an environmental sensor, and the method includes:

101、通过所述环境传感器获取目标环境参数。101. Acquire a target environment parameter by using the environment sensor.

本申请实施例中,目标环境参数可以包括以下至少一种:目标环境噪声参数、目标磁场干扰强度值、目标环境噪声类型数量等等,在此不做限定。In this embodiment of the present application, the target environment parameter may include at least one of the following: target environment noise parameter, target magnetic field interference intensity value, number of target environment noise types, etc., which are not limited herein.

具体实现中,环境传感器可以用于检测环境参数,环境传感器可以包括以下至少一种:噪声检测传感器、磁场检测传感器等等,在此不做限定。In a specific implementation, the environment sensor may be used to detect an environment parameter, and the environment sensor may include at least one of the following: a noise detection sensor, a magnetic field detection sensor, etc., which are not limited herein.

102、确定与所述目标环境参数对应的目标降噪处理算法。102. Determine a target noise reduction processing algorithm corresponding to the target environment parameter.

本申请实施例中,可以预先设置预设的环境参数与降噪处理算法之间的映射关系,进而,可以基于该映射关系确定与目标环境参数对应的目标降噪处理算法。In the embodiment of the present application, the mapping relationship between the preset environmental parameters and the noise reduction processing algorithm may be preset, and further, the target noise reduction processing algorithm corresponding to the target environmental parameter may be determined based on the mapping relationship.

可选的,在所述目标环境参数包括目标环境噪声参数时;Optionally, when the target environment parameters include target environment noise parameters;

则上述步骤102,确定与所述目标环境参数对应的目标降噪处理算法,可以包括如下步骤:Then the above step 102, determining the target noise reduction processing algorithm corresponding to the target environment parameter, may include the following steps:

21、确定与所述目标环境噪声参数对应的目标环境噪声等级;21. Determine the target environmental noise level corresponding to the target environmental noise parameter;

22、确定与所述目标环境噪声等级对应的所述目标降噪处理算法。22. Determine the target noise reduction processing algorithm corresponding to the target environmental noise level.

具体实现中,可以预先设置预设的环境噪声参数与环境噪声等级之间的映射关系,进而,可以基于该映射关系确定目标环境噪声参数对应的目标环境噪声等级,还可以预先设置预设的环境噪声等级与降噪处理算法之间的映射关系,确定目标环境噪声等级对应的目标降噪处理算法,如此,可以基于环境噪声,确定与之对应的降噪处理算法,进而,有助于提升麦克风的降噪能力以及降噪效果。In a specific implementation, the mapping relationship between the preset environmental noise parameters and the environmental noise level can be set in advance, and then the target environmental noise level corresponding to the target environmental noise parameter can be determined based on the mapping relationship, and the preset environmental noise level can also be preset. The mapping relationship between the noise level and the noise reduction processing algorithm determines the target noise reduction processing algorithm corresponding to the target environmental noise level. In this way, the corresponding noise reduction processing algorithm can be determined based on the environmental noise, which in turn helps to improve the microphone The noise reduction ability and noise reduction effect.

103、获取所述目标降噪处理算法的第一降噪处理算法控制参数。103. Acquire a first noise reduction processing algorithm control parameter of the target noise reduction processing algorithm.

具体实现中,降噪处理算法控制参数用于控制降噪处理算法的降噪程度。进而,可以获取目标降噪处理算法的第一降噪处理算法控制参数,该第一降噪处理算法控制参数可以预先设置或者系统默认。In specific implementation, the control parameters of the noise reduction processing algorithm are used to control the noise reduction degree of the noise reduction processing algorithm. Furthermore, a first noise reduction processing algorithm control parameter of the target noise reduction processing algorithm may be acquired, and the first noise reduction processing algorithm control parameter may be preset or defaulted by the system.

104、获取所述麦克风的目标硬件参数。104. Acquire target hardware parameters of the microphone.

本申请实施例中,目标硬件参数可以包括以下至少一种:硬件型号、硬件配置参数等等,在此不做限定。In this embodiment of the present application, the target hardware parameters may include at least one of the following: hardware model, hardware configuration parameters, etc., which are not limited herein.

105、确定与所述目标硬件参数对应的目标评分值。105. Determine a target score value corresponding to the target hardware parameter.

具体实现中,不同的硬件参数则可以对应不同的评分值,进而,可以预先设置预设的硬件参数与评分值之间的映射关系,进而,基于该映射关系确定与目标硬件参数对应的目标评分值。In the specific implementation, different hardware parameters can correspond to different scoring values, and then, the mapping relationship between the preset hardware parameters and scoring values can be set in advance, and then, based on the mapping relationship, the target scoring corresponding to the target hardware parameter can be determined value.

可选的,上述步骤105,确定与所述目标硬件参数对应的目标评分值,可以包括如下步骤:Optionally, the above step 105, determining the target score value corresponding to the target hardware parameter may include the following steps:

51、基于所述目标硬件参数进行多次运行分析,得到多个参考评分值;51. Perform multiple running analyzes based on the target hardware parameters to obtain multiple reference score values;

52、根据所述多个参考评分值进行均值运算,得到目标参考评分值;52. Perform mean calculation according to the plurality of reference score values to obtain a target reference score value;

53、确定所述多个参考评分值的目标标准差;53. Determine the target standard deviation of the plurality of reference score values;

54、根据所述目标标准差对所述目标参考评分值进行微调,得到所述目标评分值。54. Fine-tuning the target reference score value according to the target standard deviation to obtain the target score value.

具体实现中,可以基于目标硬件参数进行多次运行分析,例如,可以基于目标硬件参数进行多次跑分,得到多个参考评分值,每一次跑分,对应一个参考评分值。In specific implementation, multiple running analyzes can be performed based on the target hardware parameters. For example, multiple running scores can be performed based on the target hardware parameters to obtain multiple reference score values, and each run score corresponds to a reference score value.

接下来,可以再根据多个参考评分值进行均值运算,得到目标参考评分值,以及确定多个参考评分值的目标标准差,可以预先设置预设的标准差与微调系数之间的映射关系,基于该映射关系确定目标标准差对应的目标微调系数,再基于目标微调系数对目标参考评分值进行微调,得到目标评分值,标准差反映了电子设备运行的稳定程度,进而,利用标准差对多次运行的评分值的均值进行微调,使得最终的评分值更加符合实际硬件环境,有助于提升降噪处理效果。Next, the mean value calculation can be performed according to multiple reference score values to obtain the target reference score value, and the target standard deviation of multiple reference score values can be determined. The mapping relationship between the preset standard deviation and the fine-tuning coefficient can be set in advance. Determine the target fine-tuning coefficient corresponding to the target standard deviation based on the mapping relationship, and then fine-tune the target reference score value based on the target fine-tuning coefficient to obtain the target score value. The standard deviation reflects the stability of the operation of the electronic equipment. Fine-tuning the mean value of the score values of the first run, so that the final score value is more in line with the actual hardware environment, which helps to improve the effect of noise reduction processing.

106、根据所述目标评分值对所述第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数。106. Adjust the control parameters of the first noise reduction processing algorithm according to the target score value to obtain the control parameters of the second noise reduction processing algorithm.

本申请实施例中,可以基于目标评分值对第一降噪处理算法控制参数进行调节,进而使得降噪效果更加符合硬件环境,得到第二降噪处理算法控制参数,有助于提升麦克风的降噪效果。In the embodiment of the present application, the control parameters of the first noise reduction processing algorithm can be adjusted based on the target score value, so that the noise reduction effect is more in line with the hardware environment, and the control parameters of the second noise reduction processing algorithm are obtained, which helps to improve the noise reduction of the microphone. noise effect.

可选的,上述步骤106,根据所述目标评分值对所述第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数,可以包括如下步骤:Optionally, the above step 106, adjusting the control parameters of the first noise reduction processing algorithm according to the target score value to obtain the control parameters of the second noise reduction processing algorithm may include the following steps:

61、确定所述第一降噪处理算法控制参数中的可调算法控制参数和不可调算法控制参数;61. Determine the adjustable algorithm control parameters and non-adjustable algorithm control parameters in the first noise reduction processing algorithm control parameters;

62、确定与所述目标评分值对应的目标调节因子;62. Determine a target adjustment factor corresponding to the target score value;

63、根据所述目标调节因子对所述可调算法控制参数进行调节,得到目标可调算法控制参数;63. Adjust the adjustable algorithm control parameter according to the target adjustment factor to obtain the target adjustable algorithm control parameter;

64、根据所述目标可调算法控制参数和所述不可调算法控制参数确定所述第二降噪处理算法控制参数。64. Determine the second noise reduction processing algorithm control parameter according to the target adjustable algorithm control parameter and the non-adjustable algorithm control parameter.

本申请实施例中,第一降噪处理算法控制参数可以包括多个参数,有些参数可以调节,有些参数不可以调节,进而,可以确定第一降噪处理算法控制参数中的可调算法控制参数和不可调算法控制参数。In the embodiment of the present application, the first noise reduction processing algorithm control parameters may include multiple parameters, some parameters can be adjusted, and some parameters cannot be adjusted, and then, the adjustable algorithm control parameters in the first noise reduction processing algorithm control parameters can be determined and non-tunable algorithmic control parameters.

进一步的,还可以预先设置预设的评分值与调节因子对应的映射关系,进而,可以基于该映射关系对应的目标评分值对应的目标调节因子,进而,根据目标调节因子对可调算法控制参数进行调节,得到目标可调算法控制参数,能够使得降噪处理效果更加符合硬件环境,有助于提升降噪效果,再根据目标可调算法控制参数和不可调算法控制参数确定第二降噪处理算法控制参数,即针对降噪处理算法控制参数中的可以调节的参数加以调节,使得降噪处理效果更加符合硬件环境,有助于提升降噪效果。Further, the mapping relationship corresponding to the preset score value and the adjustment factor can also be set in advance, and then, based on the target adjustment factor corresponding to the target score value corresponding to the mapping relationship, and then, the adjustable algorithm control parameters can be controlled according to the target adjustment factor Adjust to obtain the target adjustable algorithm control parameters, which can make the noise reduction processing effect more in line with the hardware environment and help to improve the noise reduction effect, and then determine the second noise reduction processing according to the target adjustable algorithm control parameters and non-adjustable algorithm control parameters Algorithm control parameters, that is, to adjust the adjustable parameters in the noise reduction processing algorithm control parameters, so that the noise reduction processing effect is more in line with the hardware environment, which helps to improve the noise reduction effect.

107、通过所述麦克风获取第一音频文件。107. Acquire a first audio file through the microphone.

本申请实施例中,可以通过麦克风获取第一音频文件,第一音频文件可以是麦克风采集的任一声音。In this embodiment of the present application, the first audio file may be obtained through a microphone, and the first audio file may be any sound collected by the microphone.

108、基于所述目标降噪处理算法以及所述第二降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到第二音频文件。108. Perform noise reduction processing on the first audio file based on the target noise reduction processing algorithm and control parameters of the second noise reduction processing algorithm to obtain a second audio file.

本申请实施例中,由于目标降噪处理算法适配外界环境,第二降噪处理算法控制参数适配硬件环境,进而,基于目标降噪处理算法以及第二降噪处理算法控制参数对第一音频文件进行降噪处理,得到第二音频文件,进而,降噪效果更加符合实际环境以及硬件环境,有助于提升降噪处理效果,提升麦克风的降噪能力。In the embodiment of the present application, since the target noise reduction processing algorithm adapts to the external environment, the control parameters of the second noise reduction processing algorithm adapt to the hardware environment, and then, based on the target noise reduction processing algorithm and the second noise reduction processing algorithm control parameters, the first The audio file is subjected to noise reduction processing to obtain a second audio file. Furthermore, the noise reduction effect is more in line with the actual environment and the hardware environment, which helps to improve the noise reduction processing effect and the noise reduction capability of the microphone.

可选的,上述步骤108,基于所述目标降噪处理算法以及所述第二降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到第二音频文件,可以包括如下步骤:Optionally, in step 108 above, performing noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the control parameters of the second noise reduction processing algorithm to obtain a second audio file may include the following steps:

81、确定所述第一音频文件的目标信噪比;81. Determine the target signal-to-noise ratio of the first audio file;

82、确定所述目标信噪比对应的目标优化参数;82. Determine a target optimization parameter corresponding to the target signal-to-noise ratio;

83、根据所述目标优化参数对所述第二降噪处理算法控制参数进行优化处理,得到第三降噪处理算法控制参数;83. Perform optimization processing on the control parameters of the second noise reduction processing algorithm according to the target optimization parameters to obtain the control parameters of the third noise reduction processing algorithm;

84、根据所述目标降噪处理算法以及所述第三降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到所述第二音频文件。84. Perform noise reduction processing on the first audio file according to the target noise reduction processing algorithm and control parameters of the third noise reduction processing algorithm to obtain the second audio file.

本申请实施例中,可以确定第一音频文件的目标信噪比,进而,可以按照预设的信噪比与优化参数之间的映射关系,确定与该目标信噪比对应的目标优化参数,进而,可以根据目标优化参数对第二降噪处理算法控制参数进行优化处理,得到第三降噪处理算法控制参数,使得优化效果更加符合音频文件的特性,有助于保证降噪处理效果。In the embodiment of the present application, the target signal-to-noise ratio of the first audio file can be determined, and then, the target optimization parameter corresponding to the target signal-to-noise ratio can be determined according to the preset mapping relationship between the signal-to-noise ratio and the optimization parameter, Furthermore, the control parameters of the second noise reduction processing algorithm can be optimized according to the target optimization parameters to obtain the control parameters of the third noise reduction processing algorithm, so that the optimization effect is more in line with the characteristics of the audio file, which helps to ensure the noise reduction processing effect.

接着,可以根据目标降噪处理算法以及第三降噪处理算法控制参数对第一音频文件进行降噪处理,得到第二音频文件,不仅仅降噪效果更加符合实际环境以及硬件环境,而且优化效果更加符合音频文件的特性,有助于保证降噪处理效果。Then, according to the target noise reduction processing algorithm and the third noise reduction processing algorithm control parameters, the first audio file can be denoised to obtain the second audio file. Not only the noise reduction effect is more in line with the actual environment and hardware environment, but also the optimization effect It is more in line with the characteristics of audio files and helps to ensure the effect of noise reduction processing.

可以看出,本申请实施例中所描述的麦克风降噪处理方法,应用于电子设备,电子设备包括麦克风和环境传感器,通过环境传感器获取目标环境参数,确定与目标环境参数对应的目标降噪处理算法,获取目标降噪处理算法的第一降噪处理算法控制参数,获取麦克风的目标硬件参数,确定与目标硬件参数对应的目标评分值,根据目标评分值对第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数,通过麦克风获取第一音频文件,基于目标降噪处理算法以及第二降噪处理算法控制参数对第一音频文件进行降噪处理,得到第二音频文件,由于目标降噪处理算法适配外界环境,第二降噪处理算法控制参数适配硬件环境,进而,降噪效果更加符合实际环境以及硬件环境,有助于提升降噪处理效果,提升麦克风的降噪能力。It can be seen that the microphone noise reduction processing method described in the embodiment of the present application is applied to electronic equipment, and the electronic equipment includes a microphone and an environmental sensor, and the target environmental parameters are obtained through the environmental sensors, and the target noise reduction processing corresponding to the target environmental parameters is determined. algorithm, obtaining the first noise reduction processing algorithm control parameter of the target noise reduction processing algorithm, obtaining the target hardware parameter of the microphone, determining the target score value corresponding to the target hardware parameter, and performing the first noise reduction processing algorithm control parameter according to the target score value Adjust to obtain the control parameters of the second noise reduction processing algorithm, obtain the first audio file through the microphone, perform noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the control parameters of the second noise reduction processing algorithm, and obtain the second audio file , because the target noise reduction processing algorithm adapts to the external environment, and the control parameters of the second noise reduction processing algorithm adapt to the hardware environment, and then the noise reduction effect is more in line with the actual environment and the hardware environment, which helps to improve the noise reduction processing effect and improve the performance of the microphone. noise reduction capability.

与上述实施例一致地,请参阅图2,图2是本申请实施例提供的一种电子设备的结构示意图,如图所示,该电子设备包括处理器、存储器、通信接口以及一个或多个程序,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,所述电子设备还包括麦克风和环境传感器,本申请实施例中,上述程序包括用于执行以下步骤的指令:Consistent with the above embodiment, please refer to FIG. 2. FIG. 2 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface, and one or more program, the above-mentioned one or more programs are stored in the above-mentioned memory, and are configured to be executed by the above-mentioned processor, and the electronic device also includes a microphone and an environmental sensor. In the embodiment of the present application, the above-mentioned program includes a program for performing the following steps instruction:

通过所述环境传感器获取目标环境参数;Obtaining target environmental parameters through the environmental sensor;

确定与所述目标环境参数对应的目标降噪处理算法;determining a target noise reduction processing algorithm corresponding to the target environment parameter;

获取所述目标降噪处理算法的第一降噪处理算法控制参数;Acquiring a first noise reduction processing algorithm control parameter of the target noise reduction processing algorithm;

获取所述麦克风的目标硬件参数;Acquiring target hardware parameters of the microphone;

确定与所述目标硬件参数对应的目标评分值;determining a target score value corresponding to the target hardware parameter;

根据所述目标评分值对所述第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数;adjusting the control parameters of the first noise reduction processing algorithm according to the target score value to obtain the control parameters of the second noise reduction processing algorithm;

通过所述麦克风获取第一音频文件;obtaining a first audio file through the microphone;

基于所述目标降噪处理算法以及所述第二降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到第二音频文件。Perform noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the control parameters of the second noise reduction processing algorithm to obtain a second audio file.

可选的,在所述确定与所述目标硬件参数对应的目标评分值方面,上述程序包括用于执行以下步骤的指令:Optionally, in terms of determining the target score value corresponding to the target hardware parameter, the above program includes instructions for performing the following steps:

基于所述目标硬件参数进行多次运行分析,得到多个参考评分值;Performing multiple running analyzes based on the target hardware parameters to obtain multiple reference score values;

根据所述多个参考评分值进行均值运算,得到目标参考评分值;performing mean calculation according to the plurality of reference scoring values to obtain a target reference scoring value;

确定所述多个参考评分值的目标标准差;determining a target standard deviation for the plurality of reference score values;

根据所述目标标准差对所述目标参考评分值进行微调,得到所述目标评分值。Fine-tuning the target reference score value according to the target standard deviation to obtain the target score value.

可选的,在所述根据所述目标评分值对所述第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数方面,上述程序包括用于执行以下步骤的指令:Optionally, in terms of adjusting the control parameters of the first noise reduction processing algorithm according to the target score value to obtain the control parameters of the second noise reduction processing algorithm, the above program includes instructions for performing the following steps:

确定所述第一降噪处理算法控制参数中的可调算法控制参数和不可调算法控制参数;Determining adjustable algorithm control parameters and non-adjustable algorithm control parameters in the first noise reduction processing algorithm control parameters;

确定与所述目标评分值对应的目标调节因子;determining a target modifier corresponding to the target score value;

根据所述目标调节因子对所述可调算法控制参数进行调节,得到目标可调算法控制参数;adjusting the adjustable algorithm control parameter according to the target adjustment factor to obtain the target adjustable algorithm control parameter;

根据所述目标可调算法控制参数和所述不可调算法控制参数确定所述第二降噪处理算法控制参数。The second noise reduction processing algorithm control parameter is determined according to the target adjustable algorithm control parameter and the non-adjustable algorithm control parameter.

可选的,在所述基于所述目标降噪处理算法以及所述第二降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到第二音频文件方面,上述程序包括用于执行以下步骤的指令:Optionally, in terms of performing noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the control parameters of the second noise reduction processing algorithm to obtain a second audio file, the above program includes: Instructions to perform the following steps:

确定所述第一音频文件的目标信噪比;determining a target signal-to-noise ratio for the first audio file;

确定所述目标信噪比对应的目标优化参数;determining target optimization parameters corresponding to the target signal-to-noise ratio;

根据所述目标优化参数对所述第二降噪处理算法控制参数进行优化处理,得到第三降噪处理算法控制参数;Optimizing the control parameters of the second noise reduction processing algorithm according to the target optimization parameters to obtain the control parameters of the third noise reduction processing algorithm;

根据所述目标降噪处理算法以及所述第三降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到所述第二音频文件。Perform noise reduction processing on the first audio file according to the target noise reduction processing algorithm and the control parameters of the third noise reduction processing algorithm to obtain the second audio file.

可选的,在所述目标环境参数包括目标环境噪声参数时;Optionally, when the target environment parameters include target environment noise parameters;

在所述确定与所述目标环境参数对应的目标降噪处理算法方面,上述程序包括用于执行以下步骤的指令:With regard to said determination of a target noise reduction processing algorithm corresponding to said target environment parameter, the above program includes instructions for performing the following steps:

确定与所述目标环境噪声参数对应的目标环境噪声等级;determining a target ambient noise level corresponding to the target ambient noise parameter;

确定与所述目标环境噪声等级对应的所述目标降噪处理算法。The target noise reduction processing algorithm corresponding to the target environmental noise level is determined.

可以看出,本申请实施例中所描述的电子设备,该电子设备包括麦克风和环境传感器,通过环境传感器获取目标环境参数,确定与目标环境参数对应的目标降噪处理算法,获取目标降噪处理算法的第一降噪处理算法控制参数,获取麦克风的目标硬件参数,确定与目标硬件参数对应的目标评分值,根据目标评分值对第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数,通过麦克风获取第一音频文件,基于目标降噪处理算法以及第二降噪处理算法控制参数对第一音频文件进行降噪处理,得到第二音频文件,由于目标降噪处理算法适配外界环境,第二降噪处理算法控制参数适配硬件环境,进而,降噪效果更加符合实际环境以及硬件环境,有助于提升降噪处理效果,提升麦克风的降噪能力。It can be seen that the electronic device described in the embodiment of the present application includes a microphone and an environmental sensor, obtains target environmental parameters through the environmental sensor, determines the target noise reduction processing algorithm corresponding to the target environmental parameter, and obtains the target noise reduction processing algorithm. The first noise reduction processing algorithm control parameter of the algorithm, the target hardware parameter of the microphone is obtained, the target score value corresponding to the target hardware parameter is determined, and the first noise reduction processing algorithm control parameter is adjusted according to the target score value to obtain the second noise reduction Processing algorithm control parameters, acquire the first audio file through the microphone, perform noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the second noise reduction processing algorithm control parameters, and obtain the second audio file, due to the target noise reduction processing algorithm To adapt to the external environment, the control parameters of the second noise reduction processing algorithm are adapted to the hardware environment, and the noise reduction effect is more in line with the actual environment and hardware environment, which helps to improve the noise reduction processing effect and the noise reduction ability of the microphone.

图3是本申请实施例中所涉及的一种麦克风降噪处理装置300的功能单元组成框图。该麦克风降噪处理装置300包括:获取单元301、确定单元302、调节单元303和降噪处理单元304,其中,FIG. 3 is a block diagram of functional units of a microphone noise reduction processing device 300 involved in the embodiment of the present application. The microphone noise reduction processing device 300 includes: an acquisition unit 301, a determination unit 302, an adjustment unit 303, and a noise reduction processing unit 304, wherein,

所述获取单元301,用于通过所述环境传感器获取目标环境参数;The acquiring unit 301 is configured to acquire target environmental parameters through the environmental sensor;

所述确定单元302,用于确定与所述目标环境参数对应的目标降噪处理算法;The determination unit 302 is configured to determine a target noise reduction processing algorithm corresponding to the target environment parameter;

所述获取单元301,还用于获取所述目标降噪处理算法的第一降噪处理算法控制参数;获取所述麦克风的目标硬件参数;The acquiring unit 301 is further configured to acquire a first noise reduction processing algorithm control parameter of the target noise reduction processing algorithm; acquire target hardware parameters of the microphone;

所述确定单元302,还用于确定与所述目标硬件参数对应的目标评分值;The determining unit 302 is further configured to determine a target score value corresponding to the target hardware parameter;

所述调节单元303,还用于根据所述目标评分值对所述第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数;The adjustment unit 303 is further configured to adjust the control parameters of the first noise reduction processing algorithm according to the target score value to obtain the control parameters of the second noise reduction processing algorithm;

所述获取单元301,还用于通过所述麦克风获取第一音频文件;The acquiring unit 301 is further configured to acquire a first audio file through the microphone;

所述降噪处理单元304,还用于基于所述目标降噪处理算法以及所述第二降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到第二音频文件。The noise reduction processing unit 304 is further configured to perform noise reduction processing on the first audio file based on the target noise reduction processing algorithm and control parameters of the second noise reduction processing algorithm to obtain a second audio file.

可选的,在所述确定与所述目标硬件参数对应的目标评分值方面,所述确定单元302具体用于:Optionally, in terms of determining the target score value corresponding to the target hardware parameter, the determining unit 302 is specifically configured to:

基于所述目标硬件参数进行多次运行分析,得到多个参考评分值;Performing multiple running analyzes based on the target hardware parameters to obtain multiple reference score values;

根据所述多个参考评分值进行均值运算,得到目标参考评分值;performing mean calculation according to the plurality of reference scoring values to obtain a target reference scoring value;

确定所述多个参考评分值的目标标准差;determining a target standard deviation for the plurality of reference score values;

根据所述目标标准差对所述目标参考评分值进行微调,得到所述目标评分值。Fine-tuning the target reference score value according to the target standard deviation to obtain the target score value.

可选的,在所述根据所述目标评分值对所述第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数方面,所述调节单元303具体用于:Optionally, in terms of adjusting the control parameters of the first noise reduction processing algorithm according to the target score value to obtain the control parameters of the second noise reduction processing algorithm, the adjustment unit 303 is specifically configured to:

确定所述第一降噪处理算法控制参数中的可调算法控制参数和不可调算法控制参数;Determining adjustable algorithm control parameters and non-adjustable algorithm control parameters in the first noise reduction processing algorithm control parameters;

确定与所述目标评分值对应的目标调节因子;determining a target modifier corresponding to the target score value;

根据所述目标调节因子对所述可调算法控制参数进行调节,得到目标可调算法控制参数;adjusting the adjustable algorithm control parameter according to the target adjustment factor to obtain the target adjustable algorithm control parameter;

根据所述目标可调算法控制参数和所述不可调算法控制参数确定所述第二降噪处理算法控制参数。The second noise reduction processing algorithm control parameter is determined according to the target adjustable algorithm control parameter and the non-adjustable algorithm control parameter.

可选的,在所述基于所述目标降噪处理算法以及所述第二降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到第二音频文件方面,所述降噪处理单元304具体用于:Optionally, in the aspect of performing noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the control parameters of the second noise reduction processing algorithm to obtain a second audio file, the noise reduction processing Unit 304 is specifically for:

确定所述第一音频文件的目标信噪比;determining a target signal-to-noise ratio for the first audio file;

确定所述目标信噪比对应的目标优化参数;determining target optimization parameters corresponding to the target signal-to-noise ratio;

根据所述目标优化参数对所述第二降噪处理算法控制参数进行优化处理,得到第三降噪处理算法控制参数;Optimizing the control parameters of the second noise reduction processing algorithm according to the target optimization parameters to obtain the control parameters of the third noise reduction processing algorithm;

根据所述目标降噪处理算法以及所述第三降噪处理算法控制参数对所述第一音频文件进行降噪处理,得到所述第二音频文件。Perform noise reduction processing on the first audio file according to the target noise reduction processing algorithm and the control parameters of the third noise reduction processing algorithm to obtain the second audio file.

可选的,在所述目标环境参数包括目标环境噪声参数时;Optionally, when the target environment parameters include target environment noise parameters;

在所述确定与所述目标环境参数对应的目标降噪处理算法方面,所述确定单元302具体用于:In terms of determining the target noise reduction processing algorithm corresponding to the target environment parameter, the determining unit 302 is specifically configured to:

确定与所述目标环境噪声参数对应的目标环境噪声等级;determining a target ambient noise level corresponding to the target ambient noise parameter;

确定与所述目标环境噪声等级对应的所述目标降噪处理算法。The target noise reduction processing algorithm corresponding to the target environmental noise level is determined.

可以看出,本申请实施例中所描述的麦克风降噪处理装置,应用于电子设备,电子设备包括麦克风和环境传感器,通过环境传感器获取目标环境参数,确定与目标环境参数对应的目标降噪处理算法,获取目标降噪处理算法的第一降噪处理算法控制参数,获取麦克风的目标硬件参数,确定与目标硬件参数对应的目标评分值,根据目标评分值对第一降噪处理算法控制参数进行调节,得到第二降噪处理算法控制参数,通过麦克风获取第一音频文件,基于目标降噪处理算法以及第二降噪处理算法控制参数对第一音频文件进行降噪处理,得到第二音频文件,由于目标降噪处理算法适配外界环境,第二降噪处理算法控制参数适配硬件环境,进而,降噪效果更加符合实际环境以及硬件环境,有助于提升降噪处理效果,提升麦克风的降噪能力。It can be seen that the microphone noise reduction processing device described in the embodiment of the present application is applied to electronic equipment, and the electronic equipment includes a microphone and an environmental sensor. The target environmental parameters are obtained through the environmental sensors, and the target noise reduction processing corresponding to the target environmental parameters is determined. algorithm, obtaining the first noise reduction processing algorithm control parameter of the target noise reduction processing algorithm, obtaining the target hardware parameter of the microphone, determining the target score value corresponding to the target hardware parameter, and performing the first noise reduction processing algorithm control parameter according to the target score value Adjust to obtain the control parameters of the second noise reduction processing algorithm, obtain the first audio file through the microphone, perform noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the control parameters of the second noise reduction processing algorithm, and obtain the second audio file , because the target noise reduction processing algorithm adapts to the external environment, and the control parameters of the second noise reduction processing algorithm adapt to the hardware environment, and then the noise reduction effect is more in line with the actual environment and the hardware environment, which helps to improve the noise reduction processing effect and improve the performance of the microphone. noise reduction capability.

可以理解的是,本实施例的可穿戴设备的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。It can be understood that the functions of the program modules of the wearable device in this embodiment can be specifically implemented according to the method in the above method embodiment, and the specific implementation process can refer to the relevant description of the above method embodiment, and will not be repeated here.

本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables the computer to execute some or all of the steps of any method described in the above method embodiments .

本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包。An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable the computer to execute any one of the methods described in the above method embodiments. Some or all steps of the method. The computer program product may be a software installation package.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Depending on the application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by this application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the above units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the above-mentioned integrated units are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory. Several instructions are included to make a computer device (which may be a personal computer, server or network device, etc.) execute all or part of the steps of the above-mentioned methods in various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash disk , Read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above, and specific examples have been used in this paper to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for Those skilled in the art will have changes in specific implementation methods and application scopes based on the ideas of the present application. In summary, the contents of this specification should not be construed as limiting the present application.

Claims (6)

1. A microphone noise reduction processing method, characterized by being applied to an electronic device, the electronic device including a microphone and an environmental sensor, the method comprising:
acquiring a target environment parameter through the environment sensor;
determining a target noise reduction processing algorithm corresponding to the target environment parameter;
acquiring a first noise reduction processing algorithm control parameter of the target noise reduction processing algorithm;
acquiring target hardware parameters of the microphone;
determining a target scoring value corresponding to the target hardware parameter;
adjusting the first noise reduction processing algorithm control parameter according to the target grading value to obtain a second noise reduction processing algorithm control parameter;
acquiring a first audio file through the microphone;
and carrying out noise reduction processing on the first audio file based on the target noise reduction processing algorithm and the control parameters of the second noise reduction processing algorithm to obtain a second audio file.
2. The method of claim 1, wherein the determining a target scoring value corresponding to the target hardware parameter comprises:
performing multiple operation analysis based on the target hardware parameters to obtain multiple reference scoring values;
performing average value operation according to the multiple reference scoring values to obtain a target reference scoring value;
determining a target standard deviation of the plurality of reference scoring values;
and fine tuning the target reference scoring value according to the target standard deviation to obtain the target scoring value.
3. The method according to claim 2, wherein said adjusting the first noise reduction algorithm control parameter according to the target score value to obtain a second noise reduction algorithm control parameter comprises:
determining an adjustable algorithm control parameter and a non-adjustable algorithm control parameter in the first noise reduction processing algorithm control parameters;
determining a target adjustment factor corresponding to the target score value;
adjusting the adjustable algorithm control parameters according to the target adjustment factors to obtain target adjustable algorithm control parameters;
and determining the second noise reduction processing algorithm control parameter according to the target adjustable algorithm control parameter and the non-adjustable algorithm control parameter.
4. A method according to any one of claims 1-3, wherein said denoising the first audio file based on the target denoising algorithm and the second denoising algorithm control parameter to obtain a second audio file, comprising:
determining a target signal-to-noise ratio of the first audio file;
determining a target optimization parameter corresponding to the target signal-to-noise ratio;
optimizing the second noise reduction processing algorithm control parameters according to the target optimization parameters to obtain third noise reduction processing algorithm control parameters;
and carrying out noise reduction processing on the first audio file according to the target noise reduction processing algorithm and the control parameter of the third noise reduction processing algorithm to obtain the second audio file.
5. A method according to any of claims 1-3, wherein when the target environmental parameter comprises a target environmental noise parameter;
the determining a target noise reduction processing algorithm corresponding to the target environment parameter comprises the following steps:
determining a target environmental noise level corresponding to the target environmental noise parameter;
and determining the target noise reduction processing algorithm corresponding to the target environmental noise level.
6. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
CN202310659036.XA 2023-06-05 2023-06-05 Microphone noise reduction processing method and computer storage medium Active CN116634332B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310659036.XA CN116634332B (en) 2023-06-05 2023-06-05 Microphone noise reduction processing method and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310659036.XA CN116634332B (en) 2023-06-05 2023-06-05 Microphone noise reduction processing method and computer storage medium

Publications (2)

Publication Number Publication Date
CN116634332A true CN116634332A (en) 2023-08-22
CN116634332B CN116634332B (en) 2025-06-13

Family

ID=87621181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310659036.XA Active CN116634332B (en) 2023-06-05 2023-06-05 Microphone noise reduction processing method and computer storage medium

Country Status (1)

Country Link
CN (1) CN116634332B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119211826A (en) * 2024-09-20 2024-12-27 恩平市艺星电子有限公司 Microphone audio signal correction method, system, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500575A (en) * 2013-09-24 2014-01-08 同济大学 Method for predicting denoising effect of active noise control system
CN105376668A (en) * 2015-11-24 2016-03-02 广东欧珀移动通信有限公司 Headset noise reduction method and device
WO2018147573A1 (en) * 2017-02-13 2018-08-16 주식회사 오르페오사운드웍스 Noise removing earset using sound receiving characteristics of in-ear microphone and over-the-ear microphone, and noise removing method
CN108737648A (en) * 2018-05-10 2018-11-02 佛山市博知盾识科技有限公司 Volume of music adaptive regulation method, device, storage medium and terminal
CN112929809A (en) * 2021-03-08 2021-06-08 音曼(北京)科技有限公司 Active noise reduction earphone calibration method
CN115701579A (en) * 2021-08-02 2023-02-10 上海擎感智能科技有限公司 Audio data processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500575A (en) * 2013-09-24 2014-01-08 同济大学 Method for predicting denoising effect of active noise control system
CN105376668A (en) * 2015-11-24 2016-03-02 广东欧珀移动通信有限公司 Headset noise reduction method and device
WO2018147573A1 (en) * 2017-02-13 2018-08-16 주식회사 오르페오사운드웍스 Noise removing earset using sound receiving characteristics of in-ear microphone and over-the-ear microphone, and noise removing method
CN108737648A (en) * 2018-05-10 2018-11-02 佛山市博知盾识科技有限公司 Volume of music adaptive regulation method, device, storage medium and terminal
CN112929809A (en) * 2021-03-08 2021-06-08 音曼(北京)科技有限公司 Active noise reduction earphone calibration method
CN115701579A (en) * 2021-08-02 2023-02-10 上海擎感智能科技有限公司 Audio data processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄悠然: "基于 DSP 的自适应有源降噪耳罩研究与实现", 《中国优秀硕士学位论文全文数据库工程科技II辑》, no. 2020, 15 July 2020 (2020-07-15) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119211826A (en) * 2024-09-20 2024-12-27 恩平市艺星电子有限公司 Microphone audio signal correction method, system, device and storage medium
CN119211826B (en) * 2024-09-20 2025-06-10 恩平市艺星电子有限公司 Microphone audio signal correction method, system, equipment and storage medium

Also Published As

Publication number Publication date
CN116634332B (en) 2025-06-13

Similar Documents

Publication Publication Date Title
JP4262597B2 (en) Sound system
US10705789B2 (en) Dynamic volume adjustment for virtual assistants
US9300266B2 (en) Speaker equalization for mobile devices
US12058499B2 (en) Audio processing method and device, terminal, and computer-readable storage medium
CN111226277B (en) Voice enhancement method and device
KR102565447B1 (en) Electronic device and method for adjusting gain of digital audio signal based on hearing recognition characteristics
KR102726759B1 (en) Electronic device and method of reducing noise using the same
CN110600048B (en) Audio verification method and device, storage medium and electronic equipment
CN104900236B (en) Audio signal processing
WO2019233361A1 (en) Method and device for adjusting volume of music
WO2020097824A1 (en) Audio processing method and apparatus, storage medium, and electronic device
WO2023029503A1 (en) Method and apparatus for monitoring sleep state, and electronic device and storage medium
CN112423176A (en) Earphone noise reduction method and device, storage medium and noise reduction earphone
CN113010139A (en) Screen projection method and device and electronic equipment
CN116634332A (en) Microphone noise reduction processing method and computer storage medium
CN118824302A (en) Audio signal processing method, audio signal processing device and storage medium
CN113157240A (en) Voice processing method, device, equipment, storage medium and computer program product
CN111179984B (en) Audio data processing method and device and terminal equipment
CN103390403A (en) Extraction method and device for mel frequency cepstrum coefficient (MFCC) characteristics
CN113409800B (en) Processing method and device for monitoring audio, storage medium and electronic equipment
CN115835092B (en) A method, system, computer and storage medium for suppressing audio sound reinforcement feedback
CN112927705A (en) Frequency response calibration method and related product
CN114691078A (en) Method, device, terminal device and storage medium for adjusting audio signal
CN114333817A (en) Remote controller and remote controller voice recognition method
CN113436613A (en) Voice recognition method and device, electronic equipment and storage 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