Earphone noise reduction method and device, electronic equipment and computer readable storage medium

By detecting the direction of the external noise signal and calculating the feedforward filter coefficient, a matching inverse denoising signal is generated, which solves the problem of poor active noise reduction effect of headphones and achieves more efficient noise cancellation.

CN115714945BActive Publication Date: 2025-10-17GEER TECH CO LTD
4 Cites 0 Cited by

Patent Information

Application Number
CN202211485763.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-24
Publication Date
2025-10-17
Estimated Expiration
2042-11-24

AI Technical Summary

Technical Problem

The active noise reduction effect of existing headphones is poor, mainly because the direction of the noise source is not fixed, resulting in a mismatch between the denoised signal and the external noise.

Method used

By detecting the direction of the external noise signal, the corresponding feedforward filter coefficient is determined, and headphone noise reduction is performed based on the coefficient. The direction of the noise signal is calculated using the microphone array and transfer function, and an inverted denoising signal that matches the noise signal is generated.

Benefits of technology

It improves the active noise reduction effect of the headphones, ensures that the noise reduction signal can effectively offset external noise, and improves the matching and effect of noise reduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115714945B_ABST
    Figure CN115714945B_ABST
Patent Text Reader

Abstract

The application discloses an earphone noise reduction method and device, electronic equipment and a computer readable storage medium, and is applied to an earphone. The earphone noise reduction method comprises the following steps: detecting a noise signal direction corresponding to an external noise signal; determining corresponding feedforward filter coefficients according to the noise signal direction; and performing earphone noise reduction according to the feedforward filter coefficients. The application solves the technical problem of poor active noise reduction effect of the earphone.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of audio processing, in particular to an earphone noise reduction method and device, electronic equipment and a computer readable storage medium. BACKGROUND

[0002] With the continuous development of random technology, earphones have gradually become common intelligent devices for people. Currently, a feed-forward microphone is usually arranged on an earphone. After receiving external environmental noise, the loudspeaker emits a noise reduction signal that is equivalent to and opposite to the external environmental noise, so as to cancel the external environmental noise signal and thus realize active noise reduction. However, in the actual use of the earphone, the source direction of the noise is usually not fixed, that is, the source direction of the noise is variable, which leads to the fact that the noise reduction signal often does not match the external environmental noise, that is, the noise reduction signal cannot completely cancel the external noise signal, thereby affecting the active noise reduction effect of the earphone. SUMMARY

[0003] The main purpose of the present application is to provide an earphone noise reduction method, device, electronic equipment and computer readable storage medium, which aims to solve the technical problem of poor active noise reduction effect of the earphone in the prior art.

[0004] To achieve the above-mentioned purpose, the present application provides an earphone noise reduction method applied to an earphone, which comprises the following steps:

[0005] detecting a noise signal direction corresponding to an external noise signal;

[0006] determining a corresponding feed-forward filter coefficient according to the noise signal direction;

[0007] performing earphone noise reduction according to the feed-forward filter coefficient.

[0008] Optionally, the step of determining the corresponding feed-forward filter coefficient according to the noise signal direction comprises:

[0009] determining a first transfer function from a feed-forward microphone to an ear according to the noise signal direction;

[0010] determining a corresponding feed-forward filter coefficient according to the first transfer function.

[0011] Optionally, the step of determining the corresponding feed-forward filter coefficient according to the first transfer function comprises:

[0012] obtaining a second transfer function from a loudspeaker to the ear;

[0013] determining a target anti-phase noise signal required when reducing the external noise signal according to the first transfer function, the second transfer function and the external noise signal;

[0014] According to the target anti-phase noise signal and the ambient noise signal, a corresponding feed-forward filter coefficient is determined.

[0015] Optionally, the earphone comprises a feed-forward microphone array, and the step of detecting the noise signal direction corresponding to the ambient noise signal comprises:

[0016] The ambient noise signal is picked up by different elements in the feed-forward microphone array to obtain at least one picked noise signal;

[0017] According to each of the picked noise signals, the noise signal direction corresponding to the ambient noise signal is detected.

[0018] Optionally, the step of detecting the noise signal direction corresponding to the ambient noise signal according to each of the picked noise signals comprises:

[0019] A first noise signal time difference between each of the picked noise signals and a first element position distance between each element in the feed-forward microphone array are obtained;

[0020] According to the first noise signal time difference and the first element position distance, the noise signal direction corresponding to the ambient noise signal is calculated.

[0021] Optionally, the step of detecting the noise signal direction corresponding to the ambient noise signal according to each of the picked noise signals comprises:

[0022] The amplitudes of non-stationary noises in each of the picked noise signals are respectively detected;

[0023] Based on the amplitudes of the non-stationary noises, each target picked noise signal is selected from each of the picked noise signals;

[0024] According to each of the target picked noise signals, the noise signal direction corresponding to the ambient noise signal is detected.

[0025] Optionally, the step of detecting the noise signal direction corresponding to the ambient noise signal according to each of the target picked noise signals comprises:

[0026] A second noise signal time difference between each of the target picked noise signals and a second element position distance between elements corresponding to each of the target picked noise signals are obtained;

[0027] According to the second noise signal time difference and the second element position distance, the noise signal direction corresponding to the ambient noise signal is calculated.

[0028] To achieve the above object, the application further provides an earphone noise reduction device applied to an earphone, the earphone noise reduction device comprising:

[0029] a detection module configured to detect a noise signal direction corresponding to an external noise signal;

[0030] a filter coefficient determination module configured to determine a corresponding feed-forward filter coefficient according to the noise signal direction;

[0031] a noise reduction module configured to perform earphone noise reduction according to the feed-forward filter coefficient.

[0032] Optionally, the filter coefficient determination module is further configured to:

[0033] determine a first transfer function from a feed-forward microphone to a human ear according to the noise signal direction;

[0034] determine a corresponding feed-forward filter coefficient according to the first transfer function.

[0035] Optionally, the filter coefficient determination module is further configured to:

[0036] obtain a second transfer function from a loudspeaker to the human ear;

[0037] determine a target anti-phase noise signal required when performing noise reduction on the external noise signal according to the first transfer function, the second transfer function and the external noise signal;

[0038] determine a corresponding feed-forward filter coefficient according to the target anti-phase noise signal and the external noise signal.

[0039] Optionally, the earphone comprises a feed-forward microphone array, and the detection module is further configured to:

[0040] obtain at least one picked-up noise signal by picking up the external noise signal through different elements in the feed-forward microphone array;

[0041] detect the noise signal direction corresponding to the external noise signal according to each picked-up noise signal.

[0042] Optionally, the detection module is further configured to:

[0043] obtain a first noise signal time difference between each picked-up noise signal and a first element position distance between each element in the feed-forward microphone array;

[0044] calculate the noise signal direction corresponding to the external noise signal according to the first noise signal time difference and the first element position distance.

[0045] Optionally, the detection module is further configured to:

[0046] respectively detect amplitudes of non-stationary noise in each picked-up noise signal;

[0047] selecting a target pickup noise signal from each of the pickup noise signals based on the amplitude of each of the non-steady-state noises;

[0048] detecting a noise signal direction corresponding to the external noise signal according to each of the target pickup noise signals.

[0049] Optionally, the detection module is further configured to:

[0050] obtaining a second noise signal time difference between each of the target pickup noise signals and a second array element position distance between array elements corresponding to each of the target pickup noise signals;

[0051] calculating the noise signal direction corresponding to the external noise signal according to the second noise signal time difference and the second array element position distance.

[0052] The application further provides an electronic device, which is a physical device. The electronic device comprises a memory, a processor, and a program of the earphone noise reduction method stored in the memory and executable on the processor. When the program of the earphone noise reduction method is executed by the processor, the steps of the earphone noise reduction method described above can be implemented.

[0053] The application further provides a computer readable storage medium, which stores a program of an earphone noise reduction method. When the program of the earphone noise reduction method is executed by a processor, the steps of the earphone noise reduction method described above can be implemented.

[0054] The application further provides a computer program product, which comprises a computer program. When the computer program is executed by a processor, the steps of the earphone noise reduction method described above can be implemented.

[0055] The application provides an earphone noise reduction method, device, electronic device, and computer readable storage medium. First, the noise signal direction corresponding to the external noise signal is detected. Then, the corresponding feedforward filter coefficient is determined according to the noise signal direction. Finally, the earphone noise reduction is performed according to the feedforward filter coefficient. In this way, the noise signal direction of the external noise signal can be detected first. Then, a matching feedforward filter coefficient can be determined according to the noise signal direction. A de-noising signal with higher matching degree can be generated by filtering the external noise signal according to the feedforward filter coefficient. Thus, even if the noise signal direction of the external noise signal is variable, the de-noising signal generated by the loudspeaker can basically cancel the external noise signal, thereby improving the effect of earphone active noise reduction. BRIEF DESCRIPTION OF DRAWINGS

[0056] The accompanying drawings, which are incorporated into and form a part of the specification, illustrate preferred embodiments of the present application and, together with the description, serve to explain the principles of the application.

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those of ordinary skill in the art, without paying creative labor, other drawings can also be obtained from these drawings.

[0058] Figure 1 The flowchart of the first embodiment of the earphone noise reduction method of the present application;

[0059] Figure 2 The position deployment schematic diagram of the array element in the microphone array in the first embodiment of the earphone noise reduction method of the present application;

[0060] Figure 3 The principle schematic diagram of calculating the noise signal direction in the first embodiment of the earphone noise reduction method of the present application;

[0061] Figure 4 The flowchart of the second embodiment of the earphone noise reduction method of the present application;

[0062] Figure 5 The device structure schematic diagram of the hardware running environment involved in the earphone noise reduction method in the embodiments of the present application.

[0063] The purposes, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0064] In order to make the above-mentioned purposes, features and advantages of the present application more apparent and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.

[0065] Embodiment one

[0066] The earphone noise reduction method provided in the embodiments of the present application is applied to an earphone, and the earphone noise reduction method comprises Figure 1 In the first embodiment of the earphone noise reduction method of the present application, the earphone noise reduction method applied to an earphone comprises:

[0067] Step S10, detecting a noise signal direction corresponding to an external noise signal;

[0068] Step S20, determining the corresponding feed-forward filter coefficient according to the noise signal direction;

[0069] Step S30, performing earphone noise reduction according to the feed-forward filter coefficient.

[0070] In the embodiment, it is to be noted that, in the debugging process, the test noise of the feed-forward microphone to human ear transfer function is usually from a fixed direction or a default direction opposite to the earphone, while in the actual use process, the source direction of the noise is not fixed, and the feed-forward microphone to human ear transfer function is greatly affected by the direction, which leads to the fact that the noise reduction signal often does not match the external environmental noise, that is, the noise reduction signal cannot completely cancel the external noise signal, affecting the effect of earphone active noise reduction.

[0071] The earphone can be a Bluetooth wireless earphone, and a microphone array is arranged on the earphone. Based on the time difference of the external noise signal reaching different array elements of the microphone array, the direction of the external noise signal can be calculated. The earphone is also provided with a feed-forward filter, which is used to filter the external noise signal and output a noise reduction signal equivalent to the opposite phase of the external noise signal. After the noise reduction signal is played through the loudspeaker, it can be mutually cancelled with the external noise signal entering the ear canal of the human ear, thereby realizing earphone active noise reduction.

[0072] As an example, steps S10 to S30 include: detecting the noise signal direction corresponding to the external noise signal through the microphone array on the earphone; determining the first transfer function from the feed-forward microphone to the human ear according to the mapping relationship between the noise signal direction and the preset transfer function; calculating the corresponding feed-forward filter coefficient according to the first transfer function; filtering the external noise signal based on the feed-forward filter with the feed-forward filter coefficient to obtain a noise inverse signal; and playing the noise inverse signal through the loudspeaker to perform earphone noise reduction.

[0073] The step of determining the corresponding feed-forward filter coefficient according to the noise signal direction includes:

[0074] Step S21, determining the first transfer function from the feed-forward microphone to the human ear according to the noise signal direction;

[0075] Step S22, determining the corresponding feed-forward filter coefficient according to the first transfer function.

[0076] As an example, steps S21 to S22 include: according to the direction of the noise signal, searching for a first transfer function corresponding to the direction of the noise signal in a preset first mapping table, wherein the first transfer function is a transfer function from the feedforward microphone array to the human ear, and the preset first mapping table is a mapping table that characterizes the correspondence between the noise signal direction and the transfer function from the feedforward microphone array to the human ear; according to the first transfer function, searching for a corresponding feedforward filter coefficient in a preset second mapping table, wherein the preset second mapping table is a mapping table that characterizes the correspondence between the first transfer function and the feedforward filter coefficient.

[0077] The step of determining corresponding feedforward filter coefficients according to the first transfer function includes:

[0078] Step S221, obtaining a second transfer function from the speaker to the human ear;

[0079] Step S222, determining a target anti-phase noise signal required for noise reduction of the external noise signal according to the first transfer function, the second transfer function, and the external noise signal;

[0080] Step S223 : determining corresponding feedforward filter coefficients according to the target inverse phase noise signal and the external noise signal.

[0081] As an example, steps S221 to S223 include: obtaining a second transfer function from the speaker to the human ear; calculating the product between the first transfer function and the external noise signal to obtain a human ear received noise signal transmitted from the external noise signal to the human ear; calculating, based on the equivalent inverse signal corresponding to the human ear received noise signal and the second transfer function, a target inverse noise signal that the feedforward filter needs to output when denoising the external noise signal; and calculating corresponding feedforward filter coefficients based on the target inverse noise signal and the external noise signal.

[0082] As an example, the process of calculating the target inverted noise signal is as follows:

[0083] FFP*X-FFG*Y=0

[0084] Wherein, FFP is the first transfer function from the feedforward microphone to the human ear, X is the external noise signal, FFG is the second transfer function from the loudspeaker to the human ear, and -Y is the target inverse noise signal corresponding to the external noise signal.

[0085] The earphone includes a feedforward microphone array, and the step of detecting the direction of the noise signal corresponding to the external noise signal includes:

[0086] Step S11, picking up the external noise signal through different array elements in the feed-forward microphone array to obtain at least one picked noise signal;

[0087] Step S12, detecting the noise signal direction corresponding to the external noise signal according to each picked noise signal.

[0088] In this embodiment, it should be noted that the earphone is provided with a microphone array, and the microphone array is provided with at least two array elements, wherein the array element can be a feed-forward microphone. Based on the time difference of the external noise signal reaching different array elements, the noise signal direction of the external noise signal can be calculated. As an example, refer to Figure 2 The microphone array can include a feed-forward microphone 1 and a feed-forward microphone 2, and the feed-forward microphone 1 and the feed-forward microphone 2 are arranged on the left earphone and the right earphone respectively, thereby forming a microphone array.

[0089] As an example, steps S11 to S12 include: picking up the external noise signal through different feed-forward microphones in the feed-forward microphone array to obtain the picked noise signal of each feed-forward microphone; by analyzing each picked noise signal, the time difference of each picked noise signal reaching the corresponding feed-forward microphone is obtained, and the noise signal direction corresponding to the external noise signal is calculated according to the time difference.

[0090] The step of detecting the noise signal direction corresponding to the external noise signal according to each picked noise signal includes:

[0091] Step S121, obtaining a first noise signal time difference between each picked noise signal and a first array element position distance between each array element in the feed-forward microphone array;

[0092] Step S122, calculating the noise signal direction corresponding to the external noise signal according to the first noise signal time difference and the first array element position distance.

[0093] In this embodiment, it should be noted that the microphone array includes a first feed-forward microphone and a second feed-forward microphone, and each picked noise signal includes a first picked noise signal of the first feed-forward microphone and a second picked noise signal of the second feed-forward microphone.

[0094] As an example, the steps S121 to S122 include: obtaining a time difference between the first picked-up noise signal reaching the first feed-forward microphone and the second picked-up noise signal reaching the second feed-forward microphone, to obtain a first noise signal time difference, and obtaining a interval distance between the first feed-forward microphone and the second feed-forward microphone, to obtain a first array element position distance; and calculating a noise signal direction corresponding to the external noise signal according to the first noise signal time difference, the first array element position distance, and a sound signal propagation speed.

[0095] As an example, referring to Figure 3 , the process of calculating the noise signal direction is as follows:

[0096]

[0097] wherein τ is the first noise signal time difference, d is the first array element position, c is the sound signal propagation speed, and θ is an angle representing the noise signal direction.

[0098] The earphone noise reduction method provided in the embodiments of the present application first detects a noise signal direction corresponding to an external noise signal, then determines a corresponding feed-forward filter coefficient according to the noise signal direction, and performs earphone noise reduction according to the feed-forward filter coefficient. In this way, in the embodiments of the present application, the noise signal direction of the external noise signal can be detected first, then a matching feed-forward filter coefficient can be determined according to the noise signal direction, and a de-noise signal with a higher matching degree with the external noise signal can be generated by filtering the external noise signal according to the feed-forward filter coefficient, so that the de-noise signal generated by the loudspeaker can basically cancel the external noise signal even if the noise signal direction of the external noise signal is variable, and thus the effect of active noise reduction of the earphone can be improved.

[0099] Embodiment Two

[0100] As an example, referring to Figure 4 , based on the first embodiment of the present application, in another embodiment of the present application, the step of detecting a noise signal direction corresponding to the external noise signal according to each picked-up noise signal includes:

[0101] Step A10, detecting the amplitudes of non-stationary noises in each picked-up noise signal respectively;

[0102] Step A20, selecting target picked-up noise signals from the picked-up noise signals based on the amplitudes of the non-stationary noises;

[0103] Step A30, detecting a noise signal direction corresponding to the external noise signal according to each target picked-up noise signal.

[0104] It should be noted that in the external environment, non-steady-state noise often occurs. In actual application scenarios, non-steady-state noise often exists. The non-steady-state noise is noise without steady-state characteristics. The steady-state characteristics can be amplitude characteristics or phase characteristics with certain distribution rules. As an example, the non-steady-state noise can be wind noise in a wind noise scenario, or noise generated by scratching the earphone with hair or nails. Therefore, the earphone cannot effectively capture the signal characteristics of the non-steady-state noise within the detection time, which affects the effect of active noise reduction of the earphone. Therefore, when performing active noise reduction, the non-steady-state noise is usually directly ignored, and only the steady-state noise is reduced. However, the feedforward microphone can also pick up the non-steady-state noise. Therefore, if the direction of the steady-state noise signal is directly detected based on the noise signal picked up by the feedforward microphone in the embodiment of the present application, if a high proportion of non-steady-state noise exists in the external noise signal, the non-steady-state noise will affect the accuracy of detecting the direction of the steady-state noise signal, thereby affecting the effect of reducing the noise of the earphone for the steady-state noise.

[0105] As an example, steps A10 to A30 include: converting the picked-up noise signal from the time domain to the frequency domain to obtain a frequency domain sound signal; performing feature extraction on the frequency domain sound signal to obtain an audio feature; inputting the audio feature into a preset signal amplitude detection model to map the audio feature to a corresponding model output value, and taking the model output value as the non-steady-state noise amplitude corresponding to the audio feature. The preset signal amplitude detection model can be a logistic regression model, and the model output value can be a logistic regression value. Based on the amplitudes of the non-steady-state noises, a preset number of target picked-up noise signals with smaller non-steady-state noise amplitudes are selected from each picked-up noise signal. The time difference between each target picked-up noise signal and the corresponding feedforward microphone is detected to detect the noise signal direction corresponding to the external noise signal. The embodiment of the present application realizes the purpose of detecting the non-steady-state noise amplitude in the sound signal combined with deep learning. The amplitude of the non-steady-state noise in the sound signal can be estimated, so that a preset number of target picked-up noise signals with smaller non-steady-state noise amplitudes can be selected from each picked-up noise signal. The noise direction is detected based on each target picked-up noise signal. The influence of the non-steady-state noise on the detection of the steady-state noise signal direction can be reduced to the greatest extent, the accuracy of the detection of the steady-state noise signal direction is improved, and the effect of reducing the noise of the earphone for the steady-state noise is improved.

[0106] As an example, the feature extraction on the frequency domain sound signal to obtain the audio feature comprises: periodically sampling the frequency domain sound signal for a preset number of times in a preset frequency range and under a preset frequency interval to collect a preset number of frequency response values in the frequency domain sound signal to obtain the audio feature. For example, the preset frequency range and the preset frequency interval can be set by the user, the preset frequency can be set to 20-1000 Hz, the preset frequency interval can be set to one-twelfth, the sampling period can be set to 100 ms, the preset number of periodic samplings is 32, and the preset number is 32*32. Each sampling obtains a vector composed of 32 frequency response values, a total of 32 vectors, and 32 vectors form a 32*32 matrix, which is the audio feature.

[0107] The step of detecting the noise signal direction corresponding to the external noise signal according to each target picked-up noise signal comprises:

[0108] Step A31: obtaining a second noise signal time difference between each target picked-up noise signal and a second array element position distance between array elements corresponding to each target picked-up noise signal.

[0109] Step A32: calculating the noise signal direction corresponding to the external noise signal according to the second noise signal time difference and the second array element position distance.

[0110] In this embodiment, it should be noted that each target picked-up noise signal comprises a first target picked-up noise signal and a second target picked-up noise signal.

[0111] As an example, steps A31-A32 comprise: obtaining a time difference between the arrival of the first target picked-up noise signal at the corresponding feed-forward microphone and the arrival of the second target picked-up noise signal at the corresponding second feed-forward microphone to obtain a second noise signal time difference, and obtaining an interval distance between the feed-forward microphone corresponding to the first target picked-up noise signal and the second feed-forward microphone corresponding to the second target picked-up noise signal to obtain a second array element position distance; and calculating the noise signal direction corresponding to the external noise signal according to the second noise signal time difference, the second array element position distance, and the propagation speed of the sound signal. The specific implementation process of calculating the noise signal direction can refer to the specific implementation content of steps S121-S122 described above, and will not be described here.

[0112] The embodiment of the present application provides a direction detection method of an external noise signal, that is, the amplitudes of non-steady noises in each pickup noise signal are detected respectively; target pickup noise signals are selected from each pickup noise signal based on the amplitudes of the non-steady noises; and the noise signal direction corresponding to the external noise signal is detected according to the target pickup noise signals. In this way, in the embodiment of the present application, the signal with a smaller signal amplitude can be selected as the target pickup noise signal from each pickup noise signal, so as to calculate the direction of the external noise signal, thereby the influence of the non-steady noise in the external noise signal on the direction detection of the steady noise can be avoided to the greatest extent, the accuracy of detecting the direction of the steady noise signal when the steady noise signal and the non-steady noise signal exist in the external noise signal at the same time is improved, and the feedforward filter coefficient selected according to the noise signal direction with higher accuracy can be used for reducing the noise of the steady noise, so that the effect of reducing the noise of the steady noise by the earphone can be improved.

[0113] Embodiment three

[0114] To achieve the above object, the present application further provides an earphone noise reduction device applied to an earphone, the earphone noise reduction device comprising:

[0115] A detection module is configured to detect a noise signal direction corresponding to an external noise signal.

[0116] A filter coefficient determination module is configured to determine a corresponding feedforward filter coefficient according to the noise signal direction.

[0117] A noise reduction module is configured to perform earphone noise reduction according to the feedforward filter coefficient.

[0118] Optionally, the filter coefficient determination module is further configured to:

[0119] determine a first transfer function from a feedforward microphone to an ear according to the noise signal direction;

[0120] determine a corresponding feedforward filter coefficient according to the first transfer function.

[0121] Optionally, the filter coefficient determination module is further configured to:

[0122] obtain a second transfer function from a loudspeaker to the ear;

[0123] determine a target anti-noise signal required when reducing the external noise signal according to the first transfer function, the second transfer function and the external noise signal;

[0124] determine a corresponding feedforward filter coefficient according to the target anti-noise signal and the external noise signal.

[0125] Optionally, the earphone comprises a feed-forward microphone array, and the detection module is further configured to:

[0126] Pick up external noise signals through different elements in the feed-forward microphone array to obtain at least one picked noise signal;

[0127] Detect a noise signal direction corresponding to the external noise signal according to each of the picked noise signals.

[0128] Optionally, the detection module is further configured to:

[0129] Obtain a first noise signal time difference between each of the picked noise signals and a first element position distance between each element in the feed-forward microphone array;

[0130] Calculate the noise signal direction corresponding to the external noise signal according to the first noise signal time difference and the first element position distance.

[0131] Optionally, the detection module is further configured to:

[0132] Detect amplitudes of non-stationary noises in each of the picked noise signals respectively;

[0133] Select target picked noise signals from each of the picked noise signals based on the amplitudes of the non-stationary noises;

[0134] Detect the noise signal direction corresponding to the external noise signal according to each of the target picked noise signals.

[0135] Optionally, the detection module is further configured to:

[0136] Obtain a second noise signal time difference between each of the target picked noise signals and a second element position distance between elements corresponding to each of the target picked noise signals;

[0137] Calculate the noise signal direction corresponding to the external noise signal according to the second noise signal time difference and the second element position distance.

[0138] The earphone noise reduction device provided in the application adopts the earphone noise reduction method in the above embodiments to solve the technical problem of poor active noise reduction effect of the earphone. Compared with the prior art, the earphone noise reduction device provided in the embodiments of the application has the same beneficial effects as the earphone noise reduction method provided in the above embodiments, and other technical features in the earphone noise reduction device are the same as the features disclosed in the above embodiments, which will not be repeated here.

[0139] Embodiment Four

[0140] An electronic device provided by an embodiment of the present application can be a headset or a terminal device carrying a headset, and the electronic device includes at least one processor and a memory communicatively connected to the at least one processor. The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the headset noise reduction method of Embodiment 1.

[0141] Reference will now be made to Figure 5 , which shows a structural diagram of an electronic device suitable for implementing embodiments of the present disclosure. The electronic device in embodiments of the present disclosure can include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (Personal Digital Assistant), a PAD (Tablet Personal Computer), a PMP (Portable Multimedia Player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. Figure 5 The electronic device shown is merely an example and should not impose any limitation on the functions and use range of embodiments of the present disclosure.

[0142] As shown in Figure 5 , the electronic device can include a processing device (e.g., a central processing unit, a graphic processing unit, etc.) that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) or loaded into a random access memory (RAM) from a storage device. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.

[0143] Generally, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, and the like; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; storage devices including, for example, a magnetic tape, a hard disk, and the like; and communication devices. The communication devices can allow the electronic device to communicate with other devices wirelessly or via wires to exchange data. Although the electronic device having various systems is shown in the drawing, it should be understood that all the systems shown are not required to be implemented or provided. More or fewer systems can be alternatively implemented or provided.

[0144] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.

[0145] The electronic device provided in the present application adopts the earphone noise reduction method in the above-mentioned embodiments, and solves the technical problem of poor active noise reduction effect of the earphone. Compared with the prior art, the electronic device provided in the embodiments of the present application has the same beneficial effects as the earphone noise reduction method provided in the above-mentioned embodiments, and other technical features in the electronic device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0146] It should be understood that parts of the present disclosure can be realized by hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0147] The above is merely specific implementation of the present application, but the protection scope of the present application is not limited thereto, any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

[0148] Embodiment five

[0149] The present embodiment provides a computer readable storage medium having stored thereon computer readable program instructions for performing the earphone noise reduction method in the above-mentioned embodiment one.

[0150] The computer readable storage medium provided by the embodiments of the present application may, for example, be a U disk, but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection with one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiments, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0151] The above computer readable storage medium can be included in an electronic device; or can exist separately without being assembled into an electronic device.

[0152] The above computer readable storage medium carries one or more programs, when the one or more programs are executed by the electronic device, the electronic device detects a noise signal direction corresponding to an external noise signal; determines a corresponding feedforward filter coefficient according to the noise signal direction; and performs earphone noise reduction according to the feedforward filter coefficient.

[0153] Computer program code for carrying out operations of the present disclosure can be written in one or more programming languages or combinations of the same, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. Program code can be executed entirely on a user computer, partially on a user computer, as a separate software package, partially on a user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, through the Internet using an Internet service provider).

[0154] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0155] The modules described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the module does not limit the unit itself.

[0156] The computer readable storage medium provided by the present application stores computer readable program instructions for executing the earphone noise reduction method described above, and solves the technical problem of poor active noise reduction effect of the earphone. Compared with the prior art, the computer readable storage medium provided by the embodiment of the present application has the same beneficial effects as the earphone noise reduction method provided by the above embodiment, and will not be described here.

[0157] Embodiment six

[0158] The present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the earphone noise reduction method as described above.

[0159] The computer program product provided by the present application solves the technical problem of poor active noise reduction effect of the earphone. Compared with the prior art, the computer program product provided by the embodiment of the present application has the same beneficial effects as the earphone noise reduction method provided by the above embodiment, and will not be described here.

[0160] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. A method for reducing noise in headphones, characterized in that: Applied to headphones, the headphone noise reduction method includes: Detecting the direction of the noise signal corresponding to the external noise signal; determining a first transfer function from the feedforward microphone to the human ear according to a mapping relationship between the noise signal direction and a preset transfer function; obtaining a second transfer function from the loudspeaker to the human ear; determining, according to the first transfer function, the second transfer function, and the external noise signal, a target anti-phase noise signal required for noise reduction of the external noise signal; Determining corresponding feedforward filter coefficients according to the target inverted noise signal and the external noise signal; Headphone noise reduction is performed according to the feedforward filter coefficients.

2. The headphone noise reduction method according to claim 1, wherein: The earphone includes a feedforward microphone array, and the step of detecting the direction of the noise signal corresponding to the external noise signal includes: Picking up external noise signals by different array elements in the feedforward microphone array to obtain at least one picked-up noise signal; According to each of the picked-up noise signals, a noise signal direction corresponding to the external noise signal is detected.

3. The headphone noise reduction method according to claim 2, wherein: The step of detecting the direction of the noise signal corresponding to the external noise signal according to each of the picked-up noise signals comprises: Acquire a first noise signal time difference between each of the picked-up noise signals, and a first array element position distance between each array element in the feedforward microphone array; A noise signal direction corresponding to the external noise signal is calculated according to the first noise signal time difference and the first array element position distance.

4. The headphone noise reduction method according to claim 2, wherein: The step of detecting the direction of the noise signal corresponding to the external noise signal according to each of the picked-up noise signals comprises: respectively detecting the amplitude of the non-steady-state noise in each of the picked-up noise signals; Selecting each target picked-up noise signal from each picked-up noise signal based on the amplitude of each non-steady-state noise; According to the noise signal picked up by each of the targets, the direction of the noise signal corresponding to the external noise signal is detected.

5. The headphone noise reduction method according to claim 4, wherein: The step of picking up noise signals according to each of the targets and detecting the direction of the noise signal corresponding to the external noise signal comprises: Acquire a second noise signal time difference between each of the target-pickup noise signals, and a second array element position distance between array elements corresponding to each of the target-pickup noise signals; The noise signal direction corresponding to the external noise signal is calculated according to the second noise signal time difference and the second array element position distance.

6. A headphone noise reduction device, characterized in that: Applied to headphones, the headphone noise reduction device includes: A detection module, used to detect the direction of the noise signal corresponding to the external noise signal; a filter coefficient determination module configured to determine a first transfer function from a feedforward microphone to a human ear based on a mapping relationship between the noise signal direction and a preset transfer function; obtain a second transfer function from a loudspeaker to the human ear; determine a target inverse phase noise signal required for noise reduction of the external noise signal based on the first transfer function, the second transfer function, and the external noise signal; and determine corresponding feedforward filter coefficients based on the target inverse phase noise signal and the external noise signal; The noise reduction module is used to perform headphone noise reduction according to the feedforward filter coefficient.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor. The instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the headphone noise reduction method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program for implementing the headphone noise reduction method, and the program for implementing the headphone noise reduction method is executed by a processor to implement the steps of the headphone noise reduction method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method for dynamically selecting reference microphone in feedforward noise reduction system, electronic equipment and computer readable storage medium

    CN110992921A

  • Feed-forward noise reduction earphone, noise reduction method, system and device, and computer storage medium

    CN111683322A

  • Earphone noise reduction method and device, electronic equipment and readable storage medium

    CN114615586A

  • Method and device for determining parameters of active noise reduction filter

    CN115171637A