[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2022199222A1 - Noise reduction method and apparatus for audio playing device, and electronic device and storage medium - Google Patents

Noise reduction method and apparatus for audio playing device, and electronic device and storage medium Download PDF

Info

Publication number
WO2022199222A1
WO2022199222A1 PCT/CN2022/071086 CN2022071086W WO2022199222A1 WO 2022199222 A1 WO2022199222 A1 WO 2022199222A1 CN 2022071086 W CN2022071086 W CN 2022071086W WO 2022199222 A1 WO2022199222 A1 WO 2022199222A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
audio playback
noise signal
bluetooth
target
Prior art date
Application number
PCT/CN2022/071086
Other languages
French (fr)
Chinese (zh)
Inventor
刘绍斌
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022199222A1 publication Critical patent/WO2022199222A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/02Circuits for transducers, loudspeakers or microphones for preventing acoustic reaction, i.e. acoustic oscillatory feedback
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • the present application relates to the technical field of electronic devices, and more particularly, to a noise reduction method, apparatus, electronic device, and storage medium for audio playback devices.
  • the present application proposes a noise reduction method, device, electronic device and storage medium for audio playback equipment to solve the above problems.
  • an embodiment of the present application provides a noise reduction method for an audio playback device, which is applied to the audio playback device.
  • the method includes: acquiring a target noise signal of the audio playback device, wherein the target noise signal is composed of The audio playback device performs Bluetooth communication; generates an inverted signal according to the target noise signal, wherein the target noise signal is opposite to the waveform phase of the inverted signal; and plays the inverted signal.
  • an embodiment of the present application provides a noise reduction method for an audio playback device, which is applied to an audio playback device.
  • the method includes: acquiring a noise signal of a target frequency, where the target frequency is the same as the audio playback device.
  • the frequencies of the current acoustic signals caused by the Bluetooth communication are the same or the frequency difference is in a preset range; an inverted signal is generated according to the noise signal of the target frequency, wherein the noise signal of the target frequency and the waveform of the inverted signal are The phase is reversed; the reversed signal is played.
  • an embodiment of the present application provides a noise reduction device for an audio playback device, which is applied to the audio playback device.
  • the device includes: a target noise signal acquisition module, configured to acquire a target noise signal of the audio playback device, Wherein, the target noise signal is caused by Bluetooth communication performed by the audio playback device; an inversion signal generating module is configured to generate an inversion signal according to the target noise signal, wherein the target noise signal and the inversion signal The phase of the waveform is opposite; the inversion signal playing module is used to play the inversion signal.
  • an embodiment of the present application provides a noise reduction device for an audio playback device, which is applied to the audio playback device.
  • the device includes: a noise signal acquisition module for acquiring a noise signal of a target frequency, wherein the target The frequency is the same as the frequency of the current acoustic signal caused by the Bluetooth communication of the audio playback device or the frequency difference is in a preset range; the inversion signal generation module is used to generate an inversion signal according to the noise signal of the target frequency, wherein, The noise signal of the target frequency is opposite to the waveform phase of the inverted signal; the inverted signal playing module is used for playing the inverted signal.
  • an embodiment of the present application provides an electronic device, including a memory and a processor, the memory is coupled to the processor, the memory stores an instruction, and the instruction is executed when the instruction is executed by the processor.
  • the processor executes the above method.
  • an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above method.
  • FIG. 1 shows a schematic diagram of an application environment of the noise reduction method applicable to the audio playback device provided by the embodiment of the present application
  • FIG. 2 shows a block diagram of an electronic device for implementing the noise reduction method for an audio playback device according to an embodiment of the present application
  • FIG. 3 shows a schematic flowchart of a noise reduction method for an audio playback device provided by an embodiment of the present application
  • FIG. 4 shows a spectrogram of a target noise signal provided by an embodiment of the present application
  • FIG. 5 shows a spectrum diagram of an inverted signal provided by an embodiment of the present application
  • FIG. 6 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application
  • FIG. 7 shows a schematic flowchart of step S210 of the audio playback device shown in FIG. 6 of the present application
  • FIG. 8 shows a schematic flowchart of a noise reduction method for an audio playback device provided by still another embodiment of the present application.
  • FIG. 9 shows a schematic diagram of the current change of the audio playback device provided by the embodiment of the present application during communication
  • FIG. 10 shows a schematic flowchart of a noise reduction method for an audio playback device provided by another embodiment of the present application.
  • FIG. 11 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application.
  • FIG. 12 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application
  • FIG. 13 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application.
  • FIG. 14 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application.
  • FIG. 15 shows a block diagram of a module of a noise reduction apparatus of an audio playback device provided by an embodiment of the present application
  • FIG. 16 shows a block diagram of a module of a noise reduction apparatus of an audio playback device provided by yet another embodiment of the present application.
  • FIG. 17 shows a storage unit for storing or carrying a program code for implementing the noise reduction method for an audio playback device according to an embodiment of the present application, according to an embodiment of the present application.
  • the noise floor mainly includes two categories: one is the current sound, the source of the current sound is mainly caused by the interference of electronic components to the speaker, and the electronic components can include power Inductors, etc., batteries, for example, the source of the current sound can be caused by the interference of the battery to the speaker, and the other type is white noise, which is mainly related to the chip itself.
  • reducing the noise floor such as current sound is generally achieved by increasing the distance between electronic components, for example, by increasing the distance between the battery and the speaker, wherein after the distance between the battery and the speaker is increased, the battery radiates The interference of the output power to the speaker is reduced, so that the noise generated will be reduced.
  • the audio playback device cannot be well reduced. In order to keep the battery away from the speaker, the distance between the two will be increased, which will cause the volume of the audio playback device to be too large and affect the aesthetics and experience of the audio playback device.
  • the inventor has discovered through long-term research, and proposed a noise reduction method, device, electronic device and storage medium for an audio playback device provided by the embodiments of the present application.
  • the opposite phase signal is used to reduce the influence of the target noise signal, and realize the small size design of the audio playback device to improve the user experience.
  • the specific noise reduction method of the audio playback device will be described in detail in the following embodiments.
  • FIG. 1 shows a schematic diagram of an application environment of the noise reduction method applicable to the audio playback device provided by the embodiment of the present application.
  • the audio playback device 100 may include headphones, speakers, etc.
  • the audio playback device 100 may also include other devices with audio playback functions, which will not be described here. limited.
  • the audio providing device 200 may include a smart phone, a tablet computer, a smart watch, a computer, a wearable electronic device, etc.
  • the audio providing device 200 may also include other devices having an audio providing function, which is not limited herein.
  • the audio providing device 200 can be used as an audio providing device to send audio content to the audio playing device 100 for playback.
  • the audio playback device 100 and the audio providing device 200 may communicate to complete data interaction. Wherein, the audio playback device 100 and the audio providing device 200 may communicate with each other through a local area network (LAN), and may also communicate with each other through a wide area network (WAN).
  • LAN local area network
  • WAN wide area network
  • the audio playback device 100 and the audio providing device 200 may be connected to a router at the same time, and the audio playback device 100 and the audio providing device 200 may communicate through the local area network provided by the router; for another example, the audio playback device 100 and the audio providing device 200 may Communicate with the cloud, and realize the data interaction between the two through the cloud; for another example, the audio playback device 100 and the audio providing device 200 can also establish an end-to-end network connection (ie P2P) through Bluetooth, Zigbee, WebRTC and other communication methods. network connection) and communicate over the established network connection.
  • P2P end-to-end network connection
  • the communication manner between the audio playing device 100 and the audio providing device 200 may not be limited.
  • the audio playback device 100 communicates with the audio providing device 200 through Bluetooth.
  • the audio playback device 100 can be a true wireless stereo (true wireless stereo, TWS) headset
  • the audio providing device 200 can be a smartphone
  • the audio playing device 100 and the audio providing device 200 communicate through Bluetooth, then the TWS headset Audio data can be acquired and played back from a smartphone via Bluetooth technology.
  • FIG. 2 shows a module block diagram of an audio playback device 100 provided by an embodiment of the present application.
  • the audio playback device 100 may be an audio playback device with Bluetooth communication technology, such as a Bluetooth headset, a Bluetooth speaker, or the like.
  • the audio playback device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a Bluetooth module 130, a power module 140, an audio module 150, and one or more application programs, wherein one or more application programs
  • the one or more programs which may be stored in the memory 120 and configured to be executed by the one or more processors 110, are configured to perform the methods as described in the foregoing method embodiments.
  • the processor 110 is respectively connected to the memory 120 , the Bluetooth module 130 , the power module 140 and the audio module 150 , and the power module 140 is respectively connected to the processor 110 , the memory 120 , the Bluetooth module 130 and the audio module 150 .
  • the processor 110 is used for the control of the entire system, such as controlling charging, audio signal processing, etc.
  • the Bluetooth module 130 is mainly used for communication between the audio playback device 100 and the audio providing device 200. When the audio playback device is a TWS headset, it is also used.
  • the power supply module 140 is used to supply power to each module in the audio playback device 100, and the audio module 150 includes speakers, microphones, etc., used for audio playback and audio collection.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts in the entire audio playback device 100, and by running or executing the instructions, programs, code sets or instruction sets stored in the memory 120, and calling the data stored in the memory 120, Various functions of the electronic device 100 are executed and data is processed.
  • the processor 110 may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface, and application programs
  • the GPU is used to render and draw the content to be displayed
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may also not be integrated into the processor 110, and is implemented by a communication chip alone.
  • the memory 120 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • the storage data area may also store data (such as phone book, audio and video data, chat record data) created by the audio playback device 100 in use.
  • Establishing a Bluetooth connection can be the first connection with other Bluetooth devices, or the re-establishment of a Bluetooth connection (reconnection) with a certain Bluetooth device, or the connection process of re-pairing after the Bluetooth connection information is erased.
  • the Bluetooth device may be in the states of page page, page scan page scan, inquiry inquiry, inquiry scan inquiry scan, etc., and may switch between different states.
  • the inventor's research found that, especially in the paging or query state, it is necessary to send bluetooth signals, such as ID packets, in each frequency band according to the bluetooth frequency hopping protocol, and wait for feedback, so that the bluetooth signal is transmitted and the bluetooth signal is not transmitted alternately. become more frequent, and the fluctuation of the output current of the power supply will increase, which may cause electronic devices such as batteries and inductors to generate a large electromagnetic field, which in turn interferes with sensitive devices such as speakers to generate noise such as current sound.
  • the Bluetooth headset as an example, if the Bluetooth connection is suddenly disconnected during the user's use, the main headset of the Bluetooth headset will enter the paging state to try to connect to the mobile phone.
  • FIG. 3 shows a schematic flowchart of a noise reduction method for an audio playback device provided by an embodiment of the present application.
  • the noise reduction method of the audio playback device is used for reducing the influence of the target noise signal by playing a reversed-phase signal that is opposite to the waveform phase of the target noise signal of the audio playback device, and realizes the small size design of the audio playback device and improves the user experience. user experience.
  • the noise reduction method of the audio playback device is applied to the noise reduction device 300 of the audio playback device shown in FIG. 15 and the electronic device 100 configured with the noise reduction device 300 of the audio playback device (FIG. 2 ).
  • FIG. 2 shows a schematic flowchart of a noise reduction method for an audio playback device provided by an embodiment of the present application.
  • the noise reduction method of the audio playback device is used for reducing the influence of the target noise signal by playing a reversed-phase signal that is opposite to the waveform phase of the target noise signal of the audio playback device, and realizes the small
  • the electronic device applied in this embodiment may be an audio playback device based on Bluetooth communication technology, such as a Bluetooth headset and a Bluetooth speaker. Not limited.
  • Bluetooth communication technology such as a Bluetooth headset and a Bluetooth speaker.
  • the process shown in FIG. 3 will be described in detail below, and the noise reduction method of the audio playback device may specifically include the following steps:
  • Step S110 Acquire a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device.
  • the audio playback device when the Bluetooth function of the audio playback device is turned on, the audio playback device will perform Bluetooth communication.
  • the audio playback device will perform Bluetooth communication with other Bluetooth devices (such as audio providing devices).
  • the audio playback device When the audio playback device performs Bluetooth communication, it will generate Noise signal, denoted as target noise signal.
  • the frequency of the target noise signal generated by the audio playback device based on the Bluetooth communication is fixed, for example, the target noise signal with a frequency of 800 Hz or a harmonic of 800 Hz is generated. Therefore, in this embodiment, in order to perform noise reduction processing on the to-be-processed noise signal of the audio playback device, the target noise signal can be acquired, and the target noise signal can be subjected to targeted noise reduction processing.
  • the audio playback device may preset the target noise signal acquired by pre-collection, and regard other sounds collected in the environment that are not belonging to the target noise signal as environmental noise signals.
  • the audio playback device can preset the target noise signal and obtain the target sound quality corresponding to the target noise signal, and use the target sound quality as the basis for judging the collected sound in the environment where it is located. Therefore, in this embodiment
  • the audio playback device collects the sound in the environment through the microphone, it can obtain the sound quality of the collected sound in the environment, and compare the sound quality of the sound in the environment with the target sound quality to get Determine whether the sound quality of the sound in the environment matches the target sound quality, wherein, when the judgment result indicates that the sound quality of the sound in the environment matches the target sound quality, it can be determined that the sound in the environment is the target noise signal, on the contrary Specifically, when the judgment result indicates that the sound quality of the sound in the environment does not match the target sound quality, it can be determined that the sound in the environment is an ambient noise signal.
  • the audio playback device can preset the target noise signal and obtain the target decibel corresponding to the target noise signal, and use the target decibel as the basis for judging the collected sound in the environment where it is located. Therefore, in this implementation
  • the audio playback device collects the sound in the environment through the microphone, it can obtain the decibel of the collected sound in the environment, and compare the decibel of the sound in the environment with the target decibel, To determine whether the decibel of the sound in the environment matches the target decibel, wherein, when the judgment result indicates that the decibel of the sound in the environment matches the target decibel, it can be determined that the sound in the environment is the target noise signal, Conversely, when the determination result indicates that the decibel of the sound in the environment does not match the target decibel, it can be determined that the sound in the environment is an ambient noise signal. Wherein, when the decibel of the sound is higher than the preset value, it can be considered that the sound does not match the target decibel, and when the decibel of the sound is not higher than
  • the source of the collected noise signal when collecting and acquiring the noise signal, the source of the collected noise signal can be detected, and when it is detected that the source of the collected noise signal is an audio playback device, the collected noise signal can be It is determined as the target noise signal, and when it is detected that the source of the collected noise signal is not the audio playback device, the collected noise signal can be determined as the environmental noise signal.
  • the audio playback device may be a TWS earphone, wherein two metal pins are provided at the bottom of the TWS earphone.
  • the TWS earphone When the TWS earphone is placed in the charging box, the circuit between the TWS earphone and the charging box is conducted. , so that you can use the charging case to charge the TWS headset.
  • the common TWS headset has two metal pins or three metal pins, which are located at the corresponding positions of the TWS headset and the charging box.
  • the metal pins on the TWS headset and the charging box The metal pins on the box are just in contact to charge and place the TWS earphones.
  • the TWS earphones can automatically turn on and attempt to communicate with other bluetooth devices. Bluetooth connection. Based on this, it is possible to detect whether the TWS earphone is taken out of the charging box. When it is detected that the TWS earphone is taken out of the charging box, it indicates that the TWS earphone starts to perform Bluetooth communication, and the target noise signal of the audio playback device can be obtained. When it is detected that the TWS earphone is placed in the charging box, it indicates that the TWS earphone starts to perform Bluetooth communication, and the target noise signal of the audio playback device may not be acquired.
  • the audio playback device may be a Bluetooth speaker, wherein the Bluetooth speaker may be provided with a Bluetooth switch. Based on this, the status information of the Bluetooth switch of the Bluetooth speaker can be detected, wherein, when it is detected that the status information of the Bluetooth switch of the Bluetooth speaker is in an on state, it indicates that the Bluetooth speaker starts to perform Bluetooth communication, and the information of the audio playback device can be obtained.
  • Target noise signal when it is detected that the Bluetooth switch of the Bluetooth speaker is turned off, it indicates that the Bluetooth speaker has not started Bluetooth communication, and the target noise signal of the audio playback device may not be obtained.
  • Step S120 Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
  • an inverted signal may be generated according to the target noise signal, wherein the generated inverted signal and the waveform of the target noise signal are in opposite phase.
  • a spectrum of the target noise signal can be calculated, and an inverted signal with opposite phases and the same amplitude is generated based on the spectrum of the target noise signal.
  • FIG. 4 shows a spectrogram of a target noise signal provided by an embodiment of the present application
  • FIG. 5 shows a spectrogram of an inverted signal provided by an embodiment of the present application, as shown in FIG. 4 and As shown in Fig. 5, the waveforms of the target noise signal and the inverted signal have opposite phases.
  • Step S130 Play the inverted signal.
  • the inverted signal after the inverted signal is acquired, the inverted signal can be played. Since the waveforms of the inverted signal and the target noise signal are in opposite phases, playing the inverted signal can cancel the target noise signal, thereby reducing the target noise. The effect of noise signals. In addition, since the target noise signal is canceled by the inverted signal in this embodiment, it is not necessary to increase the distance between the electronic components, and the compact design of the audio playback device can be realized.
  • the audio playing device can receive the audio data sent by the audio providing device, and play the audio data and the inverted signal together. It is understandable that , at this time, the inverted signal and the target noise signal cancel each other out, and the audio playback device finally outputs audio data, thereby improving the user experience.
  • the audio playback device may preset and store a volume threshold, where the volume threshold is used as a basis for judging the volume of the audio output by the audio playback device. Therefore, in this embodiment, the volume of the audio output by the audio playback device can be detected, and after detecting the volume of the audio output by the audio playback device, the volume of the output audio can be compared with the volume threshold to determine the output Whether the volume of the audio is less than the volume threshold, when the volume of the output audio is less than the volume threshold, it can be considered that the audio output by the audio playback device cannot cover the target noise signal, and the inverted signal can be played. When the volume of the audio is not less than the volume threshold, it can be considered that the audio output by the audio playback device can cover the target noise signal, and the inverted signal may not be played to reduce the power consumption of the audio playback device.
  • the audio playback device may preset and store a power threshold, and the power threshold is used as a basis for judging the remaining power of the audio playback device. Therefore, in this embodiment, the remaining power of the audio playback device can be detected, and after the remaining power of the audio playback device is detected, the remaining power can be compared with the power threshold to determine whether the remaining power is greater than the power threshold. When the power is greater than the power threshold, it can be considered that the audio playback device has enough remaining power to play the inverted signal, and the inverted signal can be played. When the remaining power is not greater than the power threshold, it can be considered that the audio playback device does not have enough remaining power to play If the inverted signal is used, the inverted signal may not be played, so as to reduce the power consumption of the audio playback device.
  • An embodiment of the present application provides a noise reduction method for an audio playback device, which acquires a target noise signal of the audio playback device, where the target noise signal is caused by Bluetooth communication performed by the audio playback device, and generates an inverted signal according to the target noise signal, wherein the target noise signal is The noise signal is opposite to the waveform phase of the inverted signal, and the inverted signal is played, so as to reduce the influence of the target noise signal by playing the inverted signal with the opposite phase to the waveform of the target noise signal of the audio playback device, and realize the audio playback device.
  • Small size design improve user experience.
  • FIG. 6 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application. The method is applied to the above-mentioned audio playback device, and the flow shown in FIG. 6 will be described in detail below.
  • the noise reduction method of the audio playback device may specifically include the following steps:
  • Step S210 During part or all of the Bluetooth communication, acquire the target noise signal, where the target noise signal is caused by the audio playback device performing Bluetooth communication.
  • the audio playback device may generate a current sound of a specific frequency, that is, during part or all of the Bluetooth communication, the audio playback device may generate noise signals to be processed. Therefore, in this embodiment, the target noise signal can be acquired during part or all of the Bluetooth communication.
  • the noise signal to be processed generated by the audio playback device is more prominent.
  • the target noise signal may be acquired during part or all of the process of establishing the Bluetooth connection.
  • the fluctuation of the output current of the power supply will increase when in the paging or query state, which may cause electronic devices such as batteries and inductors to generate a large electromagnetic field, thereby interfering with sensitive devices such as speakers to generate current sound.
  • Equal noise that is, during part or all of the process of Bluetooth paging or Bluetooth inquiry, the situation of the to-be-processed noise signal generated by the audio playback device is more pronounced. Therefore, in this embodiment, the target noise signal can be acquired in part or all of the process of Bluetooth paging or Bluetooth query.
  • the power consumption of the entire system of the audio playback device will be very large, so the current drawn from the power supply module will also be relatively large, then, when the current is large, it flows through the audio module
  • the electromagnetic field of the coil (such as a speaker) will also be relatively large, that is, the noise signal will be relatively large, that is, during part or all of the process of transmitting the Bluetooth signal by the audio playback device, the situation of the to-be-processed noise signal generated by the audio playback device is more obvious. Therefore, in this embodiment, the target noise signal may be acquired during part or all of the process of transmitting the Bluetooth signal by the audio playback device.
  • FIG. 7 shows a schematic flowchart of step S210 of the audio playback device shown in FIG. 6 of the present application.
  • the flow shown in FIG. 7 will be described in detail below, and the method may specifically include the following steps:
  • Step S211 Acquire current acoustic signals during part or all of the Bluetooth communication.
  • the battery and/or inductor may generate an equivalent electric field due to the transmission of Bluetooth signals, thereby interfering with the components of the audio playback device, such as sensitive devices such as speakers, thereby generating current acoustic signals , that is, noise, which affects the user experience.
  • the power consumption of the entire system of the audio playback device will be very large, so the current drawn from the power module will also be relatively large, then, when the current is large, the electromagnetic field flowing through the coil of the audio module (such as a speaker) It will also be relatively large, which will generate a fixed-frequency current sound signal on the audio module, that is, noise, which affects the user experience. Therefore, in this embodiment, the current acoustic signal can be acquired during part or all of the Bluetooth communication.
  • Step S212 Determine the current acoustic signal as the target noise signal.
  • the current acoustic signal generated inside the audio playback device will generate noise
  • the current acoustic signal can be determined as the target noise signal, so as to cancel the current through the subsequently generated inverse signal Sound signal, improve user experience.
  • Step S220 Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
  • Step S230 Play the inverted signal.
  • steps S220-step S230 can refer to steps S120-step S130, and details are not repeated here.
  • a target noise signal is acquired during part or all of the Bluetooth communication process, wherein the target noise signal is caused by the audio playback device performing Bluetooth communication, according to the target noise signal
  • the signal generates an inverted signal, in which the target noise signal is in opposite phase to the waveform of the inverted signal, playing the inverted signal.
  • this embodiment also obtains the target noise signal during part or all of the Bluetooth communication process, and plays the waveform phase opposite to that of the target noise signal of the audio playback device. , to improve the noise reduction processing effect.
  • FIG. 8 shows a schematic flowchart of a noise reduction method for an audio playback device provided by still another embodiment of the present application. This method is applied to the above-mentioned audio playback device.
  • the audio playback device includes a Bluetooth module.
  • the flow shown in FIG. 8 will be described in detail below.
  • the noise reduction method of the audio playback device may specifically include the following: step:
  • Step S310 When a Bluetooth signal is transmitted based on the Bluetooth module, monitor the transmission signal of the Bluetooth module.
  • the audio playback device includes a Bluetooth module
  • the audio providing device includes a Bluetooth module
  • the audio playback device can transmit a Bluetooth signal to the Bluetooth module included in the audio providing device through the included Bluetooth module, thereby realizing the audio playback device and the audio providing device.
  • Bluetooth communication between devices when the audio playback device transmits a Bluetooth signal to the audio providing device based on the Bluetooth module, it can monitor the transmission signal of the Bluetooth module, wherein the transmission signal of the Bluetooth module may include the transmission frequency of the Bluetooth module and the transmission power of the Bluetooth module. etc., which are not limited here.
  • Step S320 Obtain the target noise signal based on the transmitted signal.
  • the target noise signal can be acquired based on the transmission signal.
  • the waveform phase of the target noise signal and the transmission signal are in a corresponding relationship.
  • the target noise signal may be obtained based on the correspondence between the target noise signal and the transmitted signal.
  • the audio playback device may create a mapping relationship table, and the mapping relationship table may include multiple transmission signals, multiple target noise signals, and the corresponding relationship between multiple transmission signals and multiple target noise signals, for example, all Described mapping relation table can be as shown in table 1, wherein, transmit signal is represented by A, target noise signal is represented by B, then, through described mapping relation table, this audio playback device can correspondingly set the correspondence of transmit signal and target noise signal relationship and stored locally on the audio playback device.
  • the mapping relationship table can also be created by other devices and sent to the audio playback device for local storage in the audio playback device.
  • the mapping relationship table can also be created by the audio playback device and sent to the audio playback device. Audio playback device.
  • the audio playback device can look up the transmission signal matching the transmission signal of the Bluetooth module from the mapping relationship table as the target transmission signal, and then based on the transmission signal in the mapping relationship table According to the corresponding relationship with the target noise signal, the target noise signal corresponding to the transmission signal matching the target transmission signal can be found. For example, when the transmission signal of the Bluetooth module is A1, it can be determined that the target noise signal is B1.
  • the audio playback device includes a Bluetooth module
  • the audio providing device includes a Bluetooth module
  • the audio playback device can transmit a Bluetooth signal to the Bluetooth module included in the audio providing device through the included Bluetooth module, thereby realizing the audio playback device and the audio providing device.
  • Bluetooth communication between devices when the audio playback device transmits a Bluetooth signal to the audio providing device based on the Bluetooth module, it can monitor the transmission frequency of the Bluetooth module.
  • the Bluetooth module of the audio playback device will communicate with the Bluetooth module of other Bluetooth devices (such as audio providing devices) at regular intervals.
  • the audio playback device can transmit Bluetooth signals at a certain transmission frequency.
  • the audio providing device transmits Bluetooth signals at a transmission frequency of 1.25ms (Tx Slot is 0.625ms, Rx Slot is 0.625ms,). Therefore, in this embodiment, it can be considered that the audio playback device will generate the target noise signal at every interval of the transmission frequency, and the target noise signal can be obtained according to the transmission frequency.
  • the audio playback device since the audio playback device is in the Bluetooth back-connection state, it first needs to transmit a Bluetooth signal, and then receive a signal fed back by the audio providing device, wherein the time of transmitting the Bluetooth signal is denoted as Tx Slot, and the time of receiving the signal is denoted as Rx Slot, the time of Tx Slot can be 0.625ms, the time of Rx Slot can be 0.625ms, then the period of Tx Slot+Rx Slot is 1.25ms, that is to say, the audio playback device transmits the Bluetooth signal at the transmission frequency of 1.25ms, Then 1.25ms can be recorded as the transmission frequency, and the target noise signal can be obtained according to the transmission frequency.
  • FIG. 9 shows a schematic diagram of a current change of the audio playback device provided by the embodiment of the present application during communication.
  • the audio playback device transmits a Bluetooth signal
  • the current drawn from the power module increases at regular intervals, and the time interval between each adjacent two increased currents is basically the same, and the time interval can be regarded as The transmission frequency, therefore, the target noise signal can be obtained at this transmission frequency.
  • Step S330 Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
  • Step S340 Play the inverted signal.
  • a noise reduction method for an audio playback device when a Bluetooth signal is transmitted based on a Bluetooth module, the transmission signal of the Bluetooth module is monitored, a target noise signal is acquired based on the transmission signal, and an inverted signal is generated according to the target noise signal, Wherein, the waveform phase of the target noise signal is opposite to that of the inverted signal, and the inverted signal is played.
  • the present embodiment also obtains the target noise signal by monitoring the transmission signal of the Bluetooth module, so as to improve the efficiency and convenience of obtaining the noise signal.
  • FIG. 10 shows a schematic flowchart of a noise reduction method for an audio playback device provided by another embodiment of the present application. This method is applied to the above-mentioned audio playback device, and the flow shown in FIG. 10 will be described in detail below.
  • the noise reduction method of the audio playback device may specifically include the following steps:
  • Step S410 Acquire a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device.
  • Step S420 Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
  • Step S430 Play the inverted signal.
  • steps S410-step S430 can refer to steps S110-step S130, which will not be repeated here.
  • Step S440 Play a prompt sound when the inverted signal does not cancel the target noise signal, wherein the prompt sound is used to cover the target noise signal.
  • the inverted signal after playing the inverted signal, it can be detected whether the audio signal output by the audio playback device still includes the target noise signal, wherein when the detection result indicates that the audio signal output by the audio playback device still includes the target noise signal , indicating that the inverse signal does not cancel the target noise signal, you can play the prompt tone, and cover the target noise signal by the prompt tone, so that the user cannot hear the noise problem.
  • the detection result indicates that the audio signal output by the audio playback device does not include
  • the inverted signal can cancel the target noise signal, and the prompt tone may not be played.
  • Another embodiment of the present application provides a noise reduction method for an audio playback device, which acquires a target noise signal of the audio playback device, where the target noise signal is caused by Bluetooth communication performed by the audio playback device, and generates an inverted signal according to the target noise signal, wherein, The waveform phase of the target noise signal is opposite to that of the inverted signal, and the inverted signal is played.
  • a prompt tone for covering the target noise signal is played.
  • the present embodiment also plays a prompt sound to cover the target noise signal when the inverted signal does not cancel the target noise signal, so as to improve the noise reduction effect of the audio playback device.
  • FIG. 11 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application. This method is applied to the above-mentioned audio playback device.
  • the audio playback device is a Bluetooth headset.
  • the flow shown in FIG. 11 will be described in detail below.
  • the noise reduction method of the audio playback device may specifically include the following: step:
  • Step S510 Acquire a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device.
  • Step S520 Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
  • steps S510-step S520 can refer to steps S110-step S120, which will not be repeated here.
  • Step S530 Detect the wearing state of the Bluetooth headset.
  • the audio playback device is a Bluetooth headset
  • the Bluetooth headset may include a first Bluetooth headset and a second Bluetooth headset.
  • whether the first Bluetooth headset is in the wearing state can be determined by detecting whether the first Bluetooth headset is placed on the user's ear. It is understandable that when the first Bluetooth headset is placed on the user's ear, it is determined that the first Bluetooth headset is In the wearing state, when the first Bluetooth headset is not placed on the user's ear, it is determined that the first Bluetooth headset is in the non-wearing state. Similarly, it can be determined whether the second Bluetooth headset is in the wearing state by detecting whether the second Bluetooth headset is placed on the user's ear.
  • the second Bluetooth headset when the second Bluetooth headset is placed on the user's ear, the second Bluetooth headset is determined In the wearing state, when the second Bluetooth headset is not placed on the user's ear, it is determined that the second Bluetooth headset is in the non-wearing state.
  • the first Bluetooth headset and the second Bluetooth headset when both the first Bluetooth headset and the second Bluetooth headset are in the wearing state, it may include that the first Bluetooth headset is worn on the user's left ear and the second Bluetooth headset is worn on the user's right ear, or the first Bluetooth headset is worn on the user's right ear And the first bluetooth earphone is worn on the user's left ear; when only one of the first bluetooth earphone and the second bluetooth earphone is in a wearing state, it may include that the first bluetooth earphone is worn on the user's left ear and the second bluetooth earphone is in a non-wearing state, The first Bluetooth headset is worn on the user's right ear and the second Bluetooth headset is in a non-wearing state, the second Bluetooth headset is worn on the user's right ear and the first Bluetooth headset is in a non-wearing state, and the second Bluetooth headset is worn on the user's left ear and the first Bluetooth headset is in a non-wearing state.
  • the Bluetooth headset is in the non-wearing
  • the first Bluetooth headset may include a first headset body and a first contact sensor disposed on the first headset body, wherein the first contact sensor may be disposed on the outer surface of the first headset body, and when the first When the Bluetooth headset is placed on the user's ear, the first contact sensor contacts the user's ear to generate a first contact signal. Therefore, it can be determined whether the first Bluetooth headset is placed in the user's ear through the first contact parameter detected by the first contact sensor.
  • User ear wherein the first contact parameter may include contact area and/or contact point.
  • the second Bluetooth headset includes a second headset body and a second contact sensor disposed on the second headset body, wherein the second contact sensor can be disposed on the outer surface of the second headset body, when the second Bluetooth headset When the headset is placed on the user's ear, the second contact sensor contacts the user's ear to generate a second contact signal. Therefore, it can be determined whether the second Bluetooth headset is placed on the user's ear through the second contact parameter detected by the second contact sensor.
  • the second contact parameter can also include contact area and/or contact point.
  • the attitude data of the first Bluetooth headset may be detected, and the attitude data of the second Bluetooth headset may be detected.
  • the first Bluetooth headset may further include a first acceleration sensor and/or a first A gyroscope, the first acceleration sensor and/or the first gyroscope are arranged in the first earphone body, and are used to detect the attitude data of the first Bluetooth earphone.
  • the second Bluetooth headset may also include a second acceleration sensor and/or a second gyroscope, and the second acceleration sensor and/or the second gyroscope are arranged in the second headset body for detecting the second Bluetooth headset
  • the pose data will be the detected pose data.
  • the electronic device pre-stores attitude data when the Bluetooth headset is placed on the user's ear, wherein the attitude data is configured as preset attitude data, which is used as the detected attitude data of the first Bluetooth headset and the first Bluetooth headset.
  • the judgment basis of the attitude data of the second Bluetooth headset it can be understood that after detecting the first attitude data of the first Bluetooth headset, the first attitude data is compared with the preset attitude data to determine whether the first attitude data is It is consistent with the preset attitude data or within the allowable error range of the preset attitude data, wherein, when the first attitude data is consistent with the preset attitude data or within the allowable error range of the preset attitude data, it can be determined that the first attitude data is consistent with the preset attitude data.
  • the attitude data of the first Bluetooth headset satisfies the preset attitude data, then it is determined that the first Bluetooth headset is in the wearing state.
  • the first attitude data is inconsistent with the preset attitude data or is outside the allowable error range of the preset attitude data, then It can be determined that the attitude data of the first Bluetooth headset does not meet the preset attitude data, and it is determined that the first Bluetooth headset is in a non-wearing state.
  • the second attitude data of the second Bluetooth headset is compared with the preset attitude data to determine whether the second attitude data is consistent with the preset attitude data or is in the preset attitude data.
  • the allowable error range wherein, when the second attitude data is consistent with the preset attitude data or within the allowable error range of the preset attitude data, it can be determined that the attitude data of the second Bluetooth headset satisfies the preset attitude data , then it is determined that the second Bluetooth headset is in the wearing state.
  • the second attitude data is inconsistent with the preset attitude data or is outside the allowable error range of the preset attitude data, it can be determined that the attitude data of the second Bluetooth headset does not satisfy Presetting the posture data, it is determined that the second Bluetooth headset is in a non-wearing state.
  • Step S540 Play the inverted signal when the Bluetooth headset is in a wearing state.
  • the Bluetooth headset when it is detected that the Bluetooth headset is in a wearing state, it can be determined that the Bluetooth headset is in a use state, and an inverted signal can be played to offset the target noise signal to improve the user experience.
  • an inverted signal can be played to offset the target noise signal to improve the user experience.
  • the Bluetooth headset when the Bluetooth headset is in the wearing state, it can be detected whether the Bluetooth headset is performing audio output, for example, it can be detected whether the Bluetooth headset is performing song output, whether it is performing voice output, whether it is performing audio clip output, etc., Among them, when it is detected that the Bluetooth headset is performing audio output, it can be considered that the audio output by the Bluetooth headset can cover or weaken the target noise signal, and the reverse signal can not be played. When it is detected that the Bluetooth headset is performing no audio output, it can be considered that If the influence of the target noise signal is greater, the inverted signal can be played to cancel the target noise signal.
  • both the first Bluetooth headset and the second Bluetooth headset play an inverted signal; when it is detected that the first Bluetooth headset is in a wearing state When it is in the wearing state and the second Bluetooth headset is in the non-wearing state, the first Bluetooth headset plays the inverted signal and the second Bluetooth headset does not play the inverted signal; when it is detected that the first Bluetooth headset is in the non-wearing state and the second Bluetooth headset is in the In the wearing state, the first Bluetooth headset does not play the inverted signal and the second Bluetooth headset plays the inverted signal; when it is detected that the first Bluetooth headset is in the non-wearing state and the second Bluetooth headset is in the non-wearing state, the first Bluetooth headset is in the non-wearing state. Neither the earphone nor the second bluetooth earphone play the inverted signal.
  • Still another embodiment of the present application provides a noise reduction method for an audio playback device, which acquires a target noise signal of the audio playback device, where the target noise signal is caused by Bluetooth communication performed by the audio playback device, and generates an inverted signal according to the target noise signal, wherein , the waveform phase of the target noise signal is opposite to that of the inverted signal, and the wearing state of the Bluetooth headset is detected.
  • the Bluetooth headset is in the wearing state, the inverted signal is played.
  • the present embodiment also performs noise reduction processing on the target noise signal of the Bluetooth headset when the Bluetooth headset is in a wearing state, so as to reduce the power consumption of the Bluetooth headset.
  • FIG. 12 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application. This method is applied to the above-mentioned audio playback device.
  • the audio playback device is a Bluetooth headset.
  • the flow shown in FIG. 12 will be described in detail below.
  • the noise reduction method of the audio playback device may specifically include the following: step:
  • Step S610 Collect multiple noise signals.
  • the acquisition of the noise signal by the audio playback device may not be limited, that is, the audio playback device may simultaneously acquire the target noise signal generated based on the Bluetooth communication and the environmental noise signal of the environment in which it is located, so that the acquisition can obtain multiple noise signals.
  • Step S620 Obtain a noise signal belonging to a target frequency from the plurality of noise signals as the target noise signal.
  • a target frequency corresponding to the target noise signal generated based on the Bluetooth communication may be preset and stored, and the target frequency is used for As the judgment basis for the collected multiple noise signals. Therefore, in this embodiment, after collecting and obtaining multiple noise signals, the frequency of each noise signal in the multiple noise signals can be compared with the target frequency to determine whether the frequency of each noise signal matches the target frequency , according to the judgment result, the noise signal belonging to the target frequency can be obtained from the plurality of noise signals as the target noise signal.
  • Step S630 Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
  • Step S640 Play the inverted signal.
  • steps S630-step S640 can refer to steps S120-step S130, and details are not repeated here.
  • Yet another embodiment of the present application provides a noise reduction method for an audio playback device, which collects multiple noise signals, acquires a noise signal belonging to a target frequency from the multiple noise signals, takes it as a target noise signal, and generates an inverted signal according to the target noise signal , where the target noise signal is opposite to the waveform phase of the inverted signal, and the inverted signal is played.
  • the present embodiment also filters the collected noise signals by frequency to obtain the target noise signal generated based on the Bluetooth communication, and performs targeted noise reduction processing. .
  • FIG. 13 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application.
  • the noise reduction method of the audio playback device is used for reducing the influence of the target noise signal by playing an inverse signal whose waveform phase is opposite to that of the noise signal of the target frequency, and realizes the small size design of the audio playback device and improves the usage of the user. experience.
  • the noise reduction method of the audio playback device is applied to the noise reduction device 400 of the audio playback device shown in FIG. 16 and the electronic device 100 configured with the noise reduction device 400 of the audio playback device (FIG. 2 ).
  • FIG. 2 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application.
  • the noise reduction method of the audio playback device is used for reducing the influence of the target noise signal by playing an inverse signal whose waveform phase is opposite to that of the noise signal of the target frequency, and realizes the small size design of the audio playback
  • the electronic device applied in this embodiment may be an audio playback device based on Bluetooth communication technology, such as a Bluetooth headset and a Bluetooth speaker. Not limited.
  • the flow shown in FIG. 13 will be described in detail below.
  • the noise reduction method of the audio playback device may specifically include the following steps:
  • Step S710 Acquire a noise signal of a target frequency, wherein the target frequency is the same as the frequency of the current acoustic signal caused by the Bluetooth communication performed by the audio playback device or the frequency difference is within a preset range.
  • the audio playback device may cause the battery and/or the inductor to generate an equivalent electric field due to the emission of the Bluetooth signal, thereby interfering with the components of the audio playback device, such as the speaker and other sensitive devices, thereby generating a current sound signal,
  • the electronic device generates a noise signal correspondingly, wherein the frequency of the generated noise signal is recorded as the target frequency, then the target frequency is the same as the frequency of the current acoustic signal, or the target frequency and the frequency difference of the current acoustic signal are at A preset range (eg, the target frequency is approximately the same as the frequency of the current acoustic signal).
  • the target frequency is 800 Hz or a harmonic of 800 Hz. Therefore, in this embodiment, in order to perform noise reduction processing on the generated noise signal, a noise signal with a target frequency may be obtained, for example, a noise signal with a frequency of 800 Hz or a harmonic of 800 Hz may be obtained.
  • the audio playback device has the ability to collect noise signals at the target frequency.
  • the audio playback device may cause the battery and/or inductor to generate an equivalent electric field due to the emission of Bluetooth signals, thereby interfering with the components of the audio playback device, such as speakers and other sensitive devices.
  • the current acoustic signal is generated. In this case, the frequency of the generated current acoustic signal is different from that of ordinary environmental noise.
  • the characteristics of the noise signal to be collected can be determined according to the characteristics of the frequency of the above current acoustic signal, such as frequency characteristics, Then, the noise signal is collected according to the above-mentioned characteristics, and the purpose of reducing or eliminating the current acoustic signal is achieved through the reverse signal, such as playing the reverse phase signal.
  • the audio playback device can use the target frequency as a judgment basis for the collected sound in the environment where it is located. As a way, when the audio playback device collects the noise signal through the microphone, it can collect the noise signal matching the target frequency, so that the obtained noise signal includes the noise signal of the target frequency.
  • Step S720 Generate an inverted signal according to the noise signal of the target frequency, wherein the noise signal of the target frequency is opposite to the waveform of the inverted signal.
  • an inversion signal may be generated according to the noise signal of the target frequency, wherein the generated inversion signal is opposite to the waveform of the noise signal of the target frequency.
  • a spectrum of the noise signal of the target frequency can be calculated, and based on the spectrum of the noise signal of the target frequency, an inverted signal with opposite phases and the same amplitude is generated.
  • Step S730 Play the inverted signal.
  • the inverted signal after the inverted signal is acquired, the inverted signal can be played. Since the waveforms of the inverted signal and the noise signal of the target frequency are in opposite phases, playing the inverted signal can cancel the noise signal of the target frequency. Thereby, the influence of the noise signal of the target frequency can be reduced. In addition, since the noise signal of the target frequency is canceled by the inverted signal in this embodiment, it is not necessary to increase the distance between the electronic components, and the small size design of the audio playback device can be realized.
  • Still another embodiment of the present application provides a noise reduction method for an audio playback device, which acquires a noise signal of a target frequency, wherein the target frequency and the current sound signal caused by Bluetooth communication with the audio playback device have the same frequency or a frequency difference in a predetermined frequency.
  • Set the range for example, the target frequency is close to the same frequency as the current acoustic signal
  • the noise signal of the target frequency is opposite to the waveform phase of the inverted signal
  • play the inverted signal so as to reduce the influence of the target noise signal by playing the opposite phase signal with the waveform phase of the noise signal of the target frequency, and realize the small size design of the audio playback device and improve the user experience.
  • FIG. 14 shows a schematic flowchart of an audio playback device provided by yet another embodiment of the present application. This method is applied to the above-mentioned audio playback device. The flow shown in FIG. 14 will be described in detail below.
  • the noise reduction method of the audio playback device may specifically include the following steps:
  • Step S810 During part or all of the Bluetooth communication, acquire the noise signal of the target frequency, wherein the target frequency is the same as the frequency of the current sound signal caused by the Bluetooth communication performed by the audio playback device or the frequency difference is in the range of Preset range.
  • the audio playback device will generate a current sound of a specific frequency during part or all of the Bluetooth communication, that is, during part or all of the Bluetooth communication, the audio playback device will generate a noise signal of the target frequency . Therefore, in this embodiment, the noise signal of the target frequency can be acquired in part or all of the process of the Bluetooth communication, and noise reduction processing is performed on the noise signal of the target frequency, so as to improve the noise reduction processing effect.
  • the current sound is more prominent in the audio playback device, that is, during part or all of the process of establishing the Bluetooth connection, the audio playback device generates a noise signal of the target frequency situation is more obvious. Therefore, in this embodiment, during part or all of the process of establishing the Bluetooth connection, the noise signal of the target frequency is acquired, and noise reduction processing is performed on the noise signal of the target frequency, so as to improve the noise reduction processing effect.
  • the fluctuation of the output current of the power supply will increase when in the paging or query state, which may cause electronic devices such as batteries and inductors to generate a large electromagnetic field, thereby interfering with sensitive devices such as speakers to generate current sound.
  • Equal noise that is, the case of a noise signal of a target frequency generated by an audio playback device during part or all of a Bluetooth paging or Bluetooth inquiry is more pronounced. Therefore, in this embodiment, in part or all of the process of Bluetooth paging or Bluetooth query, the noise signal of the target frequency is acquired, and noise reduction processing is performed on the noise signal of the target frequency to improve the noise reduction processing effect.
  • the audio playback device when the audio playback device transmits a Bluetooth signal, the power consumption of the entire system of the audio playback device will be very large, so the current drawn from the power supply module will also be relatively large, then, when the current is large, it flows through the audio module
  • the electromagnetic field of the coil (such as a speaker) will also be relatively large, that is, the noise signal will be relatively large, that is, during part or all of the process of transmitting the Bluetooth signal by the audio playback device, the noise signal of the target frequency generated by the audio playback device is more obvious. . Therefore, in this embodiment, during part or all of the process of transmitting the Bluetooth signal by the audio playback device, the noise signal of the target frequency is obtained, and the noise signal of the target frequency is subjected to noise reduction processing to improve the noise reduction processing effect.
  • Step S820 Generate an inverted signal according to the noise signal of the target frequency, wherein the noise signal of the target frequency is opposite to the waveform of the inverted signal.
  • Step S830 Play the inverted signal.
  • steps S820 to S830 may refer to steps S720 to S730, which will not be repeated here.
  • Still another embodiment of the present application provides a noise reduction method for an audio playback device.
  • a noise signal of a target frequency is acquired, wherein the current acoustic signal caused by the Bluetooth communication between the target frequency and the audio playback device
  • the frequency of the target frequency is the same or the frequency difference value is in a preset range (for example, the target frequency and the frequency of the current acoustic signal are close to the same)
  • an inverted signal is generated according to the noise signal of the target frequency, wherein the noise signal of the target frequency and the waveform of the inverted signal are Opposite phase, playing the inverted signal.
  • the present embodiment also acquires the noise signal of the target frequency during part or all of the Bluetooth communication process, and plays an inverse phase opposite to the waveform of the noise signal of the target frequency. phase signal to reduce the influence of the target noise signal and improve the noise reduction processing effect.
  • FIG. 15 shows a block diagram of a module of a noise reduction apparatus of an audio playback device provided by an embodiment of the present application.
  • the noise reduction device 300 of the audio playback device is applied to the above audio playback device, and the block diagram shown in FIG. 15 will be described below.
  • the noise reduction device 300 of the audio playback device includes: a target noise signal acquisition module 310, an inverted signal The generating module 320 and the inverted signal playing module 330, wherein:
  • a target noise signal acquisition module 310 is configured to acquire a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device.
  • the target noise signal acquisition module 310 includes: a first target noise signal acquisition sub-module, wherein:
  • the first target noise signal acquisition sub-module is configured to acquire the target noise signal in part or all of the Bluetooth communication process.
  • the first target noise signal acquisition sub-module includes: a current acoustic signal acquisition unit and a first target noise signal acquisition unit, wherein:
  • the current-acoustic signal acquisition unit is used for acquiring the current-acoustic signal in part or the whole process of the Bluetooth communication.
  • the audio playback device includes a power supply module and an audio module
  • the current-acoustic signal acquisition unit includes: a current-acoustic signal acquisition subunit, wherein:
  • the current-acoustic signal acquisition subunit is used for acquiring the current-acoustic signal generated by the audio module based on the current change of the power module during part or all of the Bluetooth communication process.
  • a first target noise signal acquisition unit configured to determine the current acoustic signal as the target noise signal.
  • the audio playback device includes a Bluetooth module
  • the target noise signal acquisition module 310 includes: a transmission signal monitoring sub-module and a second target noise signal acquisition sub-module, wherein:
  • the transmission signal monitoring sub-module is used for monitoring the transmission signal of the Bluetooth module when the Bluetooth signal is transmitted based on the Bluetooth module.
  • the second target noise signal acquisition sub-module is configured to acquire the target noise signal based on the transmit signal.
  • the transmission signal includes a transmission frequency
  • the second target noise signal acquisition sub-module includes: a second target noise signal acquisition unit, wherein:
  • the second target noise signal obtaining unit is configured to obtain the target noise signal according to the transmission frequency.
  • the target noise signal acquisition module 310 includes: a noise signal acquisition sub-module and a third target noise signal acquisition sub-module, wherein:
  • the noise signal acquisition sub-module is used to collect multiple noise signals.
  • a third target noise signal acquisition sub-module configured to acquire a noise signal belonging to a target frequency from the plurality of noise signals as the target noise signal
  • the inverted signal generating module 320 is configured to generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
  • the inverted signal playing module 330 is used for playing the inverted signal.
  • the inverting signal playing module 330 includes: a wearing state detection sub-module and an inverting signal playing sub-module, wherein:
  • the wearing state detection sub-module is used to detect the wearing state of the Bluetooth headset.
  • the inverted signal playing sub-module is used for playing the inverted signal when the Bluetooth headset is in a wearing state.
  • the inverting signal playing sub-module includes: an inverting signal playing unit, wherein:
  • a reversed-phase signal playing unit configured to play the reversed-phase signal when the Bluetooth headset is worn and in a mute state.
  • the noise reduction device 300 of the audio playback device further includes: a prompt sound playback module, wherein:
  • a prompt sound playing module configured to play a prompt sound when the inversion signal does not cancel the target noise signal, wherein the prompt sound is used to cover the target noise signal.
  • FIG. 16 shows a block diagram of a module of a noise reduction apparatus of an audio playback device provided by yet another embodiment of the present application.
  • the noise reduction device 400 of the audio playback device is applied to the above-mentioned audio playback device.
  • the block diagram shown in FIG. 16 will be described below.
  • the noise reduction device 400 of the audio playback device includes: a noise signal acquisition module 410, an inverted signal generation The module 420 and the inverted signal playing module 430, wherein:
  • the noise signal obtaining module 410 is configured to obtain a noise signal of a target frequency, wherein the target frequency is the same as the frequency of the current acoustic signal caused by the Bluetooth communication of the audio playback device or the frequency difference is within a preset range.
  • the noise signal acquisition module 410 includes: a noise signal acquisition sub-module, wherein:
  • the noise signal acquisition sub-module is used for acquiring the noise signal of the target frequency in part or all of the Bluetooth communication process.
  • the inverted signal generating module 420 is configured to generate an inverted signal according to the noise signal of the target frequency, wherein the noise signal of the target frequency is opposite to the waveform of the inverted signal.
  • the inverted signal playing module 430 is used for playing the inverted signal.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
  • FIG. 17 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 500 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.
  • the computer-readable storage medium 500 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 500 includes a non-transitory computer-readable storage medium.
  • Computer readable storage medium 500 has storage space for program code 510 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products.
  • Program code 510 may be compressed, for example, in a suitable form.
  • the noise reduction method, device, electronic device, and storage medium of an audio playback device obtained a target noise signal of the audio playback device, wherein the target noise signal is caused by the Bluetooth communication performed by the audio playback device, An inverted signal is generated according to the target noise signal, wherein the target noise signal is opposite to the waveform phase of the inverted signal, and the inverted signal is played, so as to reduce the The impact of the target noise signal, and realize the small size design of the audio playback device, improve the user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

Disclosed in the present application are a noise reduction method and apparatus for an audio playing device, and an electronic device and a storage medium, relating to the technical field of electronic devices. The method is applied to an audio playing device. The method comprises: acquiring a target noise signal of an audio playing device, wherein the target noise signal is caused by the audio playing device performing Bluetooth communication; generating an inverted signal according to the target noise signal, wherein the waveform phase of the target noise signal is opposite to that of the inverted signal; and playing the inverted signal. According to the noise reduction method and apparatus for an audio playing device, and the electronic device and the storage medium provided in the embodiments of the present application, by means of playing an inverted signal of which the waveform phase is opposite to that of a target noise signal of the audio playing device, the impact of the target noise signal is reduced, a small-volume design of the audio playing device is realized, and the usage experience of a user is improved.

Description

音频播放设备的降噪方法、装置、电子设备以及存储介质Noise reduction method, device, electronic device and storage medium for audio playback equipment
相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS
本申请要求于2021年03月26日提交的申请号为CN202110332705.3的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。This application claims priority to Chinese Application No. CN202110332705.3 filed on March 26, 2021, which is hereby incorporated by reference in its entirety for all purposes.
技术领域technical field
本申请涉及电子设备技术领域,更具体地,涉及一种音频播放设备的降噪方法、装置、电子设备以及存储介质。The present application relates to the technical field of electronic devices, and more particularly, to a noise reduction method, apparatus, electronic device, and storage medium for audio playback devices.
背景技术Background technique
随着科学技术的发展,音频播放设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一。With the development of science and technology, audio playback equipment has become more and more widely used and has more and more functions, which has become one of the must-haves in people's daily life.
发明内容SUMMARY OF THE INVENTION
鉴于上述问题,本申请提出了一种音频播放设备的降噪方法、装置、电子设备以及存储介质,以解决上述问题。In view of the above problems, the present application proposes a noise reduction method, device, electronic device and storage medium for audio playback equipment to solve the above problems.
第一方面,本申请实施例提供了一种音频播放设备的降噪方法,应用于音频播放设备,所述方法包括:获取所述音频播放设备的目标噪声信号,其中,所述目标噪声信号由所述音频播放设备进行蓝牙通信引起;根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反;播放所述反相信号。In a first aspect, an embodiment of the present application provides a noise reduction method for an audio playback device, which is applied to the audio playback device. The method includes: acquiring a target noise signal of the audio playback device, wherein the target noise signal is composed of The audio playback device performs Bluetooth communication; generates an inverted signal according to the target noise signal, wherein the target noise signal is opposite to the waveform phase of the inverted signal; and plays the inverted signal.
第二方面,本申请实施例提供了一种音频播放设备的降噪方法,应用于音频播放设备,所述方法包括:获取目标频率的噪声信号,其中,所述目标频率与所述音频播放设备进行蓝牙通信引起的电流声信号的频率相同或频率差值处于预设范围;根据所述目标频率的噪声信号生成反相信号,其中,所述目标频率的噪声信号与所述反相信号的波形相位相反;播放所述反相信号。In a second aspect, an embodiment of the present application provides a noise reduction method for an audio playback device, which is applied to an audio playback device. The method includes: acquiring a noise signal of a target frequency, where the target frequency is the same as the audio playback device. The frequencies of the current acoustic signals caused by the Bluetooth communication are the same or the frequency difference is in a preset range; an inverted signal is generated according to the noise signal of the target frequency, wherein the noise signal of the target frequency and the waveform of the inverted signal are The phase is reversed; the reversed signal is played.
第三方面,本申请实施例提供了一种音频播放设备的降噪装置,应用于音频播放设备,所述装置包括:目标噪声信号获取模块,用于获取所述音频播放设备的目标噪声信号,其中,所述目标噪声信号由所述音频播放设备进行蓝牙通信引起;反相信号生成模块,用于根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反;反相信号播放模块,用于播放所述反相信号。In a third aspect, an embodiment of the present application provides a noise reduction device for an audio playback device, which is applied to the audio playback device. The device includes: a target noise signal acquisition module, configured to acquire a target noise signal of the audio playback device, Wherein, the target noise signal is caused by Bluetooth communication performed by the audio playback device; an inversion signal generating module is configured to generate an inversion signal according to the target noise signal, wherein the target noise signal and the inversion signal The phase of the waveform is opposite; the inversion signal playing module is used to play the inversion signal.
第四方面,本申请实施例提供了一种音频播放设备的降噪装置,应用于音频播放设备,所述装置包括:噪声信号获取模块,用于获取目标频率的噪声信号,其中,所述目标频率与所述音频播放设备进行蓝牙通信引起的电流声信号的频率相同或频率差值处于预设范围;反相信号生成模块,用于根据所述目标频率的噪声信号生成反相信号,其中,所述目标频率的噪声信号与所述反相信号的波形相位相反;反相信号播放模块,用于播放所述反相信号。In a fourth aspect, an embodiment of the present application provides a noise reduction device for an audio playback device, which is applied to the audio playback device. The device includes: a noise signal acquisition module for acquiring a noise signal of a target frequency, wherein the target The frequency is the same as the frequency of the current acoustic signal caused by the Bluetooth communication of the audio playback device or the frequency difference is in a preset range; the inversion signal generation module is used to generate an inversion signal according to the noise signal of the target frequency, wherein, The noise signal of the target frequency is opposite to the waveform phase of the inverted signal; the inverted signal playing module is used for playing the inverted signal.
第五方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。In a fifth aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, the memory is coupled to the processor, the memory stores an instruction, and the instruction is executed when the instruction is executed by the processor. The processor executes the above method.
第六方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code can be invoked by a processor to execute the above method.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those skilled in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出了可用于本申请实施例提供的音频播放设备的降噪方法的应用环境示意图FIG. 1 shows a schematic diagram of an application environment of the noise reduction method applicable to the audio playback device provided by the embodiment of the present application
图2示出了本申请实施例用于执行根据本申请实施例的音频播放设备的降噪方法的电子设备的框图;FIG. 2 shows a block diagram of an electronic device for implementing the noise reduction method for an audio playback device according to an embodiment of the present application;
图3示出了本申请一个实施例提供的音频播放设备的降噪方法的流程示意图;3 shows a schematic flowchart of a noise reduction method for an audio playback device provided by an embodiment of the present application;
图4示出了本申请实施例提供的目标噪声信号的频谱图;FIG. 4 shows a spectrogram of a target noise signal provided by an embodiment of the present application;
图5示出了本申请实施例提供的反相信号的频谱图;FIG. 5 shows a spectrum diagram of an inverted signal provided by an embodiment of the present application;
图6示出了本申请又一个实施例提供的音频播放设备的降噪方法的流程示意图;6 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application;
图7示出了本申请的图6所示的音频播放设备的步骤S210的流程示意图;FIG. 7 shows a schematic flowchart of step S210 of the audio playback device shown in FIG. 6 of the present application;
图8示出了本申请再一个实施例提供的音频播放设备的降噪方法的流程示意图;8 shows a schematic flowchart of a noise reduction method for an audio playback device provided by still another embodiment of the present application;
图9示出了本申请实施例提供的音频播放设备在通信时的电流变化示意图;FIG. 9 shows a schematic diagram of the current change of the audio playback device provided by the embodiment of the present application during communication;
图10示出了本申请另一个实施例提供的音频播放设备的降噪方法的流程示意图;10 shows a schematic flowchart of a noise reduction method for an audio playback device provided by another embodiment of the present application;
图11示出了本申请又再一个实施例提供的音频播放设备的降噪方法的流程示意图;11 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application;
图12示出了本申请又另一个实施例提供的音频播放设备的降噪方法的流程示意图;12 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application;
图13示出了本申请又又再一个实施例提供的音频播放设备的降噪方法的流程示意图;13 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application;
图14示出了本申请又又另一个实施例提供的音频播放设备的降噪方法的流程示意图;14 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application;
图15示出了本申请一个实施例提供的音频播放设备的降噪装置的模块框图;15 shows a block diagram of a module of a noise reduction apparatus of an audio playback device provided by an embodiment of the present application;
图16示出了本申请又一个实施例提供的音频播放设备的降噪装置的模块框图;FIG. 16 shows a block diagram of a module of a noise reduction apparatus of an audio playback device provided by yet another embodiment of the present application;
图17示出了本申请实施例的用于保存或者携带实现根据本申请实施例的音频播放设备的降噪方法的程序代码的存储单元。FIG. 17 shows a storage unit for storing or carrying a program code for implementing the noise reduction method for an audio playback device according to an embodiment of the present application, according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。In order to make those skilled in the art better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
随着科学技术的发展,音频播放设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一,但是,音频播放设备在使用的过程中,常常可以听到噪声,该噪声一般被称为底噪,其中,该底噪主要包括两类:其中一类为电流声,该电流声的来源主要由电子元器件对喇叭的干扰造成,电子元器件可以包括功率电感等、电池,例如,电流声的来源可以由电池对喇叭的干扰造成,另一类为白噪声,该白噪声主要跟芯片本身有关系。With the development of science and technology, audio playback equipment has become more and more widely used and has more and more functions, which has become one of the must-haves in people's daily life. Noise, the noise is generally referred to as the noise floor. Among them, the noise floor mainly includes two categories: one is the current sound, the source of the current sound is mainly caused by the interference of electronic components to the speaker, and the electronic components can include power Inductors, etc., batteries, for example, the source of the current sound can be caused by the interference of the battery to the speaker, and the other type is white noise, which is mainly related to the chip itself.
目前,一般通过增大电子元器件之间的距离来实现降低电流声这类底噪,例如,通过增大电池与喇叭之间的距离,其中,电池与喇叭之间的距离增加之后,电池辐射出的能力对喇叭的干扰减小,这样所产生的噪声便会减少。但是,采用这种降低底噪的方式,对于体积比较小的音频播放设备,由于空间上的限制,喇叭无法远离电池,电池上的辐射仍然会干扰喇叭,因此,不能很好的降低音频播放设备的噪声,而为了使电池远离喇叭,增大两者之间的距离,这样又会造成音频播放设备的体积过大,影响音频播放设备的美感和使用体验。At present, reducing the noise floor such as current sound is generally achieved by increasing the distance between electronic components, for example, by increasing the distance between the battery and the speaker, wherein after the distance between the battery and the speaker is increased, the battery radiates The interference of the output power to the speaker is reduced, so that the noise generated will be reduced. However, with this method of reducing the noise floor, for a relatively small audio playback device, due to space constraints, the speaker cannot be far away from the battery, and the radiation on the battery will still interfere with the speaker. Therefore, the audio playback device cannot be well reduced. In order to keep the battery away from the speaker, the distance between the two will be increased, which will cause the volume of the audio playback device to be too large and affect the aesthetics and experience of the audio playback device.
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的音频播放设备的降噪方法、装置、电子设备以及存储介质,通过播放与音频播放设备的目标噪声信号的波形相位相反的反相信号,以降低目标噪声信号的影响,并实现音频播放设备的小体积设计,提升用户的使用体验。其中,具体的音频播放设备的降噪方法在后续的实施例中进行详细的说明。In view of the above problems, the inventor has discovered through long-term research, and proposed a noise reduction method, device, electronic device and storage medium for an audio playback device provided by the embodiments of the present application. By playing the waveform phase of the target noise signal of the audio playback device The opposite phase signal is used to reduce the influence of the target noise signal, and realize the small size design of the audio playback device to improve the user experience. The specific noise reduction method of the audio playback device will be described in detail in the following embodiments.
下面将针对可用于本申请实施例提供的音频播放设备的降噪方法的应用环境进行描述。The following will describe an application environment applicable to the noise reduction method of the audio playback device provided by the embodiments of the present application.
请参阅图1,图1示出了可用于本申请实施例提供的音频播放设备的降噪方法的应用环境示意图。如图1所示,其包括音频播放设备100和音频提供设备200,音频播放设备100可以包括耳机、音箱等,当然,音频播放设备100也可以包括其他具有音频播放功能的设备,在此不做限定。音频提供设备200可以包括智能手机、平板电脑、智能手表、电脑、穿戴式电子设备等,当然,音频提供设备200也可以包括其他具有音频提供功能的设备,在此不做限定。在该应用场景中,音频提供设备200可以作为音频提供设备,将音频内容发送到音频播放设备100进行播放。Referring to FIG. 1 , FIG. 1 shows a schematic diagram of an application environment of the noise reduction method applicable to the audio playback device provided by the embodiment of the present application. As shown in FIG. 1 , it includes an audio playback device 100 and an audio providing device 200. The audio playback device 100 may include headphones, speakers, etc. Of course, the audio playback device 100 may also include other devices with audio playback functions, which will not be described here. limited. The audio providing device 200 may include a smart phone, a tablet computer, a smart watch, a computer, a wearable electronic device, etc. Of course, the audio providing device 200 may also include other devices having an audio providing function, which is not limited herein. In this application scenario, the audio providing device 200 can be used as an audio providing device to send audio content to the audio playing device 100 for playback.
在一些实施方式中,音频播放设备100与音频提供设备200可以进行通信,以完成数据交互。其中,音频播放设备100与音频提供设备200可以通过局域网(local area network,LAN)进行通信,也可以通过广域网(wide area network,WAN)互相通信。例如,音频播放设备100与音频提供设备200可以同时连接至一个路由器,音频播放设备100与音频提供设备200可以通过路由器所提供的局域网进行通信;又例如,音频播放设备100与音频提供设备200可以与云端进行通信,并通过云端实现两者之间的数据交互;再例如,音频播放设备100与音频提供设备200也可以通过蓝牙、Zigbee、WebRTC等通信方式,建立端到端的网络连接(即P2P网络连接),并通过建立的网络连接进行通信。当然,音频播放设备100与音频提供设备200之间的通信方式可以不做限定。In some embodiments, the audio playback device 100 and the audio providing device 200 may communicate to complete data interaction. Wherein, the audio playback device 100 and the audio providing device 200 may communicate with each other through a local area network (LAN), and may also communicate with each other through a wide area network (WAN). For example, the audio playback device 100 and the audio providing device 200 may be connected to a router at the same time, and the audio playback device 100 and the audio providing device 200 may communicate through the local area network provided by the router; for another example, the audio playback device 100 and the audio providing device 200 may Communicate with the cloud, and realize the data interaction between the two through the cloud; for another example, the audio playback device 100 and the audio providing device 200 can also establish an end-to-end network connection (ie P2P) through Bluetooth, Zigbee, WebRTC and other communication methods. network connection) and communicate over the established network connection. Of course, the communication manner between the audio playing device 100 and the audio providing device 200 may not be limited.
在本实施例中,音频播放设备100与音频提供设备200通过蓝牙通信。如图1所示,该音频播放设备100可以为真无线立体声(true wireless stereo,TWS)耳机,音频提供设备200可以为智能手机,音频播放设备100和音频提供设备200通过蓝牙通信,则TWS耳机可以通过蓝牙技术从智能手机获取音频数据并播放。In this embodiment, the audio playback device 100 communicates with the audio providing device 200 through Bluetooth. As shown in FIG. 1 , the audio playback device 100 can be a true wireless stereo (true wireless stereo, TWS) headset, the audio providing device 200 can be a smartphone, and the audio playing device 100 and the audio providing device 200 communicate through Bluetooth, then the TWS headset Audio data can be acquired and played back from a smartphone via Bluetooth technology.
请参阅图2,图2示出了本申请实施例提供的音频播放设备100的模块框图。该音频播放设备100可以是蓝牙耳机、蓝牙音箱等具备蓝牙通信技术的音频播放设备。本申请中的音频播放设备100可以包括一个或多个如下部件:处理器110、存储器120、蓝牙模块130、电源模块140、音频模块150以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。Referring to FIG. 2 , FIG. 2 shows a module block diagram of an audio playback device 100 provided by an embodiment of the present application. The audio playback device 100 may be an audio playback device with Bluetooth communication technology, such as a Bluetooth headset, a Bluetooth speaker, or the like. The audio playback device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a Bluetooth module 130, a power module 140, an audio module 150, and one or more application programs, wherein one or more application programs The one or more programs, which may be stored in the memory 120 and configured to be executed by the one or more processors 110, are configured to perform the methods as described in the foregoing method embodiments.
作为一种方式,处理器110分别与存储器120、蓝牙模块130、电源模块140以及音频模块150连接,电源模块140分别与处理器110、存储器120、蓝牙模块130以及音频模块150连接。处理器110用于整个系统的控制,如控制充电、音频信号处理等,蓝牙模块130主要用于音频播放设备100和音频提供设备200之间的通信,在音频播放设备为TWS耳机时,还用于左右两只耳机之间的通信,电源模块140用于给音频播放设备100中的各个模块供电,音频模块150包括喇叭、麦克风等,用 于进行音频的播放和音频的采集。In one way, the processor 110 is respectively connected to the memory 120 , the Bluetooth module 130 , the power module 140 and the audio module 150 , and the power module 140 is respectively connected to the processor 110 , the memory 120 , the Bluetooth module 130 and the audio module 150 . The processor 110 is used for the control of the entire system, such as controlling charging, audio signal processing, etc. The Bluetooth module 130 is mainly used for communication between the audio playback device 100 and the audio providing device 200. When the audio playback device is a TWS headset, it is also used. For the communication between the left and right earphones, the power supply module 140 is used to supply power to each module in the audio playback device 100, and the audio module 150 includes speakers, microphones, etc., used for audio playback and audio collection.
其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个音频播放设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts in the entire audio playback device 100, and by running or executing the instructions, programs, code sets or instruction sets stored in the memory 120, and calling the data stored in the memory 120, Various functions of the electronic device 100 are executed and data is processed. Optionally, the processor 110 may adopt at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA). A hardware form is implemented. The processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface, and application programs; the GPU is used to render and draw the content to be displayed; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may also not be integrated into the processor 110, and is implemented by a communication chip alone.
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储音频播放设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 120 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like. The storage data area may also store data (such as phone book, audio and video data, chat record data) created by the audio playback device 100 in use.
发明人发现在蓝牙通信的部分或全部过程中,有的音频播放设备(如蓝牙耳机)会出现特定频率的电流声,经进一步研究发现,尤其在建立蓝牙连接的过程中,出现电流声的情况更为突出。建立蓝牙连接,可以是首次与其他蓝牙设备建立连接,也可以是与某个蓝牙设备重新建立蓝牙连接(回连),也可以是蓝牙连接信息被擦除后重新配对的连接过程。一般来说,在建立蓝牙连接过程中,蓝牙设备可能处于寻呼page、寻呼扫描page scan、查询inquiry、查询扫描inquiry scan等状态,并可能在不同状态之间进行切换。经发明人研究发现,特别当在寻呼或查询状态下,由于需要根据蓝牙跳频协议在各个频段发送蓝牙信号,例如ID包,并等待反馈,从而使得发射蓝牙信号和不发射蓝牙信号的交替变得更为频繁,因此引起的电源输出电流的波动会增大,从而可能使得电池、电感等电子器件产生较大电磁场,进而干扰喇叭等敏感器件产生电流声等噪声。以蓝牙耳机为例,假如在用户使用过程中,蓝牙连接突然断开,蓝牙耳机的主耳机会进入寻呼状态,去试图回连手机,在寻呼状态下由于频繁的发射ID包和等待反馈,导致电源输出电流变化较大且频繁,电池和功率电感等可能由此产生较大电磁场,进而干扰喇叭等产生电流声(目标噪声信号)。The inventor found that during part or all of the bluetooth communication, some audio playback devices (such as bluetooth earphones) will produce current sound of a specific frequency. After further research, it is found that, especially in the process of establishing a bluetooth connection, the current sound occurs. more prominent. Establishing a Bluetooth connection can be the first connection with other Bluetooth devices, or the re-establishment of a Bluetooth connection (reconnection) with a certain Bluetooth device, or the connection process of re-pairing after the Bluetooth connection information is erased. Generally speaking, in the process of establishing a Bluetooth connection, the Bluetooth device may be in the states of page page, page scan page scan, inquiry inquiry, inquiry scan inquiry scan, etc., and may switch between different states. The inventor's research found that, especially in the paging or query state, it is necessary to send bluetooth signals, such as ID packets, in each frequency band according to the bluetooth frequency hopping protocol, and wait for feedback, so that the bluetooth signal is transmitted and the bluetooth signal is not transmitted alternately. become more frequent, and the fluctuation of the output current of the power supply will increase, which may cause electronic devices such as batteries and inductors to generate a large electromagnetic field, which in turn interferes with sensitive devices such as speakers to generate noise such as current sound. Taking the Bluetooth headset as an example, if the Bluetooth connection is suddenly disconnected during the user's use, the main headset of the Bluetooth headset will enter the paging state to try to connect to the mobile phone. In the paging state, due to the frequent transmission of ID packets and waiting for feedback , resulting in large and frequent changes in the output current of the power supply, which may generate large electromagnetic fields such as batteries and power inductors, which in turn interfere with speakers, etc. to generate current sound (target noise signal).
请参阅图3,图3示出了本申请一个实施例提供的音频播放设备的降噪方法的流程示意图。所述音频播放设备的降噪方法用于通过播放与音频播放设备的目标噪声信号的波形相位相反的反相信号,以降低目标噪声信号的影响,并实现音频播放设备的小体积设计,提升用户的使用体验。在具体的实施例中,所述音频播放设备的降噪方法应用于如图15所示的音频播放设备的降噪装置300以及配置有音频播放设备的降噪装置300的电子设备100(图2)。下面将以音频播放设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以为蓝牙耳机、蓝牙音箱等基于蓝牙通信技术的音频播放设备,在此不做限定。下面将针对图3所示的流程进行详细的阐述,所述音频播放设备的降噪方法具体可以包括以下步骤:Please refer to FIG. 3 , which shows a schematic flowchart of a noise reduction method for an audio playback device provided by an embodiment of the present application. The noise reduction method of the audio playback device is used for reducing the influence of the target noise signal by playing a reversed-phase signal that is opposite to the waveform phase of the target noise signal of the audio playback device, and realizes the small size design of the audio playback device and improves the user experience. user experience. In a specific embodiment, the noise reduction method of the audio playback device is applied to the noise reduction device 300 of the audio playback device shown in FIG. 15 and the electronic device 100 configured with the noise reduction device 300 of the audio playback device (FIG. 2 ). The following will take an audio playback device as an example to describe the specific process of this embodiment. Of course, it can be understood that the electronic device applied in this embodiment may be an audio playback device based on Bluetooth communication technology, such as a Bluetooth headset and a Bluetooth speaker. Not limited. The process shown in FIG. 3 will be described in detail below, and the noise reduction method of the audio playback device may specifically include the following steps:
步骤S110:获取音频播放设备的目标噪声信号,其中,所述目标噪声信号由所述音频播放设备进行蓝牙通信引起。Step S110: Acquire a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device.
其中,在音频播放设备的蓝牙功能开启时,音频播放设备会进行蓝牙通信,例如,音频播放设备会与其他蓝牙设备(如音频提供设备)进行蓝牙通信,在音频播放设备进行蓝牙通信时会产生噪声信号,记为目标噪声信号。作为一种方式,音频播放设备基于蓝牙通信产生的目标噪声信号的频率固定,例如,产生频率为800HZ或者为800HZ的谐波的目标噪声噪声信号。因此,在本实施例中,为了对音频播放设备的待处理噪声信号进行降噪处理,可以获取该目标噪声信号,并针对性的对该目标噪声信号进行降噪处理。Among them, when the Bluetooth function of the audio playback device is turned on, the audio playback device will perform Bluetooth communication. For example, the audio playback device will perform Bluetooth communication with other Bluetooth devices (such as audio providing devices). When the audio playback device performs Bluetooth communication, it will generate Noise signal, denoted as target noise signal. In one way, the frequency of the target noise signal generated by the audio playback device based on the Bluetooth communication is fixed, for example, the target noise signal with a frequency of 800 Hz or a harmonic of 800 Hz is generated. Therefore, in this embodiment, in order to perform noise reduction processing on the to-be-processed noise signal of the audio playback device, the target noise signal can be acquired, and the target noise signal can be subjected to targeted noise reduction processing.
在一些实施方式中,音频播放设备可以预先设置预采集获取的目标噪声信号,并将其在所处环境中采集到的不属于目标噪声信号的其他声音视作环境噪声信号。In some embodiments, the audio playback device may preset the target noise signal acquired by pre-collection, and regard other sounds collected in the environment that are not belonging to the target noise signal as environmental noise signals.
作为一种方式,音频播放设备可以预先设置目标噪声信号并获取该目标噪声信号对应的目标音质,将该目标音质作为采集到的其所处环境中的声音的判断依据,因此,在本实施例中,音频播放设备在通过麦克风采集到所处环境中的声音时,可以获取采集到的所处环境中的声音的音质,并将该所处环境中的声音的音质与目标音质进行比较,以判断所处环境中的声音的音质与目标音质是否匹配,其中,当判断结果表征所处环境中的声音的音质与目标音质匹配时,可以确定该所处环境中的声音为目标噪声信号,相反地,当判断结果表征所处环境中的声音的音质与目标音质不匹配时,可以确定该所处环境中的声音为环境噪声 信号。As a way, the audio playback device can preset the target noise signal and obtain the target sound quality corresponding to the target noise signal, and use the target sound quality as the basis for judging the collected sound in the environment where it is located. Therefore, in this embodiment When the audio playback device collects the sound in the environment through the microphone, it can obtain the sound quality of the collected sound in the environment, and compare the sound quality of the sound in the environment with the target sound quality to get Determine whether the sound quality of the sound in the environment matches the target sound quality, wherein, when the judgment result indicates that the sound quality of the sound in the environment matches the target sound quality, it can be determined that the sound in the environment is the target noise signal, on the contrary Specifically, when the judgment result indicates that the sound quality of the sound in the environment does not match the target sound quality, it can be determined that the sound in the environment is an ambient noise signal.
作为又一种方式,音频播放设备可以预先设置目标噪声信号并获取该目标噪声信号对应的目标分贝,将该目标分贝作为采集到的其所处环境中的声音的判断依据,因此,在本实施例中,音频播放设备在通过麦克风采集到所处环境中的声音时,可以获取采集到的所处环境中的声音的分贝,并将该所处环境中的声音的分贝与目标分贝进行比较,以判断所处环境中的声音的分贝与目标分贝是否匹配,其中,当判断结果表征所处环境中的声音的分贝与目标分贝匹配时,可以确定该所处环境中的声音为目标噪声信号,相反地,当判断结果表征所处环境中的声音的分贝与目标分贝不匹配时,可以确定该所处环境中的声音为环境噪声信号。其中,当声音的分贝高于预设值时,可以认为声音与目标分贝不匹配,当声音的分贝不高于预设值时,可以认为声音与目标分贝匹配。As another way, the audio playback device can preset the target noise signal and obtain the target decibel corresponding to the target noise signal, and use the target decibel as the basis for judging the collected sound in the environment where it is located. Therefore, in this implementation In an example, when the audio playback device collects the sound in the environment through the microphone, it can obtain the decibel of the collected sound in the environment, and compare the decibel of the sound in the environment with the target decibel, To determine whether the decibel of the sound in the environment matches the target decibel, wherein, when the judgment result indicates that the decibel of the sound in the environment matches the target decibel, it can be determined that the sound in the environment is the target noise signal, Conversely, when the determination result indicates that the decibel of the sound in the environment does not match the target decibel, it can be determined that the sound in the environment is an ambient noise signal. Wherein, when the decibel of the sound is higher than the preset value, it can be considered that the sound does not match the target decibel, and when the decibel of the sound is not higher than the preset value, it can be considered that the sound matches the target decibel.
作为再一种方式,在进行噪声信号的采集获取时,可以检测所采集到的噪声信号的来源,当检测到所采集的噪声信号的来源为音频播放设备时,可以将该采集到的噪声信号确定为目标噪声信号,当检测到所采集的噪声信号的来源不是音频播放设备时,可以将该采集到噪声信号确定为环境噪声信号。As a further way, when collecting and acquiring the noise signal, the source of the collected noise signal can be detected, and when it is detected that the source of the collected noise signal is an audio playback device, the collected noise signal can be It is determined as the target noise signal, and when it is detected that the source of the collected noise signal is not the audio playback device, the collected noise signal can be determined as the environmental noise signal.
在一些实施方式中,音频播放设备可以为TWS耳机,其中,TWS耳机的底部设置有两个金属引脚,当TWS耳机放置在充电盒内时,则TWS耳机与充电盒之间的电路导通,从而使用充电盒给TWS耳机充电。其中,常见的TWS耳机有两个金属引脚或三个金属引脚,位置分别位于TWS耳机和充电盒的对应位置,当TWS耳机放置在充电盒内时,TWS耳机上的金属引脚和充电盒上的金属引脚刚好接触,以对TWS耳机进行充电和放置,另外,当TWS耳机从充电盒内取出时,则TWS耳机可以自动开机并尝试进行蓝牙通信,以尝试建立与其他蓝牙设备的蓝牙连接。基于此,可以对TWS耳机是否从充电盒内取出进行检测,其中,当检测到TWS耳机从充电盒内取出时,表征该TWS耳机开始进行蓝牙通信,则可以获取音频播放设备的目标噪声信号,当检测到TWS耳机放置在充电盒内时,表征该TWS耳机开始进行蓝牙通信,则可以不获取音频播放设备的目标噪声信号。In some embodiments, the audio playback device may be a TWS earphone, wherein two metal pins are provided at the bottom of the TWS earphone. When the TWS earphone is placed in the charging box, the circuit between the TWS earphone and the charging box is conducted. , so that you can use the charging case to charge the TWS headset. Among them, the common TWS headset has two metal pins or three metal pins, which are located at the corresponding positions of the TWS headset and the charging box. When the TWS headset is placed in the charging box, the metal pins on the TWS headset and the charging box The metal pins on the box are just in contact to charge and place the TWS earphones. In addition, when the TWS earphones are taken out of the charging box, the TWS earphones can automatically turn on and attempt to communicate with other bluetooth devices. Bluetooth connection. Based on this, it is possible to detect whether the TWS earphone is taken out of the charging box. When it is detected that the TWS earphone is taken out of the charging box, it indicates that the TWS earphone starts to perform Bluetooth communication, and the target noise signal of the audio playback device can be obtained. When it is detected that the TWS earphone is placed in the charging box, it indicates that the TWS earphone starts to perform Bluetooth communication, and the target noise signal of the audio playback device may not be acquired.
在一些实施方式中,音频播放设备可以为蓝牙音箱,其中,该蓝牙音箱可以设置有蓝牙开关。基于此,可以对蓝牙音箱的蓝牙开关的状态信息进行检测,其中,当检测到蓝牙音箱的蓝牙开关的状态信息处于开启状态时,表征该蓝牙音箱开始进行蓝牙通信,则可以获取音频播放设备的目标噪声信号,当检测到蓝牙音箱的蓝牙开关处于关闭状态时,表征该蓝牙音箱未开始进行蓝牙通信,则可以不获取音频播放设备的目标噪声信号。In some embodiments, the audio playback device may be a Bluetooth speaker, wherein the Bluetooth speaker may be provided with a Bluetooth switch. Based on this, the status information of the Bluetooth switch of the Bluetooth speaker can be detected, wherein, when it is detected that the status information of the Bluetooth switch of the Bluetooth speaker is in an on state, it indicates that the Bluetooth speaker starts to perform Bluetooth communication, and the information of the audio playback device can be obtained. Target noise signal, when it is detected that the Bluetooth switch of the Bluetooth speaker is turned off, it indicates that the Bluetooth speaker has not started Bluetooth communication, and the target noise signal of the audio playback device may not be obtained.
步骤S120:根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反。Step S120: Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
在本实施例中,在获取音频播放设备的目标噪声信号后,可以根据目标噪声信号生成反相信号,其中,生成的反相信号与目标噪声信号的波形相位相反。在一些实施方式中,在获取目标噪声信号后,可以计算该目标噪声信号的频谱,并基于该目标噪声信号的频谱生成一个相位相反、振幅相同的反相信号。In this embodiment, after acquiring the target noise signal of the audio playback device, an inverted signal may be generated according to the target noise signal, wherein the generated inverted signal and the waveform of the target noise signal are in opposite phase. In some embodiments, after the target noise signal is acquired, a spectrum of the target noise signal can be calculated, and an inverted signal with opposite phases and the same amplitude is generated based on the spectrum of the target noise signal.
请参阅图4和图5,其中,图4示出了本申请实施例提供的目标噪声信号的频谱图,图5示出了本申请实施例提供的反相信号的频谱图,如图4和图5所示,目标噪声信号和反相信号的波形相位相反。Please refer to FIG. 4 and FIG. 5 , wherein FIG. 4 shows a spectrogram of a target noise signal provided by an embodiment of the present application, and FIG. 5 shows a spectrogram of an inverted signal provided by an embodiment of the present application, as shown in FIG. 4 and As shown in Fig. 5, the waveforms of the target noise signal and the inverted signal have opposite phases.
步骤S130:播放所述反相信号。Step S130: Play the inverted signal.
在本实施例中,在获取反相信号后,可以播放反相信号,其中,由于反相信号和目标噪声信号的波形相位相反,因此,播放反相信号可以抵消目标噪声信号,从而可以降低目标噪声信号的影响。另外,由于在本实施例通过反相信号抵消目标噪声信号,从而可以不用增加电子元器件之间的间距,可以实现音频播放设备的小体积设计。In this embodiment, after the inverted signal is acquired, the inverted signal can be played. Since the waveforms of the inverted signal and the target noise signal are in opposite phases, playing the inverted signal can cancel the target noise signal, thereby reducing the target noise. The effect of noise signals. In addition, since the target noise signal is canceled by the inverted signal in this embodiment, it is not necessary to increase the distance between the electronic components, and the compact design of the audio playback device can be realized.
在一些实施方式中,在音频播放设备和音频提供设备之间的音频数据通路打开后,音频播放设备可以接收音频提供设备发送的音频数据,并将音频数据和反相信号一起播放,可以理解的,此时,反相信号和目标噪声信号相互抵消,音频播放设备最终输出音频数据,从而提升用户的使用体验。In some embodiments, after the audio data path between the audio playing device and the audio providing device is opened, the audio playing device can receive the audio data sent by the audio providing device, and play the audio data and the inverted signal together. It is understandable that , at this time, the inverted signal and the target noise signal cancel each other out, and the audio playback device finally outputs audio data, thereby improving the user experience.
在一些实施方式中,音频播放设备可以预先设置并存储音量阈值,该音量阈值用于作为音频播放设备输出的音频的音量的判断依据。因此,在本实施例中,可以检测音频播放设备输出的音频的音量,在检测到音频播放设备输出的音频的音量后,可以将其输出的音频的音量与音量阈值进行比较,以判断其输出的音频的音量是否小于音量阈值,其中,当其输出的音频的音量小于音量阈值时,则可以认为音频播放设备所输出的音频无法覆盖目标噪声信号,则可以播放反相信号,当其输出的音频的音量不小于音量阈值时,则可以认为音频播放设备输出的音频可以覆盖目标噪声信号,则可以不播放反相信号,以降低音频播放设备的功耗。In some embodiments, the audio playback device may preset and store a volume threshold, where the volume threshold is used as a basis for judging the volume of the audio output by the audio playback device. Therefore, in this embodiment, the volume of the audio output by the audio playback device can be detected, and after detecting the volume of the audio output by the audio playback device, the volume of the output audio can be compared with the volume threshold to determine the output Whether the volume of the audio is less than the volume threshold, when the volume of the output audio is less than the volume threshold, it can be considered that the audio output by the audio playback device cannot cover the target noise signal, and the inverted signal can be played. When the volume of the audio is not less than the volume threshold, it can be considered that the audio output by the audio playback device can cover the target noise signal, and the inverted signal may not be played to reduce the power consumption of the audio playback device.
在一些实施方式中,音频播放设备可以预先设置并存储电量阈值,该电量阈值用于作为音频播放设备的剩余电量的判断依据。因此,在本实施例中,可以检测音频播放设备的剩余电量,在检测到音频播放设备剩余电量后,可以将剩余电量与电量阈值进行比较,以判断剩余电量是否大于电量阈值,其中,当剩余电量大于电量阈值时,则可以认为音频播放设备有足够的剩余电量播放反相信号,则可以播放反相信号,当剩余电量不大于电量阈值时,则可以认为音频播放设备没有足够的剩 余电量播放反相信号,则可以不播放反相信号,以降低音频播放设备的功耗。In some embodiments, the audio playback device may preset and store a power threshold, and the power threshold is used as a basis for judging the remaining power of the audio playback device. Therefore, in this embodiment, the remaining power of the audio playback device can be detected, and after the remaining power of the audio playback device is detected, the remaining power can be compared with the power threshold to determine whether the remaining power is greater than the power threshold. When the power is greater than the power threshold, it can be considered that the audio playback device has enough remaining power to play the inverted signal, and the inverted signal can be played. When the remaining power is not greater than the power threshold, it can be considered that the audio playback device does not have enough remaining power to play If the inverted signal is used, the inverted signal may not be played, so as to reduce the power consumption of the audio playback device.
本申请一个实施例提供的音频播放设备的降噪方法,获取音频播放设备的目标噪声信号,其中,目标噪声信号由音频播放设备进行蓝牙通信引起,根据目标噪声信号生成反相信号,其中,目标噪声信号与反相信号的波形相位相反,播放反相信号,从而通过播放与音频播放设备的目标噪声信号的波形相位相反的反相信号,以降低目标噪声信号的影响,并实现音频播放设备的小体积设计,提升用户的使用体验。An embodiment of the present application provides a noise reduction method for an audio playback device, which acquires a target noise signal of the audio playback device, where the target noise signal is caused by Bluetooth communication performed by the audio playback device, and generates an inverted signal according to the target noise signal, wherein the target noise signal is The noise signal is opposite to the waveform phase of the inverted signal, and the inverted signal is played, so as to reduce the influence of the target noise signal by playing the inverted signal with the opposite phase to the waveform of the target noise signal of the audio playback device, and realize the audio playback device. Small size design, improve user experience.
请参阅图6,图6示出了本申请又一个实施例提供的音频播放设备的降噪方法的流程示意图。该方法应用于上述音频播放设备,下面将针对图6所示的流程进行详细的阐述,所述音频播放设备的降噪方法具体可以包括以下步骤:Referring to FIG. 6, FIG. 6 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application. The method is applied to the above-mentioned audio playback device, and the flow shown in FIG. 6 will be described in detail below. The noise reduction method of the audio playback device may specifically include the following steps:
步骤S210:在蓝牙通信的部分或全部过程中,获取所述目标噪声信号,其中,所述目标噪声信号由所述音频播放设备进行蓝牙通信引起。Step S210: During part or all of the Bluetooth communication, acquire the target noise signal, where the target noise signal is caused by the audio playback device performing Bluetooth communication.
在一些实施方式中,由于在蓝牙通信的部分或全部过程中,音频播放设备会出现特定频率的电流声,即,在蓝牙通信的部分或全部过程中,音频播放设备会产生待处理噪声信号。因此,在本实施例中,可以在蓝牙通信的部分或全部过程中,获取目标噪声信号。In some embodiments, during part or all of the Bluetooth communication, the audio playback device may generate a current sound of a specific frequency, that is, during part or all of the Bluetooth communication, the audio playback device may generate noise signals to be processed. Therefore, in this embodiment, the target noise signal can be acquired during part or all of the Bluetooth communication.
在一些实施方式中,由于在建立蓝牙连接的过程中,音频播放设备出现电流声的情况更为突出,即,在建立蓝牙连接的部分或全部过程中,音频播放设备产生的待处理噪声信号的情况更为明显。因此,在本实施例中,可以在建立蓝牙连接的部分或全部过程中,获取目标噪声信号。In some implementations, since the current sound is more prominent in the audio playback device during the process of establishing the Bluetooth connection, that is, during part or all of the process of establishing the Bluetooth connection, the noise signal to be processed generated by the audio playback device is more prominent. The situation is more obvious. Therefore, in this embodiment, the target noise signal may be acquired during part or all of the process of establishing the Bluetooth connection.
在一些实施方式中,由于当在寻呼或查询状态下,引起的电源输出电流的波动会增大,从而可能使得电池、电感等电子器件产生较大电磁场,进而干扰喇叭等敏感器件产生电流声等噪声,即,在蓝牙寻呼或蓝牙查询的部分或全部过程中,音频播放设备产生的待处理噪声信号的情况更为明显。因此,在本实施例中,可以在蓝牙寻呼或蓝牙查询的部分或全部过程中,获取目标噪声信号。In some embodiments, the fluctuation of the output current of the power supply will increase when in the paging or query state, which may cause electronic devices such as batteries and inductors to generate a large electromagnetic field, thereby interfering with sensitive devices such as speakers to generate current sound. Equal noise, that is, during part or all of the process of Bluetooth paging or Bluetooth inquiry, the situation of the to-be-processed noise signal generated by the audio playback device is more pronounced. Therefore, in this embodiment, the target noise signal can be acquired in part or all of the process of Bluetooth paging or Bluetooth query.
在一些实施方式中,由于在音频播放设备发射蓝牙信号时,音频播放设备的整个系统的功耗会很大,这样从电源模块抽取的电流也会比较大,那么,电流大时流过音频模块(如喇叭)线圈的电磁场也会比较大,也就是噪声信号比较大,即,在音频播放设备发射蓝牙信号的部分或全部过程中,音频播放设备产生的待处理噪声信号的情况更为明显。因此,在本实施例中,可以在音频播放设备发射蓝牙信号的部分或全部过程中,获取目标噪声信号。In some embodiments, when the audio playback device transmits a Bluetooth signal, the power consumption of the entire system of the audio playback device will be very large, so the current drawn from the power supply module will also be relatively large, then, when the current is large, it flows through the audio module The electromagnetic field of the coil (such as a speaker) will also be relatively large, that is, the noise signal will be relatively large, that is, during part or all of the process of transmitting the Bluetooth signal by the audio playback device, the situation of the to-be-processed noise signal generated by the audio playback device is more obvious. Therefore, in this embodiment, the target noise signal may be acquired during part or all of the process of transmitting the Bluetooth signal by the audio playback device.
请参阅图7,图7示出了本申请的图6所示的音频播放设备的步骤S210的流程示意图。下面将针对图7所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:Please refer to FIG. 7 , which shows a schematic flowchart of step S210 of the audio playback device shown in FIG. 6 of the present application. The flow shown in FIG. 7 will be described in detail below, and the method may specifically include the following steps:
步骤S211:在蓝牙通信的部分或全部过程中,获取电流声信号。Step S211: Acquire current acoustic signals during part or all of the Bluetooth communication.
在一些实施方式中,音频播放设备在蓝牙通信的过程中,由于发射蓝牙信号可能引起电池和/或电感产生等效电场从而干扰音频播放设备的器件,例如喇叭等敏感器件,从而产生电流声信号,也就是杂音,影响用户体验。具体地,在发射蓝牙信号时,音频播放设备的整个系统的功耗会很大,这样从电源模块抽取的电流也会比较大,那么,电流大时流过音频模块(如喇叭)线圈的电磁场也会比较大,从而会在音频模块上产生一个固定频率的电流声信号,也就是杂音,影响用户体验。因此,在本实施例中,在蓝牙通信的部分或全部过程中,可以获取电流声信号。In some embodiments, during the Bluetooth communication process of the audio playback device, the battery and/or inductor may generate an equivalent electric field due to the transmission of Bluetooth signals, thereby interfering with the components of the audio playback device, such as sensitive devices such as speakers, thereby generating current acoustic signals , that is, noise, which affects the user experience. Specifically, when the Bluetooth signal is transmitted, the power consumption of the entire system of the audio playback device will be very large, so the current drawn from the power module will also be relatively large, then, when the current is large, the electromagnetic field flowing through the coil of the audio module (such as a speaker) It will also be relatively large, which will generate a fixed-frequency current sound signal on the audio module, that is, noise, which affects the user experience. Therefore, in this embodiment, the current acoustic signal can be acquired during part or all of the Bluetooth communication.
步骤S212:将所述电流声信号确定为所述目标噪声信号。Step S212: Determine the current acoustic signal as the target noise signal.
在本实施例中,由于音频播放设备内部产生的电流声信号会产生杂音,因此,在获取电流声信号后,可以将电流声信号确定为目标噪声信号,以通过后续产生的反相信号抵消电流声信号,提升用户体验。In this embodiment, since the current acoustic signal generated inside the audio playback device will generate noise, after acquiring the current acoustic signal, the current acoustic signal can be determined as the target noise signal, so as to cancel the current through the subsequently generated inverse signal Sound signal, improve user experience.
步骤S220:根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反。Step S220: Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
步骤S230:播放所述反相信号。Step S230: Play the inverted signal.
其中,步骤S220-步骤S230的具体描述请参阅步骤S120-步骤S130,在此不再赘述。Wherein, the specific description of steps S220-step S230 can refer to steps S120-step S130, and details are not repeated here.
本申请又一个实施例提供的音频播放设备的降噪方法,在蓝牙通信的部分或全部过程中,获取目标噪声信号,其中,目标噪声信号由所述音频播放设备进行蓝牙通信引起,根据目标噪声信号生成反相信号,其中,目标噪声信号与反相信号的波形相位相反,播放反相信号。相较于图3所示的音频播放设备的降噪方法,本实施例还通过在蓝牙通信的部分或全部过程中,获取目标噪声信号,并播放与音频播放设备的目标噪声信号的波形相位相反的反相信号,以提升降噪处理效果。In a noise reduction method for an audio playback device provided by another embodiment of the present application, a target noise signal is acquired during part or all of the Bluetooth communication process, wherein the target noise signal is caused by the audio playback device performing Bluetooth communication, according to the target noise signal The signal generates an inverted signal, in which the target noise signal is in opposite phase to the waveform of the inverted signal, playing the inverted signal. Compared with the noise reduction method of the audio playback device shown in FIG. 3 , this embodiment also obtains the target noise signal during part or all of the Bluetooth communication process, and plays the waveform phase opposite to that of the target noise signal of the audio playback device. , to improve the noise reduction processing effect.
请参阅图8,图8示出了本申请再一个实施例提供的音频播放设备的降噪方法的流程示意图。该方法应用于上述音频播放设备,在本实施例中,该音频播放设备包括蓝牙模块,下面将针对图8所示的流程进行详细的阐述,所述音频播放设备的降噪方法具体可以包括以下步骤:Referring to FIG. 8 , FIG. 8 shows a schematic flowchart of a noise reduction method for an audio playback device provided by still another embodiment of the present application. This method is applied to the above-mentioned audio playback device. In this embodiment, the audio playback device includes a Bluetooth module. The flow shown in FIG. 8 will be described in detail below. The noise reduction method of the audio playback device may specifically include the following: step:
步骤S310:当基于所述蓝牙模块发射蓝牙信号时,监听所述蓝牙模块的发射信号。Step S310: When a Bluetooth signal is transmitted based on the Bluetooth module, monitor the transmission signal of the Bluetooth module.
在一些实施方式中,音频播放设备包括蓝牙模块,音频提供设备包括蓝牙模块,音频播放设备可以通过其包括的蓝牙模块向音频提供设备包括的蓝牙模块发射蓝牙信号,从而实现音频播放设备与音频提供设 备之间的蓝牙通信。在本实施例中,当音频播放设备基于蓝牙模块向音频提供设备发射蓝牙信号时,可以监听蓝牙模块的发射信号,其中,蓝牙模块的发射信号可以包括蓝牙模块的发射频率、蓝牙模块的发射功率等,在此不做限定。In some embodiments, the audio playback device includes a Bluetooth module, the audio providing device includes a Bluetooth module, and the audio playback device can transmit a Bluetooth signal to the Bluetooth module included in the audio providing device through the included Bluetooth module, thereby realizing the audio playback device and the audio providing device. Bluetooth communication between devices. In this embodiment, when the audio playback device transmits a Bluetooth signal to the audio providing device based on the Bluetooth module, it can monitor the transmission signal of the Bluetooth module, wherein the transmission signal of the Bluetooth module may include the transmission frequency of the Bluetooth module and the transmission power of the Bluetooth module. etc., which are not limited here.
步骤S320:基于所述发射信号,获取所述目标噪声信号。Step S320: Obtain the target noise signal based on the transmitted signal.
在本实施例中,在获取蓝牙模块的发射信号后,可以基于该发射信号获取目标噪声信号,作为一种方式,目标噪声信号的波形相位和发射信号呈对应关系,则在获取发射信号后,可以基于目标噪声信号和发射信号的对应关系,获取目标噪声信号。In this embodiment, after the transmission signal of the Bluetooth module is acquired, the target noise signal can be acquired based on the transmission signal. As a method, the waveform phase of the target noise signal and the transmission signal are in a corresponding relationship. The target noise signal may be obtained based on the correspondence between the target noise signal and the transmitted signal.
在一些实施方式中,音频播放设备可以创建映射关系表,该映射关系表中可以包括多个发射信号、多个目标噪声信号以及多个发射信号和多个目标噪声信号的对应关系,例如,所述映射关系表可以如表1所示,其中,发射信号用A表示、目标噪声信号用B表示,那么,通过所述映射关系表,该音频播放设备可以对应设置发射信号和目标噪声信号的对应关系并存储在音频播放设备的本地。当然,在一些实施方式中,映射关系表也可以由其他设备创建完成后发送至音频播放设备以在音频播放设备的本地存储,例如,该映射关系表也可以由音频播放设备创建完成后发送至音频播放设备。In some embodiments, the audio playback device may create a mapping relationship table, and the mapping relationship table may include multiple transmission signals, multiple target noise signals, and the corresponding relationship between multiple transmission signals and multiple target noise signals, for example, all Described mapping relation table can be as shown in table 1, wherein, transmit signal is represented by A, target noise signal is represented by B, then, through described mapping relation table, this audio playback device can correspondingly set the correspondence of transmit signal and target noise signal relationship and stored locally on the audio playback device. Of course, in some embodiments, the mapping relationship table can also be created by other devices and sent to the audio playback device for local storage in the audio playback device. For example, the mapping relationship table can also be created by the audio playback device and sent to the audio playback device. Audio playback device.
表1Table 1
发射信号Atransmit signal A 目标噪声信号Btarget noise signal B
A1A1 B1B1
A2A2 B2B2
A3A3 B3B3
A4A4 B4B4
在一些实施方式中,音频播放设备在获取蓝牙模块的发射信号后,可以从映射关系表中查找与蓝牙模块的发射信号匹配的发射信号作为目标发射信号,然后再基于映射关系表中的发射信号和目标噪声信号的对应关系,可以查找与目标发射信号匹配的发射信号对应的目标噪声信号。例如,当蓝牙模块的发射信号为A1时,可以确定目标噪声信号为B1。In some embodiments, after acquiring the transmission signal of the Bluetooth module, the audio playback device can look up the transmission signal matching the transmission signal of the Bluetooth module from the mapping relationship table as the target transmission signal, and then based on the transmission signal in the mapping relationship table According to the corresponding relationship with the target noise signal, the target noise signal corresponding to the transmission signal matching the target transmission signal can be found. For example, when the transmission signal of the Bluetooth module is A1, it can be determined that the target noise signal is B1.
在一些实施方式中,音频播放设备包括蓝牙模块,音频提供设备包括蓝牙模块,音频播放设备可以通过其包括的蓝牙模块向音频提供设备包括的蓝牙模块发射蓝牙信号,从而实现音频播放设备与音频提供设备之间的蓝牙通信。在本实施例中,当音频播放设备基于蓝牙模块向音频提供设备发射蓝牙信号时,可以监听蓝牙模块的发射频率。In some embodiments, the audio playback device includes a Bluetooth module, the audio providing device includes a Bluetooth module, and the audio playback device can transmit a Bluetooth signal to the Bluetooth module included in the audio providing device through the included Bluetooth module, thereby realizing the audio playback device and the audio providing device. Bluetooth communication between devices. In this embodiment, when the audio playback device transmits a Bluetooth signal to the audio providing device based on the Bluetooth module, it can monitor the transmission frequency of the Bluetooth module.
其中,根据蓝牙通信协议,在蓝牙通信的过程中,音频播放设备的蓝牙模块每隔一段时间会与其他蓝牙设备(如音频提供设备)的蓝牙模块进行通信一次,例如,在音频播放设备与音频提供设备处于回连状态时,音频播放设备可以按一定的发射频率发射蓝牙信号,如,音频提供设备按1.25ms(Tx Slot为0.625ms,Rx Slot为0.625ms,)的发射频率发射蓝牙信号。因此,在本实施例中,可以认为音频播放设备会每间隔该发射频率产生目标噪声信号,则可以按该发射频率获取目标噪声信号。Among them, according to the Bluetooth communication protocol, in the process of Bluetooth communication, the Bluetooth module of the audio playback device will communicate with the Bluetooth module of other Bluetooth devices (such as audio providing devices) at regular intervals. For example, when the audio playback device and audio When the providing device is in the back-connected state, the audio playback device can transmit Bluetooth signals at a certain transmission frequency. For example, the audio providing device transmits Bluetooth signals at a transmission frequency of 1.25ms (Tx Slot is 0.625ms, Rx Slot is 0.625ms,). Therefore, in this embodiment, it can be considered that the audio playback device will generate the target noise signal at every interval of the transmission frequency, and the target noise signal can be obtained according to the transmission frequency.
在一些实施方式中,由于音频播放设备在蓝牙回连状态下,首先需要发射蓝牙信号,然后接收音频提供设备反馈的信号,其中,发射蓝牙信号的时间记为Tx Slot,接收信号的时间记为Rx Slot,Tx Slot的时间可以为0.625ms,Rx Slot的时间可以为0.625ms,则Tx Slot+Rx Slot的周期为1.25ms,也就是说,音频播放设备按1.25ms的发射频率发射蓝牙信号,则可以将1.25ms记为发射频率,并按照该发射频率获取目标噪声信号。In some embodiments, since the audio playback device is in the Bluetooth back-connection state, it first needs to transmit a Bluetooth signal, and then receive a signal fed back by the audio providing device, wherein the time of transmitting the Bluetooth signal is denoted as Tx Slot, and the time of receiving the signal is denoted as Rx Slot, the time of Tx Slot can be 0.625ms, the time of Rx Slot can be 0.625ms, then the period of Tx Slot+Rx Slot is 1.25ms, that is to say, the audio playback device transmits the Bluetooth signal at the transmission frequency of 1.25ms, Then 1.25ms can be recorded as the transmission frequency, and the target noise signal can be obtained according to the transmission frequency.
请参阅图9,图9示出了本申请实施例提供的音频播放设备在通信时的电流变化示意图。如图9所示,音频播放设备在发射蓝牙信号时,从电源模块抽取的电流每隔一段时间增大,每相邻两个增大电流之间的时间间隔基本一致,该时间间隔可以视作发射频率,因此,可以按该发射频率获取目标噪声信号。Referring to FIG. 9, FIG. 9 shows a schematic diagram of a current change of the audio playback device provided by the embodiment of the present application during communication. As shown in Figure 9, when the audio playback device transmits a Bluetooth signal, the current drawn from the power module increases at regular intervals, and the time interval between each adjacent two increased currents is basically the same, and the time interval can be regarded as The transmission frequency, therefore, the target noise signal can be obtained at this transmission frequency.
步骤S330:根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反。Step S330: Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
步骤S340:播放所述反相信号。Step S340: Play the inverted signal.
本申请再一个实施例提供的音频播放设备的降噪方法,当基于蓝牙模块发射蓝牙信号时,监听蓝牙模块的发射信号,基于发射信号,获取目标噪声信号,根据目标噪声信号生成反相信号,其中,目标噪声信号与反相信号的波形相位相反,播放反相信号。相较于图3所示的音频播放设备的降噪方法,本实施例还通过监听蓝牙模块的发射信号获取目标噪声信号,以提升获取噪声信号的效率和便捷性。In a noise reduction method for an audio playback device provided by a further embodiment of the present application, when a Bluetooth signal is transmitted based on a Bluetooth module, the transmission signal of the Bluetooth module is monitored, a target noise signal is acquired based on the transmission signal, and an inverted signal is generated according to the target noise signal, Wherein, the waveform phase of the target noise signal is opposite to that of the inverted signal, and the inverted signal is played. Compared with the noise reduction method of the audio playback device shown in FIG. 3 , the present embodiment also obtains the target noise signal by monitoring the transmission signal of the Bluetooth module, so as to improve the efficiency and convenience of obtaining the noise signal.
请参阅图10,图10示出了本申请另一个实施例提供的音频播放设备的降噪方法的流程示意图。该方法应用于上述音频播放设备,下面将针对图10所示的流程进行详细的阐述,所述音频播放设备的降噪方法具体可以包括以下步骤:Referring to FIG. 10, FIG. 10 shows a schematic flowchart of a noise reduction method for an audio playback device provided by another embodiment of the present application. This method is applied to the above-mentioned audio playback device, and the flow shown in FIG. 10 will be described in detail below. The noise reduction method of the audio playback device may specifically include the following steps:
步骤S410:获取音频播放设备的目标噪声信号,其中,所述所述目标噪声信号由所述音频播放设备进行蓝牙通信引起。Step S410: Acquire a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device.
步骤S420:根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反。Step S420: Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
步骤S430:播放所述反相信号。Step S430: Play the inverted signal.
其中,步骤S410-步骤S430的具体描述请参阅步骤S110-步骤S130,在此不再赘述。The specific description of steps S410-step S430 can refer to steps S110-step S130, which will not be repeated here.
步骤S440:当所述反相信号未抵消所述目标噪声信号时,播放提示音,其中,所述提示音用于覆盖所述目标噪声信号。Step S440: Play a prompt sound when the inverted signal does not cancel the target noise signal, wherein the prompt sound is used to cover the target noise signal.
在一些实施方式中,在播放反相信号后,可以检测音频播放设备输出的音频信号中是否还包括目标噪声信号,其中,当检测结果表征音频播放设备输出的音频信号中仍包括目标噪声信号时,表征反相信号未抵消目标噪声信号,则可以播放提示音,通过提示音的方式覆盖目标噪声信号,以使用户听不出噪声问题,当检测结果表征音频播放设备输出的音频信号中不包括目标噪声信号时,表征反相信号抵消目标噪声信号,则可以不播放提示音。In some embodiments, after playing the inverted signal, it can be detected whether the audio signal output by the audio playback device still includes the target noise signal, wherein when the detection result indicates that the audio signal output by the audio playback device still includes the target noise signal , indicating that the inverse signal does not cancel the target noise signal, you can play the prompt tone, and cover the target noise signal by the prompt tone, so that the user cannot hear the noise problem. When the detection result indicates that the audio signal output by the audio playback device does not include When the target noise signal is represented, the inverted signal can cancel the target noise signal, and the prompt tone may not be played.
本申请另一个实施例提供的音频播放设备的降噪方法,获取音频播放设备的目标噪声信号,其中,目标噪声信号由音频播放设备进行蓝牙通信引起,根据目标噪声信号生成反相信号,其中,目标噪声信号与反相信号的波形相位相反,播放反相信号,当反相信号未抵消目标噪声信号时,播放用于覆盖目标噪声信号的提示音。相较于图3所示的音频播放设备的降噪方法,本实施例还在反相信号未抵消目标噪声信号时,播放提示音以覆盖目标噪声信号,以提升音频播放设备的降噪效果。Another embodiment of the present application provides a noise reduction method for an audio playback device, which acquires a target noise signal of the audio playback device, where the target noise signal is caused by Bluetooth communication performed by the audio playback device, and generates an inverted signal according to the target noise signal, wherein, The waveform phase of the target noise signal is opposite to that of the inverted signal, and the inverted signal is played. When the inverted signal does not cancel the target noise signal, a prompt tone for covering the target noise signal is played. Compared with the noise reduction method of the audio playback device shown in FIG. 3 , the present embodiment also plays a prompt sound to cover the target noise signal when the inverted signal does not cancel the target noise signal, so as to improve the noise reduction effect of the audio playback device.
请参阅图11,图11示出了本申请又再一个实施例提供的音频播放设备的降噪方法的流程示意图。该方法应用于上述音频播放设备,在本实施例中,该音频播放设备位蓝牙耳机,下面将针对图11所示的流程进行详细的阐述,所述音频播放设备的降噪方法具体可以包括以下步骤:Please refer to FIG. 11. FIG. 11 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application. This method is applied to the above-mentioned audio playback device. In this embodiment, the audio playback device is a Bluetooth headset. The flow shown in FIG. 11 will be described in detail below. The noise reduction method of the audio playback device may specifically include the following: step:
步骤S510:获取音频播放设备的目标噪声信号,其中,所述目标噪声信号由所述音频播放设备进行蓝牙通信引起。Step S510: Acquire a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device.
步骤S520:根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反。Step S520: Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
其中,步骤S510-步骤S520的具体描述请参阅步骤S110-步骤S120,在此不再赘述。The specific description of steps S510-step S520 can refer to steps S110-step S120, which will not be repeated here.
步骤S530:检测所述蓝牙耳机的佩戴状态。Step S530: Detect the wearing state of the Bluetooth headset.
在本实施例中,音频播放设备为蓝牙耳机,且蓝牙耳机可以包括第一蓝牙耳机和第二蓝牙耳机。In this embodiment, the audio playback device is a Bluetooth headset, and the Bluetooth headset may include a first Bluetooth headset and a second Bluetooth headset.
在一些实施方式中,可以分别检测该第一蓝牙耳机是否处于佩戴状态,以及第二蓝牙耳机是否处于佩戴状态。其中,可以通过检测第一蓝牙耳机是否安放于用户耳部的方式来判断第一蓝牙耳机是否处于佩戴状态,可以理解的,当第一蓝牙耳机安放于用户耳部时,确定该第一蓝牙耳机处于佩戴状态,当第一蓝牙耳机没有安放于用户耳部时,确定该第一蓝牙耳机处于非佩戴状态。同样的,可以通过检测第二蓝牙耳机是否安放于用户耳部的方式来判断第二蓝牙耳机是否处于佩戴状态,可以理解的,当第二蓝牙耳机安放于用户耳部时,确定第二蓝牙耳机处于佩戴状态,当第二蓝牙耳机没有安放于用户耳部时,确定该第二蓝牙耳机处于非佩戴状态。In some embodiments, it can be detected whether the first Bluetooth headset is in a wearing state and whether the second Bluetooth headset is in a wearing state. Wherein, whether the first Bluetooth headset is in the wearing state can be determined by detecting whether the first Bluetooth headset is placed on the user's ear. It is understandable that when the first Bluetooth headset is placed on the user's ear, it is determined that the first Bluetooth headset is In the wearing state, when the first Bluetooth headset is not placed on the user's ear, it is determined that the first Bluetooth headset is in the non-wearing state. Similarly, it can be determined whether the second Bluetooth headset is in the wearing state by detecting whether the second Bluetooth headset is placed on the user's ear. It is understandable that when the second Bluetooth headset is placed on the user's ear, the second Bluetooth headset is determined In the wearing state, when the second Bluetooth headset is not placed on the user's ear, it is determined that the second Bluetooth headset is in the non-wearing state.
例如,当第一蓝牙耳机和第二蓝牙耳机均处于佩戴状态时,可以包括第一蓝牙耳机佩戴于用户左耳且第二蓝牙耳机佩戴于用户右耳,或者第一蓝牙耳机佩戴于用户右耳且第一蓝牙耳机佩戴于用户左耳;当第一蓝牙耳机和第二蓝牙耳机中仅一个处于佩戴状态时,可以包括第一蓝牙耳机佩戴于用户左耳且第二蓝牙耳机处于非佩戴状态,第一蓝牙耳机佩戴于用户右耳且第二蓝牙耳机处于非佩戴状态,第二蓝牙耳机佩戴于用户右耳且第一蓝牙耳机处于非佩戴状态,第二蓝牙耳机佩戴于用户左耳且第一蓝牙耳机处于非佩戴状态;当第一蓝牙耳机和第二蓝牙耳机均处于非佩戴状态时,表征该第一蓝牙耳机和第二蓝牙耳机均未安放于用户耳部,在此不再赘述。For example, when both the first Bluetooth headset and the second Bluetooth headset are in the wearing state, it may include that the first Bluetooth headset is worn on the user's left ear and the second Bluetooth headset is worn on the user's right ear, or the first Bluetooth headset is worn on the user's right ear And the first bluetooth earphone is worn on the user's left ear; when only one of the first bluetooth earphone and the second bluetooth earphone is in a wearing state, it may include that the first bluetooth earphone is worn on the user's left ear and the second bluetooth earphone is in a non-wearing state, The first Bluetooth headset is worn on the user's right ear and the second Bluetooth headset is in a non-wearing state, the second Bluetooth headset is worn on the user's right ear and the first Bluetooth headset is in a non-wearing state, and the second Bluetooth headset is worn on the user's left ear and the first Bluetooth headset is in a non-wearing state. The Bluetooth headset is in the non-wearing state; when both the first Bluetooth headset and the second Bluetooth headset are in the non-wearing state, it means that neither the first Bluetooth headset nor the second Bluetooth headset is placed in the user's ear, which will not be repeated here.
作为一种方式,第一蓝牙耳机可以包括第一耳机本体和设置于第一耳机本体上的第一接触传感器,其中,该第一接触传感器可以设置于第一耳机本体的外表面,当第一蓝牙耳机安放于用户耳部时,该第一接触传感器与用户耳部接触产生第一接触信号,因此,可以通过该第一接触传感器检测到的第一接触参数判断该第一蓝牙耳机是否安放于用户耳部,其中,该第一接触参数可以包括接触面积和/或接触点。In one way, the first Bluetooth headset may include a first headset body and a first contact sensor disposed on the first headset body, wherein the first contact sensor may be disposed on the outer surface of the first headset body, and when the first When the Bluetooth headset is placed on the user's ear, the first contact sensor contacts the user's ear to generate a first contact signal. Therefore, it can be determined whether the first Bluetooth headset is placed in the user's ear through the first contact parameter detected by the first contact sensor. User ear, wherein the first contact parameter may include contact area and/or contact point.
作为一种方式,第二蓝牙耳机包括第二耳机本体和设置于第二耳机本体上的第二接触传感器,其中,该第二接触传感器可以设置于第二耳机本体的外表面,当第二蓝牙耳机安放于用户耳部时,该第二接触传感器与用户耳部接触产生第二接触信号,因此,可以通过该第二接触传感器检测到的第二接触参数判断该第二蓝牙耳机是否安放于用户耳部,其中,该第二接触参数同样可以包括接触面积和/或接触点。In one way, the second Bluetooth headset includes a second headset body and a second contact sensor disposed on the second headset body, wherein the second contact sensor can be disposed on the outer surface of the second headset body, when the second Bluetooth headset When the headset is placed on the user's ear, the second contact sensor contacts the user's ear to generate a second contact signal. Therefore, it can be determined whether the second Bluetooth headset is placed on the user's ear through the second contact parameter detected by the second contact sensor. ear, wherein the second contact parameter can also include contact area and/or contact point.
作为另一种方式,可以对该第一蓝牙耳机的姿态数据进行检测,以及对第二蓝牙耳机的姿态数据进行检测,具体地,第一蓝牙耳机还可以包括第一加速度传感器和/或第一陀螺仪,该第一加速度传感器和/或第一陀螺仪设置于第一耳机本体内,用于检测该第一蓝牙耳机的姿态数据。同样的,第二蓝牙耳机还可以 包括第二加速度传感器和/或第二陀螺仪,该第二加速度传感器和/或第二陀螺仪设置于第二耳机本体内,用于检测该第二蓝牙耳机的姿态数据并将检测到的姿态数据。As another way, the attitude data of the first Bluetooth headset may be detected, and the attitude data of the second Bluetooth headset may be detected. Specifically, the first Bluetooth headset may further include a first acceleration sensor and/or a first A gyroscope, the first acceleration sensor and/or the first gyroscope are arranged in the first earphone body, and are used to detect the attitude data of the first Bluetooth earphone. Similarly, the second Bluetooth headset may also include a second acceleration sensor and/or a second gyroscope, and the second acceleration sensor and/or the second gyroscope are arranged in the second headset body for detecting the second Bluetooth headset The pose data will be the detected pose data.
作为一种方式,电子设备预先存储有蓝牙耳机安放于用户耳部时的姿态数据,其中,该姿态数据被配置为预设姿态数据,用于作为检测到的第一蓝牙耳机的姿态数据和第二蓝牙耳机的姿态数据的判断依据,可以理解的,在检测到第一蓝牙耳机的第一姿态数据后,将该第一姿态数据与预设姿态数据进行比较,以判断该第一姿态数据是否与预设姿态数据一致或者在预设姿态数据允许的误差范围之内,其中,当该第一姿态数据与预设姿态数据一致或者在预设姿态数据允许的误差范围之内,则可以确定该第一蓝牙耳机的姿态数据满足预设姿态数据,则确定该第一蓝牙耳机处于佩戴状态,当该第一姿态数据与预设姿态数据不一致或在预设姿态数据允许的误差范围之外,则可以确定该第一蓝牙耳机的姿态数据不满足预设姿态数据,则确定该第一蓝牙耳机处于非佩戴状态。As a way, the electronic device pre-stores attitude data when the Bluetooth headset is placed on the user's ear, wherein the attitude data is configured as preset attitude data, which is used as the detected attitude data of the first Bluetooth headset and the first Bluetooth headset. The judgment basis of the attitude data of the second Bluetooth headset, it can be understood that after detecting the first attitude data of the first Bluetooth headset, the first attitude data is compared with the preset attitude data to determine whether the first attitude data is It is consistent with the preset attitude data or within the allowable error range of the preset attitude data, wherein, when the first attitude data is consistent with the preset attitude data or within the allowable error range of the preset attitude data, it can be determined that the first attitude data is consistent with the preset attitude data. The attitude data of the first Bluetooth headset satisfies the preset attitude data, then it is determined that the first Bluetooth headset is in the wearing state. When the first attitude data is inconsistent with the preset attitude data or is outside the allowable error range of the preset attitude data, then It can be determined that the attitude data of the first Bluetooth headset does not meet the preset attitude data, and it is determined that the first Bluetooth headset is in a non-wearing state.
同样的,在检测到第二蓝牙耳机的第二姿态数据后,将第二姿态数据与预设姿态数据进行比较,以判断该第二姿态数据是否与预设姿态数据一致或者在预设姿态数据允许的误差范围之内,其中,当该第二姿态数据与预设姿态数据一致或者在预设姿态数据允许的误差范围之内,则可以确定该第二蓝牙耳机的姿态数据满足预设姿态数据,则确定该第二蓝牙耳机处于佩戴状态,当该第二姿态数据与预设姿态数据不一致或在预设姿态数据允许的误差范围之外,则可以确定该第二蓝牙耳机的姿态数据不满足预设姿态数据,则确定该第二蓝牙耳机处于非佩戴状态。Similarly, after the second attitude data of the second Bluetooth headset is detected, the second attitude data is compared with the preset attitude data to determine whether the second attitude data is consistent with the preset attitude data or is in the preset attitude data. Within the allowable error range, wherein, when the second attitude data is consistent with the preset attitude data or within the allowable error range of the preset attitude data, it can be determined that the attitude data of the second Bluetooth headset satisfies the preset attitude data , then it is determined that the second Bluetooth headset is in the wearing state. When the second attitude data is inconsistent with the preset attitude data or is outside the allowable error range of the preset attitude data, it can be determined that the attitude data of the second Bluetooth headset does not satisfy Presetting the posture data, it is determined that the second Bluetooth headset is in a non-wearing state.
步骤S540:当所述蓝牙耳机处于佩戴状态时,播放所述反相信号。Step S540: Play the inverted signal when the Bluetooth headset is in a wearing state.
在本实施例中,当检测到蓝牙耳机处于佩戴状态时,可以确定蓝牙耳机处于使用状态,则可以播放反相信号以抵消目标噪声信号,提升用户的使用体验,当检测到蓝牙耳机处于未佩戴状态时,可以确定蓝牙耳机处于未使用状态,则可以不播放反相信号,降低电子设备的功耗。In this embodiment, when it is detected that the Bluetooth headset is in a wearing state, it can be determined that the Bluetooth headset is in a use state, and an inverted signal can be played to offset the target noise signal to improve the user experience. When it is detected that the Bluetooth headset is not worn When it is in the state, it can be determined that the Bluetooth headset is in an unused state, and the inverted signal can not be played, thereby reducing the power consumption of the electronic device.
在一些实施方式中,当蓝牙耳机处于佩戴状态时,可以检测蓝牙耳机是否在进行音频输出,例如,可以检测蓝牙耳机是否在进行歌曲输出、是否在进行语音输出、是否在进行音频片段输出等,其中,当检测到蓝牙耳机在进行音频输出时,可以认为蓝牙耳机输出的音频可以覆盖或者弱化目标噪声信号,则可以不播放反向信号,当检测到蓝牙耳机在进行无音频输出时,可以认为目标噪声信号的影响较大,则可以播放反相信号以抵消目标噪声信号。In some embodiments, when the Bluetooth headset is in the wearing state, it can be detected whether the Bluetooth headset is performing audio output, for example, it can be detected whether the Bluetooth headset is performing song output, whether it is performing voice output, whether it is performing audio clip output, etc., Among them, when it is detected that the Bluetooth headset is performing audio output, it can be considered that the audio output by the Bluetooth headset can cover or weaken the target noise signal, and the reverse signal can not be played. When it is detected that the Bluetooth headset is performing no audio output, it can be considered that If the influence of the target noise signal is greater, the inverted signal can be played to cancel the target noise signal.
在一些实施方式中,当检测到第一蓝牙耳机处于佩戴状态且第二蓝牙耳机处于佩戴状态时,则第一蓝牙耳机和第二蓝牙耳机均播放反相信号;当检测到第一蓝牙耳机处于佩戴状态且第二蓝牙耳机处于非佩戴状态时,则第一蓝牙耳机播放反相信号且第二蓝牙耳机不播放反相信号;当检测到第一蓝牙耳机处于非佩戴状态且第二蓝牙耳机处于佩戴状态时,则第一蓝牙耳机不播放反相信号且第二蓝牙耳机播放反相信号;当检测到第一蓝牙耳机处于非佩戴状态且第二蓝牙耳机处于非佩戴状态时,则第一蓝牙耳机和第二蓝牙耳机均不播放反相信号。In some embodiments, when it is detected that the first Bluetooth headset is in a wearing state and the second Bluetooth headset is in a wearing state, both the first Bluetooth headset and the second Bluetooth headset play an inverted signal; when it is detected that the first Bluetooth headset is in a wearing state When it is in the wearing state and the second Bluetooth headset is in the non-wearing state, the first Bluetooth headset plays the inverted signal and the second Bluetooth headset does not play the inverted signal; when it is detected that the first Bluetooth headset is in the non-wearing state and the second Bluetooth headset is in the In the wearing state, the first Bluetooth headset does not play the inverted signal and the second Bluetooth headset plays the inverted signal; when it is detected that the first Bluetooth headset is in the non-wearing state and the second Bluetooth headset is in the non-wearing state, the first Bluetooth headset is in the non-wearing state. Neither the earphone nor the second bluetooth earphone play the inverted signal.
本申请又再一个实施例提供的音频播放设备的降噪方法,获取音频播放设备的目标噪声信号,其中,目标噪声信号由音频播放设备进行蓝牙通信引起,根据目标噪声信号生成反相信号,其中,目标噪声信号与反相信号的波形相位相反,检测蓝牙耳机的佩戴状态,当蓝牙耳机处于佩戴状态时,播放反相信号。相较于图3所示的音频播放设备的降噪方法,本实施例还在蓝牙耳机处于佩戴状态时对蓝牙耳机的目标噪声信号进行降噪处理,以降低蓝牙耳机的功耗。Still another embodiment of the present application provides a noise reduction method for an audio playback device, which acquires a target noise signal of the audio playback device, where the target noise signal is caused by Bluetooth communication performed by the audio playback device, and generates an inverted signal according to the target noise signal, wherein , the waveform phase of the target noise signal is opposite to that of the inverted signal, and the wearing state of the Bluetooth headset is detected. When the Bluetooth headset is in the wearing state, the inverted signal is played. Compared with the noise reduction method of the audio playback device shown in FIG. 3 , the present embodiment also performs noise reduction processing on the target noise signal of the Bluetooth headset when the Bluetooth headset is in a wearing state, so as to reduce the power consumption of the Bluetooth headset.
请参阅图12,图12示出了本申请又另一个实施例提供的音频播放设备的降噪方法的流程示意图。该方法应用于上述音频播放设备,在本实施例中,该音频播放设备位蓝牙耳机,下面将针对图12所示的流程进行详细的阐述,所述音频播放设备的降噪方法具体可以包括以下步骤:Please refer to FIG. 12. FIG. 12 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application. This method is applied to the above-mentioned audio playback device. In this embodiment, the audio playback device is a Bluetooth headset. The flow shown in FIG. 12 will be described in detail below. The noise reduction method of the audio playback device may specifically include the following: step:
步骤S610:采集多个噪声信号。Step S610: Collect multiple noise signals.
在一些实施方式中,音频播放设备对噪声信号的采集可以不做条件限定,即,音频播放设备可以同时采集到基于蓝牙通信产生的目标噪声信号和所处环境的环境噪声信号,从而可以采集获得多个噪声信号。In some embodiments, the acquisition of the noise signal by the audio playback device may not be limited, that is, the audio playback device may simultaneously acquire the target noise signal generated based on the Bluetooth communication and the environmental noise signal of the environment in which it is located, so that the acquisition can obtain multiple noise signals.
步骤S620:从所述多个噪声信号中获取属于目标频率的噪声信号,作为所述目标噪声信号。Step S620: Obtain a noise signal belonging to a target frequency from the plurality of noise signals as the target noise signal.
其中,基于环境噪声信号和基于蓝牙信号的发射产生的目标噪声信号的频率不同的特性,本实施例可以预先设置并存储有基于蓝牙通信产生的目标噪声信号对应的目标频率,该目标频率用于作为采集的多个噪声信号的判断依据。因此,在本实施例中,在采集获得多个噪声信号后,可以将多个噪声信号中的每个噪声信号的频率与目标频率进行比较,以判断每个噪声信号的频率是否与目标频率匹配,根据判断结果,可以从多个噪声信号中获取属于目标频率的噪声信号,作为目标噪声信号。Wherein, based on the characteristics of different frequencies of the environmental noise signal and the target noise signal generated based on the transmission of the Bluetooth signal, in this embodiment, a target frequency corresponding to the target noise signal generated based on the Bluetooth communication may be preset and stored, and the target frequency is used for As the judgment basis for the collected multiple noise signals. Therefore, in this embodiment, after collecting and obtaining multiple noise signals, the frequency of each noise signal in the multiple noise signals can be compared with the target frequency to determine whether the frequency of each noise signal matches the target frequency , according to the judgment result, the noise signal belonging to the target frequency can be obtained from the plurality of noise signals as the target noise signal.
步骤S630:根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反。Step S630: Generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
步骤S640:播放所述反相信号。Step S640: Play the inverted signal.
其中,步骤S630-步骤S640的具体描述请参阅步骤S120-步骤S130,在此不再赘述。Wherein, the specific description of steps S630-step S640 can refer to steps S120-step S130, and details are not repeated here.
本申请又另一个实施例提供的音频播放设备的降噪方法,采集多个噪声信号,从多个噪声信号中获取 属于目标频率的噪声信号,作为目标噪声信号,根据目标噪声信号生成反相信号,其中,目标噪声信号与反相信号的波形相位相反,播放反相信号。相较于图3所示的音频播放设备的降噪方法,本实施例还按频率对采集的多个噪声信号进行筛选,以获得基于蓝牙通信产生的目标噪声信号,针对性的进行降噪处理。Yet another embodiment of the present application provides a noise reduction method for an audio playback device, which collects multiple noise signals, acquires a noise signal belonging to a target frequency from the multiple noise signals, takes it as a target noise signal, and generates an inverted signal according to the target noise signal , where the target noise signal is opposite to the waveform phase of the inverted signal, and the inverted signal is played. Compared with the noise reduction method of the audio playback device shown in FIG. 3 , the present embodiment also filters the collected noise signals by frequency to obtain the target noise signal generated based on the Bluetooth communication, and performs targeted noise reduction processing. .
请参阅图13,图13示出了本申请又又再一个实施例提供的音频播放设备的降噪方法的流程示意图。所述音频播放设备的降噪方法用于通过播放与目标频率的噪声信号的波形相位相反的反相信号,以降低目标噪声信号的影响,并实现音频播放设备的小体积设计,提升用户的使用体验。在具体的实施例中,所述音频播放设备的降噪方法应用于如图16所示的音频播放设备的降噪装置400以及配置有音频播放设备的降噪装置400的电子设备100(图2)。下面将以音频播放设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以为蓝牙耳机、蓝牙音箱等基于蓝牙通信技术的音频播放设备,在此不做限定。下面将针对图13所示的流程进行详细的阐述,所述音频播放设备的降噪方法具体可以包括以下步骤:Please refer to FIG. 13. FIG. 13 shows a schematic flowchart of a noise reduction method for an audio playback device provided by yet another embodiment of the present application. The noise reduction method of the audio playback device is used for reducing the influence of the target noise signal by playing an inverse signal whose waveform phase is opposite to that of the noise signal of the target frequency, and realizes the small size design of the audio playback device and improves the usage of the user. experience. In a specific embodiment, the noise reduction method of the audio playback device is applied to the noise reduction device 400 of the audio playback device shown in FIG. 16 and the electronic device 100 configured with the noise reduction device 400 of the audio playback device (FIG. 2 ). The following will take an audio playback device as an example to describe the specific process of this embodiment. Of course, it can be understood that the electronic device applied in this embodiment may be an audio playback device based on Bluetooth communication technology, such as a Bluetooth headset and a Bluetooth speaker. Not limited. The flow shown in FIG. 13 will be described in detail below. The noise reduction method of the audio playback device may specifically include the following steps:
步骤S710:获取目标频率的噪声信号,其中,所述目标频率与所述音频播放设备进行蓝牙通信引起的电流声信号的频率相同或频率差值处于预设范围。Step S710: Acquire a noise signal of a target frequency, wherein the target frequency is the same as the frequency of the current acoustic signal caused by the Bluetooth communication performed by the audio playback device or the frequency difference is within a preset range.
其中,在音频播放设备的蓝牙功能开启时,音频播放设备由于发射蓝牙信号可能引起电池和/或电感产生等效电场从而干扰音频播放设备的器件,例如喇叭等敏感器件,从而产生电流声信号,此时,电子设备对应产生噪声信号,其中,产生的噪声信号的频率记为目标频率,则,该目标频率与电流声信号的频率相同,或者,该目标频率与电流声信号的频率差值处于预设范围(例如该目标频率与电流声信号的频率接近相同)。例如,该目标频率为800HZ或者为800HZ的谐波。因此,在本实施例中,为了对产生的噪声信号进行降噪处理,可以获取目标频率的噪声信号,例如,可以获取频率为800HZ或者为800HZ的谐波的噪声信号。Among them, when the Bluetooth function of the audio playback device is turned on, the audio playback device may cause the battery and/or the inductor to generate an equivalent electric field due to the emission of the Bluetooth signal, thereby interfering with the components of the audio playback device, such as the speaker and other sensitive devices, thereby generating a current sound signal, At this time, the electronic device generates a noise signal correspondingly, wherein the frequency of the generated noise signal is recorded as the target frequency, then the target frequency is the same as the frequency of the current acoustic signal, or the target frequency and the frequency difference of the current acoustic signal are at A preset range (eg, the target frequency is approximately the same as the frequency of the current acoustic signal). For example, the target frequency is 800 Hz or a harmonic of 800 Hz. Therefore, in this embodiment, in order to perform noise reduction processing on the generated noise signal, a noise signal with a target frequency may be obtained, for example, a noise signal with a frequency of 800 Hz or a harmonic of 800 Hz may be obtained.
可以理解的,音频播放设备具备采集目标频率的噪声信号的能力,音频播放设备由于发射蓝牙信号可能引起电池和/或电感产生等效电场从而干扰音频播放设备的器件,例如喇叭等敏感器件,从而产生电流声信号,这种情况下产生的电流声信号的频率与普通的环境噪声存在差异,为此,可以根据上述电流声信号的频率等特征确定需要采集的噪声信号的特征,例如频率特征,然后根据上述特征去采集噪声信号,并通过反向信号,例如播放反相信号,从而实现降低或消除电流声信号的目的。It can be understood that the audio playback device has the ability to collect noise signals at the target frequency. The audio playback device may cause the battery and/or inductor to generate an equivalent electric field due to the emission of Bluetooth signals, thereby interfering with the components of the audio playback device, such as speakers and other sensitive devices. The current acoustic signal is generated. In this case, the frequency of the generated current acoustic signal is different from that of ordinary environmental noise. Therefore, the characteristics of the noise signal to be collected can be determined according to the characteristics of the frequency of the above current acoustic signal, such as frequency characteristics, Then, the noise signal is collected according to the above-mentioned characteristics, and the purpose of reducing or eliminating the current acoustic signal is achieved through the reverse signal, such as playing the reverse phase signal.
因此,在本实施例中,音频播放设备可以将该目标频率作为采集到的其所处环境中的声音的判断依据。作为一种方式,音频播放设备在通过麦克风采集噪声信号时,可采集与该目标频率匹配的噪声信号,从而实现所获得的噪声信号包括目标频率的噪声信号。Therefore, in this embodiment, the audio playback device can use the target frequency as a judgment basis for the collected sound in the environment where it is located. As a way, when the audio playback device collects the noise signal through the microphone, it can collect the noise signal matching the target frequency, so that the obtained noise signal includes the noise signal of the target frequency.
步骤S720:根据所述目标频率的噪声信号生成反相信号,其中,所述目标频率的噪声信号与所述反相信号的波形相位相反。Step S720: Generate an inverted signal according to the noise signal of the target frequency, wherein the noise signal of the target frequency is opposite to the waveform of the inverted signal.
在本实施例中,在获取目标频率的噪声信号后,可以根据目标频率的噪声信号生成反相信号,其中,生成的反相信号与目标频率的噪声信号的波形相位相反。在一些实施方式中,在获取目标频率的噪声信号后,可以计算该目标频率的噪声信号的频谱,并基于该目标频率的噪声信号的频谱生成一个相位相反、振幅相同的反相信号。In this embodiment, after acquiring the noise signal of the target frequency, an inversion signal may be generated according to the noise signal of the target frequency, wherein the generated inversion signal is opposite to the waveform of the noise signal of the target frequency. In some embodiments, after acquiring the noise signal of the target frequency, a spectrum of the noise signal of the target frequency can be calculated, and based on the spectrum of the noise signal of the target frequency, an inverted signal with opposite phases and the same amplitude is generated.
步骤S730:播放所述反相信号。Step S730: Play the inverted signal.
在本实施例中,在获取反相信号后,可以播放反相信号,其中,由于反相信号和目标频率的噪声信号的波形相位相反,因此,播放反相信号可以抵消目标频率的噪声信号,从而可以降低目标频率的噪声信号的影响。另外,由于在本实施例通过反相信号抵消目标频率的噪声信号,从而可以不用增加电子元器件之间的间距,可以实现音频播放设备的小体积设计。In this embodiment, after the inverted signal is acquired, the inverted signal can be played. Since the waveforms of the inverted signal and the noise signal of the target frequency are in opposite phases, playing the inverted signal can cancel the noise signal of the target frequency. Thereby, the influence of the noise signal of the target frequency can be reduced. In addition, since the noise signal of the target frequency is canceled by the inverted signal in this embodiment, it is not necessary to increase the distance between the electronic components, and the small size design of the audio playback device can be realized.
本申请又又再一个实施例提供的音频播放设备的降噪方法,获取目标频率的噪声信号,其中,目标频率与音频播放设备进行蓝牙通信引起的电流声信号的频率相同或频率差值处于预设范围(例如该目标频率与电流声信号的频率接近相同),根据目标频率的噪声信号生成反相信号,其中,目标频率的噪声信号与反相信号的波形相位相反,播放所述反相信号,从而通过播放与目标频率的噪声信号的波形相位相反的反相信号,以降低目标噪声信号的影响,并实现音频播放设备的小体积设计,提升用户的使用体验。Still another embodiment of the present application provides a noise reduction method for an audio playback device, which acquires a noise signal of a target frequency, wherein the target frequency and the current sound signal caused by Bluetooth communication with the audio playback device have the same frequency or a frequency difference in a predetermined frequency. Set the range (for example, the target frequency is close to the same frequency as the current acoustic signal), generate an inverted signal according to the noise signal of the target frequency, wherein the noise signal of the target frequency is opposite to the waveform phase of the inverted signal, and play the inverted signal , so as to reduce the influence of the target noise signal by playing the opposite phase signal with the waveform phase of the noise signal of the target frequency, and realize the small size design of the audio playback device and improve the user experience.
请参阅图14,图14示出了本申请又又另一个实施例提供的音频播放设备的流程示意图。该方法应用于上述音频播放设备,下面将针对图14所示的流程进行详细的阐述,所述音频播放设备的降噪方法具体可以包括以下步骤:Please refer to FIG. 14. FIG. 14 shows a schematic flowchart of an audio playback device provided by yet another embodiment of the present application. This method is applied to the above-mentioned audio playback device. The flow shown in FIG. 14 will be described in detail below. The noise reduction method of the audio playback device may specifically include the following steps:
步骤S810:在蓝牙通信的部分或全部过程中,获取所述目标频率的噪声信号,其中,所述目标频率与所述音频播放设备进行蓝牙通信引起的电流声信号的频率相同或频率差值处于预设范围。Step S810: During part or all of the Bluetooth communication, acquire the noise signal of the target frequency, wherein the target frequency is the same as the frequency of the current sound signal caused by the Bluetooth communication performed by the audio playback device or the frequency difference is in the range of Preset range.
在一些实施方式中,由于在蓝牙通信的部分或全部过程中,音频播放设备会出现特定频率的电流声,即,在蓝牙通信的部分或全部过程中,音频播放设备会产生目标频率的噪声信号。因此,在本实施例中,可以在蓝牙通信的部分或全部过程中,获取目标频率的噪声信号,并对目标频率的噪声信号 进行降噪处理,以提升降噪处理效果。In some implementations, the audio playback device will generate a current sound of a specific frequency during part or all of the Bluetooth communication, that is, during part or all of the Bluetooth communication, the audio playback device will generate a noise signal of the target frequency . Therefore, in this embodiment, the noise signal of the target frequency can be acquired in part or all of the process of the Bluetooth communication, and noise reduction processing is performed on the noise signal of the target frequency, so as to improve the noise reduction processing effect.
在一些实施方式中,由于在建立蓝牙连接的过程中,音频播放设备出现电流声的情况更为突出,即,在建立蓝牙连接的部分或全部过程中,音频播放设备产生的目标频率的噪声信号的情况更为明显。因此,在本实施例中,在建立蓝牙连接的部分或全部过程中,获取目标频率的噪声信号,并对目标频率的噪声信号进行降噪处理,,以提升降噪处理效果。In some embodiments, during the process of establishing the Bluetooth connection, the current sound is more prominent in the audio playback device, that is, during part or all of the process of establishing the Bluetooth connection, the audio playback device generates a noise signal of the target frequency situation is more obvious. Therefore, in this embodiment, during part or all of the process of establishing the Bluetooth connection, the noise signal of the target frequency is acquired, and noise reduction processing is performed on the noise signal of the target frequency, so as to improve the noise reduction processing effect.
在一些实施方式中,由于当在寻呼或查询状态下,引起的电源输出电流的波动会增大,从而可能使得电池、电感等电子器件产生较大电磁场,进而干扰喇叭等敏感器件产生电流声等噪声,即,在蓝牙寻呼或蓝牙查询的部分或全部过程中,音频播放设备产生的目标频率的噪声信号的情况更为明显。因此,在本实施例中,在蓝牙寻呼或蓝牙查询的部分或全部过程中,获取目标频率的噪声信号,并对目标频率的噪声信号进行降噪处理,,以提升降噪处理效果。In some embodiments, the fluctuation of the output current of the power supply will increase when in the paging or query state, which may cause electronic devices such as batteries and inductors to generate a large electromagnetic field, thereby interfering with sensitive devices such as speakers to generate current sound. Equal noise, that is, the case of a noise signal of a target frequency generated by an audio playback device during part or all of a Bluetooth paging or Bluetooth inquiry is more pronounced. Therefore, in this embodiment, in part or all of the process of Bluetooth paging or Bluetooth query, the noise signal of the target frequency is acquired, and noise reduction processing is performed on the noise signal of the target frequency to improve the noise reduction processing effect.
在一些实施方式中,由于在音频播放设备发射蓝牙信号时,音频播放设备的整个系统的功耗会很大,这样从电源模块抽取的电流也会比较大,那么,电流大时流过音频模块(如喇叭)线圈的电磁场也会比较大,也就是噪声信号比较大,即,在音频播放设备发射蓝牙信号的部分或全部过程中,音频播放设备产生的目标频率的噪声信号的情况更为明显。因此,在本实施例中,在音频播放设备发射蓝牙信号的部分或全部过程中,获取目标频率的噪声信号,并对目标频率的噪声信号进行降噪处理,,以提升降噪处理效果。In some embodiments, when the audio playback device transmits a Bluetooth signal, the power consumption of the entire system of the audio playback device will be very large, so the current drawn from the power supply module will also be relatively large, then, when the current is large, it flows through the audio module The electromagnetic field of the coil (such as a speaker) will also be relatively large, that is, the noise signal will be relatively large, that is, during part or all of the process of transmitting the Bluetooth signal by the audio playback device, the noise signal of the target frequency generated by the audio playback device is more obvious. . Therefore, in this embodiment, during part or all of the process of transmitting the Bluetooth signal by the audio playback device, the noise signal of the target frequency is obtained, and the noise signal of the target frequency is subjected to noise reduction processing to improve the noise reduction processing effect.
步骤S820:根据所述目标频率的噪声信号生成反相信号,其中,所述目标频率的噪声信号与所述反相信号的波形相位相反。Step S820: Generate an inverted signal according to the noise signal of the target frequency, wherein the noise signal of the target frequency is opposite to the waveform of the inverted signal.
步骤S830:播放所述反相信号。Step S830: Play the inverted signal.
其中,步骤S820-步骤S830的具体描述请参阅步骤S720-步骤S730,在此不再赘述。The specific description of steps S820 to S830 may refer to steps S720 to S730, which will not be repeated here.
本申请又又另一个实施例提供的音频播放设备降噪方法,在蓝牙通信的部分或全部过程中,获取目标频率的噪声信号,其中,目标频率与音频播放设备进行蓝牙通信引起的电流声信号的频率相同或频率差值处于预设范围(例如该目标频率与电流声信号的频率接近相同),根据目标频率的噪声信号生成反相信号,其中,目标频率的噪声信号与反相信号的波形相位相反,播放反相信号。相较于图10所示的音频播放设备的降噪方法,本实施例还在蓝牙通信的部分或全部过程中获取目标频率的噪声信号,并播放与目标频率的噪声信号的波形相位相反的反相信号,以降低目标噪声信号的影响,提升降噪处理效果。Still another embodiment of the present application provides a noise reduction method for an audio playback device. During part or all of the Bluetooth communication process, a noise signal of a target frequency is acquired, wherein the current acoustic signal caused by the Bluetooth communication between the target frequency and the audio playback device The frequency of the target frequency is the same or the frequency difference value is in a preset range (for example, the target frequency and the frequency of the current acoustic signal are close to the same), and an inverted signal is generated according to the noise signal of the target frequency, wherein the noise signal of the target frequency and the waveform of the inverted signal are Opposite phase, playing the inverted signal. Compared with the noise reduction method of the audio playback device shown in FIG. 10 , the present embodiment also acquires the noise signal of the target frequency during part or all of the Bluetooth communication process, and plays an inverse phase opposite to the waveform of the noise signal of the target frequency. phase signal to reduce the influence of the target noise signal and improve the noise reduction processing effect.
请参阅图15,图15示出了本申请一个实施例提供的音频播放设备的降噪装置的模块框图。该音频播放设备的降噪装置300应用于上述音频播放设备,下面将针对图15所示的框图进行阐述,所述音频播放设备的降噪装置300包括:目标噪声信号获取模块310、反相信号生成模块320以及反相信号播放模块330,其中:Please refer to FIG. 15. FIG. 15 shows a block diagram of a module of a noise reduction apparatus of an audio playback device provided by an embodiment of the present application. The noise reduction device 300 of the audio playback device is applied to the above audio playback device, and the block diagram shown in FIG. 15 will be described below. The noise reduction device 300 of the audio playback device includes: a target noise signal acquisition module 310, an inverted signal The generating module 320 and the inverted signal playing module 330, wherein:
目标噪声信号获取模块310,用于获取所述音频播放设备的目标噪声信号,其中,所述目标噪声信号由所述音频播放设备进行蓝牙通信引起。A target noise signal acquisition module 310 is configured to acquire a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device.
进一步地,所述目标噪声信号获取模块310包括:第一目标噪声信号获取子模块,其中:Further, the target noise signal acquisition module 310 includes: a first target noise signal acquisition sub-module, wherein:
第一目标噪声信号获取子模块,用于在蓝牙通信的部分或全部过程中,获取所述目标噪声信号。The first target noise signal acquisition sub-module is configured to acquire the target noise signal in part or all of the Bluetooth communication process.
进一步地,所述第一目标噪声信号获取子模块包括:电流声信号获取单元和第一目标噪声信号获取单元,其中:Further, the first target noise signal acquisition sub-module includes: a current acoustic signal acquisition unit and a first target noise signal acquisition unit, wherein:
电流声信号获取单元,用于在蓝牙通信的部分或全部过程中,获取电流声信号。The current-acoustic signal acquisition unit is used for acquiring the current-acoustic signal in part or the whole process of the Bluetooth communication.
进一步地,所述音频播放设备包括电源模块和音频模块,所述电流声信号获取单元包括:电流声信号获取子单元,其中:Further, the audio playback device includes a power supply module and an audio module, and the current-acoustic signal acquisition unit includes: a current-acoustic signal acquisition subunit, wherein:
电流声信号获取子单元,用于在蓝牙通信的部分或全部过程中,获取所述音频模块基于所述电源模块的电流变化产生的电流声信号。The current-acoustic signal acquisition subunit is used for acquiring the current-acoustic signal generated by the audio module based on the current change of the power module during part or all of the Bluetooth communication process.
第一目标噪声信号获取单元,用于将所述电流声信号确定为所述目标噪声信号。A first target noise signal acquisition unit, configured to determine the current acoustic signal as the target noise signal.
进一步地,所述音频播放设备包括蓝牙模块,所述目标噪声信号获取模块310包括:发射信号监听子模块和第二目标噪声信号获取子模块,其中:Further, the audio playback device includes a Bluetooth module, and the target noise signal acquisition module 310 includes: a transmission signal monitoring sub-module and a second target noise signal acquisition sub-module, wherein:
发射信号监听子模块,用于当基于所述蓝牙模块发射蓝牙信号时,监听所述蓝牙模块的发射信号。The transmission signal monitoring sub-module is used for monitoring the transmission signal of the Bluetooth module when the Bluetooth signal is transmitted based on the Bluetooth module.
第二目标噪声信号获取子模块,用于基于所述发射信号,获取所述目标噪声信号。The second target noise signal acquisition sub-module is configured to acquire the target noise signal based on the transmit signal.
进一步地,所述发射信号包括发射频率,所述第二目标噪声信号获取子模块包括:第二目标噪声信号获取单元,其中:Further, the transmission signal includes a transmission frequency, and the second target noise signal acquisition sub-module includes: a second target noise signal acquisition unit, wherein:
第二目标噪声信号获取单元,用于按所述发射频率,获取所述目标噪声信号。The second target noise signal obtaining unit is configured to obtain the target noise signal according to the transmission frequency.
进一步地,所述目标噪声信号获取模块310包括:噪声信号采集子模块和第三目标噪声信号获取子模块,其中:Further, the target noise signal acquisition module 310 includes: a noise signal acquisition sub-module and a third target noise signal acquisition sub-module, wherein:
噪声信号采集子模块,用于采集多个噪声信号。The noise signal acquisition sub-module is used to collect multiple noise signals.
第三目标噪声信号获取子模块,用于从所述多个噪声信号中获取属于目标频率的噪声信号,作为所述目标噪声信号A third target noise signal acquisition sub-module, configured to acquire a noise signal belonging to a target frequency from the plurality of noise signals as the target noise signal
反相信号生成模块320,用于根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反。The inverted signal generating module 320 is configured to generate an inverted signal according to the target noise signal, wherein the target noise signal and the waveform of the inverted signal have opposite phases.
反相信号播放模块330,用于播放所述反相信号。The inverted signal playing module 330 is used for playing the inverted signal.
进一步地,所述反相信号播放模块330包括:佩戴状态检测子模块和反相信号播放子模块,其中:Further, the inverting signal playing module 330 includes: a wearing state detection sub-module and an inverting signal playing sub-module, wherein:
佩戴状态检测子模块,用于检测所述蓝牙耳机的佩戴状态。The wearing state detection sub-module is used to detect the wearing state of the Bluetooth headset.
反相信号播放子模块,用于当所述蓝牙耳机处于佩戴状态时,播放所述反相信号。The inverted signal playing sub-module is used for playing the inverted signal when the Bluetooth headset is in a wearing state.
进一步地,所述反相信号播放子模块包括:反相信号播放单元,其中:Further, the inverting signal playing sub-module includes: an inverting signal playing unit, wherein:
反相信号播放单元,用于当所述蓝牙耳机处于佩戴且静音状态时,播放所述反相信号。A reversed-phase signal playing unit, configured to play the reversed-phase signal when the Bluetooth headset is worn and in a mute state.
进一步地,所述音频播放设备的降噪装置300还包括:提示音播放模块,其中:Further, the noise reduction device 300 of the audio playback device further includes: a prompt sound playback module, wherein:
提示音播放模块,用于当所述反相信号未抵消所述目标噪声信号时,播放提示音,其中,所述提示音用于覆盖所述目标噪声信号。A prompt sound playing module, configured to play a prompt sound when the inversion signal does not cancel the target noise signal, wherein the prompt sound is used to cover the target noise signal.
请参阅图16,图16示出了本申请又一个实施例提供的音频播放设备的降噪装置的模块框图。该音频播放设备的降噪装置400应用于上述音频播放设备,下面将针对图16所示的框图进行阐述,所述音频播放设备的降噪装置400包括:噪声信号获取模块410、反相信号生成模块420以及反相信号播放模块430,其中:Referring to FIG. 16, FIG. 16 shows a block diagram of a module of a noise reduction apparatus of an audio playback device provided by yet another embodiment of the present application. The noise reduction device 400 of the audio playback device is applied to the above-mentioned audio playback device. The block diagram shown in FIG. 16 will be described below. The noise reduction device 400 of the audio playback device includes: a noise signal acquisition module 410, an inverted signal generation The module 420 and the inverted signal playing module 430, wherein:
噪声信号获取模块410,用于获取目标频率的噪声信号,其中,所述目标频率与所述音频播放设备进行蓝牙通信引起的电流声信号的频率相同或频率差值处于预设范围。The noise signal obtaining module 410 is configured to obtain a noise signal of a target frequency, wherein the target frequency is the same as the frequency of the current acoustic signal caused by the Bluetooth communication of the audio playback device or the frequency difference is within a preset range.
进一步地,所述噪声信号获取模块410包括:噪声信号获取子模块,其中:Further, the noise signal acquisition module 410 includes: a noise signal acquisition sub-module, wherein:
噪声信号获取子模块,用于在蓝牙通信的部分或全部过程中,获取所述目标频率的噪声信号。The noise signal acquisition sub-module is used for acquiring the noise signal of the target frequency in part or all of the Bluetooth communication process.
反相信号生成模块420,用于根据所述目标频率的噪声信号生成反相信号,其中,所述目标频率的噪声信号与所述反相信号的波形相位相反。The inverted signal generating module 420 is configured to generate an inverted signal according to the noise signal of the target frequency, wherein the noise signal of the target frequency is opposite to the waveform of the inverted signal.
反相信号播放模块430,用于播放所述反相信号。The inverted signal playing module 430 is used for playing the inverted signal.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the above-described devices and modules, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。In several embodiments provided in this application, the coupling between the modules may be electrical, mechanical or other forms of coupling.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically alone, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules.
请参阅图17,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质500中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。Please refer to FIG. 17 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer-readable medium 500 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.
计算机可读存储介质500可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质500包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质500具有执行上述方法中的任何方法步骤的程序代码510的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码510可以例如以适当形式进行压缩。The computer-readable storage medium 500 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 500 includes a non-transitory computer-readable storage medium. Computer readable storage medium 500 has storage space for program code 510 to perform any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. Program code 510 may be compressed, for example, in a suitable form.
综上所述,本申请实施例提供的音频播放设备的降噪方法、装置、电子设备以及存储介质,获取音频播放设备的目标噪声信号,其中,目标噪声信号由音频播放设备进行蓝牙通信引起,根据目标噪声信号生成反相信号,其中,目标噪声信号与反相信号的波形相位相反,播放反相信号,从而通过播放与音频播放设备的目标噪声信号的波形相位相反的反相信号,以降低目标噪声信号的影响,并实现音频播放设备的小体积设计,提升用户的使用体验。To sum up, the noise reduction method, device, electronic device, and storage medium of an audio playback device provided in the embodiments of the present application obtain a target noise signal of the audio playback device, wherein the target noise signal is caused by the Bluetooth communication performed by the audio playback device, An inverted signal is generated according to the target noise signal, wherein the target noise signal is opposite to the waveform phase of the inverted signal, and the inverted signal is played, so as to reduce the The impact of the target noise signal, and realize the small size design of the audio playback device, improve the user experience.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or some technical features thereof are equivalently replaced; and these modifications or replacements do not drive the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (23)

  1. 一种音频播放设备的降噪方法,其特征在于,应用于音频播放设备,所述方法包括:A noise reduction method for audio playback equipment, characterized in that, applied to audio playback equipment, the method comprises:
    获取所述音频播放设备的目标噪声信号,其中,所述目标噪声信号由所述音频播放设备进行蓝牙通信引起;acquiring a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device;
    根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反;generating an inverted signal according to the target noise signal, wherein the target noise signal is opposite to the waveform phase of the inverted signal;
    播放所述反相信号。The inverted signal is played.
  2. 根据权利要求1所述的方法,其特征在于,所述获取所述音频播放设备的目标噪声信号包括:The method according to claim 1, wherein the acquiring the target noise signal of the audio playback device comprises:
    在蓝牙通信的部分或全部过程中,获取所述目标噪声信号。The target noise signal is acquired during part or all of the Bluetooth communication.
  3. 根据权利要求2所述的方法,其特征在于,所述在蓝牙通信的部分或全部过程中包括:在建立蓝牙连接的部分或全部过程中。The method according to claim 2, wherein the part or all of the process of Bluetooth communication comprises: part or all of the process of establishing a Bluetooth connection.
  4. 根据权利要求2所述的方法,其特征在于,所述在蓝牙通信的部分或全部过程中包括:在所述音频播放设备发射蓝牙信号的过程中。The method according to claim 2, wherein the part or the whole process of the Bluetooth communication comprises: the process of transmitting the Bluetooth signal by the audio playback device.
  5. 根据权利要求2所述的方法,其特征在于,所述在蓝牙通信的部分或全部过程中包括:在蓝牙寻呼或蓝牙查询的部分或全部过程中。The method according to claim 2, wherein the part or the whole process of the Bluetooth communication comprises: part or the whole process of the Bluetooth paging or the Bluetooth query.
  6. 根据权利要求2所述的方法,其特征在于,所述在蓝牙通信的部分或全部过程中,获取所述目标噪声信号,包括:The method according to claim 2, wherein the acquiring the target noise signal during part or all of the Bluetooth communication comprises:
    在蓝牙通信的部分或全部过程中,获取电流声信号;Acquiring current acoustic signals during part or all of the Bluetooth communication;
    将所述电流声信号确定为所述目标噪声信号。The current acoustic signal is determined as the target noise signal.
  7. 根据权利要求6所述的方法,其特征在于,所述音频播放设备包括电源模块和音频模块,所述在蓝牙通信的部分或全部过程中,获取电流声信号,包括:The method according to claim 6, wherein the audio playback device comprises a power supply module and an audio module, and in part or all of the bluetooth communication, acquiring the current acoustic signal comprises:
    在蓝牙通信的部分或全部过程中,获取所述音频模块基于所述电源模块的电流变化产生的电流声信号。During part or all of the Bluetooth communication process, the current acoustic signal generated by the audio module based on the current change of the power module is acquired.
  8. 根据权利要求1所述的方法,其特征在于,所述音频播放设备包括蓝牙模块,所述获取所述音频播放设备的目标噪声信号包括:The method according to claim 1, wherein the audio playback device comprises a Bluetooth module, and the acquiring the target noise signal of the audio playback device comprises:
    当基于所述蓝牙模块发射蓝牙信号时,监听所述蓝牙模块的发射信号;When transmitting a Bluetooth signal based on the Bluetooth module, monitor the transmission signal of the Bluetooth module;
    基于所述发射信号,获取所述目标噪声信号。Based on the transmit signal, the target noise signal is acquired.
  9. 根据权利要求8所述的方法,其特征在于,所述发射信号包括发射频率,所述基于所述发射信号,获取所述目标噪声信号,包括:The method according to claim 8, wherein the transmission signal includes a transmission frequency, and the acquiring the target noise signal based on the transmission signal comprises:
    按所述发射频率,获取所述目标噪声信号。According to the transmission frequency, the target noise signal is acquired.
  10. 根据权利要求1所述的方法,其特征在于,所述播放所述反相信号之后,还包括:The method according to claim 1, wherein after the playing the inverted signal, the method further comprises:
    当所述反相信号未抵消所述目标噪声信号时,播放提示音,其中,所述提示音用于覆盖所述目标噪声信号。When the inverted signal does not cancel the target noise signal, a prompt tone is played, wherein the prompt tone is used to cover the target noise signal.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,当所述音频播放设备为蓝牙耳机时,所述播放所述反相信号,包括:The method according to any one of claims 1-10, wherein when the audio playback device is a Bluetooth headset, the playing the inverted signal comprises:
    检测所述蓝牙耳机的佩戴状态;detecting the wearing state of the bluetooth headset;
    当所述蓝牙耳机处于佩戴状态时,播放所述反相信号。When the Bluetooth headset is in a wearing state, the inverted signal is played.
  12. 根据权利要求11所述的方法,其特征在于,所述当所述蓝牙耳机处于佩戴状态时,获取所述目标噪声信号,包括:The method according to claim 11, wherein the acquiring the target noise signal when the Bluetooth headset is in a wearing state comprises:
    当所述蓝牙耳机处于佩戴且静音状态时,播放所述反相信号。When the bluetooth headset is worn and muted, the inverted signal is played.
  13. 根据权利要求1-10任一项所述的方法,其特征在于,所述获取所述音频播放设备的目标噪声信号,包括:The method according to any one of claims 1-10, wherein the acquiring the target noise signal of the audio playback device comprises:
    采集多个噪声信号;Collect multiple noise signals;
    从所述多个噪声信号中获取属于目标频率的噪声信号,作为所述目标噪声信号。A noise signal belonging to a target frequency is obtained from the plurality of noise signals as the target noise signal.
  14. 一种音频播放设备的降噪方法,其特征在于,应用于音频播放设备,所述方法包括:A noise reduction method for audio playback equipment, characterized in that, applied to audio playback equipment, the method comprises:
    获取目标频率的噪声信号,其中,所述目标频率与所述音频播放设备进行蓝牙通信引起的电流声信号的频率相同或频率差值处于预设范围;Acquiring a noise signal of a target frequency, wherein the target frequency is the same as the frequency of the current acoustic signal caused by the Bluetooth communication performed by the audio playback device or the frequency difference is within a preset range;
    根据所述目标频率的噪声信号生成反相信号,其中,所述目标频率的噪声信号与所述反相信号的波形相位相反;generating an inverted signal according to the noise signal of the target frequency, wherein the noise signal of the target frequency is in opposite phase to the waveform of the inverted signal;
    播放所述反相信号。The inverted signal is played.
  15. 根据权利要求14所述的方法,其特征在于,所述获取目标频率的噪声信号包括:The method according to claim 14, wherein the acquiring the noise signal of the target frequency comprises:
    在蓝牙通信的部分或全部过程中,获取所述目标频率的噪声信号。During part or all of the Bluetooth communication, the noise signal of the target frequency is acquired.
  16. 根据权利要求15所述的方法,其特征在于,所述在蓝牙通信的部分或全部过程中包括:在建立 蓝牙连接的部分或全部过程中。The method according to claim 15, wherein the part or all of the process of Bluetooth communication comprises: part or all of the process of establishing a Bluetooth connection.
  17. 根据权利要求15所述的方法,其特征在于,所述在蓝牙通信的部分或全部过程中包括:在所述音频播放设备发射蓝牙信号的过程中。The method according to claim 15, wherein the part or the whole process of the Bluetooth communication comprises: a process in which the audio playback device transmits a Bluetooth signal.
  18. 根据权利要求15所述的方法,其特征在于,所述在蓝牙通信的部分或全部过程中包括:在蓝牙寻呼或蓝牙查询的部分或全部过程中。The method according to claim 15, wherein the performing part or all of the process of Bluetooth communication comprises: part or all of the process of Bluetooth paging or Bluetooth inquiry.
  19. 根据权利要求14所述的方法,其特征在于,目标频率为800HZ,或者为800HZ的谐波。The method according to claim 14, wherein the target frequency is 800 Hz, or a harmonic of 800 Hz.
  20. 一种音频播放设备的降噪装置,其特征在于,应用于音频播放设备,所述装置包括:A noise reduction device for audio playback equipment, characterized in that, applied to audio playback equipment, the device comprises:
    目标噪声信号获取模块,用于获取所述音频播放设备的目标噪声信号,其中,所述目标噪声信号由所述音频播放设备进行蓝牙通信引起;a target noise signal acquisition module, configured to acquire a target noise signal of the audio playback device, wherein the target noise signal is caused by Bluetooth communication performed by the audio playback device;
    反相信号生成模块,用于根据所述目标噪声信号生成反相信号,其中,所述目标噪声信号与所述反相信号的波形相位相反;an inversion signal generating module, configured to generate an inversion signal according to the target noise signal, wherein the target noise signal is opposite to the waveform phase of the inversion signal;
    反相信号播放模块,用于播放所述反相信号。The inverted signal playing module is used for playing the inverted signal.
  21. 一种音频播放设备的降噪装置,其特征在于,应用于音频播放设备,所述装置包括:A noise reduction device for audio playback equipment, characterized in that, applied to audio playback equipment, the device comprises:
    噪声信号获取模块,用于获取目标频率的噪声信号,其中,所述目标频率与所述音频播放设备进行蓝牙通信引起的电流声信号的频率相同或频率差值处于预设范围;A noise signal acquisition module, configured to acquire a noise signal of a target frequency, wherein the target frequency is the same as the frequency of the current acoustic signal caused by the Bluetooth communication of the audio playback device or the frequency difference is within a preset range;
    反相信号生成模块,用于根据所述目标频率的噪声信号生成反相信号,其中,所述目标频率的噪声信号与所述反相信号的波形相位相反;an inversion signal generation module, configured to generate an inversion signal according to the noise signal of the target frequency, wherein the noise signal of the target frequency is opposite to the waveform phase of the inversion signal;
    反相信号播放模块,用于播放所述反相信号。The inverted signal playing module is used for playing the inverted signal.
  22. 一种电子设备,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-13任一项或如权利要求14-19任一项所述的方法。An electronic device comprising a memory and a processor, the memory being coupled to the processor, the memory storing instructions that, when the instructions are executed by the processor, the processor executes as claimed in the claims The method of any of claims 1-13 or any of claims 14-19.
  23. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-13任一项或如权利要求14-19任一项所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores program codes, and the program codes can be invoked by a processor to execute any one of claims 1-13 or as claimed in claims The method of any one of 14-19.
PCT/CN2022/071086 2021-03-26 2022-01-10 Noise reduction method and apparatus for audio playing device, and electronic device and storage medium WO2022199222A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110332705.3A CN115134711A (en) 2021-03-26 2021-03-26 Noise reduction method and device for audio playing equipment, electronic equipment and storage medium
CN202110332705.3 2021-03-26

Publications (1)

Publication Number Publication Date
WO2022199222A1 true WO2022199222A1 (en) 2022-09-29

Family

ID=83375502

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/071086 WO2022199222A1 (en) 2021-03-26 2022-01-10 Noise reduction method and apparatus for audio playing device, and electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN115134711A (en)
WO (1) WO2022199222A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117238307B (en) * 2023-11-13 2024-02-09 深圳云盈网络科技有限公司 Audio optimization processing method and system based on deep learning

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014048175A1 (en) * 2012-09-28 2014-04-03 安百特半导体有限公司 Hearing-aid and anti-noise method and apparatus for bluetooth earphone
CN103873975A (en) * 2014-03-20 2014-06-18 深圳市中兴移动通信有限公司 Bluetooth headset noise reduction method, device and system
CN107454248A (en) * 2017-06-29 2017-12-08 努比亚技术有限公司 A kind of acoustic signal processing method, device and mobile terminal
CN107665714A (en) * 2016-07-28 2018-02-06 海信集团有限公司 Projector equipment noise cancellation method, device and projector equipment
KR20200057312A (en) * 2018-11-16 2020-05-26 심수연 Personalized noise elimination with earplugs and smartphone-based noise reduction method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4346129A3 (en) * 2018-10-12 2024-09-25 Oticon A/s Noise reduction method and system
CN210579188U (en) * 2019-10-09 2020-05-19 深圳泓泰鼎业电子有限公司 Bluetooth headset audio transmission structure

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014048175A1 (en) * 2012-09-28 2014-04-03 安百特半导体有限公司 Hearing-aid and anti-noise method and apparatus for bluetooth earphone
CN103873975A (en) * 2014-03-20 2014-06-18 深圳市中兴移动通信有限公司 Bluetooth headset noise reduction method, device and system
CN107665714A (en) * 2016-07-28 2018-02-06 海信集团有限公司 Projector equipment noise cancellation method, device and projector equipment
CN107454248A (en) * 2017-06-29 2017-12-08 努比亚技术有限公司 A kind of acoustic signal processing method, device and mobile terminal
KR20200057312A (en) * 2018-11-16 2020-05-26 심수연 Personalized noise elimination with earplugs and smartphone-based noise reduction method

Also Published As

Publication number Publication date
CN115134711A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
US9344793B2 (en) Audio apparatus and methods
WO2020010579A1 (en) Smart watch having voice interaction function-enabled earphones
CN110493678B (en) Earphone control method and device, earphone and storage medium
WO2019191950A1 (en) Earphones noise reduction method and apparatus, master earphone, slave earphone, and earphones noise reduction system
WO2015139642A1 (en) Bluetooth headset noise reduction method, device and system
WO2020253844A1 (en) Method and device for processing multimedia information, and storage medium
WO2020107604A1 (en) Wireless playback device, and playback control method and apparatus thereof
US20170034618A1 (en) System and method for data transmission and power supply capability over an audio jack for mobile devices
CN110187859A (en) A kind of denoising method and electronic equipment
JP2023510159A (en) Bluetooth communication method and apparatus
WO2020019843A1 (en) Microphone hole blockage detection method and related product
WO2020063499A1 (en) Wireless earphones
CN109358832A (en) Audio frequency transmission method, device, electronic equipment and storage medium
CN112954530A (en) Earphone noise reduction method, device and system and wireless earphone
CN112771828A (en) Audio data communication method and electronic equipment
WO2022199222A1 (en) Noise reduction method and apparatus for audio playing device, and electronic device and storage medium
WO2015026859A1 (en) Audio apparatus and methods
WO2022242528A1 (en) Volume adjustment method and terminal device
WO2021233398A1 (en) Wireless audio system, wireless communication method, and device
WO2018149073A1 (en) Noise-cancelling headphone and electronic device
CN108391193A (en) A kind of New intellectual earphone
WO2023197474A1 (en) Method for determining parameter corresponding to earphone mode, and earphone, terminal and system
WO2020042491A1 (en) Headphone far-field interaction method, headphone far-field interaction accessory, and wireless headphones
WO2020042490A1 (en) Earphone far-field interaction method, earphone far-field interaction accessory, and wireless earphone
WO2022006949A1 (en) Earbud charging apparatus and electronic device

Legal Events

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

Ref document number: 22773885

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22773885

Country of ref document: EP

Kind code of ref document: A1