Headphone noise elimination method, device, terminal equipment and computer medium

By presetting an interference signal database in the headphone device, detecting the real-time working mode and generating a reverse audio signal, the problem of battery magnetic field interfering with the speaker in the headphone device causing noise is solved, and a noise elimination effect with high user experience is achieved.

CN115835076BActive Publication Date: 2025-09-19GEER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When a headphone device places speakers, batteries, and a motherboard in a small space, the changing magnetic field generated by the battery cells can interfere with the speakers, causing noise signals. Existing technologies make it difficult to effectively solve this problem without increasing production costs or reducing user experience.

Method used

By presetting an interference signal database in the headphone device, detecting the real-time working mode of the headphone device, generating a reverse audio signal opposite to the target interference signal, and adding it to the audio signal to be played to eliminate noise.

Benefits of technology

The noise generated by the earphone device when playing audio signals is effectively eliminated, the user experience of the earphone wearer is improved, and the increase in production costs is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115835076B_ABST
    Figure CN115835076B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, apparatus, terminal device and computer-readable storage medium for eliminating headphone noise, comprising: upon detecting that an audio signal to be played is generated in a headphone device, determining the real-time working mode of the headphone device; determining a target interference signal corresponding to the real-time working mode in a preset interference signal database, and generating an initial reverse audio signal opposite to the target interference signal; processing the initial reverse audio signal to obtain a target reverse audio signal, and adding the target reverse audio signal to the audio signal to be played to eliminate the noise generated by the headphone device when playing the audio signal to be played. The present invention can achieve the technical effect of enabling the headphone device to output a reverse audio signal opposite to the interference signal, thereby eliminating the noise in the headphone device through the reverse audio signal, further improving the user experience of the headphone wearer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of earphone technology, and in particular to a method, apparatus, terminal device, and computer-readable storage medium for eliminating earphone noise. Background Art

[0002] With the development of the Bluetooth headset industry, headset devices have gradually been loved by consumers due to their advantages such as convenient use and easy storage. Therefore, when designing headset devices, technicians have begun to make headset devices smaller, lighter and thinner, and try to make the headset devices as seamless as possible for users when worn by users. To do this, technicians need to place many components such as speakers, batteries and motherboards in the small space of the headset device, which leads to the fact that when technicians design the internal space of the headset device, they often leave only 0.2-0.5mm of space between the components. As a result, when the battery in the headset device is close to and parallel to the speaker, the changing magnetic field generated by the battery cells in the battery will interfere with the speaker and cause the speaker to emit noise signals.

[0003] However, current technicians can only solve the above situation by using batteries with stacked cells, or by moving the battery away from the speaker when designing the headphone device, or by making the battery and the speaker form a larger angle. However, whether by using batteries with stacked cells or by redesigning the internal structure of the headphone device, the production cost of the headphone device will be further increased, and the user's comfort when wearing the headphone device will be worsened. Summary of the Invention

[0004] The embodiments of the present invention provide a method, apparatus, terminal device, and computer-readable storage medium for eliminating headphone noise, aiming to enable the headphone device to output a reverse audio signal that is opposite to the interference signal, thereby eliminating the noise in the headphone device through the reverse audio signal and improving the user experience of the headphone wearer.

[0005] To achieve the above object, the present invention provides a method for eliminating headphone noise, the method comprising the following steps:

[0006] When detecting that an audio signal to be played is generated in the headphone device, determining a real-time operating mode of the headphone device;

[0007] Determining a target interference signal corresponding to the real-time working mode in a preset interference signal database, and generating an initial reverse audio signal opposite to the target interference signal;

[0008] The initial reverse audio signal is processed to obtain a target reverse audio signal, and the target reverse audio signal is added to the audio signal to be played to eliminate noise generated by the headphone device when playing the audio signal to be played.

[0009] Furthermore, the step of determining the target interference signal corresponding to the real-time working mode in a preset interference signal database includes:

[0010] Obtaining a preset interference signal database, and determining a standard operating mode corresponding to the real-time operating mode in the interference signal database; wherein the interference signal database includes each standard operating mode and a standard interference signal corresponding to each standard operating mode;

[0011] The standard interference signal corresponding to the standard working mode is determined in the interference signal database, and the standard interference signal is determined as the target interference signal corresponding to the real-time working mode.

[0012] Furthermore, the step of generating an initial reverse audio signal opposite to the target interference signal includes:

[0013] Determining the phase of an interference signal contained in the target interference signal, and generating a reverse audio signal phase opposite to the phase of the interference signal;

[0014] Determining an interference signal amplitude contained in the target interference signal, and generating a reverse audio signal amplitude corresponding to the interference signal amplitude;

[0015] The reverse audio signal phase and the reverse audio signal amplitude are integrated to obtain an initial reverse audio signal that is opposite to the target interference signal.

[0016] Furthermore, the step of processing the initial reverse audio signal to obtain a target reverse audio signal includes:

[0017] Obtaining a timestamp signal and a radio frequency power coefficient corresponding to the target interference signal;

[0018] The initial reverse audio signal is processed based on the timestamp signal and the radio frequency power coefficient to obtain a target reverse audio signal.

[0019] Furthermore, the step of processing the initial reverse audio signal based on the timestamp signal and the radio frequency power coefficient to obtain a target reverse audio signal includes:

[0020] Adjusting the phase of the reverse audio signal according to the timestamp signal to obtain a target reverse audio signal phase;

[0021] Adjusting the reverse audio signal amplitude according to the radio frequency power coefficient to obtain a target reverse audio signal amplitude;

[0022] The target reverse audio signal is obtained by integrating the target reverse audio signal phase and the target reverse audio signal amplitude.

[0023] Furthermore, before the step of detecting that an audio signal to be played is generated in the headphone device, the method further includes:

[0024] Obtaining a preset target mute file and various standard distance parameters; wherein the standard distance parameter is a distance value between the headphone device and the terminal device corresponding to the headphone device;

[0025] Determining the radio frequency power corresponding to each standard operating mode under each standard distance parameter, and controlling the headphone device to play the target silent file under each radio frequency power;

[0026] The electrical signals generated by the headphone device when playing the target silent file are acquired, and an interference signal database is generated according to the standard working modes and the electrical signals.

[0027] Furthermore, the step of generating an interference signal database according to each of the standard operating modes and each of the electrical signals includes:

[0028] Determining the standard interference signal phase and the standard interference signal amplitude corresponding to each of the electrical signals, and then obtaining the standard interference signal corresponding to each of the electrical signals according to the standard interference signal phase and the standard interference signal amplitude;

[0029] Each of the standard operating modes is matched with the standard interference signal corresponding to each of the standard operating modes to generate an interference signal database.

[0030] In addition, to achieve the above-mentioned object, the present invention further provides a device for eliminating earphone noise, the device comprising:

[0031] a mode detection module, configured to determine a real-time operating mode of the headphone device upon detecting that an audio signal to be played is generated in the headphone device;

[0032] a signal generating module, configured to determine a target interference signal corresponding to the real-time working mode in a preset interference signal database, and generate an initial reverse audio signal opposite to the target interference signal;

[0033] A signal processing module is used to process the initial reverse audio signal to obtain a target reverse audio signal, and add the target reverse audio signal to the audio signal to be played to eliminate noise generated by the headphone device when playing the audio signal to be played.

[0034] In addition, to achieve the above-mentioned purpose, the present invention also provides an earphone device, which includes: a memory, a processor, and an earphone noise elimination program stored in the memory and executable on the processor. When the earphone noise elimination program is executed by the processor, the steps of the above-mentioned earphone noise elimination method are implemented.

[0035] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a headphone noise elimination program is stored. When the headphone noise elimination program is executed by a processor, the steps of the headphone noise elimination method as described above are implemented.

[0036] The embodiments of the present invention provide a method, apparatus, terminal device and computer-readable storage medium for eliminating headphone noise. When detecting that an audio signal to be played is generated in the headphone device, the real-time working mode of the headphone device is determined; a target interference signal corresponding to the real-time working mode is determined in a preset interference signal database, and an initial reverse audio signal opposite to the target interference signal is generated; the initial reverse audio signal is processed to obtain a target reverse audio signal, and the target reverse audio signal is added to the audio signal to be played to eliminate the noise generated by the headphone device when playing the audio signal to be played.

[0037] In this embodiment, when the headphone device is in operation, it first calls a detection device configured within the headphone device to detect the audio module within the headphone device. When it is detected that the audio module is generating an audio signal to be played, the headphone device determines the real-time operating mode of the headphone device. The headphone device then reads an internally configured storage module to obtain a preset interference signal database. The headphone device inputs the obtained interference signal database into a processor module configured within the headphone device. The processor module screens the interference signal database to determine a target interference signal corresponding to the real-time operating mode of the headphone device and uploads the target interference signal to the headphone device. The headphone device then inputs the obtained target interference signal into an internally configured reverse audio signal generation module. A reverse audio signal generator configured within the reverse audio signal generation module generates an initial reverse audio signal that is opposite to the target interference signal. The reverse audio signal generation module then calls a limiter and a synchronizer to process the initial reverse audio signal to obtain a target reverse audio signal. The target reverse audio signal is uploaded to the headphone device. The headphone device then calls an internally configured adder to add the target reverse audio signal to the audio signal to be played to eliminate noise generated when the headphone device plays the audio signal to be played.

[0038] In this way, the present invention adopts a method of determining the target interference signal corresponding to the real-time working mode of the headphone device according to a preset interference signal database, and generating an initial reverse audio signal according to the target interference signal, and then processing the initial reverse audio signal to obtain the target reverse audio signal, thereby adding the target reverse audio signal to the audio signal to be played to eliminate the noise contained in the audio signal to be played. That is, the present invention adopts a method of determining the real-time working mode of the headphone device when playing the audio signal, and determining the target interference signal corresponding to the real-time working mode according to the interference signal database, and then generating a reverse audio signal opposite to the target interference signal, and eliminating the noise generated by the headphone device when playing the audio signal through the reverse audio signal. This solves the technical problem that current technicians can only reduce the interference caused by the battery in the headphone device to the speaker by modifying the internal structure of the headphone device, thereby achieving the technical effect of enabling the headphone device to output a reverse audio signal opposite to the interference signal, and then eliminating the noise in the headphone device through the reverse audio signal, further improving the user experience of the headphone wearer. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 1 is a schematic structural diagram of a headset device in a hardware operating environment according to an embodiment of the present invention;

[0040] Figure 2 1 is a flow chart of a first embodiment of a method for eliminating headphone noise according to the present invention;

[0041] Figure 32 is a flow chart of a second embodiment of a method for eliminating headphone noise according to the present invention;

[0042] Figure 4 Detailed flowchart of an embodiment of a method for eliminating headphone noise according to the present invention;

[0043] Figure 5 FIG. 1 is a schematic diagram of functional modules involved in an embodiment of a method for eliminating headphone noise according to the present invention.

[0044] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings and in conjunction with the embodiments. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0046] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of a headset device in the hardware operating environment involved in an embodiment of the present invention.

[0047] It should be noted that Figure 1 The embodiment of the present invention may be a headset device equipped with a Bluetooth module, an application processor module, an audio module, and a reverse audio signal generation module. Of course, the headset device may also be a Bluetooth headset or other mobile headset device.

[0048] like Figure 1 As shown, the headset device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WI-FI) interface). The memory 1005 may be a high-speed random access memory (RAM) memory or a stable non-volatile memory (NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0049] Those skilled in the art will understand that Figure 1The structure shown in the figure does not constitute a limitation to the headphone device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0050] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module and an earphone noise elimination program.

[0051] exist Figure 1 In the headphone device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the headphone device of the present invention can be set in the headphone device, and the headphone device calls the headphone noise elimination program stored in the memory 1005 through the processor 1001 and executes the headphone noise elimination method provided in the embodiment of the present invention.

[0052] Based on the above-mentioned headphone device, various embodiments of the headphone noise elimination method of the present invention are provided.

[0053] Please refer to Figure 2 , Figure 2 FIG. 1 is a flow chart of a first embodiment of a method for eliminating headphone noise according to the present invention.

[0054] It should be understood that although a logical order is shown in the flowchart, in some cases, the method for eliminating earphone noise of the present invention may also execute the steps shown or described in an order different from that shown here.

[0055] In this embodiment, the method for eliminating earphone noise of the present invention may include the following steps:

[0056] Step S10: when it is detected that an audio signal to be played is generated in the headphone device, determining a real-time working mode of the headphone device;

[0057] The working mode is an operating mode preset by the technician to put the various working components in the headphone device in different states. The working mode may include broadcast mode, reconnection mode, active noise reduction function on mode, active noise reduction function off mode and transparency mode, etc. It can be understood that in different working modes, each working component in the headphone device to be tested should be in the corresponding operating state under the working mode. Of course, the setting method of the working mode and the operating parameters corresponding to each working mode can refer to the setting method of other headphone devices of the same type, and the present invention does not limit this.

[0058] In this embodiment, when the headphone device is running, it first calls the detection device configured in the headphone device to detect the audio module in the headphone device, and determines the real-time working mode of the headphone device when it detects that the audio module is generating an audio signal to be played.

[0059] Exemplarily, for example, when the headphone device is running, it first calls the internally configured detection device to detect the audio module configured in the headphone device. When it is detected that an audio signal to be played is generated in the audio module, the headphone device then calls the detection device to detect the power module in the headphone device, and determines the current value passing through the wound battery cell in the power module, and then determines the real-time working mode of the headphone device based on the current value.

[0060] Step S20: determining a target interference signal corresponding to the real-time working mode in a preset interference signal database, and generating an initial reverse audio signal opposite to the target interference signal;

[0061] In this embodiment, the headphone device reads an internally configured storage module to obtain a preset interference signal database. The headphone device inputs the obtained interference signal database into a processor module configured in the headphone device. The processor module screens the interference signal database to determine a target interference signal corresponding to the real-time working mode of the headphone device, and uploads the target interference signal to the headphone device. The headphone device then inputs the obtained target interference signal into an internally configured reverse audio signal generation module, and the reverse audio signal generation module generates an initial reverse audio signal that is opposite to the target interference signal.

[0062] For example, see Figure 4 , Figure 4 This is a detailed flow chart of an embodiment of a method for eliminating headphone noise according to the present invention. The headphone device first reads the storage module to obtain a preset interference signal database, and inputs the interference signal database into the application processor module. Afterwards, the application processor module screens the interference signal database according to the real-time working mode of the headphone device to determine a standard working mode consistent with the real-time working mode in the interference signal database. The application processor module then determines the standard interference signal corresponding to the standard working mode in the interference signal database, and determines the standard interference signal as the target interference signal. After that, the application processor module uploads the obtained target interference signal to the headphone device, and the headphone device inputs the target interference signal into the reverse audio signal generation module. Finally, the reverse audio signal generation module calls the internally configured reverse audio signal generator to generate an initial reverse audio signal (i.e., a reverse audio signal) that is opposite to the target interference signal. Figure 4 The current noise in the audio signal is reversed).

[0063] Furthermore, in a feasible embodiment, the step of “determining the target interference signal corresponding to the real-time working mode in a preset interference signal database” in the above step S20 may specifically include:

[0064] Step S201: obtaining a preset interference signal database, and determining a standard operating mode corresponding to the real-time operating mode in the interference signal database; wherein the interference signal database includes each standard operating mode and a standard interference signal corresponding to each standard operating mode;

[0065] In this embodiment, the headphone device first reads the storage module to obtain an interference signal database that stores various standard operating modes and standard interference signals corresponding to each standard operating mode, and inputs the interference signal database into the application processor module. The application processor module filters the interference signal database according to the Bluetooth radio frequency power corresponding to the real-time operating mode of the headphone device to determine the target operating mode whose Bluetooth radio frequency power is consistent with the real-time operating mode in the interference signal database, and determines the target operating mode as the standard operating mode corresponding to the real-time operating mode.

[0066] Step S202: determining the standard interference signal corresponding to the standard working mode in the interference signal database, and determining the standard interference signal as the target interference signal corresponding to the real-time working mode;

[0067] In this embodiment, after determining the standard working mode, the application processor module determines a standard interference signal corresponding to the standard working mode in the interference signal database, and determines the standard interference signal as the target interference signal corresponding to the real-time working mode of the headset device.

[0068] Exemplarily, for example, the headphone device first reads the storage module to obtain the interference signal database, and inputs the interference signal database into the processor module. Afterwards, the processor module determines the Bluetooth radio frequency power corresponding to the real-time working mode of the headphone device, and filters the interference signal database based on the Bluetooth radio frequency power to determine the target working mode in the interference signal database whose Bluetooth radio frequency power is consistent with the real-time working mode, and determines the target working mode as the standard working mode corresponding to the real-time working mode. Afterwards, the processor module determines the standard interference signal corresponding to the standard working mode in the interference signal database, and determines the standard interference signal as the target interference signal. Finally, the processor module uploads the acquired target interference signal to the headphone device.

[0069] Furthermore, in a feasible embodiment, the step of “generating an initial reverse audio signal that is opposite to the target interference signal” in the above step S20 may specifically include:

[0070] Step S203: determining the phase of an interference signal contained in the target interference signal, and generating a reverse audio signal phase opposite to the phase of the interference signal;

[0071] In this embodiment, after determining the target interference signal, the headphone device inputs the target interference signal into a reverse audio generation module configured in the headphone device. The reverse audio generation module decomposes the target interference signal to obtain the interference signal phase contained in the target interference signal, and then generates an initial reverse audio signal phase that is opposite to the interference signal phase.

[0072] Step S204: determining the interference signal amplitude contained in the target interference signal, and generating a reverse audio signal amplitude corresponding to the interference signal amplitude;

[0073] In this embodiment, the reverse audio generation module decomposes the target interference signal to obtain the interference signal amplitude contained in the target interference signal, and then generates an initial reverse audio signal amplitude corresponding to the interference signal amplitude.

[0074] Step S205: Integrating the phase of the reverse audio signal and the amplitude of the reverse audio signal to obtain an initial reverse audio signal that is opposite to the target interference signal;

[0075] In this embodiment, the reverse audio generation module combines the generated initial reverse audio signal phase and the initial reverse audio signal amplitude to obtain an initial reverse audio signal that is opposite to the target interference signal.

[0076] Exemplarily, for example, after determining the target interference signal, the headphone device inputs the target interference signal into the reverse audio generation module, and the reverse audio generator in the reverse audio generation module decomposes the target interference signal to obtain the interference signal phase contained in the target interference signal, and the reverse audio generator then generates an initial reverse audio signal phase opposite to the interference signal phase. At the same time, the reverse audio generator decomposes the target interference signal to obtain the interference signal amplitude contained in the target interference signal, and the reverse audio generator then generates an initial reverse audio signal amplitude corresponding to the interference signal amplitude. Afterwards, the reverse audio generator combines the generated initial reverse audio signal phase with the initial reverse audio signal amplitude to obtain an initial reverse audio signal opposite to the target radio frequency interference signal.

[0077] Step S30: Processing the initial reverse audio signal to obtain a target reverse audio signal, and adding the target reverse audio signal to the audio signal to be played to eliminate noise generated by the headphone device when playing the audio signal to be played;

[0078] In this embodiment, the reverse audio signal generation module calls the limiter and synchronizer to process the initial reverse audio signal to obtain the target reverse audio signal, and uploads the target reverse audio signal to the headphone device. The headphone device then calls the internally configured adder to add the target reverse audio signal to the audio signal to be played to eliminate the noise generated by the headphone device when playing the audio signal to be played.

[0079] Exemplarily, for example, the reverse audio signal generation module calls the internally configured limiter and synchronizer, and further processes the initial reverse audio signal through the limiter and synchronizer based on the interference signal characteristics contained in the target interference signal to generate a target reverse audio signal. Afterwards, the reverse audio signal generation module uploads the generated target reverse audio signal to the headphone device, and the headphone device adds the generated target reverse audio signal to the audio signal to be played through the adder in the audio module to eliminate the noise signal generated by the headphone device when playing the audio signal to be played.

[0080] Furthermore, in a feasible embodiment, the step of “processing the initial reverse audio signal to obtain the target reverse audio signal” in the above step S30 may specifically include:

[0081] Step S301: Acquire a timestamp signal and a radio frequency power coefficient corresponding to the target interference signal;

[0082] In this embodiment, the reverse audio signal module calls an internally configured synchronizer to obtain a timestamp signal corresponding to the target interference signal. At the same time, the reverse audio signal module calls an internally configured limiter to obtain a radio frequency power coefficient corresponding to the target interference signal.

[0083] Step S302: Processing the initial reverse audio signal based on the timestamp signal and the radio frequency power coefficient to obtain a target reverse audio signal;

[0084] In this embodiment, the reverse audio signal module processes the reverse audio signal phase corresponding to the initial reverse audio signal based on the acquired timestamp signal through a synchronizer, and the reverse audio signal module processes the reverse audio signal amplitude corresponding to the initial reverse audio signal based on the acquired RF power coefficient through a limiter, thereby obtaining the target reverse audio signal.

[0085] For example, for example, Figure 4As shown, the reverse audio signal module first calls the internally configured synchronizer to obtain the timestamp signal corresponding to the target interference signal. Then, the synchronizer processes the reverse audio phase corresponding to the initial reverse audio signal based on the obtained timestamp signal. At the same time, the reverse audio signal module calls the internally configured limiter to obtain the RF power coefficient corresponding to the target interference signal. Then, the limiter processes the reverse audio amplitude corresponding to the initial reverse audio signal based on the obtained RF power coefficient. After that, the reverse audio signal module obtains the target reverse audio signal according to the obtained processing results.

[0086] Furthermore, in a feasible embodiment, the above step S302 may specifically include:

[0087] Step S3021: adjusting the phase of the reverse audio signal according to the timestamp signal to obtain a target reverse audio signal phase;

[0088] Step S3022: adjusting the reverse audio signal amplitude according to the radio frequency power coefficient to obtain a target reverse audio signal amplitude;

[0089] Step S3023: Integrate the target reverse audio signal phase and the target reverse audio signal amplitude to obtain a target reverse audio signal;

[0090] For example, for example, Figure 4 As shown, the reverse audio signal module first calls the synchronizer to adjust the reverse audio signal phase contained in the initial reverse audio signal based on the acquired timestamp signal to obtain a target reverse audio signal phase that keeps changing synchronously with the interference signal phase contained in the target interference signal. At the same time, the reverse audio signal module calls the limiter to adjust the reverse audio signal amplitude contained in the initial reverse audio signal to obtain a target reverse audio signal amplitude that is consistent with the interference signal amplitude contained in the target interference signal. Then, the reverse audio signal module calls the reverse audio signal generator to integrate the acquired target reverse audio signal phase and the target reverse audio signal amplitude to obtain a target reverse audio signal that keeps changing synchronously with the target interference signal and in the opposite direction.

[0091] In this embodiment, when the headphone device is in operation, it first calls a detection device configured within the headphone device to detect the audio module within the headphone device. When it is detected that the audio module is generating an audio signal to be played, the headphone device determines the real-time operating mode of the headphone device. The headphone device then reads an internally configured storage module to obtain a preset interference signal database. The headphone device inputs the obtained interference signal database into a processor module configured within the headphone device. The processor module screens the interference signal database to determine a target interference signal corresponding to the real-time operating mode of the headphone device and uploads the target interference signal to the headphone device. The headphone device then inputs the obtained target interference signal into an internally configured reverse audio signal generation module. The reverse audio signal generation module generates an initial reverse audio signal that is opposite to the target interference signal. Finally, the reverse audio signal generation module calls a limiter and a synchronizer to process the initial reverse audio signal to obtain a target reverse audio signal. The target reverse audio signal is uploaded to the headphone device. The headphone device then calls an internally configured adder to add the target reverse audio signal to the audio signal to be played to eliminate noise generated when the headphone device plays the audio signal to be played.

[0092] In this way, the present invention adopts a method of determining the target interference signal corresponding to the real-time working mode of the headphone device according to a preset interference signal database, and generating an initial reverse audio signal according to the target interference signal, and then processing the initial reverse audio signal to obtain the target reverse audio signal, thereby adding the target reverse audio signal to the audio signal to be played to eliminate the noise contained in the audio signal to be played. That is, the present invention adopts a method of determining the real-time working mode of the headphone device when playing the audio signal, and determining the target interference signal corresponding to the real-time working mode according to the interference signal database, and then generating a reverse audio signal opposite to the target interference signal, and eliminating the noise generated by the headphone device when playing the audio signal through the reverse audio signal. This solves the technical problem that current technicians can only reduce the interference caused by the battery in the headphone device to the speaker by modifying the internal structure of the headphone device, thereby achieving the technical effect of enabling the headphone device to output a reverse audio signal opposite to the interference signal, and then eliminating the noise in the headphone device through the reverse audio signal, further improving the user experience of the headphone wearer.

[0093] Furthermore, based on the first embodiment of the method for eliminating headphone noise of the present invention, a second embodiment of the method for eliminating headphone noise of the present invention is proposed.

[0094] Please refer to Figure 3 , Figure 3 FIG. 2 is a flow chart of a second embodiment of a method for eliminating headphone noise according to the present invention.

[0095] Before step S10, the headphone noise elimination method of the present invention may further include:

[0096] Step A10: Obtaining a preset target mute file and various standard distance parameters; wherein the standard distance parameter is a distance value between the headphone device and the terminal device corresponding to the headphone device;

[0097] The target audio file is an audio file containing silent audio recorded in advance by a technician in a silent environment. The target audio file is stored in a storage device inside the test equipment before the test equipment leaves the factory, so that the test equipment can directly read the storage device to obtain it locally when needed. It can be understood that there are many methods for recording and obtaining the target audio file, and the present invention does not limit this.

[0098] Exemplarily, for example, the headphone device first reads the storage device to obtain a preset target mute file. At the same time, the headphone device reads the storage device to obtain the distance values ​​between the headphone device and the terminal device corresponding to the headphone device preset by the technician, and then determines the standard distance parameters according to the distance values.

[0099] Step A20: determining the radio frequency power corresponding to each standard operating mode under each standard distance parameter, and controlling the headset device to play the target silent file under each radio frequency power;

[0100] Exemplarily, for example, the headphone device inputs the acquired standard distance parameters into the processor module, and the processor module calculates the radio frequency power of the Bluetooth module in the headphone device when the headphone device is at each standard distance parameter in each standard working mode according to each standard distance parameter. Thereafter, the headphone device controls the audio module to play the target silent file according to each radio frequency power.

[0101] Step A30: Acquire electrical signals generated by the headphone device when playing the target silent file, and generate an interference signal database according to the standard operating modes and the electrical signals;

[0102] Exemplarily, for example, the headphone device calls the detection device to detect the audio module to obtain the electrical signals generated by the audio module when the audio module plays the target silent file at various radio frequency powers. The headphone device then inputs the obtained electrical signals into the processor module, and generates an interference signal database based on the obtained electrical signals and various standard working modes through the processor module, and then stores the interference signal database in the storage module.

[0103] Furthermore, in a feasible embodiment, the step of “determining, according to each of the electrical signals, the characteristics of the standard radio frequency interference signal generated by the headphone device in each of the standard operating modes” in the above-mentioned step A30 may specifically include:

[0104] Step A301: determining the standard interference signal phase and the standard interference signal amplitude corresponding to each of the electrical signals, and then obtaining the standard interference signal corresponding to each of the electrical signals according to the standard interference signal phase and the standard interference signal amplitude;

[0105] In this embodiment, the headphone device inputs the acquired electrical signals into the processor module, which decomposes the electrical signals to determine the standard interference signal phase and standard interference signal amplitude corresponding to each electrical signal. Afterwards, the processor module integrates the standard interference signal phase and standard interference signal amplitude to obtain the standard interference signal corresponding to each electrical signal.

[0106] Step A302: Matching each of the standard operating modes with the standard interference signals corresponding to each of the standard operating modes to generate an interference signal database;

[0107] In this embodiment, the processor unit matches each standard working mode with each standard interference signal corresponding to each marked working mode to obtain each matching result, and then encapsulates each matching result to generate an interference signal database.

[0108] Exemplarily, for example, the headphone device inputs each acquired electrical signal into the processor module, and the processor module decomposes each electrical signal to determine the standard interference signal phase and standard interference signal amplitude corresponding to each electrical signal. Afterwards, the processor module integrates each standard interference signal phase and each standard interference signal amplitude corresponding to each standard interference signal phase to obtain each standard interference signal. The processor module further determines the standard interference signal corresponding to each electrical signal. Afterwards, the processor unit determines the standard interference signal corresponding to each standard working mode, and then matches each standard working mode with the standard interference signal corresponding to each standard working mode and obtains each matching result. The processor unit encapsulates each matching result to generate an interference signal database, and inputs the interference signal database into the storage module for storage.

[0109] In this embodiment, the headphone device first reads the storage device to obtain a preset target silent file. At the same time, the headphone device reads the storage device to obtain the distance values ​​between the headphone device and the terminal device corresponding to the headphone device preset by the technician, and then determines the standard distance parameters according to the distance values. Afterwards, the headphone device inputs the obtained standard distance parameters into the processor module, and the processor module calculates the radio frequency power of the Bluetooth module in the headphone device when the headphone device is at the standard distance parameters in each standard working mode according to the standard distance parameters. Afterwards, the headphone device controls the audio module to play the target silent file according to the radio frequency power. Finally, the headphone device calls the detection device to detect the audio module to obtain the electrical signals generated when the audio module plays the target silent file at each radio frequency power. The headphone device then inputs the obtained electrical signals into the processor module, and generates an interference signal database according to the obtained electrical signals and each standard working mode through the processor module, and then stores the interference signal database in the storage module.

[0110] In this way, the present invention adopts a method of controlling the headphone device to play the target silent file under different radio frequency powers, and collecting the electrical signals generated by the headphone device when playing the target silent file, and then determining the interference signal of the headphone device in each working mode based on the electrical signals, so as to match each working mode with each interference signal to generate an interference signal database. This achieves the purpose of enabling the headphone device to directly screen the interference signal database according to the real-time working mode when it is running to quickly determine the interference signal corresponding to the real-time working mode.

[0111] In addition, the present invention also provides a device for eliminating earphone noise, please refer to Figure 5 , Figure 5 FIG. 1 is a schematic diagram of functional modules involved in an embodiment of a method for eliminating earphone noise according to the present invention. Figure 5 As shown, the headphone noise elimination device of the present invention includes:

[0112] A mode detection module 10 is configured to determine a real-time operating mode of the headphone device upon detecting that an audio signal to be played is generated in the headphone device;

[0113] A signal generating module 20 is configured to determine a target interference signal corresponding to the real-time working mode in a preset interference signal database, and generate an initial reverse audio signal opposite to the target interference signal;

[0114] The signal processing module 30 is configured to process the initial reverse audio signal to obtain a target reverse audio signal, and add the target reverse audio signal to the audio signal to be played to eliminate noise generated when the headphone device plays the audio signal to be played.

[0115] Furthermore, the signal generating module 20 includes:

[0116] A mode screening unit, configured to obtain a preset interference signal database and determine a standard operating mode corresponding to the real-time operating mode in the interference signal database; wherein the interference signal database includes each standard operating mode and a standard interference signal corresponding to each standard operating mode;

[0117] A signal determination unit is used to determine the standard interference signal corresponding to the standard working mode in the interference signal database, and determine the standard interference signal as the target interference signal corresponding to the real-time working mode.

[0118] Furthermore, the signal generating module 20 further includes:

[0119] a first generating unit, configured to determine a phase of an interference signal contained in the target interference signal, and generate a reverse audio signal phase opposite to the phase of the interference signal;

[0120] a second generating unit, configured to determine an interference signal amplitude contained in the target interference signal, and generate a reverse audio signal amplitude corresponding to the interference signal amplitude;

[0121] A feature combination unit is configured to integrate the phase of the reverse audio signal and the amplitude of the reverse audio signal to obtain an initial reverse audio signal that is opposite to the target interference signal.

[0122] Furthermore, the signal processing module 30 includes:

[0123] A feature acquisition unit, configured to acquire a timestamp signal and a radio frequency power coefficient corresponding to the target interference signal;

[0124] A signal processing unit is configured to process the initial reverse audio signal based on the timestamp signal and the radio frequency power coefficient to obtain a target reverse audio signal.

[0125] Furthermore, the signal processing unit includes:

[0126] a first adjustment subunit, configured to adjust the phase of the reverse audio signal according to the timestamp signal to obtain a target reverse audio signal phase;

[0127] a second adjustment subunit, configured to adjust the reverse audio signal amplitude according to the radio frequency power coefficient to obtain a target reverse audio signal amplitude;

[0128] The feature integration subunit is configured to integrate the target reverse audio signal phase and the target reverse audio signal amplitude to obtain a target reverse audio signal.

[0129] Furthermore, the pattern detection module 10 includes:

[0130] A parameter acquisition unit, configured to acquire a preset target mute file and various standard distance parameters; wherein the standard distance parameter is a distance value between the headphone device and a terminal device corresponding to the headphone device;

[0131] an audio playback unit, configured to determine the radio frequency power corresponding to each standard operating mode under each standard distance parameter, and control the headphone device to play the target silent file under each radio frequency power;

[0132] The signal collecting unit is used to obtain the electrical signals generated by the headphone device when playing the target silent file, and generate an interference signal database according to the standard working modes and the electrical signals.

[0133] Furthermore, the signal collection unit includes:

[0134] a feature determination subunit, configured to determine a standard interference signal phase and a standard interference signal amplitude corresponding to each of the electrical signals, and then obtain a standard interference signal corresponding to each of the electrical signals according to each of the standard interference signal phases and each of the standard interference signal amplitudes;

[0135] The data matching subunit is used to match each of the standard operating modes with the standard interference signals corresponding to each of the standard operating modes to generate an interference signal database.

[0136] In addition, the present invention also provides an earphone device having an earphone noise elimination method that can be run on a processor. When the earphone device executes the earphone noise elimination method, the steps of the earphone noise elimination method as described in any of the above embodiments are implemented.

[0137] The specific embodiments of the headphone device of the present invention are basically the same as the embodiments of the headphone noise elimination method described above, and will not be described in detail here.

[0138] In addition, the present invention also provides a computer-readable storage medium, which stores a method for eliminating headphone noise. When the method for eliminating headphone noise is executed by a processor, the steps of the method for eliminating headphone noise as described in any of the above embodiments are implemented.

[0139] The specific embodiments of the computer-readable storage medium of the present invention are basically the same as the embodiments of the above-mentioned headphone noise elimination method, and will not be described in detail here.

[0140] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.

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

[0142] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course, by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, including a number of instructions for enabling a terminal device (which can be a headphone device equipped with a Bluetooth module, an application processor module, an audio module, and a reverse audio signal generation module, and of course, the headphone device can also be a Bluetooth headset or other mobile headphone device, etc.) to execute the methods described in the various embodiments of the present invention.

[0143] The above are only preferred embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention description and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for eliminating earphone noise, characterized in that: The method for eliminating earphone noise comprises the following steps: Upon detecting that an audio signal to be played is generated in the headphone device, detecting a current corresponding to a power module in the headphone device to determine a real-time operating mode of the headphone device, wherein the real-time operating mode is characterized by an operating mode of each operating component in the headphone device; Determining a target interference signal corresponding to the real-time working mode in a preset interference signal database, and generating an initial reverse audio signal opposite to the target interference signal; Processing the initial reverse audio signal to obtain a target reverse audio signal, and adding the target reverse audio signal to the audio signal to be played to eliminate noise generated by the headphone device when playing the audio signal to be played; The interference signal database includes each standard operating mode and a standard interference signal corresponding to each standard operating mode.

2. The headphone noise elimination method according to claim 1, wherein: The step of determining the target interference signal corresponding to the real-time working mode in a preset interference signal database includes: Obtaining a preset interference signal database, and determining a standard operating mode corresponding to the real-time operating mode in the interference signal database; The standard interference signal corresponding to the standard working mode is determined in the interference signal database, and the standard interference signal is determined as the target interference signal corresponding to the real-time working mode.

3. The headphone noise elimination method according to claim 2, wherein: The step of generating an initial reverse audio signal opposite to the target interference signal comprises: Determining the phase of an interference signal contained in the target interference signal, and generating a reverse audio signal phase opposite to the phase of the interference signal; Determining an interference signal amplitude contained in the target interference signal, and generating a reverse audio signal amplitude corresponding to the interference signal amplitude; The reverse audio signal phase and the reverse audio signal amplitude are integrated to obtain an initial reverse audio signal that is opposite to the target interference signal.

4. The headphone noise elimination method according to claim 3, wherein: The step of processing the initial reverse audio signal to obtain a target reverse audio signal includes: Obtaining a timestamp signal and a radio frequency power coefficient corresponding to the target interference signal; The initial reverse audio signal is processed based on the timestamp signal and the radio frequency power coefficient to obtain a target reverse audio signal.

5. The headphone noise elimination method according to claim 4, wherein: The step of processing the initial reverse audio signal based on the timestamp signal and the radio frequency power coefficient to obtain a target reverse audio signal includes: Adjusting the phase of the reverse audio signal according to the timestamp signal to obtain a target reverse audio signal phase; Adjusting the reverse audio signal amplitude according to the radio frequency power coefficient to obtain a target reverse audio signal amplitude; The target reverse audio signal is obtained by integrating the target reverse audio signal phase and the target reverse audio signal amplitude.

6. The headphone noise elimination method according to claim 5, wherein: Before the step of detecting that an audio signal to be played is generated in the headphone device, the method further includes: Obtaining a preset target mute file and various standard distance parameters; wherein the standard distance parameter is a distance value between the headphone device and the terminal device corresponding to the headphone device; Determining the radio frequency power corresponding to each standard operating mode under each standard distance parameter, and controlling the headphone device to play the target silent file under each radio frequency power; The electrical signals generated by the headphone device when playing the target silent file are acquired, and an interference signal database is generated according to the standard working modes and the electrical signals.

7. The headphone noise elimination method according to claim 6, wherein: The step of generating an interference signal database according to each of the standard operating modes and each of the electrical signals comprises: Determining the standard interference signal phase and the standard interference signal amplitude corresponding to each of the electrical signals, and then obtaining the standard interference signal corresponding to each of the electrical signals according to the standard interference signal phase and the standard interference signal amplitude; Each of the standard operating modes is matched with the standard interference signal corresponding to each of the standard operating modes to generate an interference signal database.

8. A device for eliminating earphone noise, characterized in that: The device comprises: a mode detection module, configured to, upon detecting that an audio signal to be played is generated in the headphone device, detect a current corresponding to a power module in the headphone device to determine a real-time operating mode of the headphone device, wherein the real-time operating mode is characterized by an operating mode of each operating component in the headphone device; a signal generation module, configured to determine a target interference signal corresponding to the real-time operating mode from a preset interference signal database, and generate an initial reverse audio signal opposite to the target interference signal, wherein the interference signal database includes each standard operating mode and a standard interference signal corresponding to each standard operating mode; A signal processing module is used to process the initial reverse audio signal to obtain a target reverse audio signal, and add the target reverse audio signal to the audio signal to be played to eliminate noise generated by the headphone device when playing the audio signal to be played.

9. A headphone device, characterized in that: The headphone device includes: a memory, a processor, and a headphone noise elimination program stored in the memory and executable on the processor. When the headphone noise elimination program is executed by the processor, the steps of the headphone noise elimination method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a headphone noise elimination program, and when the headphone noise elimination program is executed by the processor, the steps of the headphone noise elimination method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Terminal, sound production method, storage medium and electronic device

    CN112509594A

  • Active noise reduction method, noise reduction earphone and computer readable storage medium

    CN114125624A