WO2023087468A1 - Method and apparatus for controlling transparency mode of earphones, and earphone device and storage medium - Google Patents

Method and apparatus for controlling transparency mode of earphones, and earphone device and storage medium Download PDF

Info

Publication number
WO2023087468A1
WO2023087468A1 PCT/CN2021/139038 CN2021139038W WO2023087468A1 WO 2023087468 A1 WO2023087468 A1 WO 2023087468A1 CN 2021139038 W CN2021139038 W CN 2021139038W WO 2023087468 A1 WO2023087468 A1 WO 2023087468A1
Authority
WO
WIPO (PCT)
Prior art keywords
gain
signal
threshold
mode
earphone device
Prior art date
Application number
PCT/CN2021/139038
Other languages
French (fr)
Chinese (zh)
Inventor
曲征
Original Assignee
歌尔科技有限公司
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 歌尔科技有限公司 filed Critical 歌尔科技有限公司
Publication of WO2023087468A1 publication Critical patent/WO2023087468A1/en

Links

Images

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/02Circuits for transducers, loudspeakers or microphones for preventing acoustic reaction, i.e. acoustic oscillatory feedback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

A method and apparatus for controlling a transparency mode of earphones, and an earphone device and a storage medium. The method comprises: when an earphone device is in a transparency mode, acquiring a first signal which is played by a speaker and is picked up by a microphone, wherein the frequency of the first signal is beyond the audible sound frequency range of a user (S10); if the signal energy of the first signal, which is picked up, is less than or equal to a first energy threshold value, controlling the earphone device to perform gain processing in the transparency mode by using a gain value which is greater than or equal to a first gain threshold value (S20); and if the signal energy of the first signal, which is picked up, is greater than the first energy threshold value, controlling the earphone device to perform gain processing in the transparency mode by using a gain value which is less than a second gain threshold value, wherein the second gain threshold value is less than or equal to the first gain threshold value (S30). A squeaking sound caused by ears being covered can be prevented, and a poor transparency effect caused by a gain value being mistakenly adjusted due to a sudden loud external sound can also be avoided.

Description

耳机通透模式的控制方法、装置、耳机设备及存储介质Control method, device, earphone device and storage medium of earphone transparent mode
本申请要求于2021年11月18日提交中国专利局、申请号202111372479.8、申请名称为“耳机通透模式的控制方法、装置、耳机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on November 18, 2021, with application number 202111372479.8, and the application name is "control method, device, earphone device and storage medium for earphone transparent mode", the entire content of which Incorporated in this application by reference.
技术领域technical field
本申请涉及耳机技术领域,尤其涉及一种耳机通透模式的控制方法、装置、耳机设备及存储介质。The present application relates to the technical field of earphones, and in particular to a control method, device, earphone device and storage medium for a transparent mode of an earphone.
背景技术Background technique
通透模式是一种耳机常用技术,目的是使佩戴者能在不摘下耳机的状态下,听清楚环境声音。常用的做法是通过耳机外侧的麦克风拾取外部环境声音,将拾取到的麦克风信号进行增益处理(得到通透声音),再由耳机喇叭发出到人耳。目前,当用户用手捂住耳机时,因耳机佩戴泄露的原因导致喇叭播放的通透声音再次被麦克风拾取时,通透声音在链路中形成闭环,不停被增益处理就会产生啸叫。现有解决啸叫的方案是当监测到麦克风拾取到的外界环境信号超过一定阈值时,就将增益值减小。但该解决方案存在一个问题是当外界突然出现大声音如关门声时,会使得麦克风监测功能误触发,导致增益值被调小,用户会明显感觉到随着关门声出现,外界声音变闷了,用户体验差。Transparency mode is a common technology for earphones, the purpose is to enable the wearer to hear the ambient sound clearly without taking off the earphones. A common practice is to pick up the external ambient sound through the microphone on the outside of the earphone, perform gain processing on the picked up microphone signal (to obtain a transparent sound), and then emit it to the human ear through the earphone speaker. At present, when the user covers the earphone with his hand, the transparent sound played by the speaker is picked up by the microphone again due to the leakage of the earphone, and the transparent sound forms a closed loop in the link, and the continuous gain processing will produce howling . An existing solution to howling is to reduce the gain value when it is detected that the external environment signal picked up by the microphone exceeds a certain threshold. However, there is a problem with this solution that when there is a sudden loud sound such as the door closing sound, the microphone monitoring function will be triggered by mistake, resulting in the gain value being adjusted down, and the user will obviously feel that the outside sound becomes dull with the door closing sound. , poor user experience.
发明内容Contents of the invention
本申请的主要目的在于提供一种耳机通透模式的控制方法、装置、耳机设备及存储介质,旨在解决耳机通透模式下捂耳时的啸叫问题并避免因外界大声音造成误触。The main purpose of the present application is to provide a control method, device, earphone device and storage medium for earphone transparent mode, aiming to solve the problem of howling when earphones are covered in transparent mode and avoid false touches caused by external loud sounds.
为实现上述目的,本申请提供一种耳机通透模式的控制方法,所述方法应用于耳机设备,所述耳机设备包括扬声器和麦克风,所述耳机设备在处于通透模式时通过所述麦克风拾取外界环境信号并进行增益处理后通过所述扬声器播放,所述方法包括以下步骤:In order to achieve the above purpose, the present application provides a method for controlling the transparent mode of earphones, the method is applied to earphone equipment, the earphone equipment includes a speaker and a microphone, and the earphone equipment picks up through the microphone when it is in the transparent mode The external environment signal is played through the loudspeaker after gain processing, and the method includes the following steps:
当所述耳机设备处于所述通透模式时,获取通过所述扬声器播放并被所述麦克风拾取到的第一信号,所述第一信号的频率在用户听觉频率范围外;When the earphone device is in the transparent mode, obtain a first signal played through the speaker and picked up by the microphone, the frequency of the first signal is outside the user's hearing frequency range;
若拾取到的所述第一信号的信号能量小于或等于第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于第一增益阈值的增益值进行增益处理;If the picked-up signal energy of the first signal is less than or equal to a first energy threshold, controlling the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the see-through mode;
若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理,其中,所述第二增益阈值小于或等于所述第一增益阈值。If the picked-up signal energy of the first signal is greater than the first energy threshold, control the earphone device to perform gain processing with a gain value less than the second gain threshold in the see-through mode, wherein the The second gain threshold is less than or equal to the first gain threshold.
可选地,所述耳机设备在进入所述通透模式时采用的增益值大于或等于所述第一增益阈值,所述获取通过所述扬声器播放并被所述麦克风拾取到的第一信号的步骤之前,还包括:Optionally, the gain value adopted by the earphone device when entering the see-through mode is greater than or equal to the first gain threshold, and the acquiring the first signal played through the speaker and picked up by the microphone Before step, also include:
当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值大于或等于所述第一增益阈值时,获取当前所述麦克风拾取到的第一外界环境信号;When the earphone device is in the transparent mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold, acquire a first external environment signal currently picked up by the microphone;
若所述第一外界环境信号的信号能量大于第二能量阈值,则通过所述扬声器播放所述第一信号。If the signal energy of the first external environment signal is greater than a second energy threshold, the first signal is played through the speaker.
可选地,所述若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理的步骤之后,还包括:Optionally, if the picked-up signal energy of the first signal is greater than the first energy threshold, controlling the earphone device to perform gain with a gain value less than the second gain threshold in the see-through mode After the processing steps, also include:
当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,通过所述扬声器播放第二信号,并通过所述麦克风拾取所述第二信号,所述第二信号的频率在用户听觉频率范围外;When the earphone device is in the transparent mode and the gain value adopted by the earphone device is less than the second gain threshold, play a second signal through the speaker, and pick up the second signal through the microphone, The frequency of the second signal is outside the user's hearing frequency range;
若拾取到的所述第二信号的信号能量小于或等于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;If the picked-up signal energy of the second signal is less than or equal to the first energy threshold, controlling the earphone device to perform gain with a gain value greater than or equal to the first gain threshold in the transparent mode deal with;
若拾取到的所述第二信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。If the picked-up signal energy of the second signal is greater than the first energy threshold, controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the see-through mode.
可选地,所述若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理的步骤之后,还包括:Optionally, if the picked-up signal energy of the first signal is greater than the first energy threshold, controlling the earphone device to perform gain with a gain value less than the second gain threshold in the see-through mode After the processing steps, also include:
当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,获取当前所述麦克风拾取到的第二外界环境信号;When the earphone device is in the transparent mode and the gain value adopted by the earphone device is smaller than the second gain threshold, acquire a second external environment signal currently picked up by the microphone;
若所述第二外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;If the signal energy of the second external environment signal is less than or equal to the second energy threshold, control the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the transparent mode ;
若所述第二外界环境信号的信号能量大于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。If the signal energy of the second external environment signal is greater than the second energy threshold, controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the see-through mode.
可选地,所述当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值大于或等于所述第一增益阈值时,获取当前所述麦克风拾取到的第一外界环境信号的步骤之后,还包括:Optionally, when the earphone device is in the see-through mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold, acquiring the first external environment signal currently picked up by the microphone After the steps, also include:
若所述第一外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理。If the signal energy of the first external environment signal is less than or equal to the second energy threshold, control the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the transparent mode .
可选地,所述若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理的步骤包括:Optionally, if the picked-up signal energy of the first signal is greater than the first energy threshold, controlling the earphone device to perform gain with a gain value less than the second gain threshold in the see-through mode The processing steps include:
若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则检测所述耳机设备当前在所述通透模式下采用的增益值是否小于第二增益阈值;If the picked-up signal energy of the first signal is greater than the first energy threshold, detecting whether the gain value currently used by the earphone device in the see-through mode is less than a second gain threshold;
若所述耳机设备当前在所述通透模式下采用的增益值小于所述第二增益阈值,则保持所述耳机设备当前在所述通透模式下采用的增益值不变;If the gain value currently used by the earphone device in the see-through mode is smaller than the second gain threshold, keep the gain value currently used by the earphone device in the see-through mode unchanged;
若所述耳机设备当前在所述通透模式下采用的增益值大于或等于所述第二增益阈值,则将所述耳机设备当前在所述通透模式下采用的增益值按照预设步进减小至小于所述第二增益阈值。If the gain value currently used by the earphone device in the see-through mode is greater than or equal to the second gain threshold, the gain value currently used by the earphone device in the see-through mode is stepped according to a preset step decreases to less than the second gain threshold.
可选地,所述获取通过所述扬声器播放并被所述麦克风拾取到的第一信号的步骤包括:Optionally, the step of acquiring the first signal played through the speaker and picked up by the microphone includes:
获取所述麦克风拾取到的声音信号;obtaining the sound signal picked up by the microphone;
对所述声音信号进行滤波得到通过所述扬声器播放并被所述麦克风拾取到的第一信号。The sound signal is filtered to obtain a first signal played through the speaker and picked up by the microphone.
为实现上述目的,本申请还提供一种耳机通透模式的控制装置,所述装置部署于耳机设备,所述耳机设备包括扬声器和麦克风,所述耳机设备在处于通透模式时通过所述麦克风拾取外界环境信号并进行增益处理后通过所述扬声器播放,所述装置包括:In order to achieve the above purpose, the present application also provides a control device for earphone see-through mode, the device is deployed in the earphone device, the earphone device includes a speaker and a microphone, and the earphone device passes through the microphone when it is in the see-through mode After picking up the external environment signal and performing gain processing, it is played through the speaker, and the device includes:
获取模块,用于当所述耳机设备处于所述通透模式时,获取通过所述扬声器播放并被所述麦克风拾取到的第一信号,所述第一信号的频率在用户听觉频率范围外;An acquisition module, configured to acquire a first signal played through the speaker and picked up by the microphone when the earphone device is in the see-through mode, the frequency of the first signal is outside the user's hearing frequency range;
第一控制模块,用于若拾取到的所述第一信号的信号能量小于或等于第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于第一增益阈值的增益值进行增益处理;A first control module, configured to control the headphone device to adopt a gain greater than or equal to a first gain threshold in the see-through mode if the signal energy of the picked-up first signal is less than or equal to a first energy threshold value for gain processing;
第二控制模块,用于若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理,其中,所述第二增益阈值小于或等于所述第一增益阈值。The second control module is configured to control the headphone device to use a gain value less than the second gain threshold in the transparent mode to perform the operation if the picked-up signal energy of the first signal is greater than the first energy threshold Gain processing, wherein the second gain threshold is less than or equal to the first gain threshold.
为实现上述目的,本申请还提供一种耳机设备,所述耳机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机通透模式的控制程序,所述耳机通透模式的控制程序被所述处理器执行时实现如上所述的耳机通透模式的控制方法的步骤。In order to achieve the above purpose, the present application also provides an earphone device, which includes a memory, a processor, and a control program for earphone pass-through mode stored on the memory and operable on the processor. When the control program of the earphone see-through mode is executed by the processor, the steps of the above-mentioned control method for the earphone see-through mode are realized.
此外,为实现上述目的,本申请还提出一种计算机可读存储介质,所述计算机可读存储介质上存储有耳机通透模式的控制程序,所述耳机通透模式的控制程序被处理器执行时实现如上所述的耳机通透模式的控制方法的步骤。In addition, in order to achieve the above object, the present application also proposes a computer-readable storage medium, the computer-readable storage medium stores a control program for the earphone see-through mode, and the control program for the earphone see-through mode is executed by the processor The steps of the method for controlling the earphone see-through mode as described above are realized at the same time.
本申请中,通过在耳机设备处于通透模式时,获取通过耳机设备的扬声器播放并被麦克风拾取到的第一信号,第一信号的频率设置为在用户听觉频率范围之外,并当第一信号的信号能量小于或等于第一能量阈值时,控制耳机设备在通透模式下采用大于或等于第一增益阈值的增益值进行增益处理,当第一信号的信号能量大于第一能量阈值时,控制耳机设备在通透模式下采用小于第二增益阈值的增益值进行增益处理,第二增益阈值设置得小于或等于第一增益阈值。通过在通透模式下采用扬声器播放用户听不到的信号,并通过对麦克风拾取到的该信号的能量大小进行判断以确定用户是否捂耳,进而当用户捂耳时将增益值调小,当用户未捂耳时采用正常的增益值进行增益处理,既能够避免因捂耳造成的啸叫,又能够避免外界突然的大声音造成增益值误调而导致通透效果不佳,提高了用户对耳机通透模式的体验。In this application, by acquiring the first signal played by the speaker of the earphone device and picked up by the microphone when the earphone device is in the transparent mode, the frequency of the first signal is set to be outside the frequency range of the user's hearing, and when the first When the signal energy of the signal is less than or equal to the first energy threshold, control the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the transparent mode; when the signal energy of the first signal is greater than the first energy threshold, The headphone device is controlled to perform gain processing with a gain value less than the second gain threshold in the transparent mode, and the second gain threshold is set to be less than or equal to the first gain threshold. In the transparent mode, the speaker is used to play the signal that the user cannot hear, and the energy of the signal picked up by the microphone is judged to determine whether the user covers the ear, and then when the user covers the ear, the gain value is adjusted to a small value. When the user does not cover the ears, the normal gain value is used for gain processing, which can not only avoid the howling caused by covering the ears, but also avoid the misadjustment of the gain value caused by the sudden loud sound from the outside, resulting in poor transparency, which improves the user's awareness of The experience of earphone transparency mode.
附图说明Description of drawings
图1为本申请耳机通透模式的控制方法第一实施例的流程示意图;FIG. 1 is a schematic flowchart of the first embodiment of the control method of the earphone see-through mode of the present application;
图2为本申请实施例涉及的一种耳机通透模式的控制系统框架示意图;FIG. 2 is a schematic diagram of a control system framework of a headphone see-through mode according to an embodiment of the present application;
图3为本申请实施例涉及的一种耳机通透模式的控制流程示意图;FIG. 3 is a schematic diagram of a control flow of an earphone see-through mode according to an embodiment of the present application;
图4为本申请耳机通透模式的控制装置较佳实施例的功能模块示意图。FIG. 4 is a schematic diagram of functional modules of a preferred embodiment of a control device for earphone see-through mode of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.
参照图1,图1为本申请耳机通透模式的控制方法第一实施例的流程示意图。Referring to FIG. 1 , FIG. 1 is a schematic flow chart of a first embodiment of a method for controlling an earphone see-through mode of the present application.
本申请实施例提供了耳机通透模式的控制方法的实施例,需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。本申请耳机通透模式的控制方法应用于耳机设备,耳机设备可包括一只或两只耳机,由于两只耳机的耳机通透模式的控制方法相同,以下为便于描述,默认以耳机设备包括一只耳机为例进行实施例阐述。本实施例中,耳机通透模式的控制方法包括:The embodiment of this application provides an embodiment of the control method of the headphone see-through mode. It should be noted that although the logic sequence is shown in the flow chart, in some cases, all the steps may be executed in a different order than here. steps shown or described. The control method of the earphone transparent mode in this application is applied to the earphone device. The earphone device can include one or two earphones. Since the control method of the earphone transparent mode of the two earphones is the same, the following is for the convenience of description. By default, the earphone device includes one Only earphones are taken as an example to describe the embodiment. In this embodiment, the control method of the headset transparent mode includes:
步骤S10,当所述耳机设备处于所述通透模式时,获取通过所述扬声器播放并被所述麦克风拾取到的第一信号,所述第一信号的频率在用户听觉频率范围外;Step S10, when the earphone device is in the see-through mode, acquire a first signal played through the speaker and picked up by the microphone, the frequency of the first signal is outside the user's hearing frequency range;
耳机设备可包括扬声器和麦克风,麦克风设置在耳机设备靠近外部环境的一侧,用以拾取外界环境信号。耳机设备中设置通透模式,在处于通透模式时,耳机设备可以通过麦克风拾取外界环境信号,并对外界环境信号进行增益处理,之后再通过扬声器播放,使得用户佩戴耳机时,也不会因为耳机堵塞耳道而影响听到的外界声音。增益处理一般采用一个通透滤波器进行增益处理,具体方式可以在此并不做限制。The earphone device may include a speaker and a microphone, and the microphone is arranged on a side of the earphone device close to the external environment to pick up external environmental signals. Set the transparent mode in the earphone device. In the transparent mode, the earphone device can pick up the external environment signal through the microphone, and perform gain processing on the external environment signal, and then play it through the speaker, so that when the user wears the earphone, it will not be caused by Headphones block the ear canal and affect the hearing of external sounds. Gain processing generally uses a transparent filter to perform gain processing, and the specific method may not be limited here.
为解决在通透模式下因捂耳造成的啸叫问题,并避免因克服啸叫问题而导致外界有大声音时会发生误触导致用户对通透模式的体验效果不佳,在本实施例中,提出在耳机设备处于通透模式时,由扬声器播放一段特定频率的声音信号(以下称为第一信号),并由麦克风拾取该第一信号,通过对拾取到的第一信号的能量大小进行判断,来准确确定用户是否捂耳,进而对增益值进行准确地调节,避免啸叫的同时,又避免外界的大声音误触捂耳时的增益调节。其中,特定的第一信号是频率在用户听觉频率范围之外的信号,也即,耳机设备的用户听不到扬声器播放的该第一信号。每个人的听觉频率范围可能有差异,因此在 具体实施方式中,第一信号的频率可以根据经验选取以适应绝大部分的用户,或者针对特定用户进行设置,例如,通过扬声器播放不同频率的声音信号测试特定用户的听觉频率范围,根据测得的听觉频率范围来选取第一信号的频率。In order to solve the howling problem caused by covering the ears in the transparent mode, and to avoid false touches caused by overcoming the howling problem when there is a loud sound from the outside, resulting in poor experience for the user in the transparent mode, in this embodiment In , it is proposed that when the earphone device is in the transparent mode, a sound signal of a specific frequency (hereinafter referred to as the first signal) is played by the speaker, and the first signal is picked up by the microphone, and the energy level of the first signal picked up is Make judgments to accurately determine whether the user covers the ears, and then accurately adjust the gain value to avoid howling while avoiding the gain adjustment when the external loud voice accidentally touches the ears. Wherein, the specific first signal is a signal with a frequency outside the user's hearing frequency range, that is, the user of the earphone device cannot hear the first signal played by the speaker. Everyone's hearing frequency range may be different, so in a specific embodiment, the frequency of the first signal can be selected empirically to suit most users, or set for specific users, for example, playing sounds of different frequencies through speakers The signal tests the auditory frequency range of the specific user, and the frequency of the first signal is selected according to the measured auditory frequency range.
耳机设备处于通透模式时,通过扬声器播放第一信号的时机在本实施例中并不做限制。例如,在一实施方式中,耳机设备可以在处于通透模式时,不间断地或定时地通过扬声器播放第一信号,相应地,通过麦克风不间断地或定时地拾取第一信号;其中,当扬声器定时播放第一信号时,可以每隔一段时间播放一次第一信号,每次播放一定时长,相邻两个第一信号之间的时间间隔可以设置得较短,以避免在中间未播放的时段用户捂耳造成啸叫。在在另一实施方式中,耳机设备可以在处于通透模式时,检测到麦克风拾取到的外界环境信号的能量值大于一阈值时,才通过扬声器播放第一信号;其中,当外界环境信号的能量值小于该阈值时,增益值可以保持在通透模式的正常水平。When the earphone device is in the see-through mode, the timing of playing the first signal through the loudspeaker is not limited in this embodiment. For example, in one embodiment, when the earphone device is in the see-through mode, the first signal can be continuously or regularly played through the speaker, and correspondingly, the microphone can be used to continuously or regularly pick up the first signal; wherein, when When the speaker plays the first signal at regular intervals, the first signal can be played at regular intervals, each time for a certain duration, and the time interval between two adjacent first signals can be set to be shorter to avoid unplayed During the period of time, the user covers his ears and causes howling. In another embodiment, the earphone device may only play the first signal through the speaker when it detects that the energy value of the external environment signal picked up by the microphone is greater than a threshold when it is in the see-through mode; When the energy value is less than this threshold, the gain value can remain at the normal level of the transparent mode.
需要说明的是,当扬声器没有播放第一信号时,麦克风拾取到的声音信号仅包括外界环境信号;当扬声器播放第一信号时,麦克风拾取到的声音信号包括第一信号和外界环境信号。当扬声器播放第一信号时,由于第一信号是已知的,所以耳机设备可以从麦克风拾取到的声音信号中提取得到第一信号。It should be noted that when the speaker does not play the first signal, the sound signal picked up by the microphone includes only the external environment signal; when the speaker plays the first signal, the sound signal picked up by the microphone includes the first signal and the external environment signal. When the speaker plays the first signal, since the first signal is known, the earphone device can extract the first signal from the sound signal picked up by the microphone.
进一步地,在一实施方式中,所述步骤S10中获取通过所述扬声器播放并被所述麦克风拾取到的第一信号的步骤包括:Further, in an embodiment, the step of obtaining the first signal played through the speaker and picked up by the microphone in the step S10 includes:
步骤S101,获取所述麦克风拾取到的声音信号;Step S101, acquiring the sound signal picked up by the microphone;
步骤S102,对所述声音信号进行滤波得到通过所述扬声器播放并被所述麦克风拾取到的第一信号。Step S102, filtering the sound signal to obtain a first signal played through the speaker and picked up by the microphone.
耳机设备可通过扬声器播放第一信号,获取麦克风拾取到的声音信号,通过对该声音信号进行滤波,得到麦克风拾取到的第一信号。其中,滤波具体可以是根据第一信号的频率设置滤波器,采用滤波器滤波得到第一信号。例如,当第一信号的频率较高时,可以设置高通滤波器进行滤波,当第一信号的频率较低时,可以设置低通滤波器进行滤波,或者,也可以设置带通滤波器进行滤波,具体在本实施例中不做限制。The earphone device can play the first signal through the loudspeaker, obtain the sound signal picked up by the microphone, and filter the sound signal to obtain the first signal picked up by the microphone. Wherein, the filtering may specifically be setting a filter according to the frequency of the first signal, and using the filter to filter to obtain the first signal. For example, when the frequency of the first signal is high, a high-pass filter can be set for filtering; when the frequency of the first signal is low, a low-pass filter can be set for filtering, or a band-pass filter can also be set for filtering , which is not specifically limited in this embodiment.
步骤S20,若拾取到的所述第一信号的信号能量小于或等于第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于第一增益阈值的增益值进行增益处理;Step S20, if the signal energy of the picked-up first signal is less than or equal to the first energy threshold, control the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the see-through mode ;
通过麦克风拾取到第一信号后,可以判断拾取到的第一信号的信号能量是否大于第一能量阈值。其中,第一能量阈值可以通过测试进行设置,使得当拾取到的第一信号的信号 能量大于第一能量阈值时表示用户用手捂耳了,当拾取到的第一信号的信号能量小于或等于第一能量阈值时表示用户没有捂耳。其原理时,当用户佩戴耳机用手捂住耳朵并发生佩戴泄露时,被麦克风拾取到的第一信号的信号能量会大于用户没有捂住耳朵时麦克风能拾取到的第一信号的信号能量,所以通过将第一信号的信号能量与设置的第一能量阈值进行比较,能够判断用户是否捂住耳朵。After the first signal is picked up by the microphone, it may be determined whether the signal energy of the picked up first signal is greater than a first energy threshold. Among them, the first energy threshold can be set through testing, so that when the signal energy of the first signal picked up is greater than the first energy threshold, it means that the user has covered his ears with his hand; when the signal energy of the first signal picked up is less than or equal to When the first energy threshold is reached, it means that the user does not cover his ears. The principle is that when the user wears the earphones and covers the ears with his hands and wear leakage occurs, the signal energy of the first signal picked up by the microphone will be greater than the signal energy of the first signal picked up by the microphone when the user does not cover the ears. Therefore, by comparing the signal energy of the first signal with the set first energy threshold, it can be determined whether the user covers the ears.
若拾取到的第一信号的信号能量小于或等于第一能量阈值,则说明用户没有捂住耳朵,此时,可以控制耳机设备在通透模式下采用大于或等于第一增益阈值的增益值进行增益处理。其中,第一增益阈值可以根据经验进行设置,该第一增益阈值是在用户没有捂耳时,能够达到外界声音的通透效果,且不会发生啸叫的增益值,在用户捂耳时,以该第一增益阈值进行增益处理则可能会发生啸叫。那么,当外界产生突然的较大声音但用户没有捂住耳朵时,由于通过对拾取到的第一信号的信号能量进行判断能够确定用户没有捂住耳朵,进而仍然以正常的增益值进行增益处理,使得用户能够听到更加真实的外界声音,也即通透效果更加真实。If the signal energy of the picked-up first signal is less than or equal to the first energy threshold, it means that the user has not covered the ears. At this time, the earphone device can be controlled to use a gain value greater than or equal to the first gain threshold in the transparent mode. Gain processing. Wherein, the first gain threshold can be set according to experience. The first gain threshold is a gain value that can achieve the transparent effect of external sounds without howling when the user does not cover the ears. When the user covers the ears, Howling may occur if gain processing is performed with the first gain threshold. Then, when there is a sudden loud sound outside but the user does not cover the ears, it can be determined that the user has not covered the ears by judging the signal energy of the picked-up first signal, and then the gain processing is still performed with the normal gain value , so that the user can hear more real external sounds, that is, the transparent effect is more real.
控制耳机设备在通透模式下采用大于或等于第一增益阈值的增益值进行增益处理的具体实施细节在本实施例中并不做限制。例如,在一实施方式中,耳机设备可以在检测到拾取到的第一信号的信号能量小于或等于第一能量阈值时,先判断当前采用的增益值是否大于或等于第一增益阈值;若大于或等于第一增益阈值,则耳机设备可以不做调整,保持当前的增益值即可;若小于第一增益阈值,则耳机设备可以直接将增益值设置为一个大于或等于第一增益阈值的值,或者,也可以按照一定的步进在当前增益值基础上进行增加,经过至少一步的调整,使得增益值达到大于或等于第一增益阈值的水平。又如,在另一实施方式中,耳机设备可以在检测到拾取到的第一信号的信号能量小于或等于第一能量阈值时,直接将增益值设置为一个大于或等于第一增益阈值的值。The specific implementation details of controlling the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the pass-through mode are not limited in this embodiment. For example, in one embodiment, when the earphone device detects that the signal energy of the first signal picked up is less than or equal to the first energy threshold, it may first determine whether the currently used gain value is greater than or equal to the first gain threshold; if greater than or equal to the first gain threshold, the earphone device does not need to adjust, just keep the current gain value; if it is less than the first gain threshold, the earphone device can directly set the gain value to a value greater than or equal to the first gain threshold , or, it may also be increased based on the current gain value in a certain step, and after at least one step of adjustment, the gain value reaches a level greater than or equal to the first gain threshold. As another example, in another implementation manner, the earphone device may directly set the gain value to a value greater than or equal to the first gain threshold when it detects that the signal energy of the picked-up first signal is less than or equal to the first energy threshold .
步骤S30,若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理,其中,所述第二增益阈值小于或等于所述第一增益阈值。Step S30, if the picked-up signal energy of the first signal is greater than the first energy threshold, control the earphone device to perform gain processing with a gain value less than the second gain threshold in the see-through mode, wherein , the second gain threshold is less than or equal to the first gain threshold.
若拾取到的第一信号的信号能量大于第一能量阈值,则说明用户捂住了耳朵,此时,为避免发生啸叫,可以控制耳机设备在通透模式下采用小于第二增益阈值的增益值进行增益处理。其中,第二增益阈值可以根据经验进行设置,该第二增益阈值是在用户捂耳时,不会因耳机佩戴泄露造成啸叫的增益值,根据具体情况可以设置得小于或等于第一增益阈 值。If the signal energy of the first signal picked up is greater than the first energy threshold, it means that the user has covered his ears. At this time, in order to avoid howling, the earphone device can be controlled to use a gain less than the second gain threshold in the transparent mode. value for gain processing. Wherein, the second gain threshold can be set according to experience. The second gain threshold is a gain value that will not cause howling due to earphone leakage when the user covers his ears. According to specific circumstances, it can be set to be less than or equal to the first gain threshold. .
进一步地,在一实施方式中,耳机设备也可以在检测到拾取到的第一信号的信号能量大于第一能量阈值时,先检测麦克风拾取到的外界环境信号的能量值是否大于第二能量阈值,若大于第二能量阈值,则控制耳机设备在通透模式下采用小于第二增益阈值的增益值进行增益处理,若大于或等于第二能量阈值,则可以控制耳机设备在通透模式下采用大于或等于第一增益阈值的增益值进行增益处理。其中,第二能量阈值可以根据需要进行设置,使得当麦克风拾取到的外界环境信号的能量值小于或等于第二能量阈值时,并不会发生啸叫,而当麦克风拾取到的外界环境信号的能量值大于第二能量阈值时,持续一段时间可能会发生啸叫。也即,若用户捂耳了,但外界环境信号的信号能量大小还没有达到会发生啸叫的程度,则可以仍然保持正常的增益水平,当外界环境信号的信号能量大小达到要发生啸叫的程度时,才将增益值调小,以避免发生啸叫。Further, in an embodiment, the earphone device may first detect whether the energy value of the external environment signal picked up by the microphone is greater than the second energy threshold when detecting that the signal energy of the first signal picked up is greater than the first energy threshold. , if it is greater than the second energy threshold, the headphone device is controlled to use a gain value less than the second gain threshold for gain processing in the transparent mode; if it is greater than or equal to the second energy threshold, the headphone device can be controlled to adopt the Gain processing is performed on gain values greater than or equal to the first gain threshold. Wherein, the second energy threshold can be set as required, so that when the energy value of the external environment signal picked up by the microphone is less than or equal to the second energy threshold, no howling will occur, and when the energy value of the external environment signal picked up by the microphone When the energy value is greater than the second energy threshold, howling may occur for a period of time. That is, if the user covers his ears, but the signal energy of the external environment signal has not reached the level where howling will occur, the normal gain level can still be maintained. When the signal energy of the external environment signal reaches the level where howling will occur When the level is high, the gain value should be adjusted to a small value to avoid howling.
控制耳机设备在通透模式下采用大于或等于第一增益阈值的增益值进行增益处理的具体实施细节在本实施例中并不做限制。例如,在一实施方式中,耳机设备可以在检测到拾取到的第一信号的信号能量大于第一能量阈值时,直接将增益值设置为一个小于第二增益阈值的值。The specific implementation details of controlling the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the pass-through mode are not limited in this embodiment. For example, in an implementation manner, the earphone device may directly set the gain value to a value smaller than the second gain threshold when it detects that the signal energy of the picked-up first signal is greater than the first energy threshold.
进一步地,在另一实施方式中,所述步骤S30包括:Further, in another implementation manner, the step S30 includes:
步骤S301,若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则检测所述耳机设备当前在所述通透模式下采用的增益值是否小于第二增益阈值;Step S301, if the picked-up signal energy of the first signal is greater than the first energy threshold, then detecting whether the gain value currently used by the earphone device in the see-through mode is less than a second gain threshold;
步骤S302,若所述耳机设备当前在所述通透模式下采用的增益值小于所述第二增益阈值,则保持所述耳机设备当前在所述通透模式下采用的增益值不变;Step S302, if the gain value currently used by the earphone device in the see-through mode is smaller than the second gain threshold, keep the gain value currently used by the earphone device in the see-through mode unchanged;
步骤S303,若所述耳机设备当前在所述通透模式下采用的增益值大于或等于所述第二增益阈值,则将所述耳机设备当前在所述通透模式下采用的增益值按照预设步进减小至小于所述第二增益阈值。Step S303, if the gain value currently used by the earphone device in the see-through mode is greater than or equal to the second gain threshold, set the gain value currently used by the earphone device in the see-through mode according to a preset Let step decrease to less than the second gain threshold.
耳机设备可以在检测到拾取到的第一信号的信号能量大于第一能量阈值时,先判断当前采用的增益值是否小于第二增益阈值。若当前采用的增益值小于第二增益阈值,则耳机设备可以不做调整,保持当前的增益值即可;若当前采用的增益值大于或等于第二增益阈值,则耳机设备可以直接将增益值设置为一个小于第二增益阈值的值,或者,也可以按照预设步进在当前增益值基础上进行减小,经过至少一步的调整,使得增益值达到小于第二增益阈值的水平。其中,预设步进可以根据需要进行设置,在本实施例中并不做限制。When the earphone device detects that the signal energy of the picked-up first signal is greater than the first energy threshold, it may first determine whether the currently used gain value is less than the second gain threshold. If the currently used gain value is less than the second gain threshold, the earphone device does not need to be adjusted, just keep the current gain value; if the currently used gain value is greater than or equal to the second gain threshold, the earphone device can directly adjust the gain value It is set to a value smaller than the second gain threshold, or it can also be reduced based on the current gain value in preset steps, and after at least one step of adjustment, the gain value reaches a level smaller than the second gain threshold. Wherein, the preset step can be set as required, which is not limited in this embodiment.
在本实施例中,通过在耳机设备处于通透模式时,获取通过耳机设备的扬声器播放并被麦克风拾取到的第一信号,第一信号的频率设置为在用户听觉频率范围之外,并当第一信号的信号能量小于或等于第一能量阈值时,控制耳机设备在通透模式下采用大于或等于第一增益阈值的增益值进行增益处理,当第一信号的信号能量大于第一能量阈值时,控制耳机设备在通透模式下采用小于第二增益阈值的增益值进行增益处理,第二增益阈值设置得小于或等于第一增益阈值。通过在通透模式下采用扬声器播放用户听不到的信号,并通过对麦克风拾取到的该信号的能量大小进行判断以确定用户是否捂耳,进而当用户捂耳时将增益值调小,当用户未捂耳时采用正常的增益值进行增益处理,既能够避免因捂耳造成的啸叫,又能够避免外界突然的大声音造成增益值误调而导致通透效果不佳,提高了用户对耳机通透模式的体验。In this embodiment, by acquiring the first signal played by the speaker of the earphone device and picked up by the microphone when the earphone device is in the pass-through mode, the frequency of the first signal is set to be outside the frequency range of the user's hearing, and when When the signal energy of the first signal is less than or equal to the first energy threshold, control the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the transparent mode; when the signal energy of the first signal is greater than the first energy threshold , the earphone device is controlled to use a gain value less than the second gain threshold to perform gain processing in the transparent mode, and the second gain threshold is set to be less than or equal to the first gain threshold. In the transparent mode, the speaker is used to play the signal that the user cannot hear, and the energy of the signal picked up by the microphone is judged to determine whether the user covers the ear, and then when the user covers the ear, the gain value is adjusted to a small value. When the user does not cover the ears, the normal gain value is used for gain processing, which can not only avoid the howling caused by covering the ears, but also avoid the misadjustment of the gain value caused by the sudden loud sound from the outside, resulting in poor transparency, which improves the user's awareness of The experience of earphone transparency mode.
进一步地,基于上述第一实施例,提出本申请耳机通透模式的控制方法的第二实施例,在本实施例中,所述步骤S10中获取通过所述扬声器播放并被所述麦克风拾取到的第一信号的步骤之前,还包括:Further, based on the above-mentioned first embodiment, a second embodiment of the control method of the earphone see-through mode of the present application is proposed. In this embodiment, in the step S10, the acquisition is played through the speaker and picked up by the microphone. Before the first signal step, also include:
步骤S40,当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值大于或等于所述第一增益阈值时,获取当前所述麦克风拾取到的第一外界环境信号;Step S40, when the earphone device is in the transparent mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold, acquire the first external environment signal currently picked up by the microphone;
在本实施例中,为避免耳机设备一直发出第一信号造成耳机设备的资源消耗过多,可以在耳机设备麦克风拾取到的外界环境信号的信号能量大于第二能量阈值时,才通过扬声器播放第一信号。In this embodiment, in order to avoid excessive resource consumption of the earphone device caused by the earphone device sending out the first signal all the time, the first signal can be played through the speaker only when the signal energy of the external environment signal picked up by the earphone device microphone is greater than the second energy threshold. a signal.
具体地,耳机设备在进入通透模式时,默认采用的增益值可以大于或等于第一增益阈值,以保证通透模式的正常通透功能。之后,当耳机设备处于通透模式,且采用的增益值大于或等于第一增益阈值时,获取当前麦克风拾取到的外界环境信号(以下为便于区分称为第一外界环境信号)。需要说明的是,当耳机设备处于通透模式且采用的增益值大于或等于第一增益阈值时,耳机设备就会获取麦克风拾取的外界环境信号,以实时监测外界是否有大声音。Specifically, when the earphone device enters the transparency mode, the gain value adopted by default may be greater than or equal to the first gain threshold, so as to ensure the normal transparency function of the transparency mode. Afterwards, when the earphone device is in the transparent mode and the adopted gain value is greater than or equal to the first gain threshold, the external environment signal picked up by the current microphone (hereinafter referred to as the first external environment signal for convenience of distinction) is acquired. It should be noted that when the earphone device is in the transparent mode and the gain value adopted is greater than or equal to the first gain threshold, the earphone device will obtain the external environment signal picked up by the microphone to monitor whether there is loud sound outside in real time.
步骤S50,若所述第一外界环境信号的信号能量大于第二能量阈值,则通过所述扬声器播放所述第一信号。Step S50, playing the first signal through the speaker if the signal energy of the first external environment signal is greater than a second energy threshold.
在拾取到第一外界环境信号后,可以判断第一外界环境信号的信号能量是否大于第二能量阈值。若第一外界环境信号的信号能量大于第二能量阈值,说明若此时用户持续捂着 耳朵,将可能会引起啸叫,此时,耳机设备可以通过扬声器播放第一信号,并通过麦克风拾取第一信号,通过对拾取到的第一信号的信号能量大小进行判断,以确定此时用户是否捂耳;若确定用户捂耳,则说明是用户捂耳导致外界环境信号的信号能量较大,此时将增益值调小至低于第二增益阈值以避免啸叫;若确定用户没有捂耳,则说明是外界的自然的较大声音,此时,将增益值保持在第一增益阈值或以上水平,保证正常的通透功能。After picking up the first external environment signal, it may be determined whether the signal energy of the first external environment signal is greater than the second energy threshold. If the signal energy of the first external environment signal is greater than the second energy threshold, it means that if the user continues to cover his ears at this time, howling may be caused. At this time, the earphone device can play the first signal through the speaker, and pick up the second signal through the microphone. First signal, by judging the signal energy of the first signal picked up, it is determined whether the user is covering the ears at this time; At this time, reduce the gain value to be lower than the second gain threshold to avoid howling; if it is determined that the user does not cover his ears, it means that it is a natural loud sound from the outside world. At this time, keep the gain value at the first gain threshold or above Level, to ensure normal permeability function.
当在耳机设备处于通透模式且采用的增益值小于第二增益阈值时,耳机设备可以在满足一定条件时,将增益值恢复至大于或等于第二增益阈值的水平,该条件可以是通过一定方法检测到用户没有捂耳时恢复增益值,或者可以是检测到外界环境信号的信号能量低于第二能量阈值,在本实施例中此并不做限制。When the earphone device is in the transparent mode and the gain value adopted is less than the second gain threshold, the earphone device may restore the gain value to a level greater than or equal to the second gain threshold when a certain condition is met. The method restores the gain value when it is detected that the user does not cover the ears, or it may be detected that the signal energy of the external environment signal is lower than the second energy threshold, which is not limited in this embodiment.
进一步地,在一实施方式中,所述步骤S30之后,还包括:Further, in an implementation manner, after the step S30, it also includes:
步骤A10,当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,通过所述扬声器播放第二信号,并通过所述麦克风拾取所述第二信号,所述第二信号的频率在用户听觉频率范围外;Step A10, when the earphone device is in the transparent mode and the gain value adopted by the earphone device is less than the second gain threshold, play a second signal through the speaker, and pick up the first signal through the microphone. two signals, the frequency of the second signal is outside the user's hearing frequency range;
当耳机设备采用的增益值小于第二增益阈值时,耳机设备可以通过扬声器播放第二信号。第二信号可以是与第一信号不同的信号,也可以是相同的信号,但第二信号与第一信号的频率都在用户听觉频率范围之外,也即,通过对麦克风拾取到的第二信号的能量大小进行判断,也能够确定用户是否捂耳。When the gain value adopted by the earphone device is smaller than the second gain threshold, the earphone device can play the second signal through the speaker. The second signal may be a different signal from the first signal, or the same signal, but the frequencies of the second signal and the first signal are outside the frequency range of the user's hearing, that is, the second signal picked up by the microphone Judging the energy level of the signal can also determine whether the user covers his ears.
需要说明的是,当耳机设备处于通透模式且采用的增益值小于第二增益阈值时,耳机设备就会通过扬声器播放第二信号,以实时确定用户是否捂耳。It should be noted that when the earphone device is in the see-through mode and the gain value adopted is less than the second gain threshold, the earphone device will play the second signal through the loudspeaker to determine whether the user covers the ears in real time.
步骤A20,若拾取到的所述第二信号的信号能量小于或等于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;Step A20, if the picked-up signal energy of the second signal is less than or equal to the first energy threshold, controlling the earphone device to adopt a gain greater than or equal to the first gain threshold in the see-through mode value for gain processing;
通过麦克风拾取到第二信号后,可以判断第二信号的信号能量是否小于或等于第一能量阈值。与第一信号类似地,当第二信号的信号能量小于或等于第一能量阈值时,说明用户没有捂耳,此时,可以控制耳机设备在通透模式下采用大于或等于第一增益阈值的增益值进行增益处理,也即,将增益值恢复至正常水平,以保证正常的通透功能。此时,由于之前增益值是小于第二增益阈值的,所以在控制耳机设备采用大于或等于第一增益阈值的增益值进行增益处理时,具体可以是直接将增益值设置为一个大于或等于第一增益阈值的值,也可以是在当前增益值的基础上按照一定的步进进行增加,经过至少一次的调整使得 增益值达到大于或等于第一增益阈值的水平。After the second signal is picked up by the microphone, it may be determined whether the signal energy of the second signal is less than or equal to the first energy threshold. Similar to the first signal, when the signal energy of the second signal is less than or equal to the first energy threshold, it means that the user does not cover the ears. At this time, the earphone device can be controlled to adopt a gain greater than or equal to the first gain threshold Gain processing is performed on the gain value, that is, the gain value is restored to a normal level, so as to ensure a normal see-through function. At this time, since the previous gain value was smaller than the second gain threshold, when controlling the earphone device to use a gain value greater than or equal to the first gain threshold for gain processing, specifically, the gain value can be directly set to a value greater than or equal to the second gain threshold. The value of a gain threshold may also be increased in certain steps based on the current gain value, and after at least one adjustment, the gain value reaches a level greater than or equal to the first gain threshold.
步骤A30,若拾取到的所述第二信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。Step A30, if the picked-up signal energy of the second signal is greater than the first energy threshold, control the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the see-through mode .
当第二信号的信号能量大于第一能量阈值时,说明用户仍然在捂耳,此时,依然控制耳机设备采用小于第二增益阈值的增益值进行增益处理,以避免啸叫。由于之前增益值是小于第二增益阈值的,所以在控制耳机设备采用小于第二增益阈值的增益值进行增益处理时,具体可以是直接将增益值设置为小于第二增益阈值的值,也可以保持当前的增益值不变。When the signal energy of the second signal is greater than the first energy threshold, it means that the user is still covering his ears. At this time, the earphone device is still controlled to perform gain processing with a gain value smaller than the second gain threshold to avoid howling. Since the previous gain value was smaller than the second gain threshold, when controlling the earphone device to use a gain value smaller than the second gain threshold for gain processing, specifically, the gain value can be directly set to a value smaller than the second gain threshold, or Keep the current buff value unchanged.
若在检测到麦克风拾取到的外界环境信号的信号能量大于一定阈值就将增益值减小,小于或等于阈值就将增益值恢复,那么可能会导致在用户持续捂耳时,因为较大的增益值而造成啸叫,调小增益值后使得外界环境信号能量小于阈值,将增益值恢复,之后又因为较大的增益值而造成啸叫,就会出现用户捂着耳朵时,耳机的啸叫声出现后消失然后又出现并再次消失,持续循环,导致用户体验差。而本实施例中,由于耳机设备在检测到捂耳时将增益值调低,直到检测到没有捂耳后才将增益值恢复,避免了啸叫忽而出现忽而消失的情况。If it is detected that the signal energy of the external environment signal picked up by the microphone is greater than a certain threshold, the gain value will be reduced, and the gain value will be restored if it is less than or equal to the threshold value. When the gain value is reduced, the external environment signal energy is less than the threshold value, and the gain value is restored, and then the howling is caused by a larger gain value. When the user covers his ears, the earphone howling will appear. The sound appears and then disappears, then appears and disappears again, in a continuous loop, resulting in poor user experience. However, in this embodiment, since the earphone device lowers the gain value when it detects that the ears are covered, the gain value is not restored until it is detected that the ears are not covered, so that the situation where howling suddenly appears and disappears suddenly is avoided.
进一步地,在一实施方式中,所述步骤S30之后,还包括:Further, in an implementation manner, after the step S30, it also includes:
步骤B10,当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,获取当前所述麦克风拾取到的第二外界环境信号;Step B10, when the earphone device is in the transparent mode and the gain value adopted by the earphone device is smaller than the second gain threshold, acquire the second external environment signal currently picked up by the microphone;
当耳机设备处于通透模式且进行增益处理时采用的增益值小于第二增益阈值时,耳机设备获取当前麦克风拾取到的外界环境信号(以下为便于区分称为第二外界环境信号)。需要说明的是,当耳机设备处于通透模式且采用的增益值小于第二增益阈值时,耳机设备就会获取麦克风拾取的外界环境信号,以实时监测外界是已没有大声音。When the earphone device is in the transparent mode and the gain value used for gain processing is less than the second gain threshold, the earphone device obtains the external environment signal picked up by the current microphone (hereinafter referred to as the second external environment signal for easy distinction). It should be noted that when the earphone device is in the transparent mode and the gain value adopted is less than the second gain threshold, the earphone device will obtain the external environment signal picked up by the microphone to monitor in real time whether there is no loud sound outside.
步骤B20,若所述第二外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;Step B20, if the signal energy of the second external environment signal is less than or equal to the second energy threshold, controlling the earphone device to adopt a gain value greater than or equal to the first gain threshold in the see-through mode Perform gain processing;
在拾取到第二外界环境信号后,可以判断第二外界环境信号的信号能量是否大于第二能量阈值。若第二外界环境信号的信号能量小于或等于第二能量阈值,说明此时不会发生啸叫;此时,可以控制耳机设备在通透模式下采用大于或等于第一增益阈值的增益值进行增益处理,以保证正常的通透功能。After picking up the second external environment signal, it may be determined whether the signal energy of the second external environment signal is greater than a second energy threshold. If the signal energy of the second external environment signal is less than or equal to the second energy threshold, it means that howling will not occur at this time; at this time, the earphone device can be controlled to use a gain value greater than or equal to the first gain threshold in the transparent mode. Gain processing to ensure normal transparent function.
由于之前增益值是小于第二增益阈值的,所以在控制耳机设备采用大于或等于第一增益阈值的增益值进行增益处理时,具体可以是直接将增益值设置为一个大于或等于第一增益阈值的值,也可以是在当前增益值的基础上按照一定的步进进行增加,经过至少一次的调整使得增益值达到大于或等于第一增益阈值的水平。Since the previous gain value was smaller than the second gain threshold, when controlling the headphone device to use a gain value greater than or equal to the first gain threshold for gain processing, specifically, the gain value can be directly set to a value greater than or equal to the first gain threshold The value of , may also be increased in certain steps based on the current gain value, and after at least one adjustment, the gain value reaches a level greater than or equal to the first gain threshold.
步骤B30,若所述第二外界环境信号的信号能量大于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。Step B30, if the signal energy of the second external environment signal is greater than the second energy threshold, control the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the see-through mode.
若第二外界环境信号的信号能量大于第二能量阈值,说明若此时用户持续捂着耳朵,将可能会引起啸叫,此时,依然控制耳机设备采用小于第二增益阈值的增益值进行增益处理,以避免啸叫。由于之前增益值是小于第二增益阈值的,所以在控制耳机设备采用小于第二增益阈值的增益值进行增益处理时,具体可以是直接将增益值设置为小于第二增益阈值的值,也可以保持当前的增益值不变。If the signal energy of the second external environment signal is greater than the second energy threshold, it means that if the user continues to cover his ears at this time, howling may be caused. At this time, the earphone device is still controlled to use a gain value smaller than the second gain threshold for gain. handling to avoid howling. Since the previous gain value was smaller than the second gain threshold, when controlling the earphone device to use a gain value smaller than the second gain threshold for gain processing, specifically, the gain value can be directly set to a value smaller than the second gain threshold, or Keep the current buff value unchanged.
进一步地,在一实施方式中,所述步骤S40之后,还包括:Further, in one embodiment, after the step S40, it also includes:
步骤S60,若所述第一外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理。Step S60, if the signal energy of the first external environment signal is less than or equal to the second energy threshold, control the earphone device to adopt a gain value greater than or equal to the first gain threshold in the see-through mode Perform gain processing.
若第一外界环境信号的信号能量小于或等于第二能量阈值,说明此时不会发生啸叫;此时,可以控制耳机设备在通透模式下采用大于或等于第一增益阈值的增益值进行增益处理,以保证正常的通透功能。If the signal energy of the first external environment signal is less than or equal to the second energy threshold, it means that howling will not occur at this time; at this time, the earphone device can be controlled to use a gain value greater than or equal to the first gain threshold in the transparent mode. Gain processing to ensure normal transparent function.
进一步地,在一实施方式中,如图2所示,为一种可行的耳机通透模式的控制系统框架示意图。其中,处理器是进行相关检测处理和通透滤波处理的处理平台;麦克风用于拾取声音信号;扬声器用于将电信号转换为声音信号发出;能量监测模块用于监测麦克风拾取的外界环境信号的能量大小;滤波模块用于滤除干扰,保留高频信号(图2中是示例性地将第一信号限定为处于用户听觉频率范围外的高频信号);高频信号能量监测模块用于监测麦克风拾取的高频信号的能量大小;增益控制模块用于根据高频信号能量监测模块的输出控制通透滤波器的增益值;通透滤波器用于放大麦克风拾取的中频信号,达到通透模式的无感佩戴的效果;高频信号发生器产生用于检测用户是否捂耳的高频信号。进一步地,在一实施方式中,如图3所示,为一种依据图2所示的系统框架实施的耳机通透模式的控制流程示意图。Further, in an implementation manner, as shown in FIG. 2 , it is a schematic diagram of a control system framework of a feasible earphone see-through mode. Among them, the processor is a processing platform for correlation detection processing and transparent filtering processing; the microphone is used to pick up the sound signal; the speaker is used to convert the electrical signal into a sound signal and send it out; the energy monitoring module is used to monitor the external environment signal picked up by the microphone. Energy size; filter module is used for filtering out interference, retains high-frequency signal (the first signal is exemplarily limited to the high-frequency signal outside the user's hearing frequency range in Fig. 2); High-frequency signal energy monitoring module is used for monitoring The energy of the high frequency signal picked up by the microphone; the gain control module is used to control the gain value of the transparent filter according to the output of the high frequency signal energy monitoring module; the transparent filter is used to amplify the intermediate frequency signal picked up by the microphone to achieve the The effect of non-inductive wearing; the high-frequency signal generator generates a high-frequency signal for detecting whether the user covers the ear. Further, in one embodiment, as shown in FIG. 3 , it is a schematic diagram of a control flow of an earphone see-through mode implemented according to the system framework shown in FIG. 2 .
此外,本申请实施例还提出一种耳机通透模式的控制装置,所述装置部署于耳机设备,所述耳机设备包括扬声器和麦克风,所述耳机设备在处于通透模式时通过所述麦克风拾取外界环境信号并进行增益处理后通过所述扬声器播放,参照图4,所述耳机通透模式的控制装置包括:In addition, the embodiment of the present application also proposes a control device for the earphone see-through mode, the device is deployed in the earphone device, the earphone device includes a speaker and a microphone, and the earphone device picks up through the microphone when it is in the see-through mode. The external environment signal is played through the speaker after gain processing. Referring to FIG. 4, the control device of the transparent mode of the earphone includes:
获取模块10,用于当所述耳机设备处于所述通透模式时,获取通过所述扬声器播放并被所述麦克风拾取到的第一信号,所述第一信号的频率在用户听觉频率范围外;An acquisition module 10, configured to acquire a first signal played through the speaker and picked up by the microphone when the earphone device is in the see-through mode, the frequency of the first signal is outside the user's hearing frequency range ;
第一控制模块20,用于若拾取到的所述第一信号的信号能量小于或等于第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于第一增益阈值的增益值进行增益处理;The first control module 20 is configured to control the headphone device to adopt a gain value greater than or equal to the first gain threshold in the see-through mode if the picked-up signal energy of the first signal is less than or equal to the first energy threshold. Gain value for gain processing;
第二控制模块30,用于若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理,其中,所述第二增益阈值小于或等于所述第一增益阈值。The second control module 30 is configured to control the headphone device to adopt a gain value less than the second gain threshold in the see-through mode if the picked-up signal energy of the first signal is greater than the first energy threshold performing gain processing, wherein the second gain threshold is less than or equal to the first gain threshold.
进一步地,所述获取模块10还用于当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值大于或等于所述第一增益阈值时,获取当前所述麦克风拾取到的第一外界环境信号;Further, the acquiring module 10 is further configured to acquire the currently picked up by the microphone when the earphone device is in the see-through mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold. The first external environment signal;
所述装置还包括:The device also includes:
播放模块,用于若所述第一外界环境信号的信号能量大于第二能量阈值,则通过所述扬声器播放所述第一信号。A playing module, configured to play the first signal through the speaker if the signal energy of the first external environment signal is greater than a second energy threshold.
进一步地,所述播放模块还用于当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,通过所述扬声器播放第二信号,并通过所述麦克风拾取所述第二信号,所述第二信号的频率在用户听觉频率范围外;Further, the playing module is further configured to play a second signal through the speaker when the earphone device is in the see-through mode and the gain value adopted by the earphone device is less than the second gain threshold, and pass the The microphone picks up the second signal, and the frequency of the second signal is outside the user's hearing frequency range;
所述装置还包括:The device also includes:
第三控制模块,用于若拾取到的所述第二信号的信号能量小于或等于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;A third control module, configured to control the earphone device to use a power greater than or equal to the first energy threshold in the see-through mode if the picked-up signal energy of the second signal is less than or equal to the first energy threshold. Perform gain processing on the gain value of the gain threshold;
第四控制模块,用于若拾取到的所述第二信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。A fourth control module, configured to control the headphone device to adopt a gain less than the second gain threshold in the see-through mode if the picked-up signal energy of the second signal is greater than the first energy threshold value for gain processing.
进一步地,所述获取模块10还用于当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,获取当前所述麦克风拾取到的第二外界环境信号;Further, the acquiring module 10 is further configured to acquire the second gain value currently picked up by the microphone when the earphone device is in the see-through mode and the gain value adopted by the earphone device is smaller than the second gain threshold. External environment signal;
所述装置还包括:The device also includes:
第五控制模块,用于若所述第二外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;A fifth control module, configured to control the earphone device to adopt a gain greater than or equal to the first gain in the see-through mode if the signal energy of the second external environment signal is less than or equal to the second energy threshold Threshold gain value for gain processing;
第六控制模块,用于若所述第二外界环境信号的信号能量大于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。A sixth control module, configured to control the headphone device to use a gain value less than the second gain threshold in the see-through mode if the signal energy of the second external environment signal is greater than the second energy threshold Perform gain processing.
进一步地,所述装置还包括:Further, the device also includes:
第七控制模块,用于若所述第一外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理。A seventh control module, configured to control the headphone device to adopt a gain greater than or equal to the first gain in the see-through mode if the signal energy of the first external environment signal is less than or equal to the second energy threshold Threshold gain value for gain processing.
进一步地,所述第二控制模块30还用于:Further, the second control module 30 is also used for:
若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则检测所述耳机设备当前在所述通透模式下采用的增益值是否小于第二增益阈值;If the picked-up signal energy of the first signal is greater than the first energy threshold, detecting whether the gain value currently used by the earphone device in the see-through mode is less than a second gain threshold;
若所述耳机设备当前在所述通透模式下采用的增益值小于所述第二增益阈值,则保持所述耳机设备当前在所述通透模式下采用的增益值不变;If the gain value currently used by the earphone device in the see-through mode is smaller than the second gain threshold, keep the gain value currently used by the earphone device in the see-through mode unchanged;
若所述耳机设备当前在所述通透模式下采用的增益值大于或等于所述第二增益阈值,则将所述耳机设备当前在所述通透模式下采用的增益值按照预设步进减小至小于所述第二增益阈值。If the gain value currently used by the earphone device in the see-through mode is greater than or equal to the second gain threshold, the gain value currently used by the earphone device in the see-through mode is stepped according to a preset step decreases to less than the second gain threshold.
进一步地,所述获取模块10还用于:Further, the acquiring module 10 is also used for:
获取所述麦克风拾取到的声音信号;obtaining the sound signal picked up by the microphone;
对所述声音信号进行滤波得到通过所述扬声器播放并被所述麦克风拾取到的第一信号。The sound signal is filtered to obtain a first signal played through the speaker and picked up by the microphone.
本申请耳机通透模式的控制装置的具体实施方式的拓展内容与上述耳机通透模式的控制方法各实施例基本相同,在此不做赘述。The expanded content of the specific implementation of the device for controlling the earphone see-through mode of the present application is basically the same as the embodiments of the above-mentioned control method for the earphone see-through mode, and will not be repeated here.
本申请耳机设备可以包括扬声器和麦克风,所述耳机设备在处于通透模式时通过所述麦克风拾取外界环境信号并进行增益处理后通过所述扬声器播放,所述耳机设备还包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机通透模式的控制程序,所述耳机通透模式的控制程序被所述处理器执行时实现如操作:The earphone device of the present application may include a speaker and a microphone. When the earphone device is in the transparent mode, the external environment signal is picked up by the microphone and played through the speaker after gain processing. The earphone device also includes a memory, a processor and A control program of the earphone see-through mode stored on the memory and operable on the processor, when the control program of the earphone see-through mode is executed by the processor, the operations are as follows:
当所述耳机设备处于所述通透模式时,获取通过所述扬声器播放并被所述麦克风拾取到的第一信号,所述第一信号的频率在用户听觉频率范围外;When the earphone device is in the transparent mode, obtain a first signal played through the speaker and picked up by the microphone, the frequency of the first signal is outside the user's hearing frequency range;
若拾取到的所述第一信号的信号能量小于或等于第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于第一增益阈值的增益值进行增益处理;If the picked-up signal energy of the first signal is less than or equal to a first energy threshold, controlling the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the see-through mode;
若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理,其中,所述第二增益阈值小于或等于所述第一增益阈值。If the picked-up signal energy of the first signal is greater than the first energy threshold, control the earphone device to perform gain processing with a gain value less than the second gain threshold in the see-through mode, wherein the The second gain threshold is less than or equal to the first gain threshold.
进一步地,所述耳机设备在进入所述通透模式时采用的增益值大于或等于所述第一增益阈值,所述获取通过所述扬声器播放并被所述麦克风拾取到的第一信号之前,所述耳机通透模式的控制程序被所述处理器执行时还实现如操作:Further, the gain value adopted by the earphone device when entering the see-through mode is greater than or equal to the first gain threshold, and before acquiring the first signal played through the speaker and picked up by the microphone, When the control program of the earphone see-through mode is executed by the processor, operations such as:
当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值大于或等于所述第一增益阈值时,获取当前所述麦克风拾取到的第一外界环境信号;When the earphone device is in the transparent mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold, acquire a first external environment signal currently picked up by the microphone;
若所述第一外界环境信号的信号能量大于第二能量阈值,则通过所述扬声器播放所述第一信号。If the signal energy of the first external environment signal is greater than a second energy threshold, the first signal is played through the speaker.
进一步地,所述若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理之后,所述耳机通透模式的控制程序被所述处理器执行时还实现如操作:Further, if the picked-up signal energy of the first signal is greater than the first energy threshold, control the earphone device to perform gain processing with a gain value less than the second gain threshold in the transparent mode Afterwards, when the control program of the earphone see-through mode is executed by the processor, operations such as:
当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,通过所述扬声器播放第二信号,并通过所述麦克风拾取所述第二信号,所述第二信号的频率在用户听觉频率范围外;When the earphone device is in the transparent mode and the gain value adopted by the earphone device is less than the second gain threshold, play a second signal through the speaker, and pick up the second signal through the microphone, The frequency of the second signal is outside the user's hearing frequency range;
若拾取到的所述第二信号的信号能量小于或等于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;If the picked-up signal energy of the second signal is less than or equal to the first energy threshold, controlling the earphone device to perform gain with a gain value greater than or equal to the first gain threshold in the transparent mode deal with;
若拾取到的所述第二信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。If the picked-up signal energy of the second signal is greater than the first energy threshold, controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the see-through mode.
进一步地,所述若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理之后,所述耳机通透模式的控制程序被所述处理器执行时还实现如操作:Further, if the picked-up signal energy of the first signal is greater than the first energy threshold, control the earphone device to perform gain processing with a gain value less than the second gain threshold in the transparent mode Afterwards, when the control program of the earphone see-through mode is executed by the processor, operations such as:
当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,获取当前所述麦克风拾取到的第二外界环境信号;When the earphone device is in the transparent mode and the gain value adopted by the earphone device is smaller than the second gain threshold, acquire a second external environment signal currently picked up by the microphone;
若所述第二外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;If the signal energy of the second external environment signal is less than or equal to the second energy threshold, control the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the transparent mode ;
若所述第二外界环境信号的信号能量大于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。If the signal energy of the second external environment signal is greater than the second energy threshold, controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the see-through mode.
进一步地,所述当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值大于或等于所述第一增益阈值时,获取当前所述麦克风拾取到的第一外界环境信号之后,所述耳机通透模式的控制程序被所述处理器执行时还实现如操作:Further, when the earphone device is in the see-through mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold, after acquiring the current first external environment signal picked up by the microphone When the control program of the earphone transparent mode is executed by the processor, operations such as:
若所述第一外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理。If the signal energy of the first external environment signal is less than or equal to the second energy threshold, control the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the transparent mode .
进一步地,所述若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理包括:Further, if the picked-up signal energy of the first signal is greater than the first energy threshold, control the earphone device to perform gain processing with a gain value less than the second gain threshold in the transparent mode include:
若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则检测所述耳机设备当前在所述通透模式下采用的增益值是否小于第二增益阈值;If the picked-up signal energy of the first signal is greater than the first energy threshold, detecting whether the gain value currently used by the earphone device in the see-through mode is less than a second gain threshold;
若所述耳机设备当前在所述通透模式下采用的增益值小于所述第二增益阈值,则保持所述耳机设备当前在所述通透模式下采用的增益值不变;If the gain value currently used by the earphone device in the see-through mode is smaller than the second gain threshold, keep the gain value currently used by the earphone device in the see-through mode unchanged;
若所述耳机设备当前在所述通透模式下采用的增益值大于或等于所述第二增益阈值,则将所述耳机设备当前在所述通透模式下采用的增益值按照预设步进减小至小于所述第二增益阈值。If the gain value currently used by the earphone device in the see-through mode is greater than or equal to the second gain threshold, the gain value currently used by the earphone device in the see-through mode is stepped according to a preset step decreases to less than the second gain threshold.
进一步地,所述获取通过所述扬声器播放并被所述麦克风拾取到的第一信号包括:Further, the acquiring the first signal played through the speaker and picked up by the microphone includes:
获取所述麦克风拾取到的声音信号;obtaining the sound signal picked up by the microphone;
对所述声音信号进行滤波得到通过所述扬声器播放并被所述麦克风拾取到的第一信号。The sound signal is filtered to obtain a first signal played through the speaker and picked up by the microphone.
此外,本申请实施例还提出一种计算机可读存储介质,所述存储介质上存储有耳机通透模式的控制程序,所述耳机通透模式的控制程序被处理器执行时实现如上所述的耳机通透模式的控制方法的步骤。In addition, the embodiment of the present application also proposes a computer-readable storage medium, on which a control program of the earphone see-through mode is stored, and when the control program of the earphone see-through mode is executed by a processor, the above-mentioned The steps of the control method of the earphone see-through mode.
本申请耳机设备和计算机可读存储介质的各实施例,均可参照本申请耳机通透模式的控制方法各个实施例,此处不再赘述。The various embodiments of the earphone device and the computer-readable storage medium of the present application can refer to the various embodiments of the control method of the earphone see-through mode of the present application, and details are not repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the description of the application and the accompanying drawings are directly or indirectly used in other related technical fields. , are all included in the patent protection scope of the present application in the same way.

Claims (10)

  1. 一种耳机通透模式的控制方法,其特征在于,所述方法应用于耳机设备,所述耳机设备包括扬声器和麦克风,所述耳机设备在处于通透模式时通过所述麦克风拾取外界环境信号并进行增益处理后通过所述扬声器播放,所述方法包括以下步骤:A method for controlling a transparent mode of an earphone, wherein the method is applied to an earphone device, the earphone device includes a loudspeaker and a microphone, and when the earphone device is in the transparent mode, the external environment signal is picked up by the microphone and Playing through the loudspeaker after gain processing, the method includes the following steps:
    当所述耳机设备处于所述通透模式时,获取通过所述扬声器播放并被所述麦克风拾取到的第一信号,所述第一信号的频率在用户听觉频率范围外;When the earphone device is in the transparent mode, obtain a first signal played through the speaker and picked up by the microphone, the frequency of the first signal is outside the user's hearing frequency range;
    若拾取到的所述第一信号的信号能量小于或等于第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于第一增益阈值的增益值进行增益处理;If the picked-up signal energy of the first signal is less than or equal to a first energy threshold, controlling the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the see-through mode;
    若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理,其中,所述第二增益阈值小于或等于所述第一增益阈值。If the picked-up signal energy of the first signal is greater than the first energy threshold, control the earphone device to perform gain processing with a gain value less than the second gain threshold in the see-through mode, wherein the The second gain threshold is less than or equal to the first gain threshold.
  2. 如权利要求1所述的耳机通透模式的控制方法,其特征在于,所述耳机设备在进入所述通透模式时采用的增益值大于或等于所述第一增益阈值,所述获取通过所述扬声器播放并被所述麦克风拾取到的第一信号的步骤之前,还包括:The method for controlling the earphone transparent mode according to claim 1, wherein the gain value adopted by the earphone device when entering the transparent mode is greater than or equal to the first gain threshold, and the acquisition is obtained through the Before the step of the first signal played by the speaker and picked up by the microphone, it also includes:
    当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值大于或等于所述第一增益阈值时,获取当前所述麦克风拾取到的第一外界环境信号;When the earphone device is in the transparent mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold, acquire a first external environment signal currently picked up by the microphone;
    若所述第一外界环境信号的信号能量大于第二能量阈值,则通过所述扬声器播放所述第一信号。If the signal energy of the first external environment signal is greater than a second energy threshold, the first signal is played through the speaker.
  3. 如权利要求2所述的耳机通透模式的控制方法,其特征在于,所述若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理的步骤之后,还包括:The method for controlling the earphone see-through mode according to claim 2, wherein if the signal energy of the picked-up first signal is greater than the first energy threshold, then controlling the earphone device in the After the step of performing gain processing with a gain value smaller than the second gain threshold in the transparent mode, the method further includes:
    当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,通过所述扬声器播放第二信号,并通过所述麦克风拾取所述第二信号,所述第二信号的频率在用户听觉频率范围外;When the earphone device is in the transparent mode and the gain value adopted by the earphone device is less than the second gain threshold, play a second signal through the speaker, and pick up the second signal through the microphone, The frequency of the second signal is outside the user's hearing frequency range;
    若拾取到的所述第二信号的信号能量小于或等于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;If the picked-up signal energy of the second signal is less than or equal to the first energy threshold, controlling the earphone device to perform gain with a gain value greater than or equal to the first gain threshold in the transparent mode deal with;
    若拾取到的所述第二信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。If the picked-up signal energy of the second signal is greater than the first energy threshold, controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the see-through mode.
  4. 如权利要求2所述的耳机通透模式的控制方法,其特征在于,所述若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理的步骤之后,还包括:The method for controlling the earphone see-through mode according to claim 2, wherein if the signal energy of the picked-up first signal is greater than the first energy threshold, then controlling the earphone device in the After the step of performing gain processing with a gain value smaller than the second gain threshold in the transparent mode, the method further includes:
    当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值小于所述第二增益阈值时,获取当前所述麦克风拾取到的第二外界环境信号;When the earphone device is in the transparent mode and the gain value adopted by the earphone device is smaller than the second gain threshold, acquire a second external environment signal currently picked up by the microphone;
    若所述第二外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理;If the signal energy of the second external environment signal is less than or equal to the second energy threshold, control the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the transparent mode ;
    若所述第二外界环境信号的信号能量大于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用小于所述第二增益阈值的增益值进行增益处理。If the signal energy of the second external environment signal is greater than the second energy threshold, controlling the earphone device to perform gain processing with a gain value smaller than the second gain threshold in the see-through mode.
  5. 如权利要求2所述的耳机通透模式的控制方法,其特征在于,所述当所述耳机设备处于所述通透模式且所述耳机设备采用的增益值大于或等于所述第一增益阈值时,获取当前所述麦克风拾取到的第一外界环境信号的步骤之后,还包括:The control method of earphone transparent mode according to claim 2, characterized in that, when the earphone device is in the transparent mode and the gain value adopted by the earphone device is greater than or equal to the first gain threshold , after the step of obtaining the first external environment signal picked up by the current microphone, it also includes:
    若所述第一外界环境信号的信号能量小于或等于所述第二能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于所述第一增益阈值的增益值进行增益处理。If the signal energy of the first external environment signal is less than or equal to the second energy threshold, control the earphone device to perform gain processing with a gain value greater than or equal to the first gain threshold in the transparent mode .
  6. 如权利要求1所述的耳机通透模式的控制方法,其特征在于,所述若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理的步骤包括:The method for controlling the earphone see-through mode according to claim 1, wherein if the picked-up signal energy of the first signal is greater than the first energy threshold, then controlling the earphone device in the The steps of performing gain processing with a gain value smaller than the second gain threshold in the transparent mode include:
    若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则检测所述耳机设备当前在所述通透模式下采用的增益值是否小于第二增益阈值;If the picked-up signal energy of the first signal is greater than the first energy threshold, detecting whether the gain value currently used by the earphone device in the see-through mode is less than a second gain threshold;
    若所述耳机设备当前在所述通透模式下采用的增益值小于所述第二增益阈值,则保持所述耳机设备当前在所述通透模式下采用的增益值不变;If the gain value currently used by the earphone device in the see-through mode is smaller than the second gain threshold, keep the gain value currently used by the earphone device in the see-through mode unchanged;
    若所述耳机设备当前在所述通透模式下采用的增益值大于或等于所述第二增益阈值,则将所述耳机设备当前在所述通透模式下采用的增益值按照预设步进减小至小于所述第二增益阈值。If the gain value currently used by the earphone device in the see-through mode is greater than or equal to the second gain threshold, the gain value currently used by the earphone device in the see-through mode is stepped according to a preset step decreases to less than the second gain threshold.
  7. 如权利要求1至6任一项所述的耳机通透模式的控制方法,其特征在于,所述获取通过所述扬声器播放并被所述麦克风拾取到的第一信号的步骤包括:The control method for earphone see-through mode according to any one of claims 1 to 6, wherein the step of acquiring the first signal played through the speaker and picked up by the microphone comprises:
    获取所述麦克风拾取到的声音信号;obtaining the sound signal picked up by the microphone;
    对所述声音信号进行滤波得到通过所述扬声器播放并被所述麦克风拾取到的第一信号。The sound signal is filtered to obtain a first signal played through the speaker and picked up by the microphone.
  8. 一种耳机通透模式的控制装置,其特征在于,所述装置部署于耳机设备,所述耳机设备包括扬声器和麦克风,所述耳机设备在处于通透模式时通过所述麦克风拾取外界环境信号并进行增益处理后通过所述扬声器播放,所述装置包括:A control device for an earphone see-through mode, characterized in that the device is deployed on an earphone device, the earphone device includes a speaker and a microphone, and when the earphone device is in the see-through mode, the external environment signal is picked up by the microphone and Playing through the loudspeaker after gain processing, the device includes:
    获取模块,用于当所述耳机设备处于所述通透模式时,获取通过所述扬声器播放并被所述麦克风拾取到的第一信号,所述第一信号的频率在用户听觉频率范围外;An acquisition module, configured to acquire a first signal played through the speaker and picked up by the microphone when the earphone device is in the see-through mode, the frequency of the first signal is outside the user's hearing frequency range;
    第一控制模块,用于若拾取到的所述第一信号的信号能量小于或等于第一能量阈值,则控制所述耳机设备在所述通透模式下采用大于或等于第一增益阈值的增益值进行增益处理;A first control module, configured to control the headphone device to adopt a gain greater than or equal to a first gain threshold in the see-through mode if the signal energy of the picked-up first signal is less than or equal to a first energy threshold value for gain processing;
    第二控制模块,用于若拾取到的所述第一信号的信号能量大于所述第一能量阈值,则控制所述耳机设备在所述通透模式下采用小于第二增益阈值的增益值进行增益处理,其中,所述第二增益阈值小于或等于所述第一增益阈值。The second control module is configured to control the headphone device to use a gain value less than the second gain threshold in the transparent mode to perform the operation if the picked-up signal energy of the first signal is greater than the first energy threshold Gain processing, wherein the second gain threshold is less than or equal to the first gain threshold.
  9. 一种耳机设备,其特征在于,所述耳机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的耳机通透模式的控制程序,所述耳机通透模式的控制程序被所述处理器执行时实现如权利要求1至7中任一项所述的耳机通透模式的控制方法的步骤。An earphone device, characterized in that the earphone device includes a memory, a processor, and a control program of an earphone see-through mode stored on the memory and operable on the processor, and the earphone see-through mode When the control program is executed by the processor, the steps of the method for controlling the earphone see-through mode according to any one of claims 1 to 7 are implemented.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有耳机通透模式的控制程序,所述耳机通透模式的控制程序被处理器执行时实现如权利要求1至7中任一项所述的耳机通透模式的控制方法的步骤。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a control program for the earphone see-through mode, and when the control program for the earphone see-through mode is executed by a processor, the following claims 1 to 1 are implemented. Steps in the method for controlling the earphone see-through mode described in any one of 7.
PCT/CN2021/139038 2021-11-18 2021-12-17 Method and apparatus for controlling transparency mode of earphones, and earphone device and storage medium WO2023087468A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111372479.8A CN114095835B (en) 2021-11-18 2021-11-18 Earphone through mode control method and device, earphone equipment and storage medium
CN202111372479.8 2021-11-18

Publications (1)

Publication Number Publication Date
WO2023087468A1 true WO2023087468A1 (en) 2023-05-25

Family

ID=80302162

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139038 WO2023087468A1 (en) 2021-11-18 2021-12-17 Method and apparatus for controlling transparency mode of earphones, and earphone device and storage medium

Country Status (2)

Country Link
CN (1) CN114095835B (en)
WO (1) WO2023087468A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116156385B (en) * 2023-04-19 2023-07-07 深圳市汇顶科技股份有限公司 Filtering method, filtering device, chip and earphone

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010109708A1 (en) * 2009-03-25 2010-09-30 株式会社東芝 Pickup signal processing apparatus, method, and program
US20160300562A1 (en) * 2015-04-08 2016-10-13 Apple Inc. Adaptive feedback control for earbuds, headphones, and handsets
CN109151700A (en) * 2018-07-26 2019-01-04 Oppo广东移动通信有限公司 Microphone plug-hole detection method and Related product
CN112291689A (en) * 2020-11-27 2021-01-29 歌尔光学科技有限公司 Sound playing method, wearable device and readable storage medium
CN113473304A (en) * 2021-08-17 2021-10-01 北京小米移动软件有限公司 Howling suppression method, howling suppression device, earphone and storage medium
CN113596662A (en) * 2021-07-30 2021-11-02 北京小米移动软件有限公司 Howling suppression method, howling suppression device, headphone, and storage medium
CN113596665A (en) * 2021-07-29 2021-11-02 北京小米移动软件有限公司 Howling suppression method, howling suppression device, earphone and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102007033484A1 (en) * 2007-07-18 2009-01-22 Ruwisch, Dietmar, Dr. hearing Aid

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010109708A1 (en) * 2009-03-25 2010-09-30 株式会社東芝 Pickup signal processing apparatus, method, and program
US20160300562A1 (en) * 2015-04-08 2016-10-13 Apple Inc. Adaptive feedback control for earbuds, headphones, and handsets
CN109151700A (en) * 2018-07-26 2019-01-04 Oppo广东移动通信有限公司 Microphone plug-hole detection method and Related product
CN112291689A (en) * 2020-11-27 2021-01-29 歌尔光学科技有限公司 Sound playing method, wearable device and readable storage medium
CN113596665A (en) * 2021-07-29 2021-11-02 北京小米移动软件有限公司 Howling suppression method, howling suppression device, earphone and storage medium
CN113596662A (en) * 2021-07-30 2021-11-02 北京小米移动软件有限公司 Howling suppression method, howling suppression device, headphone, and storage medium
CN113473304A (en) * 2021-08-17 2021-10-01 北京小米移动软件有限公司 Howling suppression method, howling suppression device, earphone and storage medium

Also Published As

Publication number Publication date
CN114095835A (en) 2022-02-25
CN114095835B (en) 2023-06-09

Similar Documents

Publication Publication Date Title
US11710473B2 (en) Method and device for acute sound detection and reproduction
CN110326305B (en) Off-head detection of in-ear headphones
CN108540906B (en) Volume adjusting method, earphone and computer readable storage medium
JP5412529B2 (en) In-ear sound detection for earphones
US20210350816A1 (en) Compressive hear-through in personal acoustic devices
CN111885458B (en) Audio playing method, earphone and computer readable storage medium
CN112911487B (en) In-ear detection method for wireless headset, wireless headset and storage medium
CN112291664B (en) Volume adjusting method, device and system of head-mounted display equipment
WO2021103260A1 (en) Control method for headphones and headphones
CN111510822A (en) Sound control system, device, method and computer readable storage medium thereof
WO2023087468A1 (en) Method and apparatus for controlling transparency mode of earphones, and earphone device and storage medium
CN112235683B (en) Microphone and ambient sound noise reduction method
CN113207056B (en) Wireless earphone and transparent transmission method, device and system thereof
WO2023197474A1 (en) Method for determining parameter corresponding to earphone mode, and earphone, terminal and system
CN115225998A (en) Earphone noise reduction method and device, earphone equipment and computer readable storage medium
CN113507668B (en) Variable-bandwidth intelligent control method, audio equipment and readable storage medium
CN114125625B (en) Noise reduction adjustment method, earphone and computer readable storage medium
US20240078995A1 (en) Active noise reduction with impulse detection and suppression
CN114071307A (en) Earphone volume adjusting method, device, equipment and medium
CN115515041A (en) Audio playing method, device, earphone and storage medium
CN114007159A (en) Auxiliary listening earphone, implementation method thereof, electronic equipment, storage medium and program product
CN111800712A (en) Audio processing method and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21964613

Country of ref document: EP

Kind code of ref document: A1