Earphone noise reduction method and device, computer readable storage medium and earphone

By using feedforward and feedback microphones in headphones to obtain sound wave data, combining filter parameters, and dynamically determining the target filter, the problem that headphone noise reduction technology cannot adapt to different human ears and wearing methods is solved, and personalized and efficient noise reduction is achieved.

CN115499744BActive Publication Date: 2025-10-14ANKER INNOVATIONS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211118448.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-14
Publication Date
2025-10-14
Estimated Expiration
2042-09-14

AI Technical Summary

Technical Problem

Existing headphone noise reduction technology cannot adapt to the personalized needs of different human ears and wearing methods, resulting in inconsistent noise reduction effects and even significant differences.

Method used

The feedforward microphone and the feedback microphone are used to simultaneously acquire sound wave data. The actual parameters of the default filter and the sound wave data are combined to dynamically determine the target filter to adapt to different human ears and wearing methods, thereby achieving personalized high-level noise reduction.

Benefits of technology

A high level of noise reduction effect is achieved under different human ears and wearing methods, while shortening the adaptation time and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115499744B_ABST
    Figure CN115499744B_ABST
Patent Text Reader

Abstract

The application relates to the earphone technical field, and in particular to an earphone noise reduction method, an earphone noise reduction device, a computer readable storage medium and an earphone. The method comprises the following steps: in the case that the noise reduction mode of the earphone is a first mode (without active noise control), simultaneously acquiring sound wave data for a first preset time length through a feedforward microphone and a feedback microphone of the earphone; on the other hand, in the case that the noise reduction mode of the earphone is a second mode (active noise control), simultaneously acquiring sound wave data for a second preset time length through the feedforward microphone and the feedback microphone. According to the actual parameters of a default filter in the earphone in the second mode and the sound wave data acquired in the two modes respectively, target parameters of the filter are determined, and a target filter is determined based on the target parameters. The application can adapt to the individual needs of different ears and different wearing modes, and can achieve a high level of noise reduction effect in different ears and different wearing modes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of earphone technology, and in particular to an earphone noise reduction method, an earphone noise reduction device, a computer-readable storage medium, and an earphone. Background Art

[0002] With the popularity of headphones, users' requirements for noise reduction are also getting higher and higher. According to the principle of noise reduction, headphone noise reduction technology is divided into active noise control (ANC) and passive noise reduction. Among them, passive noise reduction mainly involves filling the ear cups with sponges, etc., to isolate noise through the ear cups and sponges. ANC is to set up an intelligent noise reduction chip in the headphones. When the built-in sound pickup sensor of the headphones detects external noise, the noise reduction chip generates a sound wave that is opposite to the external noise to cancel the noise.

[0003] In related technologies, headphones using ANC are generally based on a fixed filter approach. However, due to differences in different human ears and different wearing methods (for example, the wearing angle of the headphones and / or the length of the headphones extending into the ear canal), fixed filters cannot achieve consistent noise reduction effects on different human ears. Some people may even perceive that the noise reduction effect is very poor. This approach cannot meet personalized needs.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of this application, and therefore may include information that does not constitute prior art known to ordinary technicians in this field. Summary of the Invention

[0005] The headphone noise reduction device, computer-readable storage medium, and headphones provided in this application can adapt to the personalized needs of different human ears and different wearing methods, and can achieve a high level of noise reduction effect under different human ears and different wearing methods.

[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by practice of the present application.

[0007] According to an aspect of the present application, there is provided a method for noise reduction of an earphone, the method comprising: obtaining sound wave data for a first preset time duration by a feed-forward microphone and a feed-back microphone of the earphone simultaneously in a first mode of noise reduction of the earphone, to obtain first sound wave data corresponding to the feed-forward microphone and second sound wave data corresponding to the feed-back microphone, the first mode being a mode without active noise control; obtaining sound wave data for a second preset time duration by the feed-forward microphone and the feed-back microphone simultaneously in a second mode of noise reduction of the earphone, to obtain third sound wave data corresponding to the feed-forward microphone and fourth sound wave data corresponding to the feed-back microphone, the second mode being a mode with active noise control; determining target parameters of a filter based on actual parameters of a default filter in the earphone in the second mode, the first sound wave data, the second sound wave data, the third sound wave data and the fourth sound wave data; and determining a target filter based on the target parameters, to perform a noise reduction operation based on the target filter.

[0008] According to another aspect of the present application, there is provided an apparatus for noise reduction of an earphone, the apparatus comprising: a sound wave data determining module, a target parameter determining module and a target filter determining module.

[0009] The sound wave data determining module is configured to: obtain sound wave data for a first preset time duration by a feed-forward microphone and a feed-back microphone of the earphone simultaneously in a first mode of noise reduction of the earphone, to obtain first sound wave data corresponding to the feed-forward microphone and second sound wave data corresponding to the feed-back microphone, the first mode being a mode without active noise control; and obtain sound wave data for a second preset time duration by the feed-forward microphone and the feed-back microphone simultaneously in a second mode of noise reduction of the earphone, to obtain third sound wave data corresponding to the feed-forward microphone and fourth sound wave data corresponding to the feed-back microphone, the second mode being a mode with active noise control. The target parameter determining module is configured to: determine target parameters of a filter based on actual parameters of a default filter in the earphone in the second mode, the first sound wave data, the second sound wave data, the third sound wave data and the fourth sound wave data. The target filter determining module is configured to: determine a target filter based on the target parameters, to perform a noise reduction operation based on the target filter.

[0010] According to still another aspect of the present application, there is provided an earphone comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing a method as described in the above embodiments when executing the computer program.

[0011] According to another aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the above embodiments is implemented.

[0012] The headphone noise reduction method, headphone noise reduction device, computer-readable storage medium, and headphone provided in the embodiments of the present application have the following technical effects:

[0013] In the technical solution provided by the present application, on the one hand, when the noise reduction mode of the headset is the first mode (no active noise control), the feedforward microphone and the feedback microphone of the headset simultaneously obtain sound wave data for a first preset time length, and obtain first sound wave data and second sound wave data respectively; on the other hand, when the noise reduction mode of the headset is the second mode (active noise control), the feedforward microphone and the feedback microphone simultaneously obtain sound wave data for a second preset time length, and obtain third sound wave data and fourth sound wave data respectively. Further, according to the actual parameters of the default filter in the headset in the second mode, and the sound wave data respectively obtained in the above two modes, the target parameters of the filter are determined, and the target filter is determined based on the above target parameters. It can be seen that the sound wave data of the headset in the actual use process of the two modes is taken into account in the determination of the target parameters, so that the target filter can take into account the actual use environment of the current headset when performing the noise reduction operation, thereby enabling the headset to adapt to the personalized needs of different human ears and different wearing methods, and to achieve a high level of noise reduction effect under different human ears and different wearing methods.

[0014] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0016] Figure 1 A schematic diagram of a usage scenario of a headphone noise reduction solution in an exemplary embodiment of the present application is shown.

[0017] Figure 2 The figure shows a flow chart of a headphone noise reduction method in an exemplary embodiment of the present application.

[0018] Figure 3 A schematic flow chart of a headphone noise reduction method in another exemplary embodiment of the present application is shown.

[0019] Figure 4 A flow chart of a method for determining whether a wearer is in a silent state in an exemplary embodiment of the present application is shown.

[0020] Figure 5 A schematic diagram showing different sound wave curves in an exemplary embodiment of the present application is shown.

[0021] Figure 6 Shown with this application Figure 3 Schematic diagram of the headphone noise reduction timing matching the exemplary embodiment shown.

[0022] Figure 7 The figure shows a flow chart of a headphone noise reduction method in another exemplary embodiment of the present application.

[0023] Figure 8 Shown with this application Figure 7 Schematic diagram of the headphone noise reduction timing matching the exemplary embodiment shown.

[0024] Figure 9 A schematic diagram showing multiple target parameter curves for the same user in an exemplary embodiment of the present application is shown.

[0025] Figure 10 A schematic diagram of a flow chart of a headphone noise reduction device in an exemplary embodiment of the present application is shown.

[0026] Figure 11 A schematic flow chart of a headphone noise reduction device in another exemplary embodiment of the present application is shown.

[0027] Figure 12 A schematic structural diagram of an earphone in an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION

[0028] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

[0029] When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; on the contrary, these embodiments are provided so that this application will be more comprehensive and complete and the concepts of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced while omitting one or more of the specific details, or that other methods, components, devices, steps, etc. may be employed. In other cases, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present application.

[0031] In addition, the accompanying drawings are merely schematic illustrations of the present application and are not necessarily drawn to scale. Identical reference numerals in the figures denote identical or similar parts, and thus repetitive descriptions thereof will be omitted. Some of the blocks shown in the accompanying drawings are functional entities that do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0032] Due to the differences between the auricles and ear canals of different people's ears, and the differences in the way different people wear headphones, the ANC solution using fixed filters provided by the related technology cannot provide a consistent and high noise reduction effect for different users. In another related technology, the headphones are built with multiple groups (for example, 10 groups) of ANC filters. When using this type of headphones, the user is required to first be in a noisy environment, and then use the relevant application installed on the terminal (such as a mobile phone) to cycle through the above multiple groups of filters to determine a group of filters that best matches the current environment. However, the solution provided by this related technology is time-consuming and requires users to wait for a long time, resulting in a poor user experience.

[0033] This application provides a headphone noise reduction method, headphone noise reduction device, computer-readable storage medium, and headphone, which can adapt to the personalized needs of different human ears and different wearing methods, and can achieve a high level of noise reduction effect under different human ears and different wearing methods, while taking a short time. The following is a detailed description of the device addition method embodiment provided by this application:

[0034] in, Figure 1 Schematic diagram showing the use of the headphone noise reduction solution in an exemplary embodiment of the present application. Figure 1The headphone noise reduction solution provided by this application is applicable to headphones of different external forms, such as Figure 1 The headphone 101 and the in-ear headphone 102, etc., the noise reduction system 100 contained in each headphone realizes noise reduction. Specifically, the sound wave data is obtained by the feedforward microphone 11 and the feedback microphone 12 arranged in the headphone, and after the sound wave data is processed by the processor 13, the target parameters of the filter can be obtained. Furthermore, according to the target parameters of the filter, a target filter suitable for the current human ear and the current wearing method is determined from a plurality of alternative filters 14. The noise reduction operation is performed by the above-mentioned target filter, which can adapt to the personalized needs of the current human ear and the current wearing method.

[0035] Figure 2 FIG2 shows a flow chart of a headphone noise reduction method in an exemplary embodiment of the present application. Figure 2 :

[0036] In S210, when the noise reduction mode of the earphone is the first mode, sound wave data lasting a first preset time length is simultaneously obtained through the feedforward microphone and the feedback microphone of the earphone to obtain the first sound wave data corresponding to the feedforward microphone and the second sound wave data corresponding to the feedback microphone. The first model is a mode without active noise control.

[0037] Exemplarily, the feedforward microphone is located outside the earphone to collect external noise, while the feedback microphone is generally located in the eardrum, usually near the front of the earphone driver, to collect sound wave data inside the eardrum.

[0038] In this embodiment, the headset is set to a mode without active noise control (also referred to as normal mode), and sound wave data is collected simultaneously by the feedforward microphone and the feedback microphone of the headset, and the duration of the sound wave data is recorded as the first preset duration. Exemplarily, the first preset duration is 500ms to 2s. For example, in a mode without active noise control of the headset, 500ms of sound wave data is collected simultaneously by the feedforward microphone and the feedback microphone of the headset, and the first sound wave data collected by the feedforward microphone is obtained (which can be recorded as "X ff_normal ”), and the second sound wave data collected by the above-mentioned feedback microphone (which can be recorded as “X fb_normal ”).

[0039] In S210', when the noise reduction mode of the above-mentioned headphones is the second mode, sound wave data lasting for a second preset time length is simultaneously obtained through the above-mentioned feedforward microphone and the above-mentioned feedback microphone to obtain third sound wave data corresponding to the above-mentioned feedforward microphone and fourth sound wave data corresponding to the above-mentioned feedback microphone. The above-mentioned second mode is an active noise control mode.

[0040] In this embodiment, the headset is set to an active noise control mode (also referred to as the ANC mode of the silkworm pupa default filter, default-ANC-mode), and sound wave data is collected simultaneously by the feedforward microphone and the feedback microphone of the headset, and the duration of the sound wave data is recorded as the second preset duration. Exemplarily, the second preset duration is 500ms to 2s. The second preset duration may be the same as or different from the second preset duration. For example, in the default-ANC-mode of the headset, 500ms of sound wave data is collected simultaneously by the feedforward microphone and the feedback microphone of the headset to obtain the third sound wave data collected by the feedforward microphone (which can be recorded as "X ff_anc ”), and the fourth sound wave data collected by the above-mentioned feedback microphone (which can be recorded as “X fb_anc ”).

[0041] It should be noted that the execution order of S210 and S210' is not particular, and S210 can be executed first and then S210', or S210' can be executed first and then S210. In the embodiment of this specification, the execution of S210 first and then S210' is used as an example for description.

[0042] In S220, target parameters of the filter are determined according to actual parameters of the default filter in the earphone in the second mode, the first sound wave data, the second sound wave data, the third sound wave data, and the fourth sound wave data.

[0043] Exemplarily, the transfer function in the first mode (denoted as the first transfer function) is calculated based on the first sound wave data and the second sound wave data, as shown in formula (1). The transfer function in the second mode (denoted as the second transfer function) is calculated based on the third sound wave data and the fourth sound wave data, as shown in formula (2):

[0044] H normal =SPL ff_normal / SPL fb_normal (1)

[0045] Among them, H normal Denotes the first transfer function mentioned above, SPL ff_normal Indicates the sound pressure level (SPL) corresponding to the first sound wave data. SPL fb_normal Indicates the SPL corresponding to the second sound wave data.

[0046] H anc =SPL ff_anc / SPL fb_anc(2)

[0047] Among them, H anc Denotes the second transfer function mentioned above, SPL ff_anc Indicates the SPL corresponding to the third sound wave data, SPL fb_anc Indicates the SPL corresponding to the fourth sound wave data.

[0048] Furthermore, target parameters of the filter are determined according to the first transfer function, the second transfer function and actual parameters of the default filter.

[0049] F target =-H normal / (H anc *F default_anc -H normal ) (3)

[0050] Among them, F target represents the target parameter of the filter, F default_anc represents the default parameters of the filter, H normal represents the first transfer function, and H anc represents the second transfer function.

[0051] In S230 , a target filter is determined based on the target parameters, so as to perform a noise reduction operation based on the target filter.

[0052] Figure 2 In the technical solution provided, on the one hand, when the noise reduction mode of the headset is without active noise control, the feedforward microphone and the feedback microphone of the headset simultaneously obtain sound wave data for a first preset time length, and obtain first sound wave data and second sound wave data respectively; on the other hand, when the noise reduction mode of the headset is active noise control, the feedforward microphone and the feedback microphone simultaneously obtain sound wave data for a second preset time length, and obtain third sound wave data and fourth sound wave data respectively. Further, according to the actual parameters of the default filter in the headset in the second mode and the sound wave data obtained in the above two modes, the target parameters of the filter are determined, and the target filter is determined based on the above target parameters. It can be seen that the target parameter determination process takes into account the sound wave data of the headset in the actual use process of the two modes, so that the target filter can take into account the actual use environment of the current headset when performing the noise reduction operation, thereby enabling the headset to adapt to the personalized needs of different human ears and different wearing methods, and achieve a high level of noise reduction effect under different human ears and different wearing methods.

[0053] In an exemplary embodiment, Figure 3 FIG2 shows a flow chart of a headphone noise reduction method in another exemplary embodiment of the present application. Figure 3It can be seen that before executing the above step S210, S310 is also executed: determining that the wearer of the headset is in a silent state. That is, when it is determined that the wearer of the headset has not made any sound (such as speaking, sneezing, etc.), according to Figure 2 The technical solution provided realizes the adaptive noise reduction process. Figure 2 In the adaptive noise reduction process shown, the sound wave data (first sound wave data, third sound wave data) collected by the feedforward microphone is also used to determine that during the adaptive noise reduction process, the headphone speaker is in a state of no sound (such as playing audio and video, etc.), thereby ensuring the accuracy of the target parameters of the filter and improving the noise reduction effect.

[0054] In an exemplary usage scenario, when the earphones have just been taken out of the charging case, they may not have been paired with the terminal yet. In this scenario, the earphone processor can determine that the speaker is in a silent state (such as playing audio and video, etc.), so it only needs to determine whether the wearer has not made any sound. In another exemplary usage scenario, the earphones have been paired with the terminal, and the paired terminal is not playing audio or video, that is, the speaker does not make any sound. In this scenario, the earphone processor can determine that the speaker is in a silent state (such as playing audio and video, etc.), so it only needs to determine whether the wearer has not made any sound. In another exemplary usage scenario, if the paired terminal is playing audio or video, it can be determined by Figure 7 The embodiments corresponding to S730 and S760 determine whether the speaker is in a silent state (in Figure 7 Detailed description will be given in the corresponding embodiments).

[0055] In an exemplary embodiment, Figure 4 The flowchart of the method for determining whether the wearer is in a silent state in an exemplary embodiment of the present application is shown. The embodiment shown in the figure can be used as an embodiment of determining whether the wearer is speaking in S310. Figure 4 :

[0056] In S3102, sound wave data lasting for a third preset time length is simultaneously obtained through the feedforward microphone and the feedback microphone of the above-mentioned earphone to obtain fifth sound wave data corresponding to the above-mentioned feedforward microphone and sixth sound wave data corresponding to the above-mentioned feedback microphone; in S3104, the first sound pressure level corresponding to the above-mentioned fifth sound wave data is calculated, and the second sound pressure level corresponding to the above-mentioned sixth sound wave data is calculated; in S3106, the difference between the above-mentioned first sound pressure level and the above-mentioned second sound pressure level is calculated; and, in S3108, it is determined whether the above-mentioned difference is less than the energy difference preset value.

[0057] In this embodiment, the sound wave data simultaneously acquired by the feedforward microphone and the feedback microphone are used to further calculate the SPL of the two-way sound wave data. Specifically, the energy difference between the SPLs of the two-way sound wave data is compared to determine whether the wearer has made a sound. If the energy difference between the two-way sound wave data is not less than the threshold value (as mentioned above, the preset energy difference value), indicating that the energy difference between the SPLs of the two-way sound wave data collected by the feedforward microphone and the feedback microphone is large, then S31012 is executed: determining that the wearer of the above-mentioned headphones has made a sound. If the energy difference between the two-way sound wave data is less than the threshold value (as mentioned above, the preset energy difference value), indicating that the energy difference between the SPLs of the two-way sound wave data collected by the feedforward microphone and the feedback microphone is not large, then S1010 is executed: determining that the wearer of the above-mentioned headphones has not made a sound.

[0058] Exemplary, reference Figure 5 When the wearer makes a sound, curve 51 represents the SPL of the sound wave data collected by the feedforward microphone, and curve 52 represents the SPL of the sound wave data collected by the feedback microphone. It can be seen that below 1.2 kHz, the energy difference between the SPLs of the two sound wave data collected by the feedforward and feedback microphones is large. When the wearer does not make a sound, curve 51 still represents the SPL of the sound wave data collected by the feedforward microphone, and curve 53 represents the SPL of the sound wave data collected by the feedback microphone. It can be seen that below 1.2 kHz, the energy difference between the SPLs of the two sound wave data collected by the feedforward and feedback microphones is small.

[0059] pass Figure 3 The embodiment shown can realize the detection of the wearer's silence, and determine that the wearer has not spoken after the above silence detection as a subsequent step (such as Figure 2 That is, in order to ensure that the headset can adapt to different human ears and different wearing methods, the noise reduction process must be performed under the above prerequisites to ensure the noise reduction effect. Figure 3 If the prerequisites described in S310 cannot be met, then S330 is executed: the default filter is used to perform the noise reduction operation (if the current mode is the first mode, the default filter corresponding to the first mode is used to perform the noise reduction operation; if the current mode is the second mode, the default filter corresponding to the second mode is used to perform the noise reduction operation), without performing the prerequisites described in S310. Figure 2 Continue to refer to Figure 3 If the prerequisites described in S310 are met, S320 can be executed: S210-S240 can be executed multiple times.

[0060] For example, if the above prerequisites are confirmed to be met, S210-S240 can be executed once after a preset time interval. Therefore, if the wearing method of the same user changes during the wearing process (for example, the wearing angle of the earphones changes and / or the length of the earphones inserted into the ear canal changes, etc.), the "adaptive ANC stage" can be executed multiple times to replace the noise reduction filter, thereby ensuring a continuous and good noise reduction effect.

[0061] For example, in order to ensure that the headphones have a continuous and good noise reduction effect and minimize inconvenience to the user, the execution of S210-S240 can also be controlled according to the usage scenario. When it is detected that the terminal is in a song playing scenario, the adaptive noise reduction process such as S210-S240 is executed between the playback of two songs. Among them, the playback interval between the two songs is generally longer than the time required to execute S210-S240 once. In this way, the headphones can be guaranteed to have a continuous and good noise reduction effect without the user noticing.

[0062] In an exemplary embodiment, Figure 6 Shown with this application Figure 3 Schematic diagram of the headphone noise reduction timing matching the exemplary embodiment shown, refer to Figure 6 The timing diagram shown (with time as the reference horizontal axis) shows that after the earphones are detected to be in the ears through the light sensor, no-sound detection is performed through S1 (corresponding to S310). Next, S2 is executed to issue a prompt sound. As an example, as mentioned above, if it is detected that the earphone speaker is in a state of emitting sound (playing audio and video), the user can be reminded to actively turn off the played audio and video for x seconds to ensure that the earphone speaker is in a state of not emitting sound during this stage; as another example, if the terminal is controlled to pause the playback of audio and video through the earphone processor, the prompt is used to remind the user that in order to ensure the noise reduction effect, the playback of audio and video will be paused for x seconds, please wait. It should be noted that the above x seconds is the "adaptive ANC stage", which lasts no more than 2 seconds.

[0063] Continue to refer Figure 3 The "Adaptive ANC stage" is as follows Figure 2 The operation steps corresponding to S210, S210', S220 and S230 shown in the figure. After the "adaptive ANC stage", the target parameters can be determined according to the characteristics of the current human ear and the current wearing method, and based on the target parameters, a target filter suitable for the current state can be selected from multiple alternative filters, so that the noise reduction process can be implemented based on the actual situation of the current state to ensure a good noise reduction effect.

[0064] In an exemplary embodiment, if the paired terminal plays music next, there is generally a few seconds of interruption in which the speaker is silent between the two songs. Figure 6 In the interval between playing music 1 in step 5 and playing music 2 in step 7, the "Adaptive ANC phase" can be executed. Therefore, if the wearing style of the same user changes during the wearing process, the "Adaptive ANC phase" can be executed multiple times to change the noise reduction filter, thus ensuring a continuous and good noise reduction effect.

[0065] In an exemplary embodiment, Figure 7 FIG2 shows a flow chart of a headphone noise reduction method in another exemplary embodiment of the present application. Figure 7 :

[0066] Execute S3102-S3108. If the energy difference between the two channels of sound wave data is less than the above-mentioned preset energy difference value, it means that the energy difference of the SPL of the two channels of sound wave data collected by the feedforward microphone and the feedback microphone is not large, and it can be determined that the wearer of the headset is in a silent state.

[0067] Among them, the execution scenarios and specific implementation methods of S3102-S3108 are in Figure 3 The corresponding embodiments are described in detail and will not be repeated here. Figure 7 In the illustrated headphone noise reduction process, before executing S210, only whether the wearer is in a silent state is determined, that is, whether the wearer of the headphone is not making any sound (such as speaking, sneezing, etc.). Whether the headphone speaker is in a silent state is determined based on the first sound wave data obtained in S210 and the third sound wave data obtained in S210'. Therefore, in this embodiment, if the wearer is determined to be in a silent state in S3108, S710 is executed. As previously described, if the wearer is determined to be in a sounding state in S3108, S330 is executed.

[0068] For example, Figure 8 Shown with this application Figure 7 Schematic diagram of the headphone noise reduction timing matching the exemplary embodiment shown. Figure 6 In the S1' stage, this embodiment performs a silent detection on the wearer. Figure 6 , the prompt sound of S2 stage may not change. Figure 6 , Figure 8 The “adaptive ANC stage” shown includes not only S210 , S210 ′, S220 and S230 , but also S710 - S760 .

[0069] Exemplarily, in S710, the earphones are adjusted to the above-mentioned first mode (without active noise control), and S210 is executed: when the noise reduction mode of the earphones is the first mode, sound wave data lasting for a first preset time length is simultaneously obtained through the feedforward microphone and the feedback microphone of the above-mentioned earphones to obtain the first sound wave data corresponding to the above-mentioned feedforward microphone and the second sound wave data corresponding to the above-mentioned feedback microphone. The above-mentioned first model is a mode without active noise control.

[0070] Exemplarily, the first preset duration is negatively correlated with the signal-to-noise ratio of the external environmental noise, that is, the higher the signal-to-noise ratio of the external environmental noise, the shorter the first preset duration can be set. A shorter sound wave data collection duration is conducive to shortening the time required for the "adaptive ANC stage", so that the "adaptive ANC stage" can be completed without the user noticing, ultimately improving the user's headphone wearing experience. Exemplarily, as mentioned above, the value range of the first preset duration is 500ms to 2s, and can be 500ms, that is, in the first mode, 500ms of sound wave data is collected simultaneously by the feedforward microphone and the feedback microphone to obtain the first sound wave data "X ff_normal ", the second sound wave data "X" collected by the above-mentioned feedback microphone fb_normal ”.

[0071] Furthermore, S720 is executed: a first decibel value of the external environmental noise is calculated based on the first sound wave data. Furthermore, S730 is executed to determine whether the first decibel value is greater than a preset signal-to-noise ratio value. The preset signal-to-noise ratio value is within a range of not greater than or equal to 50 dB, and in this embodiment is 60 dB.

[0072] For example, according to the 50332 standard, based on the first sound wave data X ff_normal Calculate the decibel value of the external environment noise (represented as the first decibel value). In this embodiment, whether the speaker is currently in a silent state is determined based on whether the first decibel value (reflecting the external environment noise) is greater than the preset signal-to-noise ratio value. Specifically, if the first decibel value is greater than the preset signal-to-noise ratio value of 60dB, it means that the speaker is currently in a silent state, and then execute S740. ff_normal , and the second sound wave data X fb_normal ) is used to calculate the first transfer function (such as formula (1)). Exemplarily, if the first decibel value is not greater than 60 dB (the preset signal-to-noise ratio value), it indicates that the speaker is currently in a sounding state, and then S330 is executed, i.e., the process of executing the "adaptive ANC stage" is exited.

[0073] Exemplary, reference Figure 8The timing diagram shown, the "adaptive ANC stage" includes three sub-stages. The first sub-stage includes S710+S210+S720+S730, the second sub-stage includes S740+S210'+S750+S760, and the third sub-stage includes S220+S230. Among them, the above-mentioned embodiment corresponds to the first sub-stage of the "adaptive ANC stage". Specifically, S710 is executed: adjust the earphone to the above-mentioned first mode (no active noise control), and execute S210, further, S720 is executed: calculate the first decibel value about the external environmental noise according to the first sound wave data, and S730 is executed: determine whether the above-mentioned first decibel value is greater than the signal-to-noise ratio preset value, to determine whether the speaker is currently in the unvoiced state.

[0074] In an exemplary embodiment, continuing to refer to Figure 7 , in S740, the noise reduction mode of the above-mentioned earphone is switched from the above-mentioned first mode to the above-mentioned second mode (active noise control mode), and S210' is executed: in the case where the noise reduction mode of the above-mentioned earphone is the second mode, the sound wave data for a second preset time length is obtained by the above-mentioned feedforward microphone and the above-mentioned feedback microphone at the same time, obtaining the third sound wave data corresponding to the above-mentioned feedforward microphone and the fourth sound wave data corresponding to the above-mentioned feedback microphone, and the above-mentioned second mode is the active noise control mode.

[0075] Exemplarily, the above-mentioned second preset time length is also negatively related to the signal-to-noise ratio of the external environmental noise, that is, the higher the signal-to-noise ratio of the external environmental noise, the shorter the above-mentioned second preset time length can be set, and as mentioned above, the shorter sound wave data collection time length is conducive to shorten the time required for the "adaptive ANC stage", so that the "adaptive ANC stage" is executed in the case where the user is not aware, and finally improves the user's earphone wearing experience. Exemplarily, the value of the above-mentioned second preset time length is the same as the value of the above-mentioned first preset time length, which can also be 500ms, that is, in the above-mentioned second mode, 500ms of sound wave data is collected by the feedforward microphone and the feedback microphone at the same time, to obtain the third sound wave data "Y ff_anc " collected by the feedforward microphone, and the fourth sound wave data "Y fb_anc " collected by the feedback microphone.

[0076] Further, S750 is executed: calculate the second decibel value about the external environmental noise according to the above-mentioned third sound wave data. And, S760 is executed, to determine whether the above-mentioned second decibel value is greater than the signal-to-noise ratio preset value. As above, the value range of the above-mentioned signal-to-noise ratio preset value is not greater than or equal to 50db, and in this embodiment, the value is 60dB.

[0077] Exemplarily, according to the 50332 standard, the third sound wave data Y ff_ancCalculate the decibel value of the external environment noise (denoted as the second decibel value). In this embodiment, whether the second decibel value is greater than the preset signal-to-noise ratio value is used to determine whether the speaker is currently in a silent state. Specifically, if the second decibel value is greater than the preset signal-to-noise ratio value of 60dB, it means that the speaker is currently in a silent state, and then execute S220 and execute S230. ff_normal , and the fourth sound wave data X fb_normal ) is used to calculate the second transfer function (such as formula (2)). Exemplarily, if the second decibel value is not greater than 60 dB (the preset signal-to-noise ratio value), it indicates that the speaker is currently in a sounding state, and then S330 is executed, i.e., the process of executing the "adaptive ANC stage" is exited.

[0078] The above embodiment corresponds to the second and third sub-stages of the "adaptive ANC stage." Specifically, S740 is executed: the headphones are adjusted to the second mode (active noise control), and S210' is executed. Furthermore, S750 is executed: a second decibel value of the external ambient noise is calculated based on the third sound wave data, and S760 is executed: whether the second decibel value is greater than a preset signal-to-noise ratio value is determined to determine whether the speaker is currently silent.

[0079] Figure 7 The illustrated embodiment provides prerequisites such as S3102-S3108 (detection of wearer's silence). Only when the above prerequisites are met will the process of the "adaptive ANC stage" be executed, and in the "adaptive ANC stage" it is determined through S730 and S760 that the speaker is in a silent state, thereby effectively ensuring the accuracy of the self-implemented ANC.

[0080] In an exemplary embodiment, referring to Figure 9 The curves of target parameters shown in FIG. 4 include four curves of target parameters. This is the process of performing four such operations while the same user is wearing the same headset. Figure 7 The noise reduction scheme of the headphones shown is determined later. Figure 9 The consistency of the four curves can illustrate the accuracy of the noise reduction of the headphones provided by the embodiments of this specification.

[0081] In an example embodiment, the application also provides an embodiment of determining a plurality of candidate filters. For example, M filters satisfying a preset test requirement are obtained first, and the plurality of filters are aggregated to obtain N filter groups, M and N are positive integers, and the value of M is greater than the value of N. Further, the parameters of the filters in each filter group are averaged to obtain a candidate filter corresponding to each filter group. For example, 100 people are taken as samples to determine 100 groups of ANC filters achieving the best noise reduction effect in the laboratory, 20 filter groups are aggregated from the 100 groups of data, and the parameters of the filters in each filter group are averaged to obtain 20 candidate filters corresponding to the 20 filter groups. For example, the 20 candidate filters are written into the earphone end.

[0082] After the embodiment of S220 corresponding to the application determines the target parameters of the filter in the ANC mode, as a specific implementation of S230, the similarity (for example, a preselected similarity algorithm) between the target parameters and the parameters of the candidate filters is calculated, and the target filter is determined from the plurality of candidate filters according to the similarity. For example, the candidate filter with the highest similarity to the target parameters is taken as the target filter, and finally the noise reduction operation is performed based on the target filter.

[0083] In the earphone noise reduction scheme provided by the application, the earphone end automatically determines a suitable ANC filter from the candidate filters according to the differences of different ears (the pinna of different ears may be different, and the ear canal of different ears may be different) and wearing methods, so that a group of filters achieving the best active noise reduction effect can be automatically matched for the user without the user's awareness. The scheme flow is implemented in the earphone end, without the need for the user to trigger the external terminal application interface, and the time consumption is short and the user has no obvious awareness.

[0084] It should be noted that the above figures are only schematic illustrations of the processes included in the method according to the example embodiment of the application, and are not for limiting purposes. It is easy to understand that the processes shown in the above figures do not indicate or limit the time sequence of the processes. In addition, it is also easy to understand that the processes can be executed synchronously or asynchronously in a plurality of modules, for example.

[0085] The following is an embodiment of the device of the application, which can be used to execute the method embodiment of the application. For details not disclosed in the device embodiment of the application, please refer to the method embodiment of the application.

[0086] wherein, Figure 10 A structural schematic diagram of an earphone noise reduction device to which an embodiment of the application can be applied is shown. Please refer to Figure 10The information transmission device of the terminal shown in the figure can be realized by software, hardware or a combination of both as all or part of the terminal, and can also be integrated as an independent module in the terminal or on the server.

[0087] The earphone noise reduction device 1000 in the embodiment of the application comprises a sound wave data determination module 1010, a target parameter determination module 1020 and a target filter determination module 1030.

[0088] The sound wave data determination module 1010 is configured to, when the noise reduction mode of the earphone is a first mode, obtain sound wave data for a first preset time duration through the feed-forward microphone and the feed-back microphone of the earphone simultaneously, to obtain first sound wave data corresponding to the feed-forward microphone and second sound wave data corresponding to the feed-back microphone, and the first mode is a mode without active noise control. The sound wave data determination module 1010 is further configured to, when the noise reduction mode of the earphone is a second mode, obtain sound wave data for a second preset time duration through the feed-forward microphone and the feed-back microphone simultaneously, to obtain third sound wave data corresponding to the feed-forward microphone and fourth sound wave data corresponding to the feed-back microphone, and the second mode is a mode with active noise control. The target parameter determination module 1020 is configured to determine target parameters of a filter based on actual parameters of a default filter in the earphone in the second mode, the first sound wave data, the second sound wave data, the third sound wave data and the fourth sound wave data. The target filter determination module 1030 is configured to determine a target filter based on the target parameters, and to perform a noise reduction operation based on the target filter.

[0089] In an exemplary embodiment, Figure 11 An exemplary structural diagram of an earphone noise reduction device according to another exemplary embodiment of the application is shown schematically. Please refer to Figure 11 :

[0090] In an exemplary embodiment, based on the foregoing scheme, the earphone noise reduction device 1000 further comprises a first non-sound determination module 1040 and a second non-sound determination module 1050.

[0091] The first non-sound determination module 1040 is configured to, before the sound wave data determination module 1010 is configured to obtain sound wave data for a first preset time duration through the feed-forward microphone and the feed-back microphone of the earphone simultaneously when the noise reduction mode of the earphone is a first mode, determine that a wearer of the earphone is in a non-sound state.

[0092] In an exemplary embodiment, based on the foregoing scheme, the earphone noise reduction device 1000 further comprises a repeated execution control module 1060.

[0093] The repeated execution control module 1060 is configured to: in a case where it is determined that the wearer of the earphone is in a non-speech state, execute the following process multiple times: in a case where the noise reduction mode of the earphone is a first mode, simultaneously acquire sound wave data for a first preset time duration through the feed-forward microphone and the feedback microphone of the earphone to obtain first sound wave data corresponding to the feed-forward microphone and second sound wave data corresponding to the feedback microphone, the first mode being a mode without active noise control; in a case where the noise reduction mode of the earphone is a second mode, simultaneously acquire sound wave data for a second preset time duration through the feed-forward microphone and the feedback microphone to obtain third sound wave data corresponding to the feed-forward microphone and fourth sound wave data corresponding to the feedback microphone, the second mode being a mode with active noise control; determine target parameters of a filter according to actual parameters of a default filter in the earphone in the second mode, the first sound wave data, the second sound wave data, the third sound wave data, and the fourth sound wave data; and determine a target filter based on the target parameters, so as to perform a noise reduction operation based on the target filter.

[0094] In an example embodiment, based on the foregoing scheme, the first non-speech determination module 1040 is specifically configured to: before the sound wave data determination module 1010 simultaneously acquires sound wave data for a first preset time duration through the feed-forward microphone and the feedback microphone of the earphone to obtain first sound wave data corresponding to the feed-forward microphone and second sound wave data corresponding to the feedback microphone, the first mode being a mode without active noise control: simultaneously acquire sound wave data for a third preset time duration through the feed-forward microphone and the feedback microphone of the earphone to obtain fifth sound wave data corresponding to the feed-forward microphone and sixth sound wave data corresponding to the feedback microphone; calculate a first sound pressure level corresponding to the fifth sound wave data and a second sound pressure level corresponding to the sixth sound wave data; and calculate a difference between the first sound pressure level and the second sound pressure level, and in a case where the difference is less than an energy difference preset value, determine that the wearer of the earphone is in a non-speech state. Further, the noise reduction mode of the earphone can be adjusted to the first mode, so as to simultaneously acquire sound wave data for a first preset time duration through the feed-forward microphone and the feedback microphone of the earphone in a case where the noise reduction mode of the earphone is the first mode.

[0095] In an example embodiment, based on the foregoing scheme, the earphone noise reduction device 1000 further includes a second non-speech determination module 1050.

[0096] The second non-sound determination module 1050 is configured to: after the sound wave data determination module 1010 obtains the first sound wave data corresponding to the feed-forward microphone and the second sound wave data corresponding to the feed-back microphone, determine that the speaker of the earphone is in a non-sound state according to the first sound wave data, switch from the first mode to a second mode, and obtain the third sound wave data corresponding to the feed-forward microphone and the fourth sound wave data corresponding to the feed-back microphone by simultaneously acquiring sound wave data for a second preset time duration through the feed-forward microphone and the feed-back microphone in the second mode.

[0097] The second non-sound determination module 1050 is further configured to: after the sound wave data determination module 1010 obtains the third sound wave data corresponding to the feed-forward microphone and the fourth sound wave data corresponding to the feed-back microphone, determine that the speaker of the earphone is in a non-sound state according to the third sound wave data, and determine the target parameter of the filter according to the actual parameter of the default filter in the earphone in the second mode, the first sound wave data, the second sound wave data, the third sound wave data, and the fourth sound wave data.

[0098] In an example embodiment, based on the foregoing scheme, the second non-sound determination module 1050 is specifically configured to: calculate a first decibel value of the external environmental noise according to the first sound wave data; and determine that the speaker of the earphone is in a non-sound state when the first decibel value is greater than a signal-to-noise ratio preset value. Further, the noise reduction mode of the earphone can be switched from the first mode to the second mode, so that the sound wave data for a second preset time duration is simultaneously acquired through the feed-forward microphone and the feed-back microphone when the noise reduction mode of the earphone is the second mode.

[0099] In an example embodiment, based on the foregoing scheme, the second non-sound determination module 1050 is specifically configured to: calculate a second decibel value of the external environmental noise according to the third sound wave data; and determine that the speaker of the earphone is in a non-sound state when the second decibel value is greater than a signal-to-noise ratio preset value.

[0100] In an example embodiment, based on the foregoing scheme, the target parameter determination module 1020 includes a transfer function determination unit 10201 and a parameter determination unit 10202.

[0101] Among them, the above-mentioned transfer function determination unit 10201 is used to: calculate the first transfer function based on the above-mentioned first sound wave data and the above-mentioned second sound wave data; and, calculate the second transfer function based on the above-mentioned third sound wave data and the above-mentioned fourth sound wave data; the above-mentioned parameter determination unit 10202 is used to: determine the target parameters of the filter based on the above-mentioned first transfer function, the above-mentioned second transfer function and the actual parameters of the above-mentioned default filter.

[0102] In an exemplary embodiment, based on the above-mentioned solution, the parameter determination unit 10202 is specifically configured to determine target parameters of the filter according to the following formula.

[0103] F target =-H normal / (H anc *F default_anc -H normal )

[0104] Among them, F target represents the target parameters of the above filter, F default_anc represents the default parameters of the above filter, H normal represents the first transfer function mentioned above, and H anc represents the second transfer function.

[0105] In an exemplary embodiment, based on the above-mentioned scheme, the above-mentioned target filter determination unit 1030 is specifically used to: calculate the similarity between the above-mentioned target parameters and the parameters of the alternative filters; and, based on the above-mentioned similarity, determine the above-mentioned target filter from a plurality of alternative filters to perform noise reduction operations based on the above-mentioned target filter.

[0106] In an exemplary embodiment, based on the above solution, the headphone noise reduction device 1000 further includes: a candidate filter determination module 1070 .

[0107] The above-mentioned alternative filter determination module 1070 is used, before the above-mentioned target filter determination unit 930 is used to calculate the similarity between the above-mentioned target parameters and the parameters of the alternative filters: obtain M filters that meet the preset test requirements, and aggregate the above-mentioned multiple filters to obtain N filter groups, where the values ​​of M and N are both positive integers, and the value of M is greater than the value of N; and, average the parameters of the filters in each of the above-mentioned filter groups to obtain an alternative filter corresponding to each of the above-mentioned filter groups.

[0108] In an exemplary embodiment, based on the above solution, the headphone noise reduction device 1000 further includes: a detection module 1080 .

[0109] The above-mentioned detection module 1080 is used to detect whether the terminal is in a song playing scene. When it is detected that the terminal is in a song playing scene, the above-mentioned headphone noise reduction method is executed in the interval between the playing of two songs; wherein, there is a pairing relationship between the above-mentioned terminal and the above-mentioned headphone.

[0110] It should be noted that the information transmission device of the terminal provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when executing the information transmission method of the terminal. In actual application, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the information transmission device of the terminal provided in the above embodiment and the information transmission method embodiment of the terminal belong to the same concept. Therefore, for details not disclosed in the embodiment of the device of this application, please refer to the embodiment of the information transmission method of the terminal of this application, which will not be repeated here.

[0111] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0112] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the aforementioned methods. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a microdrive, a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic or optical card, a nanosystem (including a molecular memory IC), or any other type of medium or device suitable for storing instructions and / or data.

[0113] An embodiment of the present application further provides a headset, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the program.

[0114] Figure 12 The schematic diagram of the earphone is shown in Figure 1. Figure 12 As shown, the headset 1200 includes: a processor 1201 and a memory 1202.

[0115] In an embodiment of the present application, the processor 1201 is the control center of the headset. The processor 1201 may include one or more processing cores. The processor 1201 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1201 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state.

[0116] In the embodiment of the present application, the processor 1201 is specifically configured to:

[0117] When the noise reduction mode of the headset is the first mode, sound wave data lasting for a first preset time length is simultaneously acquired through the feedforward microphone and the feedback microphone of the headset, and the first sound wave data corresponding to the feedforward microphone and the second sound wave data corresponding to the feedback microphone are obtained. The first model is a mode without active noise control; when the noise reduction mode of the headset is the second mode, sound wave data lasting for a second preset time length is simultaneously acquired through the feedforward microphone and the feedback microphone, and the third sound wave data corresponding to the feedforward microphone and the fourth sound wave data corresponding to the feedback microphone are obtained. The second mode is a mode with active noise control; according to the actual parameters of the default filter in the headset in the second mode, the first sound wave data, the second sound wave data, the third sound wave data and the fourth sound wave data, the target parameters of the filter are determined; and, based on the target parameters, the target filter is determined to perform noise reduction operation based on the target filter.

[0118] Furthermore, the processor 1201 is further configured to:

[0119] In the case where the noise reduction mode of the headset is the first mode, before simultaneously acquiring sound wave data lasting for a first preset time length through the feedforward microphone and the feedback microphone of the headset: determining that the wearer of the headset is in a silent state.

[0120] Furthermore, the processor 1201 is further configured to:

[0121] When it is determined that the wearer of the above-mentioned headphones is in a silent state, the following operations are performed multiple times: when the noise reduction mode of the headphones is the first mode, sound wave data lasting for a first preset time length is simultaneously obtained through the feedforward microphone and the feedback microphone of the above-mentioned headphones, and the first sound wave data corresponding to the above-mentioned feedforward microphone and the second sound wave data corresponding to the above-mentioned feedback microphone are obtained, and the above-mentioned first model is a mode without active noise control; when the noise reduction mode of the above-mentioned headphones is the second mode, sound wave data lasting for a second preset time length is simultaneously obtained through the above-mentioned feedforward microphone and the above-mentioned feedback microphone, and the third sound wave data corresponding to the above-mentioned feedforward microphone and the fourth sound wave data corresponding to the above-mentioned feedback microphone are obtained, and the above-mentioned second mode is a mode with active noise control; and, according to the actual parameters of the default filter in the above-mentioned headphones in the above-mentioned second mode, the above-mentioned first sound wave data, the above-mentioned second sound wave data, the above-mentioned third sound wave data and the above-mentioned fourth sound wave data, the target parameters of the filter are determined; the target filter is determined based on the above-mentioned target parameters, so as to perform noise reduction operation based on the above-mentioned target filter.

[0122] Furthermore, the above-mentioned determination that the wearer of the above-mentioned headphones is in a silent state includes: simultaneously obtaining sound wave data lasting for a third preset time length through the feedforward microphone and the feedback microphone of the above-mentioned headphones, obtaining fifth sound wave data corresponding to the above-mentioned feedforward microphone and sixth sound wave data corresponding to the above-mentioned feedback microphone; calculating a first sound pressure level corresponding to the above-mentioned fifth sound wave data, and calculating a second sound pressure level corresponding to the above-mentioned sixth sound wave data; and, calculating the difference between the above-mentioned first sound pressure level and the above-mentioned second sound pressure level, and determining that the wearer of the above-mentioned headphones is in a silent state when the above-mentioned difference is less than a preset energy difference value.

[0123] Furthermore, the processor 1201 is further configured to:

[0124] After obtaining the first sound wave data corresponding to the feedforward microphone and the second sound wave data corresponding to the feedback microphone, determining that the speaker of the headset is in a silent state based on the first sound wave data, switching from the first mode to the second mode, so as to simultaneously obtain sound wave data for a second preset time period through the feedforward microphone and the feedback microphone, thereby obtaining third sound wave data corresponding to the feedforward microphone and fourth sound wave data corresponding to the feedback microphone, wherein the second mode is an active noise control mode;

[0125] After obtaining the third sound wave data corresponding to the above-mentioned feedforward microphone and the fourth sound wave data corresponding to the above-mentioned feedback microphone, it is determined based on the above-mentioned third sound wave data that the speaker of the above-mentioned earphone is in a non-sounding state, and then the target parameters of the filter are determined based on the actual parameters of the default filter in the above-mentioned earphone in the above-mentioned second mode, the above-mentioned first sound wave data, the above-mentioned second sound wave data, the above-mentioned third sound wave data and the above-mentioned fourth sound wave data.

[0126] Furthermore, the above-mentioned determining that the speaker of the above-mentioned earphone is in a non-sound state based on the above-mentioned first sound wave data includes: calculating a first decibel value of the external environmental noise based on the above-mentioned first sound wave data; and, when the above-mentioned first decibel value is greater than a preset signal-to-noise ratio value, determining that the speaker of the above-mentioned earphone is in a non-sound state.

[0127] Furthermore, the above-mentioned determining that the speaker of the above-mentioned earphone is in a non-sound state based on the above-mentioned third sound wave data includes: calculating a second decibel value of the external environmental noise based on the above-mentioned third sound wave data; and determining that the speaker of the above-mentioned earphone is in a non-sound state when it is determined that the above-mentioned second decibel value is greater than a preset signal-to-noise ratio value.

[0128] Furthermore, the above-mentioned determining target parameters of the filter based on the actual parameters of the default filter in the above-mentioned earphones in the above-mentioned second mode, the above-mentioned first sound wave data, the above-mentioned second sound wave data, the above-mentioned third sound wave data and the above-mentioned fourth sound wave data includes: calculating a first transfer function based on the above-mentioned first sound wave data and the above-mentioned second sound wave data; calculating a second transfer function based on the above-mentioned third sound wave data and the above-mentioned fourth sound wave data; and determining the target parameters of the filter based on the above-mentioned first transfer function, the above-mentioned second transfer function and the actual parameters of the above-mentioned default filter.

[0129] Furthermore, determining the target parameters of the filter according to the first transfer function, the second transfer function and the default parameters of the filter includes:

[0130] F target =-H normal / (H anc *F default_anc -H normal )

[0131] Among them, F target represents the target parameters of the above filter, F default_anc represents the default parameters of the above filter, H normal represents the first transfer function mentioned above, and H anc represents the second transfer function.

[0132] Furthermore, the above-mentioned determination of the target filter based on the above-mentioned target parameters to perform noise reduction operation based on the above-mentioned target filter includes: calculating the similarity between the above-mentioned target parameters and the parameters of the alternative filters; and determining the above-mentioned target filter from a plurality of alternative filters according to the above-mentioned similarity to perform noise reduction operation based on the above-mentioned target filter.

[0133] Furthermore, the processor is further configured to:

[0134] Before calculating the similarity between the target parameters and the parameters of the alternative filters, M filters that meet the preset test requirements are obtained, and the multiple filters are aggregated to obtain N filter groups, where M and N are both positive integers, and the value of M is greater than the value of N; and the parameters of the filters in each of the filter groups are averaged to obtain an alternative filter corresponding to each of the filter groups.

[0135] Furthermore, the processor 1201 is further configured to:

[0136] Detect whether the terminal is in a song playing scene; when it is detected that the terminal is in a song playing scene, execute the above-mentioned headphone noise reduction method in the interval between the playing of two songs; wherein, there is a pairing relationship between the above-mentioned terminal and the above-mentioned headphone.

[0137] The memory 1202 may include one or more computer-readable storage media, which may be non-transitory. The memory 1202 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments of the present application, the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one instruction, which is used to be executed by the processor 1201 to implement the method in the embodiment of the present application.

[0138] In some embodiments, terminal 1200 further includes a peripheral device interface 1203 and at least one peripheral device. Processor 1201, memory 1202, and peripheral device interface 1203 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1203 via a bus, signal lines, or circuit boards. Specifically, the peripheral devices include audio circuit 1204, etc.

[0139] The peripheral device interface 1203 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1201 and the memory 1202. In some embodiments of the present application, the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments of the present application, any one or two of the processor 1201, the memory 1202, and the peripheral device interface 1203 can be implemented on separate chips or circuit boards. This embodiment of the present application is not specifically limited to this.

[0140] The audio circuit 1204 may include a feedforward microphone and a feedback microphone. Each microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 1201 for processing.

[0141] Power supply 1205 is used to power headset 1200. Power supply 1205 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1205 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is charged via a wired line, while a wireless rechargeable battery is charged via a wireless coil. The rechargeable battery can also support fast charging technology.

[0142] The terminal structure block diagram shown in the embodiment of the present application does not constitute a limitation on the terminal 1200. The terminal 1200 may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.

[0143] In the description of this application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to the specific circumstances. In addition, in the description of this application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship.

[0144] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the scope of protection of the present application. Therefore, equivalent modifications made according to the claims of the present application are still within the scope of protection of the present application.

Claims

1. A method for reducing noise in headphones, characterized in that: The method comprises: When the noise reduction mode of the headset is a first mode, sound wave data continuously lasting a first preset time length is simultaneously acquired through a feedforward microphone and a feedback microphone of the headset to obtain first sound wave data corresponding to the feedforward microphone and second sound wave data corresponding to the feedback microphone, wherein the first mode is a mode without active noise control; When the noise reduction mode of the headset is the second mode, sound wave data lasting for a second preset time period is simultaneously acquired by the feedforward microphone and the feedback microphone to obtain third sound wave data corresponding to the feedforward microphone and fourth sound wave data corresponding to the feedback microphone, and the second mode is an active noise control mode; determining target parameters of a filter according to actual parameters of a default filter in the headset in the second mode, the first sound wave data, the second sound wave data, the third sound wave data, and the fourth sound wave data; determining a target filter based on the target parameter to perform a noise reduction operation based on the target filter; The determining target parameters of the filter according to actual parameters of the default filter in the headset in the second mode, the first sound wave data, the second sound wave data, the third sound wave data, and the fourth sound wave data includes: calculating a first transfer function based on the first sound wave data and the second sound wave data, wherein the first transfer function is a ratio of a sound pressure level corresponding to the first sound wave data to a sound pressure level corresponding to the second sound wave data; calculating a second transfer function based on the third sound wave data and the fourth sound wave data, wherein the second transfer function is a ratio of a sound pressure level corresponding to the third sound wave data to a sound pressure level corresponding to the fourth sound wave data; Target parameters of the filter are determined according to the first transfer function, the second transfer function and actual parameters of the default filter.

2. The method according to claim 1, characterized in that When the noise reduction mode of the headset is the first mode, before simultaneously acquiring sound wave data lasting for a first preset time length through the feedforward microphone and the feedback microphone of the headset, the method further includes: It is determined that the wearer of the earphone is in a silent state.

3. The method according to claim 2, characterized in that Determining that the wearer of the headset is in a silent state includes: Simultaneously acquiring sound wave data for a third preset time period through a feedforward microphone and a feedback microphone of the headset, obtaining fifth sound wave data corresponding to the feedforward microphone and sixth sound wave data corresponding to the feedback microphone; calculating a first sound pressure level corresponding to the fifth sound wave data, and calculating a second sound pressure level corresponding to the sixth sound wave data; A difference between the first sound pressure level and the second sound pressure level is calculated, and when the difference is less than a preset energy difference value, it is determined that the wearer of the headset is in a silent state.

4. The method according to any one of claims 1 to 3, characterized in that After obtaining the first sound wave data corresponding to the feedforward microphone and the second sound wave data corresponding to the feedback microphone, the method further includes: If it is determined based on the first sound wave data that the speaker of the headset is in a silent state, switching from the first mode to the second mode to simultaneously acquire sound wave data for a second preset time period through the feedforward microphone and the feedback microphone, obtaining third sound wave data corresponding to the feedforward microphone and fourth sound wave data corresponding to the feedback microphone, the second mode being an active noise control mode; After obtaining the third sound wave data corresponding to the feedforward microphone and the fourth sound wave data corresponding to the feedback microphone, the method further includes: If it is determined based on the third sound wave data that the speaker of the earphone is in a non-sounding state, the target parameters of the filter are determined based on the actual parameters of the default filter in the earphone in the second mode, the first sound wave data, the second sound wave data, the third sound wave data and the fourth sound wave data.

5. The method according to claim 4, characterized in that The determining, according to the first sound wave data, that the speaker of the headset is in a silent state includes: Calculating a first decibel value of external environmental noise according to the first sound wave data; When the first decibel value is greater than a preset signal-to-noise ratio value, it is determined that the speaker of the headset is in a silent state.

6. The method according to claim 4, characterized in that The determining, according to the third sound wave data, that the speaker of the headset is in a silent state includes: Calculating a second decibel value of external environmental noise according to the third sound wave data; When it is determined that the second decibel value is greater than the preset signal-to-noise ratio value, it is determined that the speaker of the headset is in a silent state.

7. The method according to claim 1, characterized in that Determining target parameters of the filter according to the first transfer function, the second transfer function, and default parameters of the filter includes: in, represents the target parameters of the filter, represents the default parameters of the filter, represents the first transfer function, and represents the second transfer function.

8. The method according to any one of claims 1 to 3, characterized in that The determining a target filter based on the target parameter to perform a noise reduction operation based on the target filter includes: Calculating the similarity between the target parameters and the parameters of the candidate filter; The target filter is determined from a plurality of candidate filters according to the similarity, so as to perform a noise reduction operation based on the target filter.

9. The method according to claim 8, characterized in that Before calculating the similarity between the target parameter and the parameter of the candidate filter, the method further includes: Obtain M filters that meet preset test requirements, and aggregate the multiple filters to obtain N filter groups, where M and N are both positive integers, and the value of M is greater than the value of N; The parameters of the filters in each filter group are averaged to obtain a candidate filter corresponding to each filter group.

10. The method according to claim 1, characterized in that The method further comprises: Detect whether the terminal is in a song playing scene; When it is detected that the terminal is in a song playing scenario, executing the headphone noise reduction method in the interval between playing two songs; There is a pairing relationship between the terminal and the headset.

11. An earphone noise reduction device, characterized in that: The device comprises: a sound wave data determination module, configured to: when the noise reduction mode of the headset is a first mode, simultaneously acquire sound wave data for a first preset duration through a feedforward microphone and a feedback microphone of the headset, to obtain first sound wave data corresponding to the feedforward microphone and second sound wave data corresponding to the feedback microphone, wherein the first mode is a mode without active noise control; The sound wave data determination module is further configured to: when the noise reduction mode of the headset is the second mode, simultaneously acquire sound wave data for a second preset time period through the feedforward microphone and the feedback microphone to obtain third sound wave data corresponding to the feedforward microphone and fourth sound wave data corresponding to the feedback microphone, wherein the second mode is an active noise control mode; a target parameter determination module, configured to determine target parameters of a filter based on actual parameters of a default filter in the headset in the second mode, the first sound wave data, the second sound wave data, the third sound wave data, and the fourth sound wave data; a target filter determination module, configured to: determine a target filter based on the target parameter, so as to perform a noise reduction operation based on the target filter; The target parameter determination module is specifically used to: calculate a first transfer function based on the first sound wave data and the second sound wave data, where the first transfer function is the ratio of the sound pressure level corresponding to the first sound wave data to the sound pressure level corresponding to the second sound wave data; calculate a second transfer function based on the third sound wave data and the fourth sound wave data, where the second transfer function is the ratio of the sound pressure level corresponding to the third sound wave data to the sound pressure level corresponding to the fourth sound wave data; and determine the target parameters of the filter based on the first transfer function, the second transfer function and the actual parameters of the default filter.

12. A headset comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 10 is implemented.

13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

Citation Information

Patent Citations

  • Target frequency response detection method and system for feed-forward filter of noise reduction earphone

    CN113053347A