CN115190212A - Call noise reduction method, device, headset device and medium based on headset device - Google Patents
Call noise reduction method, device, headset device and medium based on headset device Download PDFInfo
- Publication number
- CN115190212A CN115190212A CN202210760779.1A CN202210760779A CN115190212A CN 115190212 A CN115190212 A CN 115190212A CN 202210760779 A CN202210760779 A CN 202210760779A CN 115190212 A CN115190212 A CN 115190212A
- Authority
- CN
- China
- Prior art keywords
- wearer
- voice
- mask
- call
- noise reduction
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M9/00—Arrangements for interconnection not involving centralised switching
- H04M9/08—Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic
- H04M9/082—Two-way loud-speaking telephone systems with means for conditioning the signal, e.g. for suppressing echoes for one or both directions of traffic using echo cancellers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1091—Details not provided for in groups H04R1/1008 - H04R1/1083
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2420/00—Details of connection covered by H04R, not provided for in its groups
- H04R2420/07—Applications of wireless loudspeakers or wireless microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2460/00—Details of hearing devices, i.e. of ear- or headphones covered by H04R1/10 or H04R5/033 but not provided for in any of their subgroups, or of hearing aids covered by H04R25/00 but not provided for in any of its subgroups
- H04R2460/13—Hearing devices using bone conduction transducers
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Soundproofing, Sound Blocking, And Sound Damping (AREA)
Abstract
本发明公开了一种基于耳机设备的通话降噪方法、装置、耳机设备及计算机可读存储介质,通过配置有模拟麦克风和骨传导传感器的耳机设备根据所述骨传导传感器检测到的数字声音信号确定所述耳机设备的佩戴者是否正在输出语音信息;若是,则根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩;在确定所述佩戴者正确佩戴口罩,且确定所述佩戴者基于所述耳机设备进行语音通话时,根据所述骨传导传感器采集到的第一语音信号和所述模拟麦克风采集到的第二语音信号进行通话降噪。采用本发明技术方案能够准确检测用户是否正确佩戴口罩,并在用户佩戴口罩的情况下对用户使用耳机设备进行语音通话的过程进行降噪。
The invention discloses a method and device for noise reduction of calls based on earphone equipment, earphone equipment and a computer-readable storage medium. The earphone equipment equipped with an analog microphone and a bone conduction sensor is used to detect digital sound signals according to the bone conduction sensor. Determine whether the wearer of the headset device is outputting voice information; if so, determine whether the wearer is wearing a mask correctly according to the analog signal obtained by collecting the voice information by the analog microphone; after determining that the wearer is wearing the mask correctly , and it is determined that when the wearer makes a voice call based on the headset device, noise reduction is performed according to the first voice signal collected by the bone conduction sensor and the second voice signal collected by the analog microphone. The technical solution of the present invention can accurately detect whether the user wears the mask correctly, and when the user wears the mask, noise reduction can be performed in the process of the user using the earphone device to make a voice call.
Description
技术领域technical field
本发明属于耳机设备技术领域,尤其涉及一种基于耳机设备的通话降噪方法、装置、耳机设备以及计算机可读存储介质。The present invention belongs to the technical field of earphone equipment, and in particular, relates to a method and device for noise reduction of calls based on earphone equipment, earphone equipment and a computer-readable storage medium.
背景技术Background technique
现如今,佩戴口罩是日常防范病毒快速传播的有效手段。然而,一方面,在公共场所中仍然有许多社会居民存在忘记佩戴口罩和口罩佩戴不规范的现象,这毫无疑问会增加病毒传染的风险。另一方面,人们在佩戴口罩的时候,由于口罩对于人正常呼吸气流的一定遮挡作用,会导致人们发出的声音较为沉闷,且由于人们说话口罩与人脸皮肤和/或者胡须之间的摩擦还会产生额外的噪声,这在人们佩戴口罩进行语音通话时的体现更加明显,尤其是用户在佩戴TWS(True Wireless Stereo,真无线立体声)耳机设备进行通话时,因佩戴口罩原因导致的声音变得沉闷和不时产生的干扰噪声会造成整体通话质量的严重下降。Nowadays, wearing a mask is an effective way to prevent the rapid spread of the virus on a daily basis. However, on the one hand, there are still many social residents in public places who forget to wear masks and wear masks irregularly, which will undoubtedly increase the risk of virus infection. On the other hand, when people wear masks, due to the shielding effect of the masks on the normal breathing airflow of people, the voices made by people will be dull, and due to the friction between the masks and the skin and/or beards of people's faces Extra noise will be generated, which is more obvious when people wear masks for voice calls, especially when users wear TWS (True Wireless Stereo, true wireless stereo) headset devices to make calls, the sound caused by wearing masks becomes Dull and occasional interfering noise can seriously degrade overall call quality.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提供一种基于耳机设备的通话降噪方法、装置、耳机设备及计算机可读存储介质。旨在基于耳机设备准确检测用户是否正确佩戴口罩,从而在检测到用户佩戴口罩的情况下对用户使用耳机设备进行语音通话的过程进行降噪以提升通话质量。The main purpose of the present invention is to provide a method, device, headset device and computer-readable storage medium for noise reduction of calls based on headset device. The purpose is to accurately detect whether the user is wearing a mask correctly based on the headset device, so as to reduce the noise during the user's voice call using the headset device when it is detected that the user wears a mask to improve the quality of the call.
为了实现上述目的,本发明提供一种基于耳机设备的通话降噪方法,所述基于耳机设备的通话降噪方法应用于配置有模拟麦克风和骨传导传感器的耳机设备,所述基于耳机设备的通话降噪方法包括:In order to achieve the above object, the present invention provides a method for noise reduction of calls based on a headset device. The method for noise reduction of calls based on a headset device is applied to a headset device configured with an analog microphone and a bone conduction sensor. Noise reduction methods include:
根据所述骨传导传感器检测到的数字声音信号确定所述耳机设备的佩戴者是否正在输出语音信息;Determine whether the wearer of the earphone device is outputting voice information according to the digital sound signal detected by the bone conduction sensor;
若是,则根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩;If so, then determine whether the wearer is wearing the mask correctly according to the analog signal obtained by the analog microphone collecting the voice information;
在确定所述佩戴者正确佩戴口罩,且确定所述佩戴者基于所述耳机设备进行语音通话时,根据所述骨传导传感器采集到的第一语音信号和所述模拟麦克风采集到的第二语音信号进行通话降噪。When it is determined that the wearer is wearing the mask correctly, and it is determined that the wearer makes a voice call based on the headset device, the first voice signal collected by the bone conduction sensor and the second voice collected by the analog microphone are used. Signal for call noise reduction.
可选地,所述根据所述骨传导传感器采集到的第一语音信号和所述模拟麦克风采集到的第二语音信号进行通话降噪的步骤,包括:Optionally, the step of performing noise reduction for calls according to the first voice signal collected by the bone conduction sensor and the second voice signal collected by the analog microphone includes:
从所述骨传导传感器在所述佩戴者进行语音通话时采集到的第一语音信号中提取低频语音信号;extracting a low-frequency voice signal from the first voice signal collected by the bone conduction sensor when the wearer makes a voice call;
从所述模拟麦克风在所述佩戴者进行语音通话时采集到的第二语音信号中提取高频语音信号;extracting a high-frequency voice signal from the second voice signal collected by the analog microphone when the wearer makes a voice call;
将所述低频语音信号和所述高频语音信号混合为1路语音数据输出以进行通话降噪。The low-frequency voice signal and the high-frequency voice signal are mixed into one channel of voice data output for noise reduction of calls.
可选地,所述根据所述骨传导传感器检测到的数字声音信号确定所述耳机设备的佩戴者是否正在输出语音信息的步骤,包括:Optionally, the step of determining whether the wearer of the earphone device is outputting voice information according to the digital sound signal detected by the bone conduction sensor includes:
获取所述骨传导传感器检测到的数字声音信号,并针对所述数字声音信号进行语音识别;acquiring the digital sound signal detected by the bone conduction sensor, and performing speech recognition on the digital sound signal;
在对所述数字声音信号进行语音识别以从所述数字声音信号中检测到语音信息时,确定所述耳机设备的佩戴者正在输出语音信息。When voice recognition is performed on the digital sound signal to detect voice information from the digital sound signal, it is determined that the wearer of the earphone device is outputting voice information.
可选地,所述根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩的步骤,包括:Optionally, the step of determining whether the wearer is wearing a mask correctly according to an analog signal obtained by collecting the voice information with the analog microphone, includes:
获取所述模拟麦克风针对所述佩戴者连续输出的所述语音信息进行采集得到的模拟信号;acquiring an analog signal obtained by collecting the voice information continuously output by the wearer by the analog microphone;
根据所述模拟信号中高频能量和低频能量之间的占比关系确定所述佩戴者是否正确佩戴口罩。Whether the wearer is wearing the mask correctly is determined according to the proportional relationship between the high-frequency energy and the low-frequency energy in the analog signal.
可选地,所述根据所述模拟信号中高频能量和低频能量之间的占比关系确定所述佩戴者是否正确佩戴口罩的步骤,包括:Optionally, the step of determining whether the wearer is wearing the mask correctly according to the ratio between the high-frequency energy and the low-frequency energy in the analog signal includes:
针对所述模拟信号进行快速傅里叶变换后分别计算所述模拟信号中的高频能量和低频能量,并确定所述高频能量和所述低频能量之间的占比关系;After performing fast Fourier transform on the analog signal, calculate the high-frequency energy and the low-frequency energy in the analog signal respectively, and determine the ratio relationship between the high-frequency energy and the low-frequency energy;
若所述占比关系为所述低频能量占比超过预设阈值,则确定所述佩戴者正确佩戴口罩;If the proportion relationship is that the proportion of the low-frequency energy exceeds a preset threshold, it is determined that the wearer is wearing a mask correctly;
若所述占比关系为所述低频能量占比为超过预设阈值,则确定所述佩戴者未佩戴口罩或者未正确佩戴口罩。If the proportion relationship is that the proportion of the low-frequency energy exceeds a preset threshold, it is determined that the wearer does not wear a mask or does not wear a mask correctly.
可选地,在所述根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩的步骤之后,所述方法还包括:Optionally, after the step of determining whether the wearer is wearing the mask correctly according to the analog signal obtained by collecting the voice information with the analog microphone, the method further includes:
在确定所述佩戴者未佩戴口罩或者未正确佩戴口罩时,通过所述耳机设备的扬声器输出用于提醒规范佩戴口罩的提示语音。When it is determined that the wearer does not wear a mask or does not wear a mask correctly, a prompt voice for reminding to wear a mask properly is output through the speaker of the earphone device.
可选地,所述耳机设备预先与移动终端建立蓝牙连接,所述方法还包括:Optionally, the headset device establishes a Bluetooth connection with the mobile terminal in advance, and the method further includes:
在接收到所述移动终端通过所述蓝牙连接传递的语音蓝牙信号时,确定所述佩戴者在当前基于所述耳机设备进行语音通话。When receiving the voice Bluetooth signal transmitted by the mobile terminal through the Bluetooth connection, it is determined that the wearer is currently making a voice call based on the headset device.
此外,为实现上述目的,本发明还提供一种基于耳机设备的通话降噪装置,所述基于耳机设备的通话降噪装置应用于配置有模拟麦克风和骨传导传感器的耳机设备,所述基于耳机设备的通话降噪装置包括:In addition, in order to achieve the above object, the present invention also provides a call noise reduction device based on a headset device, which is applied to a headset device configured with an analog microphone and a bone conduction sensor. The device's call noise reduction features include:
口罩检测模块,用于根据所述骨传导传感器检测到的数字声音信号确定所述耳机设备的佩戴者是否正在输出语音信息;以及,若是,则根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩;The mask detection module is used to determine whether the wearer of the headset device is outputting voice information according to the digital sound signal detected by the bone conduction sensor; a signal to determine whether the wearer is wearing the mask correctly;
通话降噪模块,用于在确定所述佩戴者正确佩戴口罩,且确定所述佩戴者基于所述耳机设备进行语音通话时,根据所述骨传导传感器采集到的第一语音信号和所述模拟麦克风采集到的第二语音信号进行通话降噪。A call noise reduction module, used for determining that the wearer is wearing a mask correctly, and determining that the wearer makes a voice call based on the headset device, according to the first voice signal collected by the bone conduction sensor and the simulation The second voice signal collected by the microphone is used for noise reduction of the call.
本发明基于耳机设备的通话降噪装置的各个功能模块在运行时实现如上所述的无线耳机的运动监测运动的控制方法的步骤。Each functional module of the headset device-based call noise reduction device of the present invention implements the steps of the above-mentioned control method for the motion monitoring motion of the wireless headset during operation.
此外,为实现上述目的,本发明还提供一种耳机设备,所述耳机设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的基于耳机设备的通话降噪程序,所述无线耳机的运动监测的控制程序被所述处理器执行时实现如上所述的无线耳机的运动监测运动的控制方法的步骤。In addition, in order to achieve the above object, the present invention also provides a headset device, the headset device includes: a memory, a processor, and a headset device-based call noise reduction device that is stored in the memory and can run on the processor. The program, when the control program for the motion monitoring of the wireless headset is executed by the processor, implements the steps of the above-mentioned control method for the motion monitoring of the wireless headset.
此外,为实现上述目的,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有基于耳机设备的通话降噪程序,所述基于耳机设备的通话降噪程序被处理器执行时实现如上所述的基于耳机设备的通话降噪方法的步骤。In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium on which a call noise reduction program based on a headset device is stored, and the call noise reduction program based on the headset device is processed When the device is executed, the steps of implementing the above-mentioned method for noise reduction of calls based on the headset device.
本发明实施例提出的一种基于耳机设备的通话降噪方法、装置、耳机设备及计算机可读存储介质,通过配置有模拟麦克风和骨传导传感器的耳机设备根据所述骨传导传感器检测到的数字声音信号确定所述耳机设备的佩戴者是否正在输出语音信息;若是,则根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩;在确定所述佩戴者正确佩戴口罩,且确定所述佩戴者基于所述耳机设备进行语音通话时,根据所述骨传导传感器采集到的第一语音信号和所述模拟麦克风采集到的第二语音信号进行通话降噪。An earphone device-based call noise reduction method, device, earphone device, and computer-readable storage medium proposed in the embodiments of the present invention, through the earphone device configured with an analog microphone and a bone conduction sensor, according to the digital signal detected by the bone conduction sensor. The sound signal determines whether the wearer of the earphone device is outputting voice information; if so, determine whether the wearer is wearing the mask correctly according to the analog signal obtained by collecting the voice information by the analog microphone; after determining that the wearer is correct When wearing a mask and it is determined that the wearer conducts a voice call based on the headset device, noise reduction is performed according to the first voice signal collected by the bone conduction sensor and the second voice signal collected by the analog microphone.
如此,本发明实施例实现了通过骨传导传感器和模拟麦克风来准确的检测用户是否正确佩戴口罩,并且,在检测到用户佩戴口罩的情况下,进一步通过该骨传导传感器和该模拟麦克风各自对用户使用耳机设备进行语音通话过程中的语音信号进行降噪,从而有小弟提升了用户基于耳机设备进行通话的语音质量。In this way, the embodiment of the present invention realizes that the bone conduction sensor and the simulated microphone can be used to accurately detect whether the user is wearing the mask correctly, and, in the case of detecting that the user is wearing the mask, the bone conduction sensor and the simulated microphone are further used to detect whether the user is wearing a mask correctly. Noise reduction is performed on the voice signal during the voice call using the headset device, thereby improving the voice quality of the user's call based on the headset device.
附图说明Description of drawings
图1是本发明实施例方案涉及的耳机设备硬件运行环境的设备结构示意图;1 is a schematic diagram of a device structure of a hardware operating environment of a headset device involved in an embodiment of the present invention;
图2为本发明基于耳机设备的通话降噪方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the method for noise reduction of calls based on earphone equipment according to the present invention;
图3为本发明基于耳机设备的通话降噪方法的一实施例所涉及的口罩佩戴检测的流程示意图;3 is a schematic flowchart of mask wearing detection involved in an embodiment of the headset device-based call noise reduction method of the present invention;
图4为本发明基于耳机设备的通话降噪方法的一实施例所涉及的进行通话降噪的流程示意图;4 is a schematic flowchart of a call noise reduction involved in an embodiment of a call noise reduction method based on a headset device of the present invention;
图5为本发明基于耳机设备的通话降噪装置一实施例的功能模块示意图。FIG. 5 is a schematic diagram of functional modules of an embodiment of a call noise reduction device based on a headset device of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
参照图1,图1为本发明实施例方案涉及的耳机设备硬件运行环境的设备结构示意图。Referring to FIG. 1 , FIG. 1 is a schematic diagram of a device structure of a hardware operating environment of an earphone device according to an embodiment of the present invention.
本发明实施例耳机设备具体可以是蓝牙耳机、TWS(True Wireless Stereo,真无线立体声)耳机等耳机设备,该耳机设备在内部配备有模拟MIC——模拟麦克风和VPU(Voice Pick Unit,语音拾取单元)骨传导传感器。The headset device in the embodiment of the present invention may specifically be a headset device such as a Bluetooth headset, a TWS (True Wireless Stereo, true wireless stereo) headset, etc. The headset device is internally equipped with an analog MIC—an analog microphone and a VPU (Voice Pick Unit, a voice pickup unit). ) bone conduction sensor.
如图1所示,该耳机设备可以包括:处理器1001,例如CPU,通信总线1002,用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如Wi-Fi接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1 , the headset device may include: a
本领域技术人员可以理解,图1中示出的耳机设备结构并不构成对耳机设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the structure of the earphone device shown in FIG. 1 does not constitute a limitation on the earphone device, and may include more or less components than the one shown, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及基于耳机设备的通话降噪程序。As shown in FIG. 1 , the
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端,与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的基于耳机设备的通话降噪程序,并执行如下操作:In the terminal shown in FIG. 1 , the
根据所述骨传导传感器检测到的数字声音信号确定所述耳机设备的佩戴者是否正在输出语音信息;Determine whether the wearer of the earphone device is outputting voice information according to the digital sound signal detected by the bone conduction sensor;
若是,则根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩;If so, then determine whether the wearer is wearing the mask correctly according to the analog signal obtained by the analog microphone collecting the voice information;
在确定所述佩戴者正确佩戴口罩,且确定所述佩戴者基于所述耳机设备进行语音通话时,根据所述骨传导传感器采集到的第一语音信号和所述模拟麦克风采集到的第二语音信号进行通话降噪。When it is determined that the wearer is wearing the mask correctly, and it is determined that the wearer makes a voice call based on the headset device, the first voice signal collected by the bone conduction sensor and the second voice collected by the analog microphone are used. Signal for call noise reduction.
可选地,处理器1001还可以用于调用存储器1005中存储的基于耳机设备的通话降噪程序,并执行如下操作:Optionally, the
从所述骨传导传感器在所述佩戴者进行语音通话时采集到的第一语音信号中提取低频语音信号;extracting a low-frequency voice signal from the first voice signal collected by the bone conduction sensor when the wearer makes a voice call;
从所述模拟麦克风在所述佩戴者进行语音通话时采集到的第二语音信号中提取高频语音信号;extracting a high-frequency voice signal from the second voice signal collected by the analog microphone when the wearer makes a voice call;
将所述低频语音信号和所述高频语音信号混合为1路语音数据输出以进行通话降噪。The low-frequency voice signal and the high-frequency voice signal are mixed into one channel of voice data output for noise reduction of calls.
可选地,处理器1001还可以用于调用存储器1005中存储的基于耳机设备的通话降噪程序,并执行如下操作:Optionally, the
获取所述骨传导传感器检测到的数字声音信号,并针对所述数字声音信号进行语音识别;acquiring the digital sound signal detected by the bone conduction sensor, and performing speech recognition on the digital sound signal;
在对所述数字声音信号进行语音识别以从所述数字声音信号中检测到语音信息时,确定所述耳机设备的佩戴者正在输出语音信息。When voice recognition is performed on the digital sound signal to detect voice information from the digital sound signal, it is determined that the wearer of the earphone device is outputting voice information.
可选地,处理器1001还可以用于调用存储器1005中存储的基于耳机设备的通话降噪程序,并执行如下操作:Optionally, the
获取所述模拟麦克风针对所述佩戴者连续输出的所述语音信息进行采集得到的模拟信号;acquiring an analog signal obtained by collecting the voice information continuously output by the wearer by the analog microphone;
根据所述模拟信号中高频能量和低频能量之间的占比关系确定所述佩戴者是否正确佩戴口罩。Whether the wearer is wearing the mask correctly is determined according to the proportional relationship between the high-frequency energy and the low-frequency energy in the analog signal.
可选地,处理器1001还可以用于调用存储器1005中存储的基于耳机设备的通话降噪程序,并执行如下操作:Optionally, the
针对所述模拟信号进行快速傅里叶变换后分别计算所述模拟信号中的高频能量和低频能量,并确定所述高频能量和所述低频能量之间的占比关系;After performing fast Fourier transform on the analog signal, calculate the high-frequency energy and the low-frequency energy in the analog signal respectively, and determine the ratio relationship between the high-frequency energy and the low-frequency energy;
若所述占比关系为所述低频能量占比超过预设阈值,则确定所述佩戴者正确佩戴口罩;If the proportion relationship is that the proportion of the low-frequency energy exceeds a preset threshold, it is determined that the wearer is wearing a mask correctly;
若所述占比关系为所述低频能量占比为超过预设阈值,则确定所述佩戴者未佩戴口罩或者未正确佩戴口罩。If the proportion relationship is that the proportion of the low-frequency energy exceeds a preset threshold, it is determined that the wearer does not wear a mask or does not wear a mask correctly.
可选地,处理器1001还可以用于调用存储器1005中存储的基于耳机设备的通话降噪程序,在执行所述根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩的步骤之后,还执行如下操作:Optionally, the
在确定所述佩戴者未佩戴口罩或者未正确佩戴口罩时,通过所述耳机设备的扬声器输出用于提醒规范佩戴口罩的提示语音。When it is determined that the wearer does not wear a mask or does not wear a mask correctly, a prompt voice for reminding to wear a mask properly is output through the speaker of the earphone device.
可选地,所述耳机设备预先与移动终端建立蓝牙连接,处理器1001还可以用于调用存储器1005中存储的基于耳机设备的通话降噪程序,并执行如下操作:Optionally, the headset device establishes a Bluetooth connection with the mobile terminal in advance, and the
在接收到所述移动终端通过所述蓝牙连接传递的语音蓝牙信号时,确定所述佩戴者在当前基于所述耳机设备进行语音通话。When receiving the voice Bluetooth signal transmitted by the mobile terminal through the Bluetooth connection, it is determined that the wearer is currently making a voice call based on the headset device.
基于上述的耳机设备,提出本发明基于耳机设备的通话降噪方法的各实施例。在本发明无线耳机的运动监测方法的各实施例中,本发明基于耳机设备的通话降噪方法应用于上述配置有模拟麦克风和骨传导传感器的耳机设备。Based on the above-mentioned earphone device, various embodiments of the method for noise reduction of a call based on the earphone device of the present invention are proposed. In each embodiment of the motion monitoring method for a wireless headset of the present invention, the call noise reduction method based on the headset device of the present invention is applied to the above-mentioned headset device configured with an analog microphone and a bone conduction sensor.
请参照图2,图2为本发明基于耳机设备的通话降噪方法第一实施例的流程示意图。在本发明基于耳机设备的通话降噪方法的第一实施例中,本发明基于耳机设备的通话降噪方法包括:Please refer to FIG. 2 , which is a schematic flowchart of a first embodiment of a method for noise reduction of calls based on a headset device of the present invention. In the first embodiment of the call noise reduction method based on the headset device of the present invention, the call noise reduction method based on the headset device of the present invention includes:
步骤S10:根据所述骨传导传感器检测到的数字声音信号确定所述耳机设备的佩戴者是否正在输出语音信息;Step S10: determining whether the wearer of the earphone device is outputting voice information according to the digital sound signal detected by the bone conduction sensor;
在本实施例中,耳机设备在检测确定被佩戴的整个过程当中,持续不断的通过自身所配置的骨传导传感器来采集佩戴者产生的数据声音信号,然后基于采集到的该数字声音信号确定当前时刻该佩戴者是否正在输出语音信息。In this embodiment, the earphone device continuously collects the data sound signal generated by the wearer through the bone conduction sensor configured by itself during the whole process of detecting and determining that it is worn, and then determines the current Whether the wearer is outputting voice information at the moment.
需要说明的是,在本实施例中,由于VPU骨传导传感器采集的数字声音信号是来自颅骨传声,即,VPU骨传导传感器和普通麦克风采集空气介质声波的传输通道是不一样,并且VPU骨传导传感器采集的声波几乎不受佩戴口罩影响且比普通麦克风更适合做语音识别的检测操作。基于此,耳机设备即通过VPU骨传导传感器辅助MIC模拟麦克风进行信号处理以识别佩戴者对于口罩的佩戴状态以及在后续针对佩戴者通话过程中的口罩摩擦干扰声进行降噪。It should be noted that, in this embodiment, since the digital sound signal collected by the VPU bone conduction sensor is transmitted from the skull, that is, the transmission channel of the VPU bone conduction sensor and the ordinary microphone to collect air medium sound waves are different, and the VPU bone conduction sensor has different transmission channels. The sound waves collected by the conductive sensor are hardly affected by wearing a mask and are more suitable for speech recognition detection operations than ordinary microphones. Based on this, the headset device uses the VPU bone conduction sensor to assist the MIC analog microphone to perform signal processing to identify the wearer's wearing state of the mask and to reduce the noise of the mask friction interference during the wearer's call.
进一步地,在一些可行的实施例中,步骤S10,可以包括:Further, in some feasible embodiments, step S10 may include:
步骤S101,获取所述骨传导传感器检测到的数字声音信号,并针对所述数字声音信号进行语音识别;Step S101, acquiring a digital sound signal detected by the bone conduction sensor, and performing speech recognition on the digital sound signal;
步骤S102,在对所述数字声音信号进行语音识别以从所述数字声音信号中检测到语音信息时,确定所述耳机设备的佩戴者正在输出语音信息。Step S102, when voice recognition is performed on the digital sound signal to detect voice information from the digital sound signal, it is determined that the wearer of the earphone device is outputting voice information.
在本实施例中,耳机设备在通过自身所配置的骨传导传感器持续不断的采集耳机设备的佩戴者产生的数字声音信号时,首先获取该骨传导传感器实时采集到的数字声音信号,然后通过自身的算法模块针对该数字声音信号进行语音识别。如此,耳机设备在通过对该数字声音信号进行语音识别以从该数字声音信号当中识别到佩戴者所发出的语音信息时,立即确定该佩戴者在当前时刻正在输出语音信息。In this embodiment, when the earphone device continuously collects the digital sound signal generated by the wearer of the earphone device through the bone conduction sensor configured by itself, it first obtains the digital sound signal collected by the bone conduction sensor in real time, and then uses The algorithm module performs speech recognition on the digital sound signal. In this way, when the earphone device recognizes the voice information sent by the wearer from the digital sound signal by performing voice recognition on the digital sound signal, it is immediately determined that the wearer is outputting the voice information at the current moment.
此外,在一些可行的实施例中,耳机设备在针对骨传导传感器采集到的数字信号进行语音识别的过程中,若耳机设备并没有从该数字声音信号当中识别到语音信息,则耳机设备将确定佩戴者在当前并没有输出语音信息。In addition, in some feasible embodiments, when the headphone device performs speech recognition on the digital signal collected by the bone conduction sensor, if the headphone device does not recognize the voice information from the digital sound signal, the headphone device will determine The wearer is not currently outputting voice information.
步骤S20,若是,则根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩;Step S20, if yes, then determine whether the wearer is wearing the mask correctly according to the analog signal obtained by collecting the voice information with the analog microphone;
在本实施例中,耳机设备在基于骨传导传感器采集到的数字声音信号确定当前时刻耳机设备的佩戴者正在输出语音信息之后,进一步根据自身所配置的模拟麦克风针对佩戴者所输出的语音信息进行采集得到的模拟信号,来确定该佩戴者在当前时刻是否正确佩戴口罩。In this embodiment, after determining that the wearer of the headset device is outputting voice information at the current moment based on the digital sound signal collected by the bone conduction sensor, the headset device further conducts the voice information output by the wearer according to the analog microphone configured by itself. The obtained analog signal is collected to determine whether the wearer is wearing the mask correctly at the current moment.
进一步地,在一些可行的实施例中,步骤S20,可以包括:Further, in some feasible embodiments, step S20 may include:
步骤S201,获取所述模拟麦克风针对所述佩戴者连续输出的所述语音信息进行采集得到的模拟信号;Step S201, acquiring an analog signal obtained by collecting the voice information continuously output by the wearer by the analog microphone;
在本实施例中,耳机设备在根据骨传导传感器采集到的数字声音信号确定当前时刻耳机设备的佩戴者正在输出语音信息之后,立即获取自身所配置的模拟麦克风针对该佩戴者连续输出的语音信息进行采集得到模拟信号。In this embodiment, after determining that the wearer of the headset device is outputting voice information at the current moment according to the digital sound signal collected by the bone conduction sensor, the headset device immediately obtains the voice information continuously output by the analog microphone configured by itself for the wearer Acquire the analog signal.
步骤S202,根据所述模拟信号中高频能量和低频能量之间的占比关系确定所述佩戴者是否正确佩戴口罩。Step S202: Determine whether the wearer is wearing the mask correctly according to the ratio of the high-frequency energy and the low-frequency energy in the analog signal.
在本实施例中,耳机设备在获取到模拟麦克风对佩戴者连续输出的语音信息进行采集的得到的模拟信号之后,立即针对该模拟信号进行快速傅里叶变换成频域之后,分别计算该模拟信号中的高频能量和低频能量,并计算出该高频能量与该低频能量之间的占比关系,从而基于该占比关系来确定该佩戴者在当前时刻是否正确佩戴口罩。In this embodiment, immediately after acquiring the analog signal obtained by the analog microphone that collects the voice information continuously output by the wearer, the earphone device performs fast Fourier transform on the analog signal into the frequency domain, and then calculates the analog signal respectively. The high-frequency energy and low-frequency energy in the signal are calculated, and the proportional relationship between the high-frequency energy and the low-frequency energy is calculated, so as to determine whether the wearer is wearing the mask correctly at the current moment based on the proportional relationship.
需要说明的是,在本实施例中,耳机设备在将模拟麦克风采集的模型信号进行快速傅里叶变换成频域之后,以频率4KHZ为界限阈值来计算高频能量(大于4KHZ)和低频能量(小于4KHZ)。It should be noted that, in this embodiment, the earphone device calculates high-frequency energy (greater than 4KHZ) and low-frequency energy with the frequency of 4KHZ as the threshold after the fast Fourier transform of the model signal collected by the analog microphone into the frequency domain. (less than 4KHZ).
进一步地,在一些可行的实施例中,上述的步骤S202,具体可以包括:Further, in some feasible embodiments, the above-mentioned step S202 may specifically include:
步骤S2021,针对所述模拟信号进行快速傅里叶变换后分别计算所述模拟信号中的高频能量和低频能量,并确定所述高频能量和所述低频能量之间的占比关系;Step S2021, after performing fast Fourier transform on the analog signal, calculate the high-frequency energy and the low-frequency energy in the analog signal respectively, and determine the ratio relationship between the high-frequency energy and the low-frequency energy;
步骤S2022,若所述占比关系为所述低频能量占比超过预设阈值,则确定所述佩戴者正确佩戴口罩;Step S2022, if the proportion relationship is that the proportion of the low-frequency energy exceeds a preset threshold, it is determined that the wearer is wearing a mask correctly;
步骤S2022,若所述占比关系为所述低频能量占比为超过预设阈值,则确定所述佩戴者未佩戴口罩或者未正确佩戴口罩。Step S2022, if the proportion relationship is that the proportion of the low-frequency energy exceeds a preset threshold, it is determined that the wearer does not wear a mask or does not wear a mask correctly.
在本实施例中,耳机设备在针对模拟麦克风采集的模拟信号进行快速傅里叶变换成频域,并分别计算该模拟信号中的高频能量和低频能量,和计算出该高频能量与该低频能量之间的占比关系之后,若耳机设备计算的该占比关系为低频能量占比超过了预设阈值,则耳机设备立即确定耳机设备的佩戴者在当前时刻是正确佩戴口罩的,或者,若耳机设备计算的该占比关系为低频能量占比并没有超过该预设阈值,则耳机设备立即确定耳机设备的佩戴者在当前时刻没有正确佩戴口罩或者并没有佩戴口罩。In this embodiment, the earphone device performs fast Fourier transform on the analog signal collected by the analog microphone into the frequency domain, and calculates the high-frequency energy and low-frequency energy in the analog signal respectively, and calculates the high-frequency energy and the low-frequency energy. After the ratio between the low-frequency energies, if the ratio calculated by the headphone device is that the ratio of the low-frequency energy exceeds the preset threshold, the headphone device immediately determines that the wearer of the headphone device is wearing a mask correctly at the current moment, or , if the proportion relationship calculated by the earphone device is that the proportion of low frequency energy does not exceed the preset threshold, the earphone device immediately determines that the wearer of the earphone device does not wear a mask correctly or does not wear a mask at the current moment.
需要说明的是,在本实施例中,上述的预设阈值具体可以为耳机设备通过模拟麦克风预先对正确佩戴口罩的佩戴者进行模拟信号采集,并通过算法对采集到的模拟信号进行仿真处理之后确定的佩戴者在正确佩戴口罩时,该佩戴者所输出语音信息对应的模拟信号中低频能量的最少占比。应当理解的是,基于实际应用的不同,耳机设备自身的种类或者各自采用的算法均可能存在不同,如此,耳机设备基于上述过程确定的预设阈值的具体大小当然也可以不相同,本发明基于耳机设备的通话降噪方法并不针对该预设阈值的具体大小进行限定。It should be noted that, in this embodiment, the above-mentioned preset threshold may specifically be that the earphone device preliminarily collects the analog signal of the wearer wearing the mask correctly through the analog microphone, and simulates the collected analog signal through an algorithm. When the determined wearer wears the mask correctly, the minimum proportion of low-frequency energy in the analog signal corresponding to the voice information output by the wearer. It should be understood that, based on different practical applications, the types of earphone devices themselves or the algorithms used by them may be different. Thus, the specific size of the preset threshold determined by the earphone devices based on the above process can of course be different. The present invention is based on The call noise reduction method of the headset device is not limited to the specific size of the preset threshold.
此外,在一些可行的实施例中,在上述步骤S20中“根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩”的步骤之后,本发明基于耳机设备的通话降噪方法,还可以包括:In addition, in some feasible embodiments, after the step of “determining whether the wearer is wearing the mask correctly according to the analog signal obtained by collecting the voice information by the analog microphone” in the above step S20, the present invention is based on the The call noise reduction method may also include:
步骤A,在确定所述佩戴者未佩戴口罩或者未正确佩戴口罩时,通过所述耳机设备的扬声器输出用于提醒规范佩戴口罩的提示语音。Step A, when it is determined that the wearer does not wear a mask or does not wear a mask correctly, output a prompt voice for reminding to wear a mask properly through the speaker of the earphone device.
在本实施例中,耳机设备在计算的上述模拟信号中高频能量与低频能量之间的占比关系为低频能量占比并没有超过该预设阈值,从而确定耳机设备的佩戴者在当前时刻没有正确佩戴口罩或者并没有佩戴口罩时,耳机设备进一步通过自身所配置的扬声器来向佩戴者输出用于提醒佩戴者规范佩戴口罩的提示语音。In this embodiment, the ratio between the high-frequency energy and the low-frequency energy in the calculated analog signal by the earphone device is that the proportion of low-frequency energy does not exceed the preset threshold, so it is determined that the wearer of the earphone device has no energy at the current moment. When wearing a mask correctly or not wearing a mask, the headset device further outputs a prompt voice to remind the wearer to wear the mask properly through the speaker configured by itself.
示例性地,如图3所示的应用流程,耳机设备(假定为TWS耳机)通过自身配置的模拟麦克风采集的佩戴者在输出语音信息时的模拟信号进行AD转换(模数转换),以将模拟信号转换成数字信号,之后,TWS耳机将该数字信号与VPU骨传导传感器采集的佩戴者产生的数字声音信号一起传递进入自身的算法模块;Exemplarily, as shown in the application process shown in FIG. 3 , the earphone device (assumed to be a TWS earphone) performs AD conversion (analog-to-digital conversion) on the analog signal collected by the wearer when outputting the voice information through the analog microphone configured by itself, so as to convert the The analog signal is converted into a digital signal, and then the TWS headset transmits the digital signal and the digital sound signal generated by the wearer collected by the VPU bone conduction sensor into its own algorithm module;
之后,TWS耳机即通过算法模块用VPU骨传导传感器采集的这一路数字声音信号做VAD语音识别的检测,如果检测到此帧数字声音信号为佩戴者正在说话(通过语音识别从此帧数字声音信号中识别到了语音信息),则TWS耳机进一步用同一帧由模拟麦克风在佩戴者输出语音信息时采集到的模拟信号对应的数字信号进行口罩佩戴检测判断。即,TWS耳机通过自身的口罩检测模块对模拟信号对应的数字信号进行FFT(快速傅里叶)转换成频域后分别计算高频能量(大于4KHZ)和低频的能量(小于4K),如此,在佩戴者连续说话的几帧模拟信号对应的数字信号的低频能量占比都偏高(高于上述的预设阈值),则TWS耳机将判断佩戴者在当前时刻是正确佩戴口罩的,否则TWS耳机即判断佩戴者在当前时刻未佩戴口罩或者口罩佩戴不正确;After that, the TWS headset uses the digital sound signal collected by the VPU bone conduction sensor to detect the VAD voice recognition through the algorithm module. voice information is recognized), then the TWS headset further uses the same frame of the digital signal corresponding to the analog signal collected by the analog microphone when the wearer outputs the voice information to perform mask wearing detection and judgment. That is, the TWS headset performs FFT (fast Fourier) conversion on the digital signal corresponding to the analog signal through its own mask detection module into the frequency domain and calculates the high-frequency energy (greater than 4KHZ) and the low-frequency energy (less than 4K) respectively, so, When the proportion of low-frequency energy of the digital signal corresponding to several frames of analog signals in which the wearer speaks continuously is high (higher than the above-mentioned preset threshold), the TWS headset will judge that the wearer is wearing the mask correctly at the current moment, otherwise TWS The headset judges that the wearer is not wearing a mask at the current moment or that the mask is incorrectly worn;
进而,TWS耳机在判断佩戴者正确佩戴口罩时,TWS耳机即将口罩佩戴标志位设为“true”,而如果TWS耳机判断到佩戴者在当前时刻未佩戴口罩或者口罩佩戴不正确,则TWS耳机不仅将口罩佩戴标志位设为“false”,还会同时通过扬声器播放提示音“请佩戴口罩”以提醒佩戴者规范佩戴口罩。Furthermore, when the TWS headset judges that the wearer is wearing the mask correctly, the TWS headset will set the mask wearing flag to "true", and if the TWS headset judges that the wearer is not wearing a mask at the current moment or the mask is incorrectly worn, the TWS headset not only Set the mask wearing flag to "false", and at the same time play a prompt sound "please wear a mask" through the speaker to remind the wearer to wear a mask properly.
步骤S30,在确定所述佩戴者正确佩戴口罩,且确定所述佩戴者基于所述耳机设备进行语音通话时,根据所述骨传导传感器采集到的第一语音信号和所述模拟麦克风采集到的第二语音信号进行通话降噪。Step S30, when it is determined that the wearer is wearing the mask correctly, and when it is determined that the wearer makes a voice call based on the headset device, the first voice signal collected by the bone conduction sensor and the voice signal collected by the analog microphone are used. The second voice signal performs call noise reduction.
在本实施例中,耳机设备在基于上述模拟信号中的高频能量和低频能量占比关系,确定该佩戴者在当前时刻是正确佩戴口罩,并且进一步确定到该佩戴者在当前时刻正在基于耳机设备进行语音通话时,耳机设备将根据自身所配置骨传导传感器在佩戴者进行通话过程中实时采集到的第一语音信号,和自身所配置的模拟麦克风在佩戴者进行通话过程中实时采集到的第二语音信号,来针对该佩戴者在进行语音通话过程中输出的语音信号进行降噪。In this embodiment, the earphone device determines that the wearer is wearing the mask correctly at the current moment based on the ratio of high-frequency energy and low-frequency energy in the above-mentioned analog signal, and further determines that the wearer is using the earphone at the current moment. When the device conducts a voice call, the headset device will collect the first voice signal in real time during the wearer's call according to the bone conduction sensor configured by itself, and the analog microphone configured by itself during the wearer's call. The second voice signal is used to perform noise reduction for the voice signal output by the wearer during the voice call process.
需要说明的是,由于TWS耳机内的软件逻辑通常是通过蓝牙信号触发通话和音乐播放的音频流,即一般音频流只在蓝牙连接后的通话和音乐场景才有。从而,一方面,TWS耳机需要在确认被用户佩戴后开启一条新的音频流专门用来做上述步骤S10和步骤S20所述的检测口罩是否被正确佩戴的过程。而另一方面,TWS耳机则是基于是否接收到所连接终端设备传递的蓝牙信号来确定用户在当前是否基于自身进行语音通话。It should be noted that, because the software logic in the TWS headset usually triggers the audio stream of the call and music playback through the Bluetooth signal, that is, the general audio stream is only available in the call and music scene after the Bluetooth connection. Therefore, on the one hand, the TWS headset needs to open a new audio stream after confirming that it is worn by the user, which is specially used for the process of detecting whether the mask is correctly worn as described in the above steps S10 and S20. On the other hand, the TWS headset determines whether the user is currently making a voice call based on itself based on whether the Bluetooth signal transmitted by the connected terminal device is received.
基于此,在一种可行的实施例中,上述的耳机设备预先与移动终端建立蓝牙连接,本发明基于耳机设备的通话降噪方法,还可以包括:Based on this, in a feasible embodiment, the above-mentioned headset device establishes a Bluetooth connection with the mobile terminal in advance, and the method for noise reduction of a call based on the headset device of the present invention may further include:
步骤B,在接收到所述移动终端通过所述蓝牙连接传递的语音蓝牙信号时,确定所述佩戴者在当前基于所述耳机设备进行语音通话。Step B, when receiving the voice Bluetooth signal transmitted by the mobile terminal through the Bluetooth connection, determine that the wearer is currently making a voice call based on the headset device.
在本实施例中,耳机设备通过自身所配置的蓝牙模块与智能终端设备(如智能手机、平板电脑、智能电视以及个人计算机等终端设备)建立蓝牙连接,从而,耳机设备即可基于该蓝牙连接接收该智能终端设备传递的蓝牙数据以正在内部形成音频流或者通话语音流向耳机设备的佩戴者进行输出。如此,耳机设备即在接收到智能终端设备通过蓝牙连接传递的语音蓝牙信号时,立即针对自身正在输出的音频数据进行初始化,并确定在当前时刻耳机设备的佩戴者正在基于该耳机设备进行与其它智能终端设备的用户之间的语音通话。In this embodiment, the headset device establishes a Bluetooth connection with a smart terminal device (such as a smart phone, a tablet computer, a smart TV, a personal computer and other terminal devices) through a Bluetooth module configured by itself, so that the headset device can be based on the Bluetooth connection. Receive the bluetooth data transmitted by the smart terminal device and output it to the wearer of the headset device to form an audio stream or a voice stream of a call internally. In this way, when the headset device receives the voice Bluetooth signal transmitted by the smart terminal device through the Bluetooth connection, it immediately initializes the audio data that it is outputting, and determines that the wearer of the headset device is conducting communication with other devices based on the headset device at the current moment. Voice calls between users of smart terminal devices.
进一步地,在一种可行的实施例中,上述的步骤S30中“根据所述骨传导传感器采集到的第一语音信号和所述模拟麦克风采集到的第二语音信号进行通话降噪”的步骤,可以包括:Further, in a feasible embodiment, in the above-mentioned step S30, the step of "reducing noise during a call according to the first voice signal collected by the bone conduction sensor and the second voice signal collected by the analog microphone". , which can include:
步骤S301,从所述骨传导传感器在所述佩戴者进行语音通话时采集到的第一语音信号中提取低频语音信号;Step S301, extracting a low-frequency voice signal from a first voice signal collected by the bone conduction sensor when the wearer conducts a voice call;
步骤S302,从所述模拟麦克风在所述佩戴者进行语音通话时采集到的第二语音信号中提取高频语音信号;Step S302, extracting a high-frequency voice signal from the second voice signal collected by the analog microphone when the wearer conducts a voice call;
步骤S302,将所述低频语音信号和所述高频语音信号混合为1路语音数据输出以进行通话降噪。Step S302, mixing the low-frequency voice signal and the high-frequency voice signal into one channel of voice data output for noise reduction of the call.
在本实施例中,耳机设备在根据骨传导传感器和模拟麦克风分别在佩戴者进行通话过程中实时采集到的第一语音信号和第二语音信号,来针对该佩戴者输出的语音信号进行降噪时,耳机设备首先从该第一语音信号当中提取出低频语音信号,并同步或者异步的从该第二语音信号当中提取出高频语音信号,之后,耳机设备即将该低频语音信号和该高频语音信号进行混合以形成1路语音数据,并通过与智能终端设备之间的蓝牙连接将该语音数据输出至智能终端设备以进行通话降噪。In this embodiment, the earphone device performs noise reduction for the voice signal output by the wearer according to the first voice signal and the second voice signal collected in real time by the bone conduction sensor and the analog microphone respectively during the wearer's call process When the headset device first extracts the low-frequency voice signal from the first voice signal, and synchronously or asynchronously extracts the high-frequency voice signal from the second voice signal, then the headset device combines the low-frequency voice signal with the high-frequency voice signal. The voice signals are mixed to form 1 channel of voice data, and the voice data is output to the smart terminal device through the Bluetooth connection with the smart terminal device for noise reduction of the call.
需要说明的是,在本实施例中,TWS耳机在蓝牙触发通话音频流程后,如果TWS耳机判断此时上述的口罩佩戴标志位设为“true”,则TWS耳机将在正常通话数据处理流程里添加对口罩干扰声进行降噪处理的算法。而因为口罩摩擦产生的干扰因主要集中在低频,但VPU骨传导传感器采集的数字声音信号为骨传导传输方式采集得到,即该数字声音信号的低频中几乎没有口罩摩擦产生的干扰音,所以,TWS耳机将采用该VPU骨传导传感器在佩戴者进行语音通话过程中采集的数字声音信号的低频,作为算法输出信号的音频。It should be noted that, in this embodiment, after the TWS headset triggers the call audio process through Bluetooth, if the TWS headset determines that the above-mentioned mask wearing flag is set to "true" at this time, the TWS headset will be in the normal call data processing process. Add an algorithm for noise reduction of mask noise. Because the interference caused by the friction of the mask is mainly concentrated in the low frequency, the digital sound signal collected by the VPU bone conduction sensor is collected by the bone conduction transmission method, that is, there is almost no interference sound caused by the friction of the mask in the low frequency of the digital sound signal. Therefore, The TWS headset will use the low frequency of the digital sound signal collected by the VPU bone conduction sensor during the wearer's voice call as the audio of the algorithm output signal.
示例性地,如图4所示,在本实施例中,TWS耳机针对口罩摩擦产生的干扰声音进行降噪处理的流程如下:Exemplarily, as shown in FIG. 4 , in this embodiment, the TWS earphone performs noise reduction processing on the interference sound generated by the friction of the mask as follows:
(1)TWS耳机对VPU骨传导传感器在佩戴者进行语音通话过程中采集到的第一语音信号和MIC模拟麦克风同时在该语音通话过程中采集到的第二语音信号进行FFT快速傅里叶变换运算形成对应的VPU频域数据和MIC频域数据;(1) The TWS headset performs FFT on the first voice signal collected by the VPU bone conduction sensor during the wearer's voice call and the second voice signal collected by the MIC analog microphone during the voice call at the same time. The operation forms the corresponding VPU frequency domain data and MIC frequency domain data;
(2)TWS耳机将VPU频域数据输入LP低通滤波器以提取出第一语音信号中1KHz以下的低频信号,并将MIC数据输入HP高通滤波器以提取出第二语音信号中1KHz以上的高频信号,并且,TWS耳机针对该低频信号和高频信号进行MIX混合后形成1路完整的语音数据;(2) The TWS headset inputs the VPU frequency domain data into the LP low-pass filter to extract the low-frequency signal below 1KHz in the first voice signal, and inputs the MIC data into the HP high-pass filter to extract the second voice signal above 1KHz. High-frequency signal, and the TWS headset mixes the low-frequency signal and the high-frequency signal to form a complete channel of voice data;
(3)TWS将混合后形成的1路语音数据经过EQ(均衡器)进行调音以将声音提亮后,通过与智能终端设备之间的蓝牙连接进行输出。(3) TWS tunes the 1-channel voice data formed after mixing through EQ (equalizer) to brighten the sound, and then outputs it through the Bluetooth connection with the smart terminal device.
如此,在本实施例中,通过耳机设备在检测确定被佩戴的整个过程当中,持续不断的通过自身所配置的骨传导传感器来采集佩戴者产生的数据声音信号,然后基于采集到的该数字声音信号确定当前时刻该佩戴者是否正在输出语音信息。之后,耳机设备进一步根据自身所配置的模拟麦克风针对佩戴者所输出的语音信息进行采集得到的模拟信号,来确定该佩戴者在当前时刻是否正确佩戴口罩。最后,耳机设备确定到该佩戴者在当前时刻正在基于耳机设备进行语音通话时,耳机设备将根据自身所配置骨传导传感器在佩戴者进行通话过程中实时采集到的第一语音信号,和自身所配置的模拟麦克风在佩戴者进行通话过程中实时采集到的第二语音信号,来针对该佩戴者在进行语音通话过程中输出的语音信号进行降噪。In this way, in this embodiment, the earphone device continuously collects the data sound signal generated by the wearer through the bone conduction sensor configured by itself during the whole process of detecting and determining that it is worn, and then based on the collected digital sound The signal determines whether the wearer is outputting voice information at the current moment. After that, the earphone device further determines whether the wearer is wearing the mask correctly at the current moment according to the analog signal collected by the analog microphone configured by itself for the voice information output by the wearer. Finally, when the headset device determines that the wearer is making a voice call based on the headset device at the current moment, the headset device will, according to the bone conduction sensor configured by the headset device, collect the first voice signal in real time during the wearer's call process, and match it with its own The configured analog microphone collects the second voice signal in real time during the wearer's call to perform noise reduction for the voice signal output by the wearer during the voice call.
如此,本发明实施例实现了通过骨传导传感器和模拟麦克风来准确的检测用户是否正确佩戴口罩,并且,在检测到用户佩戴口罩的情况下,进一步通过该骨传导传感器和该模拟麦克风各自对用户使用耳机设备进行语音通话过程中的语音信号进行降噪,从而有小弟提升了用户基于耳机设备进行通话的语音质量。In this way, the embodiment of the present invention realizes that the bone conduction sensor and the simulated microphone can be used to accurately detect whether the user is wearing the mask correctly, and, in the case of detecting that the user is wearing the mask, the bone conduction sensor and the simulated microphone are further used to detect whether the user is wearing a mask correctly. Noise reduction is performed on the voice signal during the voice call using the headset device, thereby improving the voice quality of the user's call based on the headset device.
此外,本发明实施例还提供一种基于耳机设备的通话降噪装置,本发明基于耳机设备的通话降噪装置应用于配置有模拟麦克风和骨传导传感器的耳机设备。请参照图5,图5为本发明基于耳机设备的通话降噪装置一实施例的功能模块示意图,如图5所示,本发明基于耳机设备的通话降噪装置包括:In addition, an embodiment of the present invention also provides a call noise reduction device based on a headset device. The call noise reduction device based on the headset device of the present invention is applied to a headset device configured with an analog microphone and a bone conduction sensor. Please refer to FIG. 5 . FIG. 5 is a schematic diagram of functional modules of an embodiment of the headset device-based call noise reduction device of the present invention. As shown in FIG. 5 , the headset device-based call noise reduction device of the present invention includes:
口罩检测模块10,用于根据所述骨传导传感器检测到的数字声音信号确定所述耳机设备的佩戴者是否正在输出语音信息;以及,若是,则根据所述模拟麦克风采集所述语音信息得到的模拟信号确定所述佩戴者是否正确佩戴口罩;The
通话降噪模块20,用于在确定所述佩戴者正确佩戴口罩,且确定所述佩戴者基于所述耳机设备进行语音通话时,根据所述骨传导传感器采集到的第一语音信号和所述模拟麦克风采集到的第二语音信号进行通话降噪。The call
可选地,通话降噪模块20,包括:Optionally, the call
低频语音提取单元,用于从所述骨传导传感器在所述佩戴者进行语音通话时采集到的第一语音信号中提取低频语音信号;a low-frequency voice extraction unit, configured to extract a low-frequency voice signal from the first voice signal collected by the bone conduction sensor when the wearer conducts a voice call;
高频语音提取单元,用于从所述模拟麦克风在所述佩戴者进行语音通话时采集到的第二语音信号中提取高频语音信号;a high-frequency voice extraction unit, configured to extract a high-frequency voice signal from the second voice signal collected by the analog microphone when the wearer conducts a voice call;
混合输出单元,用于将所述低频语音信号和所述高频语音信号混合为1路语音数据输出以进行通话降噪。The mixed output unit is used for mixing the low-frequency voice signal and the high-frequency voice signal into one channel of voice data output for noise reduction of calls.
可选地,口罩检测模块10,包括:Optionally, the
第一获取单元,用于获取所述骨传导传感器检测到的数字声音信号,并针对所述数字声音信号进行语音识别;a first acquiring unit, configured to acquire a digital sound signal detected by the bone conduction sensor, and perform speech recognition on the digital sound signal;
第一确定单元,用于在对所述数字声音信号进行语音识别以从所述数字声音信号中检测到语音信息时,确定所述耳机设备的佩戴者正在输出语音信息。The first determining unit is configured to determine that the wearer of the earphone device is outputting voice information when voice recognition is performed on the digital voice signal to detect voice information from the digital voice signal.
可选地,口罩检测模块10,还包括:Optionally, the
第二获取单元,用于获取所述模拟麦克风针对所述佩戴者连续输出的所述语音信息进行采集得到的模拟信号;a second acquiring unit, configured to acquire an analog signal obtained by the analog microphone collected for the voice information continuously output by the wearer;
第二确定单元,用于根据所述模拟信号中高频能量和低频能量之间的占比关系确定所述佩戴者是否正确佩戴口罩。The second determination unit is configured to determine whether the wearer is wearing the mask correctly according to the ratio between the high-frequency energy and the low-frequency energy in the analog signal.
可选地,第二确定单元,包括:Optionally, the second determining unit includes:
占比确定子单元,用于针对所述模拟信号进行快速傅里叶变换后分别计算所述模拟信号中的高频能量和低频能量,并确定所述高频能量和所述低频能量之间的占比关系;The proportion determination subunit is used to respectively calculate the high frequency energy and the low frequency energy in the analog signal after performing the fast Fourier transform on the analog signal, and determine the difference between the high frequency energy and the low frequency energy. proportional relationship;
第一确定子单元,用于若所述占比关系为所述低频能量占比超过预设阈值,则确定所述佩戴者正确佩戴口罩;a first determination subunit, configured to determine that the wearer is wearing a mask correctly if the ratio of the ratio is that the ratio of the low-frequency energy exceeds a preset threshold;
第二确定子单元,用于若所述占比关系为所述低频能量占比为超过预设阈值,则确定所述佩戴者未佩戴口罩或者未正确佩戴口罩。The second determination subunit is configured to determine that the wearer does not wear a mask or does not wear a mask correctly if the ratio of the ratio is that the ratio of the low-frequency energy exceeds a preset threshold.
可选地,本发明基于耳机设备的通话降噪装置,还包括:Optionally, the call noise reduction device based on the headset device of the present invention further includes:
提示模块,用于在确定所述佩戴者未佩戴口罩或者未正确佩戴口罩时,通过所述耳机设备的扬声器输出用于提醒规范佩戴口罩的提示语音。The prompt module is configured to output a prompt voice for reminding the wearer to wear the mask properly through the speaker of the earphone device when it is determined that the wearer does not wear the mask or does not wear the mask correctly.
可选地,本发明基于耳机设备的通话降噪装置,还包括:Optionally, the call noise reduction device based on the headset device of the present invention further includes:
通话场景确定模块,用于在接收到所述移动终端通过所述蓝牙连接传递的语音蓝牙信号时,确定所述佩戴者在当前基于所述耳机设备进行语音通话。The call scene determination module is configured to determine that the wearer is currently making a voice call based on the headset device when receiving the voice Bluetooth signal transmitted by the mobile terminal through the Bluetooth connection.
本发明基于耳机设备的通话降噪装置的各个功能模块在运行时的具体实施例与上述本发明基于耳机设备的通话降噪程序方法各实施例基本相同,在此不作赘述。The specific embodiments of each functional module of the headset device-based call noise reduction device of the present invention during operation are basically the same as the above-mentioned embodiments of the headset device-based call noise reduction program method of the present invention, and will not be repeated here.
本发明还提供一种计算机存储介质,该计算机存储介质上存储有基于耳机设备的通话降噪程序,上述基于耳机设备的通话降噪程序被处理器执行时实现如以上任一项实施例所述的基于耳机设备的通话降噪程序方法的步骤。The present invention also provides a computer storage medium on which a call noise reduction program based on an earphone device is stored, and when the above-mentioned call noise reduction program based on the earphone device is executed by a processor, it is implemented as described in any of the above embodiments The steps of a call noise reduction program method based on a headset device.
本发明计算机存储介质的具体实施例与上述本发明基于耳机设备的通话降噪程序方法各实施例基本相同,在此不作赘述。The specific embodiments of the computer storage medium of the present invention are basically the same as the above-mentioned embodiments of the call noise reduction program method based on the headset device of the present invention, and are not repeated here.
本发明还提供一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现如以上任一项实施例所述的本发明基于耳机设备的通话降噪方法的步骤,在此不作赘述。The present invention also provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, implements the method for noise reduction of a call based on a headset device according to any of the above embodiments of the present invention. The steps are not repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台耳机设备(可以是TWS耳机等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to make a headset device (which may be a TWS headset, etc.) to execute the methods described in the various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in other related technical fields , are similarly included in the scope of patent protection of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210760779.1A CN115190212A (en) | 2022-06-30 | 2022-06-30 | Call noise reduction method, device, headset device and medium based on headset device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210760779.1A CN115190212A (en) | 2022-06-30 | 2022-06-30 | Call noise reduction method, device, headset device and medium based on headset device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115190212A true CN115190212A (en) | 2022-10-14 |
Family
ID=83516210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210760779.1A Pending CN115190212A (en) | 2022-06-30 | 2022-06-30 | Call noise reduction method, device, headset device and medium based on headset device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115190212A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110110616A (en) * | 2019-04-19 | 2019-08-09 | 出门问问信息科技有限公司 | A kind of electronic equipment and control method |
CN111683319A (en) * | 2020-06-08 | 2020-09-18 | 北京爱德发科技有限公司 | Call pickup noise reduction method, earphone and storage medium |
CN113573194A (en) * | 2021-07-27 | 2021-10-29 | 歌尔科技有限公司 | Audio signal compensation method, device, equipment and storage medium |
CN113870894A (en) * | 2021-09-14 | 2021-12-31 | 维沃移动通信有限公司 | Message prompting method and device and electronic equipment |
-
2022
- 2022-06-30 CN CN202210760779.1A patent/CN115190212A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110110616A (en) * | 2019-04-19 | 2019-08-09 | 出门问问信息科技有限公司 | A kind of electronic equipment and control method |
CN111683319A (en) * | 2020-06-08 | 2020-09-18 | 北京爱德发科技有限公司 | Call pickup noise reduction method, earphone and storage medium |
CN113573194A (en) * | 2021-07-27 | 2021-10-29 | 歌尔科技有限公司 | Audio signal compensation method, device, equipment and storage medium |
CN113870894A (en) * | 2021-09-14 | 2021-12-31 | 维沃移动通信有限公司 | Message prompting method and device and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111464905A (en) | Hearing enhancement method and system based on intelligent wearable device and wearable device | |
US20230352038A1 (en) | Voice activation detecting method of earphones, earphones and storage medium | |
CN107105367B (en) | Audio signal processing method and terminal | |
CN110493678B (en) | Earphone control method and device, earphone and storage medium | |
CN109493877B (en) | Voice enhancement method and device of hearing aid device | |
CN109195042B (en) | Low-power-consumption efficient noise reduction earphone and noise reduction system | |
US20120101819A1 (en) | System and a method for providing sound signals | |
WO2013107307A1 (en) | Noise reduction method and device | |
CN103236263A (en) | Method, system and mobile terminal for improving communicating quality | |
WO2012151997A1 (en) | Call voice recording method and device for mobile terminal and mobile terminal | |
TWI573133B (en) | Audio signal processing system and method | |
WO2023284402A1 (en) | Audio signal processing method, system, and apparatus, electronic device, and storage medium | |
US20240096343A1 (en) | Voice quality enhancement method and related device | |
CN105723459A (en) | Apparatus and method for improving a perception of sound signal | |
CN115482830A (en) | Speech enhancement method and related equipment | |
CN106686481A (en) | A kind of earphone noise reduction method and earphone | |
CN113949955A (en) | Noise reduction processing method and device, electronic equipment, earphone and storage medium | |
CN112312258B (en) | Intelligent earphone with hearing protection and hearing compensation | |
CN111028838A (en) | Voice wake-up method, device and computer readable storage medium | |
CN114979880A (en) | Automatic acoustic switching | |
CN113038338A (en) | Noise reduction processing method and device | |
WO2021129196A1 (en) | Voice signal processing method and device | |
CN114710730B (en) | Volume prompt method, device, earphone and storage medium | |
CN115190212A (en) | Call noise reduction method, device, headset device and medium based on headset device | |
WO2012152008A1 (en) | Method and device for suppressing ambient noise |
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 |