Noise reduction method and apparatus
By determining the noise reduction location and generating a target noise reduction signal through the first noise reduction device to cancel out environmental noise, the problem of inconvenience of active noise-canceling headphones during sleep is solved, achieving efficient noise reduction effect and improved sleep quality, while avoiding high modification costs.
Patent Information
- Application Number
- CN202011052306.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-29
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2040-09-29
AI Technical Summary
While sleeping, active noise-canceling headphones are inconvenient to wear and affect sleep quality, while active noise-canceling windows are expensive to modify and cannot effectively block traffic noise.
The first noise reduction device determines the noise reduction position according to the noise reduction command, obtains the target active noise cancellation (ANC) coefficient, generates and plays the target noise reduction signal to cancel the environmental noise signal and improve the noise reduction effect, while eliminating the need to wear active noise cancellation headphones.
In sleep mode, it effectively enhances noise cancellation, improves sleep quality, avoids the inconvenience of wearing active noise-canceling headphones, and reduces modification costs.
Smart Images

Figure CN114333748B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent terminals, and in particular to a noise reduction method and device. BACKGROUND
[0002] In most communities in the city, the sleep rest scene at night is disturbed by traffic noise, and the doors and windows have to be closed. However, some windows with poor sound insulation still cannot isolate environmental noise. Generally, active noise reduction earphones or active noise reduction windows can eliminate environmental noise.
[0003] However, in the sleep state, it is extremely inconvenient for the user to wear active noise reduction earphones, which affects the sleep quality. The active noise reduction window may need to be refitted, which is costly. SUMMARY
[0004] The embodiments of the present application provide a noise reduction method and device. The first noise reduction device can determine a noise reduction position according to a noise reduction instruction. After obtaining a target active noise cancellation (ANC) coefficient corresponding to the noise reduction position, the first noise reduction device can generate and play a target noise reduction signal according to the target ANC coefficient. The target noise reduction signal and the environmental noise signal cancel each other out, so that the user in the sleep state can effectively improve the noise reduction effect according to the determined noise reduction position, and the user does not need to worry about the inconvenience of wearing active noise reduction earphones, and the sleep quality is improved.
[0005] In a first aspect, the embodiments of the present application provide a noise reduction method applied to a first noise reduction device, including: receiving a noise reduction instruction; determining a noise reduction position according to the noise reduction instruction; obtaining a target active noise cancellation (ANC) coefficient corresponding to the noise reduction position; generating a target noise reduction signal according to the target ANC coefficient; and playing the target noise reduction signal by the first noise reduction device. In this way, the first noise reduction device can determine a noise reduction position according to a noise reduction instruction, so that after obtaining an ANC coefficient corresponding to the noise reduction position, the first noise reduction device can generate and play a target noise reduction signal according to the target ANC coefficient. The target noise reduction signal and the environmental noise signal cancel each other out, so that the first noise reduction device can effectively improve the noise reduction effect according to the determined noise reduction position.
[0006] In a possible implementation, the first noise reduction device determines the noise reduction position according to the noise reduction instruction, including: playing the first signal in response to the noise reduction instruction; receiving the second signal from the auxiliary device, the second signal being a signal obtained by the auxiliary device receiving the first signal, the auxiliary device being located at the noise reduction position; adjusting the coefficient of the SP filter according to the signal obtained by processing the first signal by the SP filter and the second signal, until the difference between the signal obtained by processing the first signal by the SP filter and the second signal is less than the first value, and / or the change rate of the coefficient of the SP filter is less than the threshold value, to obtain the target SP filter. In this way, the first noise reduction device can determine the noise reduction position according to the target SP filter.
[0007] In a possible implementation, the target ANC coefficient corresponding to the noise reduction position is obtained, including: playing the first noise reduction signal according to the first ANC coefficient; obtaining the current environmental noise, the current environmental noise being noise obtained by superimposing the first noise reduction signal and the actual environmental noise; filtering the current environmental noise by using the target SP filter to obtain the third signal; obtaining the fourth signal from the auxiliary device, the fourth signal being obtained by the auxiliary device collecting the current environmental noise; adjusting the first ANC coefficient according to the third signal and the fourth signal, until the difference between the third signal and the fourth signal is less than the second value, to obtain the target ANC coefficient.
[0008] In a possible implementation, the first noise reduction device is applied to a noise reduction system, and the noise reduction system further includes a second noise reduction device, and the second signal is related to the signal played by the first noise reduction device in response to the noise reduction instruction, or the signal played by the second noise reduction device in response to the noise reduction instruction.
[0009] In a possible implementation, the second signal satisfies the following formula: wherein, MIC1 is the signal played by the first noise reduction device in response to the noise reduction instruction, MIC2 is the signal played by the second noise reduction device in response to the noise reduction instruction, S RL is MIC2 / MIC1, S LR is MIC1 / MIC2.
[0010] In a possible implementation, the noise reduction instruction is a voice instruction, and determining the noise reduction position according to the noise reduction instruction includes: receiving a fifth signal from the second noise reduction device, the fifth signal being a signal received by the second noise reduction device after receiving the noise reduction instruction; and determining the noise reduction position according to the fifth signal and a sixth signal received by the first noise reduction device after receiving the noise reduction instruction. In this way, the first noise reduction device can determine the noise reduction position according to the noise reduction instruction, so that after obtaining the ANC coefficient corresponding to the noise reduction position, the first noise reduction device can generate and play a target noise reduction signal according to the target ANC coefficient, the target noise reduction signal and the environmental noise signal cancel each other out, thereby enabling the first noise reduction device to effectively improve the noise reduction effect according to the determined noise reduction position when the user is in a sleep state, and meanwhile, the user does not need to worry about the inconvenience caused by wearing active noise reduction earphones, and the sleep quality is improved.
[0011] In a possible implementation, the noise reduction position is determined according to the fifth signal and the sixth signal received by the first noise reduction device after receiving the noise reduction instruction, including: determining a time difference according to a receiving time of the fifth signal and a receiving time of the sixth signal; determining an energy difference according to a signal energy of the fifth signal and a signal energy of the sixth signal; and determining the noise reduction position according to the time difference and the energy difference.
[0012] In a possible implementation, the distance x from the noise reduction position to the first noise reduction device satisfies the following formula: x = c × Δt. wherein c is a sound propagation speed, Δt is the time difference, ΔE is the energy difference, and d0 is a central position between the first noise reduction device and the second noise reduction device.
[0013] In a possible implementation, the target ANC coefficient corresponding to the noise reduction position is obtained, including: searching an active noise cancellation ANC coefficient table according to the noise reduction position to determine the target ANC coefficient corresponding to the noise reduction position.
[0014] In a possible implementation, the target noise reduction signal includes anti-phase noise of the environmental noise.
[0015] In a second aspect, an embodiment of the present application provides a noise reduction device. The noise reduction device can be a sound box, an active noise reduction headrest, an active noise reduction pillow, a separate active noise reduction headrest, or a separate active noise reduction pillow. The noise reduction device can also be a chip or a chip system in the sound box, the active noise reduction headrest, the active noise reduction pillow, the separate active noise reduction headrest, or the separate active noise reduction pillow. The noise reduction device can include a processing unit and a communication unit. When the noise reduction device is the sound box, the active noise reduction headrest, the active noise reduction pillow, the separate active noise reduction headrest, or the separate active noise reduction pillow, the processing unit can be a processor, and the communication unit can be a communication interface or an interface circuit. The noise reduction device can further include a storage unit, which can be a memory. The storage unit is configured to store instructions, and the processing unit executes the instructions stored in the storage unit to enable the sound box, the active noise reduction headrest, the active noise reduction pillow, the separate active noise reduction headrest, or the separate active noise reduction pillow to implement a noise reduction method described in the first aspect or any possible implementation manner of the first aspect. When the noise reduction device is the chip or the chip system in the sound box, the active noise reduction headrest, the active noise reduction pillow, the separate active noise reduction headrest, or the separate active noise reduction pillow, the processing unit can be a processor, and the communication unit can be a communication interface. For example, the communication interface can be an input / output interface, a pin, or a circuit. The processing unit executes the instructions stored in the storage unit to enable the sound box, the active noise reduction headrest, the active noise reduction pillow, the separate active noise reduction headrest, or the separate active noise reduction pillow to implement a noise reduction method described in the first aspect or any possible implementation manner of the first aspect. The storage unit can be a storage unit (for example, a register, a cache, or the like) in the chip, or a storage unit (for example, a read-only memory, a random access memory, or the like) outside the chip in the sound box, the active noise reduction headrest, the active noise reduction pillow, the separate active noise reduction headrest, or the separate active noise reduction pillow.
[0016] For example, the communication unit is configured to receive a noise reduction instruction; the processing unit is configured to determine a noise reduction position according to the noise reduction instruction; the processing unit is configured to obtain a target active noise cancellation (ANC) coefficient corresponding to the noise reduction position; the processing unit is configured to generate a target noise reduction signal according to the target ANC coefficient; and the communication unit is configured to play the target noise reduction signal.
[0017] In a possible implementation, the processing unit is specifically configured to play the first signal in response to the noise reduction instruction; the communication unit is specifically configured to receive the second signal from the auxiliary device, the second signal being a signal obtained by the auxiliary device receiving the first signal, the auxiliary device being located at the noise reduction position; the processing unit is specifically configured to adjust coefficients of the SP filter according to a signal obtained by processing the first signal through the SP filter and the second signal until a difference between the signal obtained by processing the first signal through the SP filter and the second signal is less than a first value and / or a change rate of the coefficients of the SP filter is less than a threshold value, and obtain the target SP filter.
[0018] In a possible implementation, the processing unit is specifically configured to play the first noise reduction signal according to the first ANC coefficient; the processing unit is specifically configured to obtain the current environmental noise, the current environmental noise being noise obtained by superimposing the first noise reduction signal and the actual environmental noise; the processing unit is specifically configured to filter the current environmental noise by using the target SP filter to obtain a third signal; and the processing unit is specifically configured to adjust the first ANC coefficient according to the third signal and a fourth signal until a difference between the third signal and the fourth signal is less than a second value, and obtain the target ANC coefficient.
[0019] In a possible implementation, the first noise reduction device is applied to a noise reduction system, and the noise reduction system further includes a second noise reduction device, and the second signal is related to a signal played by the first noise reduction device in response to the noise reduction instruction or a signal played by the second noise reduction device in response to the noise reduction instruction.
[0020] In a possible implementation, the second signal satisfies the following formula: wherein MIC1 is the signal played by the first noise reduction device in response to the noise reduction instruction, MIC2 is the signal played by the second noise reduction device in response to the noise reduction instruction, S RL is MIC2 / MIC1, and S LR is MIC1 / MIC2.
[0021] In a possible implementation, the communication unit is specifically configured to receive a fifth signal from the second noise reduction device, the fifth signal being a signal obtained by the second noise reduction device receiving the noise reduction instruction; and the processing unit is specifically configured to determine the noise reduction position according to the fifth signal and a sixth signal obtained by the first noise reduction device receiving the noise reduction instruction.
[0022] In a possible implementation, the processing unit is specifically configured to determine a time difference according to a receiving time of the fifth signal and a receiving time of the sixth signal; the processing unit is specifically configured to determine an energy difference according to a signal energy of the fifth signal and a signal energy of the sixth signal; and the processing unit is specifically configured to determine the noise reduction position according to the time difference and the energy difference.
[0023] In a possible implementation, a distance x from the noise reduction position to the first noise reduction device satisfies the following formula: x = c x At; where c is a propagation speed of sound, At is a time difference, AE is an energy difference, and d0 is a central position between the first noise reduction device and the second noise reduction device.
[0024] In a possible implementation, the processing unit is specifically configured to search for an active noise cancellation (ANC) coefficient table according to the noise reduction position, and determine a target ANC coefficient corresponding to the noise reduction position.
[0025] In a possible implementation, the target noise reduction signal includes anti-phase noise of the environmental noise.
[0026] In a third aspect, an embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores a computer program or instructions, when the computer program or instructions run on a computer, the computer is caused to execute the noise reduction method described in any one of the implementations of the first aspect to the first aspect.
[0027] In a fourth aspect, an embodiment of the present application provides a computer program product including instructions, when the instructions run on a computer, the computer is caused to execute the noise reduction method described in any one of the implementations of the first aspect to the first aspect.
[0028] In a fifth aspect, an embodiment of the present application provides a noise reduction device, and the device includes a processor and a storage medium, the storage medium stores instructions, and the instructions are run by the processor to implement the noise reduction method described in any one of the implementations of the first aspect to the first aspect.
[0029] In a sixth aspect, the present application provides a chip or chip system, and the chip or chip system includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected through a line, and the at least one processor is configured to run a computer program or instructions to perform the noise reduction method described in any one of the implementations of the first aspect to the first aspect. The communication interface in the chip can be an input / output interface, a pin, or a circuit, etc.
[0030] In a possible implementation, the chip or chip system described in the present application further includes at least one memory, and the at least one memory stores instructions. The memory can be a storage unit inside the chip, for example, a register, a cache, etc., or a storage unit of the chip (for example, a read-only memory, a random access memory, etc.).
[0031] It should be understood that the second aspect to the sixth aspect of the embodiments of the present application correspond to the technical solution of the first aspect of the embodiments of the present application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation manner are similar, and will not be described again. BRIEF DESCRIPTION OF DRAWINGS
[0032] Figure 1 A functional block diagram of an audio amplifier provided by an embodiment of the present application;
[0033] Figure 2 A functional block diagram of an audio amplifier provided by an embodiment of the present application;
[0034] Figure 3 A software structure block diagram of an audio amplifier provided by an embodiment of the present application;
[0035] Figure 4 A system architecture of an application scenario provided by an embodiment of the present application;
[0036] Figure 5 A system architecture of an application scenario provided by an embodiment of the present application;
[0037] Figure 6 A system architecture of an application scenario provided by an embodiment of the present application;
[0038] Figure 7 A processing flow of a noise reduction method provided by an embodiment of the present application;
[0039] Figure 8 A flowchart of a noise reduction method provided by an embodiment of the present application;
[0040] Figure 9 A system architecture of an application scenario provided by an embodiment of the present application;
[0041] Figure 10 An application scenario of secondary path (SP) modeling provided by an embodiment of the present application;
[0042] Figure 11 An SP modeling block diagram based on a least mean square (LMS) algorithm provided by an embodiment of the present application;
[0043] Figure 12 An ANC coefficient update based on a filter x least mean square (FxLMS) algorithm provided by an embodiment of the present application;
[0044] Figure 13 A system architecture of an application scenario provided by an embodiment of the present application;
[0045] Figure 14A schematic diagram of updating ANC coefficients by using a table lookup method according to an embodiment of the present application;
[0046] Figure 15 A structural schematic diagram of a noise reduction device according to an embodiment of the present application;
[0047] Figure 16 A hardware structural schematic diagram of a noise reduction device according to an embodiment of the present application. DETAILED DESCRIPTION
[0048] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the same items or similar items with basically the same functions and effects are distinguished by using "first", "second", etc. For example, the first information and the second information are only used to distinguish different information, and the order is not limited. Those skilled in the art can understand that "first", "second", etc. do not limit the quantity and execution order, and "first", "second", etc. also do not mean that they must be different.
[0049] It should be noted that in the embodiments of the present application, "exemplary" or "for example" is used to represent an example, illustration or description. Any embodiment or design scheme described as "exemplary" or "for example" in the present application should not be interpreted as more preferred or more advantageous than other embodiments or design schemes. Rather, the use of "exemplary" or "for example" is intended to present the relevant concept in a specific manner.
[0050] In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And / or" describes the association relationship between the associated objects, which means that there can be three kinds of relationships, for example, A and / or B, which can represent the following three cases: A exists alone, A and B exist together, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after it. "At least one of the following" or similar expressions means any combination of these items, including any combination of single item or multiple items. For example, at least one of a, b, or c, can represent a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
[0051] In most of the urban communities, the adjacent roads cause the residents' night sleep to be disturbed by the road traffic noise. The residents have to close the doors and windows to isolate the noise. However, even if the windows are closed, some windows with poor sound insulation still cannot isolate the environmental noise. Generally, although the active noise reduction earphones can eliminate the environmental noise, it is extremely inconvenient to wear during sleep and will shield the television sound when watching television, affecting the user experience. The active noise reduction window can further improve the noise reduction effect of the room, but needs to be refitted, which is high in transformation cost.
[0052] In a possible implementation, the active noise reduction external device can include a signal processing device, a sound pickup (or microphone), a wireless transmission module, a sound box, a signal processing device built-in loudspeaker, and a signal processing device built-in loudspeaker. The microphone can be used to collect environmental noise, and the signal processing device can output inverse noise. In a possible manner, the inverse noise is transmitted to the existing sound system through the wireless transmission module, and the existing sound system plays the inverse noise. In a possible manner, the inverse noise is transmitted to the external sound box through the wire, and the external sound box plays the inverse noise. In a possible manner, the inverse noise is transmitted to the existing sound system through the audio adapter, and the existing sound system plays the inverse noise. In a possible manner, the inverse noise is directly transmitted to the signal processing device built-in loudspeaker, and the loudspeaker plays the inverse noise.
[0053] In another possible implementation, the active noise reduction sound box can include a microphone module, a loudspeaker module, and a digital signal processor (DSP) digital audio controller. The number of microphones can be one or more, and the DSP digital audio controller can be connected to the microphone module and the loudspeaker module through wired and / or wireless means.
[0054] However, the active noise reduction device described above plays the same inverse noise at any position, and cannot form an effective noise reduction effect for the position where the user wants to reduce noise.
[0055] Therefore, the embodiments of the present application provide a noise reduction method. The first noise reduction device can determine the noise reduction position according to the noise reduction instruction, so that the first noise reduction device can generate and play a target noise reduction signal according to the target ANC coefficient after obtaining the target ANC coefficient corresponding to the noise reduction position. The target noise reduction signal and the environmental noise signal cancel each other out, so that the user in the sleep state can effectively improve the noise reduction effect according to the determined noise reduction position, and the user also does not need to worry about the inconvenience caused by wearing the active noise reduction earphones, thereby improving the sleep quality.
[0056] The method in this application embodiment can be applied to a first noise reduction device, which may include a speaker, an active noise-canceling headrest, an active noise-canceling pillow, an independent active noise-canceling headrest, an independent active noise-canceling pillow, or a device with noise reduction function.
[0057] When the first noise-canceling device is an independent active noise-canceling headrest or an independent active noise-canceling pillow, the speaker and microphone of the first noise-canceling device can share the same main processing chip, eliminating the function of wireless data transmission between microphones and eliminating the need for wireless interaction.
[0058] In this embodiment, the first noise-canceling device may have a paired second noise-canceling device. The second noise-canceling device may include a speaker, an active noise-canceling headrest, an active noise-canceling pillow, a separate active noise-canceling headrest, a separate active noise-canceling pillow, or a device with noise-canceling functionality. The first noise-canceling device may also have a paired auxiliary device, which may include true wireless stereo (TWS) earphones or a mobile phone. For ease of description, the following examples will use a first speaker as the first noise-canceling device, a second speaker as the second noise-canceling device, and earphones or a mobile phone as the auxiliary device.
[0059] For example, Figure 1 This is a schematic diagram of the functional block diagram of a speaker provided in an embodiment of this application, such as... Figure 1 As shown, the speaker 100 may include one or more input devices 101, one or more output devices 102, and one or more processors 103. The input devices 102 can detect various types of input signals (hereinafter referred to as "inputs"), and the output devices 102 can provide various types of output information (hereinafter referred to as "outputs"). The processors 103 can receive input signals from one or more input devices 101, and in response to the input signals, generate output information and output it through one or more output devices 102.
[0060] In some implementations, the one or more input devices 101 can detect various types of inputs and provide signals (e.g., input signals) corresponding to the detected inputs. The one or more input devices 101 can then provide the input signals to the one or more processors 103. For example, the one or more input devices 101 can include any component or assembly capable of detecting input signals. For example, the input devices 101 can include audio sensors (e.g., one or more microphones), distance sensors, optical or visual sensors (e.g., cameras, visible light sensors, or non-visible light sensors), proximity light sensors, touch sensors, pressure sensors, mechanical devices (e.g., a crown, a switch, a button, or a key), temperature sensors, communication devices (e.g., wired or wireless communication devices), or the like, or some combination thereof.
[0061] In some implementations, the one or more output devices 102 can provide various types of outputs. For example, the one or more output devices 102 can receive one or more signals (e.g., output signals provided by the one or more processors 103) and provide outputs corresponding to the signals. In some implementations, the output devices 102 can include any suitable component or assembly for providing outputs. For example, the output devices 102 can include audio output devices (e.g., one or more speakers), visual output devices (e.g., one or more lights or displays), tactile output devices, communication devices (e.g., wired or wireless communication devices), or the like, or some combination thereof.
[0062] In some implementations, the one or more processors 103 can be coupled to the input devices 101 and the output devices 102. The processors 103 can communicate with the input devices 101 and the output devices 102. For example, the one or more processors 103 can receive input signals (e.g., input signals corresponding to inputs detected by the input devices 101) from the input devices 101. The one or more processors 103 can parse the received input signals to determine whether to provide one or more corresponding outputs in response to the input signals. If so, the one or more processors 103 can send output signals to the output devices 102 to provide the outputs.
[0063] It can be appreciated that, Figure 1 The illustrated device structure is not meant to be a specific limitation of the soundbar, which can include more or fewer components than those shown, or combine some components, or split some components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
[0064] For example, Figure 2A functional block diagram of an audio amplifier provided in an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the audio amplifier 200 can include a processor 201, a memory 202, a communication interface 203, a microphone 204, a speaker 205, and the like, which can communicate through one or more communication buses or signal lines (not shown in the figure). Figure 2
[0065] The various components of the audio amplifier 200 will be described in detail below. Figure 2 The various components of the audio amplifier 200 will be described in detail below.
[0066] The processor 201 is the control center of the audio amplifier 200, which connects various parts of the audio amplifier 200 through various interfaces and lines, and performs various functions and processes data of the audio amplifier 200 by running or executing application programs stored in the memory 202 and calling data stored in the memory 202.
[0067] In possible manners, the processor 201 can include one or more processing units, such as an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated in one or more processors. The controller can be the nerve center and command center of the audio amplifier 200. The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching and executing instructions. In possible manners, the processor 201 can also be provided with a memory for storing instructions and data. For example, the memory in the processor 201 is a cache memory. The memory can save instructions or data that have just been used or are repeatedly used by the processor 201. If the processor 201 needs to use the instructions or data again, it can directly call them from the memory, avoiding repeated access and reducing the waiting time of the processor 201, thereby improving the efficiency of the system. The processor 201 can run software codes / modules of the device control method provided in the embodiment of the present application to realize the function of controlling the audio amplifier 200.
[0068] The memory 202 is configured to store applications and data, and the processor 201 executes various functions of the sound box 200 and data processing by running the applications and data stored in the memory 202. The memory 202 mainly includes a storage program area and a storage data area, wherein the storage program area can store an operating system (OS) or at least one application required by a function (such as a sound playing function, a voice collecting function, etc.); the storage data area can store data created during use of the sound box (such as audio data, etc.). In addition, the memory 202 can include a high-speed random access memory (RAM) and can also include a nonvolatile memory such as a disk storage device, a flash memory device, or other volatile solid-state memory devices. In a possible manner, the memory 202 can store information such as a "wake-up word". In a possible manner, the memory 202 can also store audio information (such as songs, cross-talk or story-telling, etc.). In addition, the memory 202 can store various operating systems. The above memory 202 can be independent and connected to the processor 201 through the above communication bus; the memory 202 can also be integrated with the processor 201.
[0069] The communication interface 203 can be a wired interface (for example, an Ethernet interface) or a wireless interface (for example, a cellular network interface or a wireless local area network interface).
[0070] In a possible manner, the communication interface 203 can also provide an audio circuit between the user and the sound box. On the one hand, the audio circuit can convert the received audio signal into an audio electrical signal and transmit the audio electrical signal to the loudspeaker 205 for conversion into a sound signal and output. On the other hand, the microphone 204 collects a sound signal (for example, a voice uttered by the user) and converts the sound signal into an electrical signal, which is received by the audio circuit and converted into audio data (or voice data), and then the audio data is output.
[0071] The microphone 204, also known as a "microphone" or a "sound collector", is configured to collect a sound signal (for example, a sound signal uttered by a user) and convert the sound signal into an electrical signal. In a possible manner, the sound box 200 can be provided with one or more microphones 204, such as a microphone array. In another embodiment, the microphone 204 can also implement a noise reduction function on the sound signal, or can also identify the source of the sound signal or implement a directional recording function, etc.
[0072] The loudspeaker 205, also known as a "loudspeaker", is configured to convert an audio electrical signal into a sound signal. The sound box 200 can play a music sound signal through the loudspeaker 205.
[0073] In a possible implementation, the microphone 204 and the speaker 205 are coupled to the processor 201. For example, after the microphone 204 receives a sound signal, the microphone 204 sends the sound signal or an audio electrical signal converted from the sound signal to the processor 201. The processor 201 determines whether to respond to the sound signal or the audio electrical signal, and if so, outputs a corresponding output signal, for example, plays music through the speaker 205.
[0074] In addition, the sound box 200 can include or not include a display 206. The display 206 can be used to display a display interface of an application, for example, a currently played song. The display 206 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, or a quantum dot light emitting diode (QLED).
[0075] In a possible implementation, the display 206 can be provided with a touch sensor to form a touch screen, which is not limited in the present application. The touch sensor is used to detect a touch operation acting on or near the touch sensor. The touch sensor can transmit the detected touch operation to the processor 201 to determine a touch event type. The processor 201 can provide visual output related to the touch operation through the display 206.
[0076] In addition, the sound box 200 can further include a power supply device 207 (for example, a battery and a power management chip) for supplying power to each component. The battery can be logically connected to the processor 201 through the power management chip, so as to realize functions such as management of charging, discharging, and power consumption management through the power supply device 207.
[0077] In addition, the sound box 200 can further include a sensor module 208, which can include an air pressure sensor or a temperature sensor. In actual applications, the sound box 200 can further include more or fewer sensors, or replace the above-mentioned sensors with other sensors having the same or similar functions, which is not limited in the present application.
[0078] A temperature sensor is configured to detect temperature. In some embodiments, the processor 201 can be coupled with the temperature sensor, and the temperature value detected by the temperature sensor can be used to assist in calculations, such as calculating the attenuation coefficient of sound.
[0079] A temperature sensor is configured to detect temperature. In some embodiments, the processor 201 can be coupled with the temperature sensor, and the temperature value detected by the temperature sensor can be used to assist in calculations, such as calculating the attenuation coefficient of sound.
[0080] It can be understood that, Figure 2 The device structure shown in FIG. 1 is not intended to limit the specific implementation of the sound box. In some embodiments, the sound box can include more or fewer components than those shown in the figure, or some components can be combined, or some components can be split, or different components can be arranged. The components shown in the figure can be implemented in hardware, software, or a combination of software and hardware.
[0081] The software system of the sound box can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. The embodiments of the present application take an Android system with a layered architecture as an example to illustrate the software structure of the sound box. Figure 3 A software structure block diagram of a sound box is shown.
[0082] The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0083] The application layer can include a series of application packages.
[0084] As shown in Figure 3 The application package can include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, game, shopping, travel, instant messaging (such as short message), smart home, device control, and the like.
[0085] Among them, the smart home application can be used to control or manage home devices with networking functions. For example, the home devices can include electric lights, televisions, and air conditioners. For another example, the home devices can also include security door locks, sound boxes, sweeping robots, sockets, body fat scales, table lamps, air purifiers, refrigerators, washing machines, water heaters, microwave ovens, rice cookers, curtains, fans, televisions, set-top boxes, or doors and windows, etc. The device control application is used to control or manage a single device.
[0086] In addition, the application package may also include system applications such as the home screen (i.e., the desktop), the negative one screen, the control center, the notification center, card applications, and card service applications.
[0087] The -1 screen, also known as the negative one screen, refers to the user interface (UI) displayed when swiping right from the main screen of an electronic device until the leftmost split screen is reached. For example, the -1 screen can be used to display quick service functions and notifications, such as global search, shortcuts to specific pages within applications (payment codes, etc.), instant information and reminders (express delivery information, expense information, traffic conditions, ride-hailing information, or schedule information, etc.), and monitored events (football stands, basketball stands, or stock information, etc.). The control center is the pull-down notification bar of the electronic device, i.e., the user interface displayed when the user pulls down on the device. The notification center is the pull-up notification bar of the electronic device, i.e., the user interface displayed when the user pulls up on the device. Card service applications provide card services to support card UI display, card sharing between different applications within the same device, and card sharing across devices.
[0088] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0089] like Figure 3 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, or notification manager, etc.
[0090] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0091] Content providers store and retrieve data, making that data accessible to applications. This data can include made and received phone calls, browsing history and bookmarks, videos, images, audio, or phone books, etc.
[0092] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0093] The phone manager is used to provide communication functions for the speaker, such as managing call status (including connection and disconnection).
[0094] The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc.
[0095] The notification manager enables an application to display notification information in the status bar, which can be used to convey a message of the notification type, and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the completion of the download, message reminders, etc. The notification manager can also be a notification in the form of a chart or a scroll bar text appearing in the system top status bar, such as a notification of an application running in the background, and can also be a notification in the form of a dialog window appearing on the screen. For example, a text information prompt in the status bar, a prompt sound, a speaker vibration, a flashing indicator light, etc.
[0096] The Android Runtime includes the core library and the virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system.
[0097] The core library contains two parts: one part is the function function called by the java language, and the other part is the core library of Android.
[0098] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java file of the application layer and the application framework layer into a binary file. The virtual machine is used to perform the management of the object life cycle, the management of the stack, the management of the thread, the management of the security and the exception, and the garbage collection, etc.
[0099] The system library can include multiple functional modules. For example: surface manager, media library, three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
[0100] The surface manager is used to manage the display subsystem, and provides the fusion of 2D and 3D layers for multiple applications.
[0101] The media library supports multiple commonly used audio, video format playback and recording, and static image files, etc. The media library can support multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0102] The three-dimensional graphics processing library is used to realize three-dimensional graphics drawing, image rendering, synthesis, and layer processing, etc.
[0103] The 2D graphics engine is a drawing engine for 2D drawing.
[0104] The kernel layer is a layer between hardware and software. The kernel layer at least includes a display driver, a camera driver, an audio driver, and a sensor driver.
[0105] Exemplarily, Figure 4 A system architecture schematic diagram of an application scenario provided by an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the system includes a first sound box and a second sound box. The first sound box and the second sound box can include at least one microphone, at least one loudspeaker, and an audio signal processing chip. The first sound box and the second sound box can be placed on two sides symmetrical to the head position of a person. The microphones of the first sound box and the second sound box can pick up environmental noise, and the loudspeakers of the first sound box and the second sound box can play target noise reduction signals, so as to achieve noise reduction in a noise reduction area. Figure 4 Exemplarily,
[0106] A system architecture schematic diagram of an application scenario provided by an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the system includes a first sound box and a second sound box. The first sound box and the second sound box can include at least one microphone, at least one loudspeaker, and an audio signal processing chip. The first sound box and the second sound box can be placed on two sides symmetrical to the head position of a person. The microphones of the first sound box and the second sound box can pick up environmental noise, and the loudspeakers of the first sound box and the second sound box can play target noise reduction signals, so as to achieve noise reduction in a noise reduction area. Figure 5 A system architecture schematic diagram of an application scenario provided by an embodiment of the present application is shown in FIG. 1. As shown in FIG. 1, the system includes a first sound box and a second sound box. The first sound box and the second sound box can include at least one microphone, at least one loudspeaker, and an audio signal processing chip. The first sound box and the second sound box can be placed on two sides symmetrical to the head position of a person. The microphones of the first sound box and the second sound box can pick up environmental noise, and the loudspeakers of the first sound box and the second sound box can play target noise reduction signals, so as to achieve noise reduction in a noise reduction area. Figure 5 The audio signal processing chip can be used for processing audio algorithms such as voice recognition, active noise reduction, and sound effects. For example, the audio signal processing chip can be used to send a local audio playing signal (which can also be referred to as a first signal) or a local microphone signal (which can also be referred to as a sixth signal), and can be used to receive an opposite-end microphone signal (which can also be referred to as a fifth signal), a microphone signal of a headset or a mobile phone (which can also be referred to as a second signal). The audio signal processing chip can include a main control module, a wireless / bluetooth module, a voice recognition / sound effect module, a sound source positioning module, and an active noise reduction processing module.
[0107] In a possible manner, the main control module can be used for scheduling of opening, closing, or running of all services in the sound box, and can also be used for micro operating system functions.
[0108] In a possible manner, the wireless / bluetooth module can be used to pair the first sound box and the second sound box, so as to complete mutual transmission of audio data. For example, the wireless / bluetooth module can transmit the microphone / audio playing signal of the first sound box to the second sound box, and receive the microphone / audio playing signal from the second sound box. For example, the wireless / bluetooth module can simultaneously connect to a headset or a mobile phone, and receive the microphone signal transmitted by the headset or the mobile phone.
[0109] In a possible manner, the voice recognition module can use signals collected by the microphones of the first sound box and the second sound box as input, recognize a user noise reduction instruction, and output a corresponding feedback audio signal (for example, voice or music) to the loudspeaker. The loudspeaker can play out the feedback audio signal.
[0110] In a possible manner, the sound source positioning module can take the noise reduction instructions collected by the microphone of the first sound box and the noise reduction instructions collected by the microphone of the second sound box as inputs, calculate the position information of the user's head through the correlation and energy difference of the user's noise reduction instructions between the first sound box and the second sound box, and output the position information to the active noise reduction processing module.
[0111] In a possible manner, the active noise reduction processing module is internally provided with a pre-designed ANC coefficient table corresponding to different positions of the noise reduction device. The first sound box and the second sound box can find the ANC coefficient closest to the position information through the ANC coefficient table by using the position information output by the sound source positioning module, obtain the target ANC coefficient, and make the environmental noise pass through the target ANC coefficient filter determined by the target ANC coefficient, so as to obtain the target noise reduction signal. The speaker of the noise reduction device plays the target noise reduction signal, and the target noise reduction signal and the environmental noise cancel each other out, thereby achieving noise reduction at the noise reduction position.
[0112] In Figure 5 In a corresponding embodiment, the audio signal processing chip included in the second sound box is similar to the audio signal processing chip included in the first sound box. The modules included in the audio signal processing chip and the implementation functions of the modules are also similar, and thus will not be described herein.
[0113] In a possible manner, Figure 6 The system architecture schematic diagram of an application scenario provided by the embodiment of the present application is similar to Figure 5 In a corresponding embodiment, the audio signal processing chip further includes an SP online modeling module. Figure 6
[0114] In a possible manner, when the auxiliary device such as the earphone or the mobile phone is not paired and connected with the first sound box, the SP online modeling module of the first sound box does not play a role. For details, refer to Figure 5 The method of the corresponding content will not be described herein.
[0115] Among the possible ways, when the auxiliary device such as the earphone or the mobile phone is connected with the first sound box, the first sound box can start the SP online modeling module, and further, the first sound box can determine the noise reduction position by using the SP online modeling module. For example, the user can collect the feedback audio signal played by the first sound box through the microphone of the mobile phone, or the user can collect the feedback audio signal played by the first sound box through the microphone of the earphone worn by the user. In this way, the earphone or the mobile phone can transmit the microphone signal picked up by the microphone thereof to the first sound box through the wireless / bluetooth module, and the first sound box can calculate the SP filter parameter of the first sound box side according to the LMS algorithm by using the feedback audio signal played by the local side and the microphone signal of the earphone or the mobile phone side, and the first sound box can output the SP filter parameter to the active noise reduction processing module, wherein SP refers to the transfer function from the sound box to the ear.
[0116] In Figure 6 In the corresponding embodiment, the second sound box can also be in a similar way as the first sound box to cooperate with the mobile phone or the earphone to obtain the SP filter parameter in the second sound box, which will not be described herein.
[0117] For example, in Figure 5 On the basis of the corresponding embodiment and Figure 6 On the basis of the corresponding embodiment, Figure 7 A schematic diagram of the processing flow of the noise reduction method provided by the embodiment of the present application is shown. For example, in the case where there is no mobile phone or earphone as an auxiliary device, after the user issues a noise reduction instruction, the voice recognition module of the first sound box collects the noise reduction instruction of the user, and at the same time, the wireless / bluetooth module of the first sound box receives the noise reduction instruction of the user collected by the second sound box. Further, the first sound box can locate the position information of the head of the user by using the sound source positioning module, so that the first sound box can start the active noise reduction processing module and update the target ANC coefficient corresponding to the noise reduction position, thereby achieving the purpose of noise reduction. In the case where there is a mobile phone or earphone as an auxiliary device, after the user issues a noise reduction instruction, the voice recognition module of the first sound box plays a feedback audio signal through a loudspeaker, and the mobile phone or the earphone collects the signal transmitted by the first sound box to the ear through a microphone, thereby obtaining the microphone response signal of the earphone or the mobile phone. Further, the wireless / bluetooth module of the first sound box receives the microphone response signal from the earphone or the mobile phone, and the SP online modeling module of the first sound box can obtain the SP filter parameter of the position of the ear according to the feedback audio signal played by the local side and the microphone response signal of the earphone or the mobile phone. Further, the first sound box starts the active noise reduction processing module to adaptively update the ANC coefficient, thereby achieving the purpose of noise reduction.
[0118] The technical solutions of the embodiments of the present application and how the technical solutions of the embodiments of the present application solve the above technical problems are described in detail below with specific examples. The following specific examples can be implemented independently or in combination, and the same or similar concepts or processes can not be described again in some examples.
[0119] Figure 8 A flowchart of a noise reduction method provided by the embodiments of the present application includes the following steps:
[0120] S801: The first noise reduction device determines a noise reduction position.
[0121] For example, the noise reduction position can be the position of a person's head, the position of a sofa, or the position of a pet. It can be understood that the noise reduction position can also be a position determined according to an actual application scenario, which is not limited by the embodiments of the present application.
[0122] In a possible implementation, the first noise reduction device can determine the noise reduction position by receiving a noise reduction instruction issued by a user.
[0123] For example, the first noise reduction device can determine the noise reduction position according to the attenuation coefficient of the noise reduction instruction by calculating the attenuation coefficient of the noise reduction instruction and searching for an attenuation coefficient table in a sound source model. The attenuation coefficient table includes different position information corresponding to different attenuation coefficients. In this way, the first noise reduction device can determine the noise reduction position according to the attenuation coefficient of the noise reduction instruction. The sound source model can be a model built in the first noise reduction device.
[0124] For example, after the user issues the noise reduction instruction, the first noise reduction device can emit infrared rays to the user. If the infrared rays are reflected by the user, the first noise reduction device can determine the position where the infrared rays are reflected as the noise reduction position.
[0125] It can be understood that the specific implementation of the first noise reduction device determining the noise reduction position can also be implemented in other ways according to an actual application scenario, which is not limited by the embodiments of the present application.
[0126] S802: The first noise reduction device obtains a target ANC coefficient corresponding to the noise reduction position.
[0127] In the embodiments of the present application, the target ANC coefficient is used for the first noise reduction device to implement noise reduction on the noise reduction position. For example, the environmental noise can be filtered by a target ANC coefficient filter determined by the target ANC coefficient to generate a target noise reduction signal. The target noise reduction signal and the environmental noise are superimposed to achieve the purpose of noise reduction.
[0128] In a possible implementation, when the first noise reduction device determines the noise reduction position, the first noise reduction device can obtain the target ANC coefficient by adjusting a default ANC coefficient.
[0129] Exemplarily, in a case where the distance between the first noise reduction device and the noise reduction position is greater than or equal to a third value, the first noise reduction device can obtain the target ANC coefficient in a manner of increasing the default ANC coefficient. For example, the first noise reduction device can calculate a difference between the distance and the third value, and the first noise reduction device can perform weighted summation on the difference and a weight coefficient of the distance, so that the target ANC coefficient can be a sum of the default ANC coefficient and a value after the weighted summation. A specific value of the third value can be set according to an actual application scenario, and embodiments of the present application do not make specific limitations thereto.
[0130] Exemplarily, in a case where the distance between the first noise reduction device and the noise reduction position is less than the third value, the first noise reduction device can obtain the target ANC coefficient in a manner of reducing the default ANC coefficient. For example, the first noise reduction device can calculate a difference between the distance and the third value, and the first noise reduction device can perform weighted summation on the difference and a weight coefficient of the distance, so that the target ANC coefficient can be a difference between the default ANC coefficient and a value after the weighted summation. A specific value of the third value can be set according to an actual application scenario, and embodiments of the present application do not make specific limitations thereto.
[0131] It can be understood that the specific implementation manner of the first noise reduction device obtaining the target ANC coefficient corresponding to the noise reduction position can also be other manners according to actual application scenarios, and embodiments of the present application do not make specific limitations thereto.
[0132] S803: The first noise reduction device generates a target noise reduction signal according to the target ANC coefficient.
[0133] In a possible implementation manner, in a case where the first noise reduction device determines the target ANC coefficient, the first noise reduction device can collect an environmental noise signal, and the environmental noise signal generates a target noise reduction signal after passing through a filter determined by the target ANC coefficient.
[0134] It can be understood that the specific implementation manner of the first noise reduction device generating the target noise reduction signal according to the target ANC coefficient can also be other manners according to actual application scenarios, and embodiments of the present application do not make specific limitations thereto.
[0135] S804: The first noise reduction device plays the target noise reduction signal.
[0136] In a possible implementation manner, the first noise reduction device can play the target noise reduction signal through a loudspeaker. It can be understood that the specific implementation manner of the first noise reduction device playing the target noise reduction signal can also be according to actual application scenarios, and embodiments of the present application do not make specific limitations thereto.
[0137] In summary, the first noise reduction device can determine the noise reduction position according to the noise reduction instruction, so that after obtaining the target ANC coefficient corresponding to the noise reduction position, the first noise reduction device can generate and play a target noise reduction signal according to the target ANC coefficient, and through mutual cancellation of the target noise reduction signal and the environmental noise, noise reduction of the noise reduction position is achieved. Compared with the manner in which the first noise reduction device directly plays the target noise reduction signal, the embodiment of the present application can play different target noise reduction signals according to different noise reduction positions, thereby effectively improving the noise reduction effect.
[0138] For the convenience of description, the first noise reduction device is taken as the first sound box, the second noise reduction device is taken as the second sound box, the auxiliary device is taken as the earphone or the mobile phone, and the noise reduction position is taken as the position of the head of the person for example.
[0139] For example, Figure 9 A schematic diagram of a system architecture of an application scenario provided by the embodiment of the present application is shown in FIG. 1. Figure 9 As shown in FIG. 1, the first sound box and the second sound box are respectively located on the two sides of the head of the person, wherein the distance from the first sound box to the head of the person and the distance from the second sound box to the head of the person can be equal or not equal. For example, the microphone of the first sound box picks up the current environmental noise, and the analogue-to-digital converter (ADC) system converts the analogue signal into a digital signal after the current environmental noise passes through the analogue-to-digital converter (ADC) system; at the same time, the earphone or the mobile phone picks up the current environmental noise, and the earphone or the mobile phone transmits the picked-up current environmental noise to the first sound box according to the advanced audio distribution profile (a2dp) of Bluetooth and by using the wireless / Bluetooth module; further, the first sound box takes the current environmental noise picked up by the first sound box and the current environmental noise received from the earphone or the mobile phone as the input of the FxLMS algorithm, and the first sound box performs adaptive iterative filtering of the FxLMS algorithm with the objective of minimizing the current environmental noise picked up by the microphone on the side of the earphone or the mobile phone, and further determines the target ANC coefficient of the first sound box to the position area of the head of the person. The first sound box can generate a target noise reduction signal according to the target ANC coefficient, and the target noise reduction signal and the current environmental noise are mutually cancelled after being superimposed, thereby achieving the purpose of noise reduction.
[0140] In Figure 9 In the corresponding schematic diagram, the process of the second sound box for achieving noise reduction is similar to the process of the first sound box for achieving noise reduction, and will not be described herein.
[0141] For example, in Figure 9 On the basis of the system architecture of the corresponding application scenario, the noise reduction method provided by the embodiment of the present application can include the following steps:
[0142] S1001: The first sound box plays the first signal in response to the noise reduction instruction.
[0143] In the embodiments of the present application, the first sound box is applied to a noise reduction system. After receiving the noise reduction instruction issued by the user, the first sound box can play the first signal by using the voice recognition module and the loudspeaker. The first signal can be a reply type feedback signal. The noise reduction instruction can be a voice instruction issued by the user, such as “noise reduction” or “turn on noise reduction”. The feedback audio signal can be voice or music.
[0144] S1002: The first sound box receives the second signal from the earphone or the mobile phone.
[0145] In a possible implementation manner of the embodiments of the present application, after the user wears the earphone, the microphone of the earphone picks up the first signal played by the first sound box to obtain the second signal. Further, the earphone transmits the second signal to the first sound box by using the wireless / bluetooth module of the earphone. The earphone is located at the noise reduction position.
[0146] In another possible implementation manner of the embodiments of the present application, after the user places the mobile phone near the head, the microphone of the mobile phone picks up the first signal played by the first sound box to obtain the second signal. Further, the mobile phone transmits the second signal to the first sound box by using the wireless / bluetooth module of the mobile phone. The mobile phone is located at the noise reduction position.
[0147] In the embodiments of the present application, the second signal can be a signal obtained by the earphone or the mobile phone receiving the first signal. For example, the second signal can include the environmental noise or the first signal played by the first sound box in response to the noise reduction instruction.
[0148] In the embodiments of the present application, the second signal can also be related to the signal played by the first sound box in response to the noise reduction instruction or the signal played by the second sound box in response to the noise reduction instruction.
[0149] For example, after the first sound box plays the first signal SPK1, the microphone on the earphone side can respond as MIC1=SPK1*SP1+SPK2*SP2*S LR +noise, which can obtain Therefore, wherein SP1 is a target SP filter corresponding to the first sound box, SP2 is a target SP filter corresponding to the second sound box, MIC1 is the signal played by the first sound box in response to the noise reduction instruction, MIC2 is the signal played by the second sound box in response to the noise reduction instruction, S RL is MIC2 / MIC1, S LR is MIC1 / MIC2, and noise is the environmental noise and noise' is the environmental noise.
[0150] For example, after the second speaker plays the first signal SPK2, the microphone on the earphone side can respond as MIC2 = SPK2*SP2 + SPK1*SP1*S + noise, which can be obtained as RL + noise, which can be obtained as Therefore, wherein SP1 is a target SP filter corresponding to the first speaker, SP2 is a target SP filter corresponding to the second speaker, MIC1 is a signal played by the first speaker in response to the noise reduction instruction, MIC2 is a signal played by the second speaker in response to the noise reduction instruction, S RL is MIC2 / MIC1, S LR is MIC1 / MIC2, and noise is the ambient noise.
[0151] In the embodiments of the present application, S LR may be a left ear to right ear transfer function, and S RL may be a right ear to left ear transfer function. For example, the first speaker can test multiple sets of data under different head sizes but the same position in the offline design stage, and the average of the multiple sets of data can be stored as a known parameter in the first speaker system.
[0152] For example, the speaker of the first speaker is horizontally placed 1 m away from the right ear, and the user wears earphones or places a mobile phone microphone. After the speaker of the first speaker plays noise (such as white noise, pink noise, or sweep noise, etc.), the microphone of the left ear records the noise to obtain the left ear signal MIC’1, and the microphone of the right ear records the noise to obtain the right ear signal MIC’2. After the first speaker performs time-domain to frequency-domain processing on the left ear signal MIC’1 and the right ear signal MIC’2, MIC’2 / MIC’1 is calculated, that is, S RL .
[0153] For example, the speaker of the first speaker is horizontally placed 1 m away from the left ear, and the user wears earphones or places a mobile phone microphone. After the speaker of the first speaker plays noise (such as white noise, pink noise, or sweep noise, etc.), the microphone of the left ear records the noise to obtain the left ear signal MIC’1, and the microphone of the right ear records the noise to obtain the right ear signal MIC’2. After the first speaker performs time-domain to frequency-domain processing on the left ear signal MIC’1 and the right ear signal MIC’2, MIC’1 / MIC’2 is calculated, that is, S LR .
[0154] S1003: The first speaker obtains a target SP filter.
[0155] For example, Figure 10A schematic diagram of an application scenario of SP modeling provided by an embodiment of the present application is shown. For example, after the first sound box responds to the noise reduction instruction, the first sound box plays a first signal SPK1, and the earphone receives the first signal to obtain a second signal MIC1. Further, the first sound box can obtain a target SP filter according to the first signal SPK1 and the second signal MIC1.
[0156] Exemplarily, Figure 11 A schematic diagram of an SP modeling block diagram based on an LMS algorithm provided by an embodiment of the present application is shown. Exemplarily, the first sound box can perform adaptive iterative filtering of the LMS algorithm with e as the target for minimization, so as to obtain a target SP filter, where e is the difference between the signal after the first signal is processed by the SP filter and the second signal.
[0157] In an embodiment of the present application, the process of obtaining the target SP filter by the second sound box is similar to the process of obtaining the target SP filter by the first sound box, which will not be described herein.
[0158] Exemplarily, the target SP filter is obtained in a case where the difference between the signal after the first signal is processed by the SP filter and the second signal is less than a first value. For example, the target SP filter is obtained in a case where the capability difference or the amplitude difference between the signal after the first signal is processed by the SP filter and the second signal is less than the first value. The specific value of the first value can be set according to an actual application scenario, and the embodiment of the present application does not make a specific limitation thereto.
[0159] Exemplarily, the target SP filter is obtained in a case where the coefficient change rate of the SP filter is less than a threshold value. For example, the target SP filter is obtained in a case where the ratio of the current SP filter coefficient to the previous SP filter coefficient is less than the threshold value. The specific value of the threshold value can be set according to an actual application scenario, and the embodiment of the present application does not make a specific limitation thereto.
[0160] Exemplarily, the target SP filter is obtained in a case where the difference between the signal after the first signal is processed by the SP filter and the second signal is less than a first value, and the coefficient change rate of the SP filter is less than a threshold value. For example, the target SP filter is obtained in a case where the capability difference or the amplitude difference between the signal after the first signal is processed by the SP filter and the second signal is less than the first value, and the ratio of the current SP filter coefficient to the previous SP filter coefficient is less than the threshold value. The specific value of the first value and the specific value of the threshold value can be set according to an actual application scenario, and the embodiment of the present application does not make a specific limitation thereto.
[0161] S1004: The first sound box plays a first noise reduction signal according to the first ANC coefficient.
[0162] In the embodiments of the present application, the first sound box picks up the actual environmental noise signal, and the environmental noise signal passes through a target SP filter and then an ANC filter determined by the initial preset first ANC coefficient to generate a first noise reduction signal.
[0163] S1005: The first sound box acquires the current environmental noise.
[0164] In the embodiments of the present application, the current environmental noise is noise obtained by superimposing the first noise reduction signal and the actual environmental noise.
[0165] S1006: The first sound box obtains a third signal.
[0166] In the embodiments of the present application, the first noise reduction device can filter the current environmental noise signal by using a target SP filter to obtain a third signal.
[0167] S1007: The first sound box acquires a fourth signal from the earphone or the mobile phone.
[0168] In the embodiments of the present application, the fourth signal is obtained by the earphone or the mobile phone collecting the current environmental noise.
[0169] For example, the first sound box plays the current environmental noise by using a loudspeaker, and the earphone or the mobile phone obtains the fourth signal after picking up the current noise. The earphone or the mobile phone transmits the fourth signal to the first sound box through an ADC system and an audio data transmission protocol based on Bluetooth / wireless fidelity (WiFi), and the first sound box receives and caches the fourth signal.
[0170] S1008: The first sound box obtains a target ANC coefficient according to the third signal and the fourth signal.
[0171] For example, Figure 12 A schematic diagram of updating an ANC coefficient by using an FxLMS algorithm is provided in the embodiments of the present application, wherein the acoustic path SP is the real transmission path from the loudspeaker of the first sound box to the human ear. For example, the first sound box acquires the current environmental noise, and the first sound box can take the signal after the current environmental noise passes through the target SP filter as the third signal and the signal obtained by the earphone or the mobile phone collecting the current environmental noise as the fourth signal as the input of the FxLMS algorithm. Further, the first sound box can perform adaptive iterative filtering of the FxLMS algorithm with the minimization of the difference between the third signal and the fourth signal as the target, and the stable W filter coefficient is the target ANC coefficient between the first sound box and the human head position.
[0172] In the embodiments of the present application, the process of obtaining the target ANC coefficient by the second sound box is similar to the process of obtaining the target ANC coefficient by the first sound box, and thus will not be described again.
[0173] For example, the target ANC coefficient is obtained when the energy difference and the amplitude difference between the third signal and the fourth signal are less than a second value. The specific value of the second value can be set according to the actual application scenario, and the embodiments of the present application do not make specific limitations thereto.
[0174] S1009: The first sound box generates a target noise reduction signal according to the target ANC coefficient.
[0175] For example, the first sound box can collect the environmental noise, and the target noise reduction signal is generated after the environmental noise passes through the filter determined by the target ANC coefficient.
[0176] S1010: The first sound box plays the target noise reduction signal.
[0177] In the embodiments of the present application, after the first sound box plays the target noise reduction signal, when the user perceives that the current environmental noise is the minimum or unchanged, the user can take off the earphone or the user can turn off the mobile phone and enter the normal sleep state.
[0178] In summary, in the case where the first sound box determines the target SP filter according to the signal processed by the SP filter according to the first signal and the second signal, the first sound box can obtain the target ANC coefficient according to the signal processed by the target SP filter according to the current environmental noise and the current environmental noise collected by the earphone or the mobile phone, thereby achieving effective noise reduction at the noise reduction position.
[0179] For example, Figure 13 A schematic diagram of a system architecture of an application scenario provided by the embodiments of the present application is shown in FIG. 1. Figure 13As shown, the first sound box and the second sound box are respectively located on two sides of the head of the person, wherein the distance from the first sound box to the head of the person and the distance from the second sound box to the head of the person can be equal or can not be equal; the microphone data can be a signal played by the first sound box in response to the noise reduction instruction or a signal played by the second sound box in response to the noise reduction instruction. For example, the first sound box obtains the local time domain signal (which can also be referred to as the sixth signal) in response to the noise reduction instruction issued by the user, and stores the local time domain signal in a file and / or a system after the local time domain signal is converted from an analog signal to a digital signal by the ADC system; at the same time, the first sound box receives the remote time domain signal (which can also be referred to as the fifth signal) from the second sound box based on the Bluetooth / WiFi audio data transmission protocol, and decodes and stores the received remote time domain signal in a file and / or a system. In this way, the first sound box can calculate the time difference and the energy ratio according to the local time domain signal and the remote time domain signal, so as to determine the noise reduction position, and further, the first sound box can obtain the target ANC coefficient corresponding to the noise reduction position, so as to achieve noise reduction on the noise reduction position.
[0180] In Figure 13 In the corresponding schematic diagram, the process of implementing noise reduction by the second sound box is similar to the process of implementing noise reduction by the first sound box, and will not be described here.
[0181] For example, in Figure 13 Based on the system architecture of the corresponding application scenario, the noise reduction method provided by the embodiment of the present application can include the following steps:
[0182] S1401: The first sound box obtains the sixth signal in response to the noise reduction instruction.
[0183] In the embodiment of the present application, the noise reduction instruction can be a voice instruction, and the sixth signal is a signal obtained by the first sound box receiving the noise reduction instruction. For example, after the user speaks the noise reduction instruction (such as a voice instruction for starting active noise reduction), the voice recognition of the first sound box collects and caches the response signal of the user's voice transmitted to the first sound box by the microphone, and the first sound box obtains the sixth signal.
[0184] S1402: The first sound box receives the fifth signal of the second sound box.
[0185] In the embodiment of the present application, the fifth signal is a signal obtained by the second sound box receiving the noise reduction instruction. For example, after the user speaks the noise reduction instruction (such as a voice instruction for starting active noise reduction), the voice recognition of the second sound box collects and caches the response signal of the user's voice transmitted to the second sound box by the microphone, and the second sound box obtains the fifth signal. The second sound box starts the wireless / Bluetooth module to transmit the fifth signal to the first sound box, and the first sound box receives the fifth signal from the second sound box.
[0186] S1403: The first sound box determines the time difference and the energy ratio according to the sixth signal and the fifth signal.
[0187] For example, the first sound box calculates the time domain cross-correlation function of the sixth signal and the fifth signal, and determines the time difference between the time when the first sound box receives the sixth signal and the time when the second sound box receives the fifth signal.
[0188] For example, the first sound box and the second sound box can respectively calculate the energy used by the first sound box to receive the sixth signal and the energy used by the second sound box to receive the fifth signal by using the energy formula, so as to obtain the energy ratio.
[0189] S1404: The first sound box determines the noise reduction position according to the time difference and the energy ratio.
[0190] In the embodiments of the present application, the distance x from the noise reduction position to the first sound box satisfies the following formula: x = c x At; Wherein, c is the propagation speed of sound, At is the time difference, AE is the energy difference, d0 is the center position between the first sound box and the second sound box.
[0191] For example, when x is positive, it means that the head of the person is far away from the first sound box; when x is negative, it means that the head of the person is close to the first sound box, and 0 means that it is in the center position.
[0192] S1405: The first sound box obtains the target ANC coefficient corresponding to the noise reduction position.
[0193] In the embodiments of the present application, after the active noise reduction processing module of the first sound box obtains the noise reduction position, it can search the ANC coefficient to obtain the target ANC coefficient corresponding to the noise reduction position.
[0194] For example, the ANC coefficient table is obtained by model training in the offline design stage before noise reduction processing of the noise reduction position, and the ANC coefficient table can be stored in the chip memory and / or file system of the first sound box, and the ANC coefficient table can be stored in the chip memory and / or file system of the second sound box. For example, d0-x1,…,d0+x n 2n+1 noise reduction positions are set at equal intervals in the connection region of the position of the first sound box and the position of the second sound box, and the first sound box and the second sound box can train the model by using the position information of the 2n+1 noise reduction positions to obtain the ANC coefficient table, wherein d0 is the center position between the first sound box and the second sound box. For example, Table 1 shows the ANC coefficients corresponding to different position information, as shown in Table 1, x i (1≤i≤n) is the distance between d0 and the first sound box or the second sound box.
[0195] Table 1
[0196]
[0197] For example, Figure 14 This diagram illustrates a table lookup method for updating ANC coefficients, as provided in an embodiment of this application. Figure 13 As shown, the microphone of the first speaker acquires ambient noise, which is then converted from an analog signal to a digital signal by the ADC system. Since the first speaker determines the noise reduction location, it can obtain the target ANC coefficient corresponding to the noise reduction location by looking up the ANC coefficient table. In this way, after the ambient noise passes through the target ANC coefficient filter, a target noise reduction signal with the opposite phase to the ambient noise can be generated. At this time, the residual noise after the ambient noise and the target noise reduction signal are superimposed is minimized, thus achieving noise reduction at the noise reduction location.
[0198] exist Figure 14 In the corresponding diagram, when the second speaker is used as an example for illustration, the noise reduction process of the second speaker is similar to that of the first speaker, and will not be described again here.
[0199] S1406: The first speaker generates the target noise reduction signal based on the target ANC coefficient.
[0200] S1407: The first noise reduction device plays the target noise reduction signal.
[0201] In the embodiments of this application, S1406 and S1407 can be referred to the description of S803 and 804, and will not be repeated here.
[0202] In this embodiment of the application, when the second speaker is used as an example for illustrative purposes, the process of noise reduction by the second speaker is similar to that of noise reduction by the first speaker, and will not be described again here.
[0203] In summary, the first speaker can calculate the time difference and energy ratio based on the noise reduction commands collected locally and received from the second speaker. Furthermore, the first speaker can determine the noise reduction position based on the time difference and energy ratio. Thus, after obtaining the noise reduction position, the active noise reduction processing module of the first speaker can look up the ANC coefficient to obtain the target ANC coefficient corresponding to the noise reduction position, thereby achieving effective noise reduction at the noise reduction position.
[0204] The noise reduction method of the present application has been described above. The apparatus for performing the above noise reduction method provided in the embodiments of the present application will now be described. Those skilled in the art will understand that the methods and apparatus can be combined with and referenced in each other, and the noise reduction apparatus provided in the embodiments of the present application can perform the steps in the above noise reduction method.
[0205] like Figure 15 As shown, Figure 15A structural diagram of a noise reduction device is shown, which can be a sound box, an active noise reduction headrest, an active noise reduction pillow, an independent active noise reduction headrest, or an independent active noise reduction pillow, or a chip or chip system in the sound box, the active noise reduction headrest, the active noise reduction pillow, the independent active noise reduction headrest, or the independent active noise reduction pillow. The noise reduction device includes a processing unit 1501 and a communication unit 1503, wherein the communication unit 1503 is configured to receive a noise reduction instruction; the processing unit 1501 is configured to determine a noise reduction position according to the noise reduction instruction; the processing unit 1501 is configured to obtain a target active noise cancellation (ANC) coefficient corresponding to the noise reduction position; the processing unit 1501 is configured to generate a target noise reduction signal according to the target ANC coefficient; and the communication unit 1503 is configured to play the target noise reduction signal.
[0206] For example, the noise reduction device is a sound box, an active noise reduction headrest, an active noise reduction pillow, an independent active noise reduction headrest, or an independent active noise reduction pillow, or a chip or chip system in the sound box, the active noise reduction headrest, the active noise reduction pillow, the independent active noise reduction headrest, or the independent active noise reduction pillow. In this case, the communication unit 1503 is configured to support the noise reduction device to perform S804 or S1402 in the above embodiments, and the processing unit can perform S801 or S1403.
[0207] In a possible implementation, the noise reduction device can further include a storage unit 1502. The storage unit 1502 can include one or more memories, and the memory can be a device for storing programs or data in one or more devices or circuits.
[0208] The storage unit 1502 can exist independently and be connected to the processing unit 1501 through a communication bus. The storage unit 1502 can also be integrated with the processing unit 1501.
[0209] With the noise reduction device can be the sound box, active noise reduction headrest, active noise reduction pillow, independent active noise reduction headrest or independent active noise reduction pillow in the chip or chip system in the embodiments of the application as an example, the storage unit 1502 can store the computer execution instructions of the method of the sound box, active noise reduction headrest, active noise reduction pillow, independent active noise reduction headrest or independent active noise reduction pillow, so that the processing unit 1501 executes the method of the sound box, active noise reduction headrest, active noise reduction pillow, independent active noise reduction headrest or independent active noise reduction pillow in the above embodiments. The storage unit 1502 can be a register, a cache or a random access memory (RAM), etc. The storage unit 1502 can be integrated with the processing unit 1501. The storage unit 1502 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1502 can be independent of the processing unit 1501.
[0210] In a possible implementation, the processing unit is specifically configured to play the first signal in response to the noise reduction instruction; the communication unit is specifically configured to receive the second signal from the auxiliary device, the second signal being a signal obtained by the auxiliary device receiving the first signal, and the auxiliary device being located at the noise reduction position; the processing unit is specifically configured to adjust the coefficient of the SP filter according to a signal obtained by processing the first signal through the SP filter and the second signal, until a difference between the signal obtained by processing the first signal through the SP filter and the second signal is less than a first value, and / or a variation rate of the coefficient of the SP filter is less than a threshold value, to obtain a target SP filter.
[0211] In a possible implementation, the processing unit is specifically configured to play the first noise reduction signal according to the first ANC coefficient; the processing unit is specifically configured to obtain a current environmental noise, the current environmental noise being a noise obtained by superimposing the first noise reduction signal and an actual environmental noise; the processing unit is specifically configured to filter the current environmental noise through the target SP filter to obtain a third signal; and the processing unit is specifically configured to adjust the first ANC coefficient according to the third signal and a fourth signal until a difference between the third signal and the fourth signal is less than a second value, to obtain a target ANC coefficient.
[0212] In a possible implementation, the first noise reduction device is applied to a noise reduction system, and the noise reduction system further includes a second noise reduction device, and the second signal is related to a signal played by the first noise reduction device in response to a noise reduction instruction or a signal played by the second noise reduction device in response to the noise reduction instruction.
[0213] In a possible implementation, the second signal satisfies the following formula: Wherein, MIC1 is a signal played by the first noise reduction device in response to the noise reduction instruction, MIC2 is a signal played by the second noise reduction device in response to the noise reduction instruction, S RL is MIC2 / MIC1, S LR is MIC1 / MIC2.
[0214] In a possible implementation, the communication unit is specifically configured to receive a fifth signal from the second noise reduction device, the fifth signal being a signal obtained by the second noise reduction device receiving the noise reduction instruction; and the processing unit is specifically configured to determine the noise reduction position according to the fifth signal and a sixth signal obtained by the first noise reduction device receiving the noise reduction instruction.
[0215] In a possible implementation, the processing unit is specifically configured to determine a time difference according to a receiving time of the fifth signal and a receiving time of the sixth signal; the processing unit is specifically configured to determine an energy difference according to a signal energy of the fifth signal and a signal energy of the sixth signal; and the processing unit is specifically configured to determine the noise reduction position according to the time difference and the energy difference.
[0216] In a possible implementation, a distance x from the noise reduction position to the first noise reduction device satisfies the following formula: x=c x Δt; Wherein, c is a propagation speed of sound, Δt is the time difference, ΔE is the energy difference, and d0 is a central position between the first noise reduction device and the second noise reduction device.
[0217] In a possible implementation, the processing unit is specifically configured to determine a target ANC coefficient corresponding to the noise reduction position by searching for an ANC coefficient table according to the noise reduction position.
[0218] In a possible implementation, the target noise reduction signal includes an inverted noise of the environmental noise.
[0219] The device of the embodiment can be used to perform the steps performed in the method embodiments described above, and has similar implementation principles and technical effects, which will not be described here
[0220] Figure 16 A hardware structure diagram of a noise reduction device provided by the embodiment is shown in FIG. 1. Please refer to Figure 16 The noise reduction device includes a memory 1601 and a processor 1602. The noise reduction device can also include an interface circuit 1603, wherein the memory 1601, the processor 1602 and the interface circuit 1603 can communicate; for example, the memory 1601, the processor 1602 and the interface circuit 1603 can communicate through a communication bus, the memory 1601 is used to store computer execution instructions, and the processor 1602 is used to control execution, thereby realizing the noise reduction method provided by the following embodiments of the application.
[0221] In a possible implementation, the computer-executable instructions in the embodiments of the present application can also be referred to as application program codes, and the embodiments of the present application do not make a specific limitation on this.
[0222] Optionally, the interface circuit 1603 can further include a transmitter and / or a receiver.
[0223] Optionally, the processor 1602 can include one or more CPUs, and can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), or the like. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor or the like. The steps of the method disclosed in the present application can be directly embodied as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0224] The embodiments of the present application further provide a computer readable storage medium. The methods described in the above embodiments can be implemented by software, hardware, firmware or any combination thereof, in whole or in part. If implemented by software, the functions can be stored as one or more instructions or codes on a computer readable medium or transmitted over a computer readable medium. The computer readable medium can include computer storage medium and communication medium, and can also include any medium that can transfer computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.
[0225] In a possible implementation, the computer readable medium can include a RAM, a ROM, a compact disc read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that is suitable for storing desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray® disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer readable media.
[0226] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as combinations of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing apparatus to produce a machine, so that the instructions executed by the computer or other programmable data processing apparatus generate a device that implements the flow Figure 1 The flow or flows and / or blocks in a flowchart and / or a combination of flows and / or blocks in a flowchart can be implemented by computer program instructions. Figure 1 An apparatus with a processor can be configured to perform the functions specified in a flow or multiple flows and / or blocks.
[0227] The above detailed description further describes the purpose, technical solutions, and beneficial effects of the present application. It should be understood that the above is only a specific implementation of the present application and is not used to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made on the basis of the technical solutions of the present application should be included in the protection scope of the present application.
[0228] It should be noted that the noise reduction device described in the present application can also be defined or named in other ways in specific applications. For example, the noise reduction device can be referred to as a first noise reduction device, etc. Alternatively, the noise reduction device can be defined as other names according to actual application scenarios, and the embodiments of the present application do not make specific limitations.
Claims
1. A method of noise reduction, characterized by, The application is applied to a first noise reduction device, comprising: receiving a noise reduction instruction; determining a noise reduction position according to the noise reduction instruction; obtaining a target ANC coefficient corresponding to the noise reduction position; generating a target noise reduction signal according to the target ANC coefficient; playing the target noise reduction signal; the noise reduction position is determined according to the noise reduction instruction, comprising: in response to the noise reduction instruction, playing a first signal; receiving a second signal from an auxiliary device, the second signal being a signal obtained by the auxiliary device receiving the first signal, the auxiliary device being located at the noise reduction position; adjusting the coefficient of the SP filter according to the signal processed by the first signal through the SP filter and the second signal until the difference between the signal processed by the first signal through the SP filter and the second signal is less than a first value, and / or the change rate of the coefficient of the SP filter is less than a threshold value, to obtain a target SP filter.
2. The method of claim 1, wherein, the target ANC coefficient corresponding to the noise reduction position is obtained, comprising: playing a first noise reduction signal according to a first ANC coefficient; obtaining a current environmental noise, which is a noise obtained by superimposing the first noise reduction signal and the actual environmental noise; filtering the current environmental noise by using the target SP filter to obtain a third signal; obtaining a fourth signal from the auxiliary device, which is obtained by the auxiliary device collecting the current environmental noise; adjusting the first ANC coefficient according to the third signal and the fourth signal until the difference between the third signal and the fourth signal is less than a second value to obtain the target ANC coefficient.
3. The method according to claim 1 or 2, characterized in that, The first noise reduction device is applied to a noise reduction system, and the noise reduction system further comprises a second noise reduction device, and the second signal is related to the signal played by the first noise reduction device in response to the noise reduction instruction or the signal played by the second noise reduction device in response to the noise reduction instruction.
4. The method of claim 3, wherein, The second signal satisfies the following formula: Wherein, the MIC1 is a signal played by the first noise reduction device in response to the noise reduction instruction; the MIC2 is a signal played by the second noise reduction device in response to the noise reduction instruction; the S RL is MIC2 / MIC1; the S LR is MIC1 / MIC2.
5. The method of claim 1, wherein, The noise reduction instruction is a voice instruction, and the noise reduction position is determined according to the noise reduction instruction, comprising: receiving a fifth signal from a second noise reduction device, the fifth signal being a signal obtained by the second noise reduction device receiving the noise reduction instruction; determining the noise reduction position according to the fifth signal and a sixth signal obtained by the first noise reduction device receiving the noise reduction instruction.
6. The method of claim 5, wherein, The noise reduction position is determined according to the fifth signal and the sixth signal obtained by the first noise reduction device receiving the noise reduction instruction, comprising: determining a time difference according to the receiving time of the fifth signal and the receiving time of the sixth signal; determining an energy difference according to the signal energy of the fifth signal and the signal energy of the sixth signal; determining the noise reduction position according to the time difference and the energy difference.
7. The method of claim 6, wherein, The distance x from the noise reduction position to the first noise reduction device satisfies the following formula: x = c x Δt; wherein c is the propagation speed of sound; Δt is the time difference; ΔE is the energy difference; d0 is the center position between the first noise reduction device and the second noise reduction device.
8. The method according to any one of claims 5-7, characterized in that, the target ANC coefficient corresponding to the noise reduction position is obtained, comprising: According to the noise reduction position, an active noise cancellation (ANC) coefficient table is searched to determine a target ANC coefficient corresponding to the noise reduction position.
9. The method according to any one of claims 1-2, 4-7, characterized in that, The target noise reduction signal includes anti-phase noise of the environmental noise.
10. A first noise reduction device, characterized by, Comprising: A processor and an interface circuit for communicating with other devices, the processor configured to perform the method of any one of claims 1-9.
11. A computer readable storage medium, characterized in that, The computer readable storage medium stores instructions that, when executed, cause a computer to perform the method of any one of claims 1-9.
Citation Information
Patent Citations
Noise reduction apparatus and method
CN106205592A
Automobile voice control system
CN110021298A