Noise reduction method and device for wireless earphone

By acquiring the spectrum in both dark and light environments in wireless headphones and adjusting the bandpass filter coefficients, the noise problem caused by the photoelectric effect was solved, improving the noise reduction performance and user experience of wireless headphones.

CN116506761BActive Publication Date: 2026-02-13HHO (HANGZHOU) DIGITAL TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310352095.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2026-02-13
Estimated Expiration
2043-03-30

AI Technical Summary

Technical Problem

The problem of noise generated by wireless headphones due to the photoelectric effect, especially microphone noise caused by the photoelectric effect in light-emitting headphones.

Method used

By acquiring the spectrum under preset dark and light conditions, the filter coefficients of the bandpass filter are determined, and the noise reduction method of the wireless headphones is adjusted to reduce noise caused by the photoelectric effect.

Benefits of technology

It effectively reduces noise caused by the photoelectric effect, avoids complex design of wireless earphone structure, and improves user experience and noise reduction performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116506761B_ABST
    Figure CN116506761B_ABST
Patent Text Reader

Abstract

The application discloses a noise reduction method and device of a wireless earphone. The method comprises the following steps: obtaining a first frequency spectrum corresponding to a first recorded audio obtained by playing a preset audio under a preset environment by the wireless earphone; obtaining a second frequency spectrum corresponding to a second recorded audio obtained by playing the preset audio under a preset illumination environment by the wireless earphone; determining filter coefficients corresponding to a band-pass filter for adjusting the wireless earphone according to the first frequency spectrum and the second frequency spectrum; and performing noise reduction of the wireless earphone under the preset illumination environment by using the filter coefficients. By the application, the noise of the wireless earphone under photoelectric interference is reduced, and the complexity of the structure design of the wireless earphone for reducing photoelectric noise is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the electronic field, and in particular to a noise reduction method and device of a wireless earphone. BACKGROUND

[0002] The wireless earphone is an earphone connected wirelessly. With continuous innovation in technology, the wireless earphone will gradually replace the wired earphone. In particular, the market of true wireless stereo (TWS) is growing rapidly at an annual growth rate of about 20%.

[0003] Nowadays, electronic devices are increasingly miniaturized, and a large number of micro electro mechanical system (MEMS) microphones are used. The microphone mainly includes a silicon diaphragm (sensor) and a transducer. The working principle is that the sound wave is conducted to the diaphragm through the sound inlet hole, the diaphragm membrane vibrates to generate an electric signal, and thus the sound is collected. The silicon diaphragm has photosensitive properties. If the light intensity through the sound inlet hole reaches a certain degree, due to the photoelectric effect, an interference electric signal is generated, and thus noise is generated.

[0004] In addition, more and more consumers pay attention to the functionality of the wireless earphone, and have taken the wireless earphone as a kind of daily fashion accessory. The light-emitting earphone meets the demand for diversification and individual customization of the wireless earphone. The light-emitting earphone has a recognition degree, and plays a decorative effect like a girl wearing an earring. The light-emitting earphone uses rich color combinations and customized shells to meet the individual needs of users. The light-emitting earphone integrates a light-emitting module, and the photoelectric effect caused by the light of the light-emitting module on the electronic components will cause a small current to impact the microphone and generate noise.

[0005] In the related art, the wireless earphone generates noise due to the photoelectric effect of a small current impacting the microphone of the wireless earphone. SUMMARY

[0006] The present application provides a noise reduction method and device of a wireless earphone, which is used to solve the problem that the wireless earphone generates noise due to the photoelectric effect of a small current impacting the microphone of the wireless earphone in the related art.

[0007] According to one aspect of the present application, a noise reduction method of a wireless earphone is provided, comprising: obtaining a first frequency spectrum corresponding to a first recorded audio obtained by playing a preset audio in a preset dark environment by the wireless earphone; obtaining a second frequency spectrum corresponding to a second recorded audio obtained by playing the preset audio in a preset light environment by the wireless earphone; determining filter coefficients corresponding to a band-pass filter of the wireless earphone according to the first frequency spectrum and the second frequency spectrum; and using the filter coefficients to perform noise reduction on the wireless earphone in the preset light environment.

[0008] Preferably, determining the filter coefficients corresponding to the band-pass filter of the wireless earphone according to the first frequency spectrum and the second frequency spectrum comprises: dividing the first frequency spectrum into N frequency segments; dividing the second frequency spectrum into the N frequency segments, wherein the interval frequencies between the N frequency segments are the same, and N is a natural number; determining that the absolute values of differences between a plurality of P1n and P2n are greater than or equal to a first preset value, wherein P1n is an energy value of an nth frequency segment of the first frequency spectrum, P2n is an energy value of an nth frequency segment of the second frequency spectrum, n is a natural number, and n≤N; and determining the filter coefficients corresponding to the band-pass filter according to the plurality of the n frequency segments.

[0009] Preferably, the wireless earphone is a light-emitting earphone, and the preset light environment is a light-emitting rhythm of the light-emitting earphone. Obtaining the second frequency spectrum corresponding to the preset audio played by the wireless earphone in the light environment comprises: selecting a first part of the first frequency spectrum that coincides in frequency with the light-emitting rhythm of the light-emitting earphone; selecting a second part of the second frequency spectrum that coincides in frequency with the light-emitting rhythm; dividing the first part into K frequency segments; dividing the second part into K frequency segments, wherein the interval frequencies between the K frequency segments are the same, and K is a natural number; determining that the absolute values of differences between a plurality of P1m and P2m are greater than or equal to a second preset value, wherein P1m is an energy value of an mth frequency segment of the first part, P2m is an energy value of an mth frequency segment of the second part, m is a natural number, and m≤K≤N; and determining the filter coefficients corresponding to the band-pass filter according to the plurality of the m frequency segments; wherein the modes of the light-emitting rhythm of the light-emitting earphone include constant light, breathing, one-way rhythm, and two-way rhythm, wherein the one-way rhythm is that the light of the wireless earphone goes from one end to the other end of the wireless earphone, and the two-way rhythm is that the light of the wireless earphone goes from the middle to both ends of the wireless earphone.

[0010] Preferably, the using the filter coefficient to perform noise reduction on the wireless earphone in the preset light environment includes: the preset light environment includes: outdoor light, indoor light, light emission rhythm of a light-emitting earphone, strong light in a night scene, neon light; preset filter coefficients corresponding to different preset light environments are respectively generated; when in the preset light environment, the preset filter coefficient corresponding to the preset light environment is used to perform noise reduction on the wireless earphone.

[0011] Preferably, the obtaining the first frequency spectrum corresponding to the first recorded audio obtained by playing the preset audio by the wireless earphone in the preset environment includes: playing a sweep signal in a preset dark environment; recording the played sweep signal to obtain the first recorded audio; performing Fourier transform on a time domain signal of the first recorded audio to convert the time domain signal into the first frequency spectrum corresponding to the first recorded audio.

[0012] The obtaining the second frequency spectrum corresponding to the second recorded audio obtained by playing the preset audio by the wireless earphone in the preset light environment includes: playing the sweep signal in the preset light environment; recording the sweep signal played in the preset light environment to obtain the second recorded audio; performing the Fourier transform on a time domain signal of the second recorded audio to convert the time domain signal into the second frequency spectrum corresponding to the second recorded audio; wherein the preset audio is a sweep signal, and a range of the sweep signal is 20 Hz to 20,000 Hz.

[0013] According to another aspect of the present application, a noise reduction device of a wireless earphone is also provided, which includes: a first obtaining module configured to obtain a first frequency spectrum corresponding to a preset audio played by the wireless earphone in a preset dark environment; a second obtaining module configured to obtain a second frequency spectrum corresponding to the preset audio played by the wireless earphone in a preset light environment; a first determining module configured to determine a filter coefficient corresponding to a band-pass filter used to adjust the wireless earphone according to the first frequency spectrum and the second frequency spectrum; and a using module configured to use the filter coefficient to perform noise reduction on the wireless earphone in the preset light environment.

[0014] Preferably, the first determining module comprises: a first dividing module, configured to divide the first frequency spectrum into N frequency segments; a second dividing module, configured to divide the second frequency spectrum into N frequency segments, wherein the intervals of the N frequency segments are the same, and N is a natural number; a first judging module, configured to judge that the absolute values of differences between a plurality of P1n and P2n are greater than or equal to a first preset value, wherein P1n is an energy value of an nth frequency segment of the first frequency spectrum, P2n is an energy value of the nth frequency segment of the second frequency spectrum, n is a natural number, and n≤N; and a second determining module, configured to determine filter coefficients for adjusting the band-pass filter according to the plurality of n frequency segments.

[0015] Preferably, the second obtaining module comprises: the wireless earphone is a light-emitting earphone, and the preset light environment is a light-emitting rhythm of the light-emitting earphone; a first selecting module, configured to select a first part of the first frequency spectrum that coincides with a frequency of the light-emitting rhythm; a second selecting module, configured to select a second part of the second frequency spectrum that coincides with the frequency of the light-emitting rhythm; a third dividing module, configured to divide the first part into K frequency segments; a fourth dividing module, configured to divide the second part into K frequency segments, wherein the intervals of the K frequency segments are different, and K is a natural number; a third determining module, configured to determine filter coefficients for adjusting the band-pass filter according to the plurality of n frequency segments; wherein the absolute values of differences between a plurality of P1m and P2m are greater than or equal to a second preset value, wherein P1m is an energy value of an mth frequency segment, P2m is an energy value of the mth frequency segment of the second frequency spectrum, m is a natural number, and m≤K≤N; and wherein the modes of the light-emitting rhythm of the light-emitting earphone include: constant light, breathing, one-way rhythm, and two-way rhythm, wherein the one-way rhythm is that the light of the wireless earphone goes from one end to the other end of the wireless earphone, and the two-way rhythm is that the light of the wireless earphone goes from the middle to both ends of the wireless earphone.

[0016] Preferably, the using module comprises: a generating module, configured to generate preset filter coefficients corresponding to different preset light environments, wherein the preset light environments include: outdoor light, indoor light, a light-emitting rhythm of a light-emitting earphone, strong light in a night scene, and neon light; and the using module is configured to use the preset filter coefficients corresponding to the preset light environment to perform noise reduction on the wireless earphone when the preset light environment is present.

[0017] Preferably, the first obtaining module comprises: a first playing module, configured to play a sweep signal in a preset dark environment; a first recording module, configured to record the played sweep signal to obtain a first recorded audio; and a first converting module, configured to perform Fourier transform on a time-domain signal of the first recorded audio to convert the time-domain signal into a first frequency spectrum corresponding to the first recorded audio.

[0018] The second acquisition module comprises: a second playing module, configured to play the sweep signal in the preset light environment; a second recording module, configured to record the sweep signal played in the preset light environment to obtain the second recorded audio; and a second conversion module, configured to convert the time domain signal of the second recorded audio into the second frequency spectrum corresponding to the second recorded audio through the Fourier transform.

[0019] According to a further aspect of the present application, there is also provided a computer readable storage medium comprising computer instructions which, when executed on an electronic device, cause the electronic device to perform the method as described above.

[0020] According to a further aspect of the present application, there is also provided a computer program product which, when executed on a computer, causes the computer to perform the method as described above.

[0021] The present application determines the filter coefficients of the band-pass filter of the wireless earphone by comparing the two frequency spectrums obtained in the preset environment mode and the preset light filtering mode, performs parameter adjustment, and solves the noise caused by light. In addition, in the related art, in order to reduce the noise caused by the photoelectric effect, the structure is designed to avoid direct light from entering the diaphragm of the MEMS microphone, but the wireless earphone has a small size, which increases the complexity of the structural design. Through the parameter adjustment of the present application, the problem can be solved by avoiding the structural design, reducing the impact on the appearance design, and reducing the complexity of the structural design of the wireless earphone. BRIEF DESCRIPTION OF DRAWINGS

[0022] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and serve to explain the principles of the application. In the drawings:

[0023] Figure 1 is a flowchart of a noise reduction method of a wireless earphone according to an embodiment of the present application;

[0024] Figure 2 is a flowchart of an audio processing method of a wireless earphone according to an embodiment of the present application;

[0025] Figure 3 is a schematic diagram of a first frequency spectrum and a second frequency spectrum of a wireless earphone according to an embodiment of the present application;

[0026] Figure 4 is a structural block diagram of a noise reduction device of a wireless earphone according to an embodiment of the present application;

[0027] Figure 5 This is a preferred structural block diagram of a noise reduction device for wireless headphones according to an embodiment of the present invention. Detailed Implementation

[0028] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The present invention will now be described in detail with reference to the accompanying drawings and embodiments.

[0029] This embodiment provides a noise reduction method for wireless headphones, such as... Figure 1 As shown, the method includes the following steps S102 to S108.

[0030] Step S102: Obtain the first spectrum corresponding to the first recorded audio obtained by playing a preset audio in a preset dark environment using wireless headphones.

[0031] Step S104: Obtain the second spectrum corresponding to the second recorded audio obtained by playing preset audio under preset lighting conditions using wireless headphones.

[0032] Step S106: Determine the filter coefficients corresponding to the bandpass filter used to adjust the wireless headphones based on the first spectrum and the second spectrum.

[0033] Step S108: Use filter coefficients to perform noise reduction on the wireless headphones under a preset lighting environment.

[0034] Through the above steps, the spectrum of the wireless earphone under different preset environments and preset lighting conditions is obtained. By comparing the first and second spectra, the filter coefficients corresponding to the bandpass filter used to adjust the wireless earphone are determined. This achieves the solution to the photoelectric effect noise problem through parameter adjustment, without requiring structural adjustments to the wireless earphone. This overcomes the problem of noise generation in wireless earphones under light environments due to the photoelectric effect in related technologies. Furthermore, in related technologies, to reduce noise generated by the photoelectric effect, structural design is used to prevent direct light from entering the diaphragm of the MEMS microphone. However, the small size of the wireless earphone increases the complexity of the structural design. The parameter adjustment of this invention avoids solving the problem through structural means, reducing the impact on the appearance design and lowering the complexity of the wireless earphone's structural design.

[0035] Figure 2 This is a schematic diagram of the audio processing flow of a wireless headset according to an embodiment of the present invention, such as... Figure 2 The audio processing of the wireless earphones shown includes: sound waves passing through a MEMS microphone, then through an analog-to-digital converter, through a low-noise amplifier, the processed sound waves passing through a bandpass filter, through an encoder, and finally output by a processor. The noise reduction method provided in the above embodiment achieves noise reduction by adjusting the filter coefficients of the bandpass filter.

[0036] As a preferred embodiment, step S102 can be implemented as follows: playing the sweep signal in a preset dark environment; recording the played sweep signal to obtain a first recorded audio; performing Fourier transform on the time domain signal of the first recorded audio to convert it into a first frequency spectrum corresponding to the first recorded audio. It should be noted that the preset dark environment can be designed by those skilled in the art according to actual needs, for example, a darkroom or other environment that can reduce light interference.

[0037] As another preferred embodiment, step S104 can be implemented as follows: playing the sweep signal in a preset light environment; recording the played sweep signal in the preset light environment to obtain a second recorded audio; performing Fourier transform on the time domain signal of the second recorded audio to convert it into a second frequency spectrum corresponding to the second recorded audio.

[0038] It should be noted that the preset audio is a sweep signal, and the range of the sweep signal is 20 Hz to 20,000 Hz. The sweep signal in this embodiment can be a sweep signal in related technologies, for example, a sweep signal source can be used to generate the sweep signal.

[0039] As a preferred embodiment, step S106 can be implemented as follows: dividing the first frequency spectrum into N frequency segments; dividing the second frequency spectrum into N frequency segments, where the interval frequencies between the N frequency segments are different, and N is a natural number; determining that the absolute value of the difference between a plurality of P1n and P2n is greater than or equal to a first preset value, where P1n is the energy value of the nth frequency segment of the first frequency spectrum, P2n is the energy value of the nth frequency segment of the second frequency spectrum, n is a natural number, and n≤N; and determining the filter coefficients of the band-pass filter according to the plurality of n frequency segments.

[0040] Figure 3 is a schematic diagram of the first frequency spectrum and the second frequency spectrum of the wireless earphone according to an embodiment of the present application, as shown in Figure 3 The solid line part shows the first frequency spectrum, and the dashed line part shows the second frequency spectrum. The first frequency spectrum and the second frequency spectrum are evenly divided into N parts. The energy value of the nth frequency segment of the first frequency spectrum is P1n, and the energy value of the nth frequency segment of the second frequency spectrum is P2n. As can be seen from Figure 3 , the areas of P1n and P2n are different, and the absolute value of the difference is X. When the value of X is greater than or equal to the first preset value, the nth frequency segment is marked, and the filter parameters of the band-pass filter in the nth frequency segment can attenuate the signal in the nth frequency segment, thereby achieving the purpose of noise reduction.

[0041] It should be noted that in actual implementation, this operation can be performed multiple times to achieve different levels of noise reduction.

[0042] As another preferred embodiment, the scenario to which the embodiment is applied is a light-emitting earphone, which is a new generation of wireless earphone and is favored by users for its unique light-emitting personality. The light-emitting module is integrated into the wireless earphone. Since the light-emitting module is very close to the microphone, the photoelectric effect noise brings noise to the wireless earphone. Noise reduction and light emission are two mutually exclusive factors. How to solve the photoelectric noise of the light-emitting earphone is a difficult problem in designing the light-emitting earphone.

[0043] Step S106 can be implemented by the following steps: selecting a first part in the first frequency spectrum and the frequency of the light-emitting rhythm coincide; selecting a second part in the second frequency spectrum and the frequency of the light-emitting rhythm coincide; dividing the first part into K frequency segments; dividing the second part into K frequency segments, wherein the interval frequencies between the K frequency segments are different, and K is a natural number; wherein it is judged that the absolute value of the difference between the plurality of P1m and P2m is greater than or equal to a second preset value, wherein P1m is the energy value of the mth frequency segment, P2m is the energy value of the mth frequency segment of the second frequency spectrum, wherein m is a natural number, and m≤K≤N; wherein the mode of the light-emitting rhythm of the light-emitting earphone includes: constant light, breathing, one-way rhythm, and two-way rhythm, wherein the one-way rhythm is that the light of the wireless earphone goes from one end to the other end of the wireless earphone, and the two-way rhythm is that the light of the wireless earphone goes from the middle to both ends of the wireless earphone.

[0044] In this embodiment, the rhythm frequency of the light-emitting earphone is known, and the part (first part and second part) of the light-emitting earphone rhythm frequency that is interfered by the frequency can be compared, which reduces the amount of calculation compared with full frequency comparison, and can be applied in the adaptive noise reduction process of the wireless earphone. Through fast operation, the purpose of noise reduction is achieved, and the noise problem caused by the light emission of the light-emitting earphone due to photoelectric interference is solved.

[0045] As another preferred embodiment, step S108 can perform the following steps: the preset light environment includes: outdoor light, indoor light, light-emitting rhythm of the light-emitting earphone, strong light or neon light in night scene; respectively generating preset filter coefficients corresponding to different preset light environments; when in the preset light environment, using the preset filter coefficients corresponding to the preset light environment to reduce the noise of the wireless earphone. In the actual environment, the light environment is very diverse. In order to provide a better noise reduction experience, a plurality of light environments can be simulated in advance to generate preset filter coefficients in different preset light environments. When the wireless earphone works in the preset light environment, the preset filter parameters can be called to reduce the noise caused by the photoelectric effect of the wireless earphone in a variety of light environments, improve the environmental applicability of noise reduction, and improve the user experience.

[0046] For example, the preset filter coefficient corresponding to the outdoor light can be K1, the preset filter coefficient corresponding to the indoor light can be K2, and the like. In actual implementation, the parameters can be transmitted to the wireless earphone by upgrading the wireless earphone firmware, so that the use parameters of the wireless earphone can be upgraded continuously after the wireless earphone is sold, and the user stickiness and satisfaction can be greatly improved.

[0047] The embodiment provides a noise reduction device of a wireless earphone, Figure 4 is a structural block diagram of the noise reduction device of the wireless earphone according to the embodiment of the present application, as Figure 4 shown, the noise reduction device can include a first acquisition module 42, a second acquisition module 44, a first determination module 46 and a first use module 48, which will be described in detail below.

[0048] The first acquisition module 42 is configured to acquire a first frequency spectrum corresponding to a first recorded audio obtained by playing a preset audio in a preset dark environment of the wireless earphone. The second acquisition module 44 is configured to acquire a second frequency spectrum corresponding to a second recorded audio obtained by playing the preset audio in a preset light environment of the wireless earphone. The first determination module 46 is connected to the first acquisition module 42 and the second acquisition module 44, and is configured to determine a filter coefficient for adjusting a band-pass filter of the wireless earphone according to the first frequency spectrum acquired by the first acquisition module 42 and the second frequency spectrum acquired by the second acquisition module 44. The first use module 48 is connected to the first determination module 46, and is configured to use the filter coefficient determined by the first determination module 46 to perform noise reduction on the wireless earphone in the preset light environment.

[0049] Figure 5 is a preferred structural block diagram of the noise reduction device of the wireless earphone according to the embodiment of the present application, as Figure 5 shown, the preferred structure will be described in detail below.

[0050] As a more preferred embodiment, the first determination module 46 can include a first segmentation module 461 configured to segment the first frequency spectrum into N frequency segments, a second segmentation module 462 configured to segment the second frequency spectrum into N frequency segments, wherein the interval frequencies between the N frequency segments are the same, and N is a natural number, a first judgment module 463 connected to the first segmentation module 461 and the second segmentation module 462, and configured to judge that the absolute values of the differences between a plurality of P1n and P2n are greater than or equal to a first preset value, wherein P1n is an energy value of an nth frequency segment of the first frequency spectrum, P2n is an energy value of an nth frequency segment of the second frequency spectrum, wherein n is a natural number, and n≤N, and a second determination module 464 connected to the first judgment module 463, and configured to determine the filter coefficient for adjusting the band-pass filter according to the plurality of n frequency segments judged by the first judgment module 463.

[0051] Preferably, the wireless earphone is a light-emitting earphone, and the preset light environment is a light-emitting beat of the light-emitting earphone. The first determining module 46 can further include: a first selecting module 465, configured to select a first part in the first frequency spectrum that coincides with a frequency of the light-emitting beat of the light-emitting earphone; a second selecting module 466, configured to select a second part in the second frequency spectrum that coincides with the frequency of the light-emitting beat; a third dividing module 467, connected to the first selecting module 465, and configured to divide the first part selected by the first selecting module into K frequency segments; a fourth dividing module 468, connected to the second selecting module 466, and configured to divide the second part selected by the second selecting module 466 into K frequency segments, where the interval frequencies between the K frequency segments are the same, and K is a natural number; a second judging module 469, connected to the third dividing module 467 and the fourth dividing module 468, and configured to judge that the absolute value of the difference between the plurality of P1m and P2m is greater than or equal to a second preset value, where P1m is an energy value of the mth frequency segment, P2m is an energy value of the mth frequency segment of the second frequency spectrum, m is a natural number, and m≤K≤N; and a third determining module 460, connected to the second judging module 469, and configured to determine filter coefficients of the band-pass filter according to the m frequency segments obtained by the second judging module 469. The mode of the light-emitting beat of the light-emitting earphone includes: constant light, breathing, one-way beat, and two-way beat, where the one-way beat is that the light of the wireless earphone goes from one end to the other end of the wireless earphone, and the two-way beat is that the light of the wireless earphone goes from the middle to both ends of the wireless earphone.

[0052] Preferably, the first using module 48 of the preferred noise reduction device can further include: a generating module 482, configured to generate preset filter coefficients corresponding to different preset light environments, where the preset light environments include: outdoor light, indoor light, a light-emitting beat of a light-emitting earphone, strong light in a night scene, and neon light; and a second using module 484, connected to the generating module 482, and configured to use the preset filter coefficients corresponding to the preset light environment generated by the generating module 482 to reduce noise of the wireless earphone when the preset light environment is present.

[0053] As another preferred embodiment, the first obtaining module 42 can include: a first playing module 422, configured to play a sweep signal in a preset dark environment; a first recording module 424, configured to record the played sweep signal to obtain a first recorded audio; and a first converting module 426, configured to convert the sweep signal into energy spectrum data in the frequency domain through Fourier transform.

[0054] The second acquisition module 44 comprises: a second playing module 442, configured to play the sweep signal under a preset light environment; a second recording module 444, configured to record the sweep signal played under the preset light environment to obtain a second recorded audio; and a second conversion module 446 connected to the second recording module 444, configured to perform Fourier transform on a time domain signal of the second recorded audio recorded by the second recording module 444 to convert the time domain signal into a second frequency spectrum corresponding to the second recorded audio; wherein the preset audio can be the sweep signal, and the sweep signal ranges from 20 Hz to 20000 Hz.

[0055] The embodiments of the present application also provide a computer readable storage medium, which stores computer program codes, when the processor executes the computer program codes, the electronic device executes the related method steps in the above method to realize the method in the above embodiments. Figure 1

[0056] The noise reduction method and device of the wireless earphone disclosed in the embodiments of the present application can configure the noise reduction curve parameters of the wireless earphone by a wireless mode after the wireless earphone is assembled into a complete machine, thereby ensuring the noise reduction performance of the earphone. In addition, multiple sets of noise reduction parameters are provided for different users to select according to actual use, thereby enhancing the user experience.

[0057] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can adopt a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can adopt a computer program product in the form of being implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program codes.

[0058] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the computer or other programmable data processing devices produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The device that implements the functions specified in one or more flows and / or blocks. Figure 1 The device that implements the functions specified in one or more flows and / or blocks.

[0059] ​These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the flow Figure 1 one or more flow or block Figure 1 one or more blocks or blocks specified in the flow.

[0060] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions executed on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 one or more flow or block Figure 1 one or more blocks or blocks specified in the flow.

[0061] The embodiments of the present application also provide a computer program product, which, when running on a computer, causes the computer to execute the method steps in the related method ​ The terminal, computer readable storage medium or computer program product provided by the embodiments of the present application are used to execute the corresponding method provided in the above, thus the beneficial effects that can be achieved are referred to the beneficial effects in the corresponding method provided in the above, which will not be described here.

[0062] It should be noted that, in this paper, relationship terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0063] In summary, through the above embodiments and their preferred embodiments, a noise reduction method and device of a wireless earphone are provided, by acquiring the frequency spectrum of the wireless earphone in a preset environment mode and a preset light filtering mode, determining the filter coefficients of the wireless earphone band-pass filter according to the comparison of the two frequency spectrums, and performing parameter debugging, the noise generated by light can be solved, the problem can be avoided by structural means, the influence on the appearance design is reduced, and the complexity of the structure design of the wireless earphone is reduced.

[0064] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. The present application can be variously changed and modified by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the present application.

Claims

1. A noise reduction method of a wireless earphone, characterized in that, The method comprises: obtaining a first frequency spectrum corresponding to a first recorded audio obtained by playing a preset audio in a preset dark environment by the wireless earphone; obtaining a second frequency spectrum corresponding to a second recorded audio obtained by playing the preset audio in a preset light environment by the wireless earphone; determining filter coefficients of a band-pass filter of the wireless earphone according to the first frequency spectrum and the second frequency spectrum; using the filter coefficients to perform noise reduction on the wireless earphone in the preset light environment.

2. The method of claim 1, wherein, The method comprises: dividing the first frequency spectrum into N frequency segments; dividing the second frequency spectrum into N frequency segments, wherein the intervals between the N frequency segments are the same, and N is a natural number; judging that the absolute values of differences between a plurality of P1n and P2n are greater than or equal to a first preset value, wherein P1n is an energy value of an nth frequency segment of the first frequency spectrum, P2n is an energy value of an nth frequency segment of the second frequency spectrum, n is a natural number, and n≤N; determining the filter coefficients of the band-pass filter according to a plurality of the n frequency segments.

3. The method of claim 1, wherein, The wireless earphone is a light-emitting earphone, and the preset light environment is a light-emitting rhythm of the light-emitting earphone. The method comprises: selecting a first part of the first frequency spectrum that coincides in frequency with the light-emitting rhythm of the light-emitting earphone; selecting a second part of the second frequency spectrum that coincides in frequency with the light-emitting rhythm; dividing the first part into K frequency segments; dividing the second part into K frequency segments, wherein the intervals between the K frequency segments are the same, and K is a natural number; judging that the absolute values of differences between a plurality of P1m and P2m are greater than or equal to a second preset value, wherein P1m is an energy value of an mth frequency segment of the first part, P2m is an energy value of an mth frequency segment of the second part, m is a natural number, and m≤K≤N; determining the filter coefficients of the band-pass filter according to a plurality of the m frequency segments. The light-emitting rhythm of the light-emitting earphone includes constant light, breathing, one-way rhythm, and two-way rhythm, wherein the one-way rhythm is that the light of the wireless earphone goes from one end to the other end of the wireless earphone, and the two-way rhythm is that the light of the wireless earphone goes from the middle to both ends of the wireless earphone.

4. The method according to any one of claims 1 to 3, characterized in that, The method comprises: The preset light environment includes outdoor light, indoor light, light-emitting rhythm of a light-emitting earphone, strong light or neon light in night scenes; generating preset filter coefficients corresponding to different preset light environments respectively; when in the preset light environment, using the preset filter coefficients corresponding to the preset light environment to perform noise reduction on the wireless earphone.

5. The method of any one of claims 1 to 3, wherein The first frequency spectrum corresponding to a first recorded audio obtained by playing a preset audio by the wireless earphone in a preset environment comprises: playing a sweep signal in a preset dark environment; recording the played sweep signal to obtain the first recorded audio; performing Fourier transform on a time domain signal of the first recorded audio to convert the first recorded audio into a first frequency spectrum corresponding to the first recorded audio; The second frequency spectrum corresponding to a second recorded audio obtained by playing the preset audio by the wireless earphone in a preset light environment comprises: playing the sweep signal in the preset light environment; recording the played sweep signal in the preset light environment to obtain the second recorded audio; performing Fourier transform on a time domain signal of the second recorded audio to convert the second recorded audio into a second frequency spectrum corresponding to the second recorded audio; The preset audio is a sweep signal, and the sweep signal ranges from 20 Hz to 20,000 Hz.

6. A noise reduction device for a wireless earpiece, the device comprising: comprise: The first acquisition module is configured to acquire a first frequency spectrum corresponding to a first recorded audio obtained by playing a preset audio by the wireless earphone in a preset dark environment; The second acquisition module is configured to acquire a second frequency spectrum corresponding to a second recorded audio obtained by playing the preset audio by the wireless earphone in a preset light environment; The first determination module is configured to determine filter coefficients of a band-pass filter for adjusting the wireless earphone according to the first frequency spectrum and the second frequency spectrum; The use module is configured to use the filter coefficients to perform noise reduction on the wireless earphone in the preset light environment.

7. The apparatus of claim 6, wherein, The first determination module comprises: The first segmentation module is configured to segment the first frequency spectrum into N frequency segments; The second segmentation module is configured to segment the second frequency spectrum into the N frequency segments, wherein the intervals between the N frequency segments are the same, and N is a natural number; The first judgment module is configured to determine that the absolute values of differences between a plurality of P1n and P2n are greater than or equal to a first preset value, wherein P1n is an energy value of an nth frequency segment of the first frequency spectrum, P2n is an energy value of the nth frequency segment of the second frequency spectrum, n is a natural number, and n≤N; The second determination module is configured to determine filter coefficients of the band-pass filter for adjusting the wireless earphone according to the plurality of n frequency segments.

8. The apparatus of claim 6, wherein, The wireless earphone is a light-emitting earphone, the preset light environment is when the light-emitting earphone emits light in rhythm, and the first determination module comprises: The first selection module is configured to select a first part of the first frequency spectrum that coincides in frequency with the light-emitting rhythm of the light-emitting earphone; The second selection module is configured to select a second part of the second frequency spectrum that coincides in frequency with the light-emitting rhythm; The third segmentation module is configured to segment the first part into K frequency segments; The fourth segmentation module is configured to segment the second part into K frequency segments, wherein the intervals between the K frequency segments are the same, and K is a natural number; A second determining module is configured to determine that an absolute value of a difference between the P1m and the P2m is greater than or equal to a second preset value, wherein the P1m is an energy value of an mth frequency segment in the first part, the P2m is an energy value of the mth frequency segment in the second part, m is a natural number, and m≤K≤N; A third determining module is configured to determine filter coefficients of the band-pass filter according to the m frequency segments. The mode of the light-emitting beat of the light-emitting earphone includes constant light, breathing, one-way beat, and two-way beat, wherein the one-way beat is that the light of the wireless earphone moves from one end to the other end of the wireless earphone, and the two-way beat is that the light of the wireless earphone moves from the middle to both ends of the wireless earphone.

9. The apparatus of any one of claims 6-8, wherein, The first using module includes: The generating module is configured to generate preset filter coefficients corresponding to different preset light environments, including outdoor light, indoor light, light-emitting beat of the light-emitting earphone, strong light or neon light in night scenes. The second using module is configured to use the preset filter coefficients corresponding to the preset light environment to perform noise reduction on the wireless earphone when the preset light environment is present.

10. The apparatus of any one of claims 6-8, wherein, The first obtaining module includes: The first playing module is configured to play a sweep signal in a preset dark environment. The first recording module is configured to record the played sweep signal to obtain a first recorded audio. The first converting module is configured to perform Fourier transform on a time domain signal of the first recorded audio to convert the time domain signal into a first frequency spectrum corresponding to the first recorded audio. The second obtaining module includes: The second playing module is configured to play the sweep signal in the preset light environment. The second recording module is configured to record the played sweep signal in the preset light environment to obtain a second recorded audio. The second converting module is configured to perform Fourier transform on a time domain signal of the second recorded audio to convert the time domain signal into a second frequency spectrum corresponding to the second recorded audio. The preset audio is a sweep signal, and a range of the sweep signal is 20 Hz to 20,000 Hz.

11. A computer readable storage medium, characterized in that, The computer readable storage medium includes computer instructions, when the computer instructions run on the electronic device, make the electronic device execute the method in any one of claims 1-5.

12. A computer program product, characterised in that, When the computer program product runs on the computer, the computer executes the method in any one of claims 1-5.

Citation Information

Patent Citations

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

    CN115499744A