Method, device, equipment and medium for silencing indoor environmental noise
By segmenting, screening and identifying indoor noise, using the noise reduction algorithm to process the identification information segments, generate noise reduction information segments and offset them with the noise information, the problem of waste of noise floor and computing resources in traditional silence rooms is solved, and the noise reduction efficiency is improved.
Patent Information
- Application Number
- CN202210589818.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-26
- Publication Date
- 2025-04-11
- Estimated Expiration
- 2042-05-26
AI Technical Summary
Traditional silencers have noise floor problems when dealing with indoor noise, and perform all noise reduction calculations on all noise information, resulting in wasted computing resources.
The noise information is obtained through external devices, divided into multiple information fragments, filtered and identified, and the identification information fragment is processed based on the noise reduction algorithm, and the noise reduction information fragment is generated, and it is cancelled with the noise information.
It effectively reduces noise floor, avoids unnecessary waste of computing resources, and improves noise reduction efficiency.
Smart Images

Figure CN114842824B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of acoustic noise reduction, and in particular to a method, device, equipment and medium for silencing indoor environmental noise. Background Art
[0002] The anechoic chamber is a special laboratory for acoustic testing and is an important component of the test system. Traditional anechoic chambers are built with materials with a sound absorption coefficient greater than 0.99, and generally use a wedge-structured absorption layer. Although the sound-absorbing material can isolate most of the noise, there will still be a large background noise. Summary of the invention
[0003] The main purpose of the present invention is to obtain, segment, filter and identify indoor noise through external equipment, and perform noise reduction processing on the noise information after filtering and identifying, thereby solving the technical problem of the existence of background noise in the room and avoiding the complete noise reduction calculation of all noise information, which leads to unnecessary waste of computing resources.
[0004] A first aspect of the present invention provides a method for silencing indoor environmental noise, comprising:
[0005] Acquire noise information, and divide the noise information into multiple information segments;
[0006] Screening the plurality of information fragments, and marking the screened information fragments to obtain a plurality of marked information fragments;
[0007] Based on a noise reduction algorithm, the plurality of identification information segments are processed to generate a plurality of noise reduction information segments accordingly;
[0008] The plurality of noise reduction information are offset with the noise information in sequence.
[0009] Optionally, in a first implementation manner of the first aspect of the present invention, the acquiring noise information and dividing the noise information into multiple information segments includes:
[0010] Get ambient noise;
[0011] According to the environmental noise, PCM data information is obtained with sampling value as the horizontal axis and time as the vertical axis;
[0012] According to the preset timestamp, the PCM data information is divided into a plurality of information segments.
[0013] Optionally, in a second implementation manner of the first aspect of the present invention, screening the multiple information fragments and marking the screened information fragments includes:
[0014] Determine whether there is a sampling value in the plurality of information segments greater than a preset threshold;
[0015] If it exists, mark it at the head of the corresponding information fragment to obtain the identification information fragment;
[0016] If not, the information segment is skipped, and it is determined again whether there is a sampling value greater than a preset threshold in the plurality of information segments.
[0017] Optionally, in a third implementation manner of the first aspect of the present invention, the processing of the multiple identification information segments based on a noise reduction algorithm to correspondingly generate multiple noise reduction information segments includes:
[0018] Determining whether there is an identifier in the plurality of information fragments;
[0019] If so, based on an adaptive filtering algorithm, the plurality of identified information segments are processed respectively to obtain a plurality of noise-reduced information segments;
[0020] If not, skip the information segment and re-determine whether the identifier exists in the multiple information segments.
[0021] Optionally, in a fourth implementation manner of the first aspect of the present invention, the processing of the multiple identified information segments respectively based on the adaptive filtering algorithm to obtain the multiple noise reduction information segments includes:
[0022] Set the identification information segment to x nn , set the noise reduction information segment to G nn ;
[0023] Based on the adaptive filtering algorithm, the noise reduction information segment G is obtained. nn The expression is: G nn =W n *x nn , wherein the W n is the filter coefficient.
[0024] Optionally, in a fifth implementation manner of the first aspect of the present invention, the offsetting the plurality of noise reduction information with the noise information in sequence includes:
[0025] Set the expected output information fragment d nn ;
[0026] The expression for obtaining error information is: e n =d nn -G nn , wherein the e n For error information.
[0027] Optionally, in a sixth implementation of the first aspect of the present invention, the filter coefficient W n Need to be updated in real time, the specific update expression is: W n+1 =W n +μx nn e n , wherein the W n+1 is the filter coefficient at the next moment, and μ is the convergence factor.
[0028] A second aspect of the present invention provides a device for silencing indoor environmental noise, comprising:
[0029] A segmentation module, used for acquiring noise information and segmenting the noise information into multiple information segments;
[0030] A screening module, used for screening the plurality of information fragments, and marking the screened information fragments to obtain a plurality of marked information fragments;
[0031] A calculation module, used for processing the plurality of identification information segments based on a noise reduction algorithm, and correspondingly generating a plurality of noise reduction information segments;
[0032] The noise cancellation module is used to cancel the multiple noise reduction information with the noise information in sequence.
[0033] The third aspect of the present invention provides a device for silencing indoor environmental noise, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the device for silencing indoor environmental noise executes the above-mentioned method for silencing indoor environmental noise.
[0034] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for silencing indoor environmental noise.
[0035] In an embodiment of the present invention, the method for silencing indoor environmental noise is to segment the acquired noise information, screen and identify the multiple information segments after segmentation, process the identified information segments through a noise reduction algorithm, and then offset the obtained noise reduction information segments with the noise information, thereby avoiding performing all noise reduction calculations on all noise information, resulting in unnecessary waste of computing resources, and reducing the amount of calculation, thereby effectively improving the noise reduction efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 It is a schematic diagram of a first embodiment of a method for silencing indoor environmental noise according to an embodiment of the present invention;
[0037] Figure 2 Schematic diagram of a second embodiment of the method for silencing indoor environmental noise according to an embodiment of the present invention;
[0038] Figure 3 A schematic diagram of an embodiment of a device for silencing indoor environmental noise according to an embodiment of the present invention;
[0039] Figure 4 The figure is a schematic diagram of an embodiment of a device for silencing indoor environmental noise in an embodiment of the present invention. DETAILED DESCRIPTION
[0040] The embodiments of the present invention provide a method, device, equipment and medium for silencing indoor environmental noise.
[0041] The terms "first", "second", "third", "fourth", etc. in the specification and claims of the present invention and the above-mentioned drawings, if present, are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 and attached Figure 2 , an embodiment of the method for silencing indoor environmental noise in an embodiment of the present invention includes:
[0043] 101. Obtain noise information, and divide the noise information into multiple information segments;
[0044] In this embodiment, when canceling noise and reducing noise, it is necessary to generate an electrical signal opposite to the noise in real time, and convert the electrical signal into a sound wave to play it out. In this state, the device and the algorithm in the device need to run continuously to avoid missed detection, resulting in poor noise reduction effect. However, the scenario in which the embodiment of the present invention is applied is an indoor anechoic room, which does not require a completely anechoic environment, but only requires the ambient noise to reach a certain specified value. Therefore, it is necessary to divide the received noise information into multiple information fragments, and process these fragments in subsequent steps without processing the complete noise data, thereby effectively improving the noise reduction efficiency and avoiding unnecessary waste of calculations.
[0045] 1011. Obtain environmental noise;
[0046] 1012. Obtain PCM data information with sampling value as the horizontal axis and time as the vertical axis according to the environmental noise;
[0047] 1013. According to a preset timestamp, divide the PCM data information into multiple information segments.
[0048] In steps 1011-1013, the environmental noise is captured by a microphone and a professional input device to obtain noise information data. The noise information is a continuous data information, which is displayed in a PCM statistical chart in a professional input device. The PCM statistical chart uses the sampling value as the horizontal axis and the time as the vertical axis. Since the environmental noise of the applied scene is mostly no more than 80 decibels, the sampling accuracy of the environmental noise is 16 bits, which can be expressed as Calculate the maximum sampling decibel size under the specified sampling accuracy, where p rms is the RMS value of the amplitude of the sound sampling point, p ref It is the maximum value of the sound amplitude. Since the sampling values of the sampled noise data in different time periods are different, the noise data is segmented by timestamps. For example, 5s, 3s, 1s or even 0.5s time periods are used as the segment size for noise data segmentation. Although each information segment is divided by time period, they are also arranged in chronological order. The smaller the time period, the higher the accuracy of subsequent noise reduction.
[0049] 102. Screening multiple information fragments and marking the screened information fragments to obtain multiple marked information fragments;
[0050] 1021. Determine whether any sampling value in the plurality of information segments is greater than a preset threshold;
[0051] 1022. If it exists, mark it at the head of the corresponding information segment to obtain the marked information segment;
[0052] 1023. If not, skip the information segment and re-determine whether there is a sampling value greater than a preset threshold in multiple information segments.
[0053] In steps 1021-1023, multiple information segments are screened, and the screening criterion is whether the decibel of the information segment is too large, that is, the decibel is greater than the preset value. In the PCM statistical chart, it can be understood as whether the sampling value in the segment is greater than the advance threshold. If so, it means that the decibel of the information segment is too large, and the information segment needs to be denoised, so a mark is left on the information segment. If not, the information segment does not need to be denoised, and the next information segment is screened again.
[0054] 103. Based on a noise reduction algorithm, the multiple identification information segments are processed to generate multiple noise reduction information segments accordingly;
[0055] 1031. Determine whether there is an identifier in the plurality of information fragments;
[0056] 1032. If so, based on an adaptive filtering algorithm, process the multiple identified information segments respectively to obtain multiple noise reduction information segments;
[0057] 1033. If not, skip the information segment and re-determine whether the identifier exists in multiple information segments.
[0058] In steps 1031-1033, since only the identified information segments need to be processed, the acquired information segments are identified through the built-in identifier. If the information segment does not exist, the information segment is skipped. If the identifier exists, the information segment is subjected to noise reduction processing. During the processing, the noise reduction processing is performed in chronological order, and multiple information segments are pre-fabricated on the timeline regardless of whether they are processed or not. When the information segments are processed, the information segments on the corresponding timeline are processed into noise reduction information segments, while the information segments that are not processed and skipped are left with only blank data information at the corresponding position on the timeline. Although the position refers to the information segments that are not processed and skipped, the actual data information is blank.
[0059] Furthermore, “based on the adaptive filtering algorithm, processing the multiple identified information segments respectively to obtain multiple noise reduction information segments” may also be performed:
[0060] Set the identification information segment to x nn , set the noise reduction information segment to G nn ;
[0061] Based on the adaptive filtering algorithm, the noise reduction information fragment G is obtained. nn The expression of G is: nn =W n *x nn , where W n is the filter coefficient.
[0062] 104. The plurality of noise reduction information are offset with the noise information in sequence.
[0063] Furthermore, step 104 also specifically performs:
[0064] Set the expected output information fragment d nn ;
[0065] The expression for obtaining error information is: e n =d nn -G nn , where e n For error information.
[0066] In this embodiment, d nn is the expected information obtained from the ambient noise through the acoustic path, and d nn It corresponds to the expected information in a certain time period, and the time period is related to G nn The time period corresponds to the time period, so through d nn -G nn The error information generated is n And, when G nn When the subsequent information segment is blank data information, no cancellation or other calculation occurs between the corresponding noise information and the blank data information, and the segment is skipped until the next segment of the blank data information is noise reduction information, and the cancellation calculation is re-executed.
[0067] Since the filter coefficient W n It needs to be updated in real time to ensure that the next noise reduction information fragment can offset the expected information, and the error information e n The value of decreases and approaches zero, so it is necessary to obtain the information fragment of the previous moment and the error information of the previous moment e n , and calculated by LMS algorithm, the specific update expression is: W n+1 =W n +μx nn e n , to update the latest filter coefficients, where W n+1 is the filter coefficient at the next moment, μ is the convergence factor, and the convergence condition is λ max is the maximum eigenvalue of the autocorrelation matrix of the input signal.
[0068] In an embodiment of the present invention, the method for silencing indoor environmental noise is to segment the acquired noise information, screen and identify the multiple information segments after segmentation, process the identified information segments through a noise reduction algorithm, and then offset the obtained noise reduction information segments with the noise information, thereby avoiding performing all noise reduction calculations on all noise information, resulting in unnecessary waste of computing resources, and reducing the amount of calculation, thereby effectively improving the noise reduction efficiency.
[0069] The above describes the method for silencing indoor environmental noise in the embodiment of the present invention. The following describes the device for silencing indoor environmental noise in the embodiment of the present invention. Figure 3 In one embodiment of the present invention, a device for silencing indoor environmental noise includes:
[0070] A segmentation module 201 is used to obtain noise information and segment the noise information into multiple information segments;
[0071] A screening module 202 is used to screen multiple information fragments and mark the screened information fragments to obtain multiple marked information fragments;
[0072] A calculation module 203, used to process the multiple identification information segments based on a noise reduction algorithm, and correspondingly generate multiple noise reduction information segments;
[0073] The noise cancellation module 204 is used to cancel the multiple noise reduction information with the noise information in sequence.
[0074] In an embodiment of the present invention, the method for silencing indoor environmental noise is to segment the acquired noise information, screen and identify the multiple information segments after segmentation, process the identified information segments through a noise reduction algorithm, and then offset the obtained noise reduction information segments with the noise information, thereby avoiding performing all noise reduction calculations on all noise information, resulting in unnecessary waste of computing resources, and reducing the amount of calculation, thereby effectively improving the noise reduction efficiency.
[0075] Another embodiment of the device for silencing indoor environmental noise in the embodiment of the present invention includes:
[0076] A segmentation module 201 is used to obtain noise information and segment the noise information into multiple information segments;
[0077] A screening module 202 is used to screen multiple information fragments and mark the screened information fragments to obtain multiple marked information fragments;
[0078] A calculation module 203, used to process the multiple identification information segments based on a noise reduction algorithm, and correspondingly generate multiple noise reduction information segments;
[0079] The noise cancellation module 204 is used to cancel the multiple noise reduction information with the noise information in sequence.
[0080] Optionally, the sharding module 201 may further specifically perform:
[0081] Get the MD5 digest value of the update request;
[0082] Get ambient noise;
[0083] According to the environmental noise, PCM data information with sampling value as the horizontal axis and time as the vertical axis is obtained;
[0084] According to the preset timestamp, the PCM data information is divided into multiple information segments.
[0085] Optionally, the screening module 202 may also be specifically used for:
[0086] Determine whether a sampling value in a plurality of information segments is greater than a preset threshold;
[0087] If it exists, mark it at the head of the corresponding information segment to obtain the identification information segment;
[0088] If not, the information segment is skipped and it is determined again whether there is a sampling value greater than a preset threshold in multiple information segments.
[0089] Optionally, the calculation module 203 may also be specifically used for:
[0090] Determine whether there is an identifier in multiple information fragments;
[0091] If so, based on an adaptive filtering algorithm, the plurality of identified information segments are processed respectively to obtain a plurality of noise-reduced information segments;
[0092] If not, skip the information segment and re-determine whether the identifier exists in multiple information segments.
[0093] Optionally, “based on an adaptive filtering algorithm, processing the multiple identified information segments respectively to obtain multiple noise reduction information segments” may also be specifically performed as follows:
[0094] Set the identification information segment to x nn , set the noise reduction information segment to G nn ;
[0095] Based on the adaptive filtering algorithm, the noise reduction signal segment G is obtained. nn The expression is: G nn =W n *x nn , where W n is the filter coefficient.
[0096] Optionally, the silencing module 204 may also be specifically used for:
[0097] Set the expected output information fragment d nn ;
[0098] The expression for obtaining error information is: e n =d nn -G nn , where e n For error information.
[0099] Filter coefficient W n Need to be updated in real time, the specific update expression is: W n+1 =W n +μx nn e n , where W n+1 is the filter coefficient at the next moment, and μ is the convergence factor.
[0100] In an embodiment of the present invention, the method for silencing indoor environmental noise is to segment the acquired noise information, screen and identify the multiple information segments after segmentation, process the identified information segments through a noise reduction algorithm, and then offset the obtained noise reduction information segments with the noise information, thereby avoiding performing all noise reduction calculations on all noise information, resulting in unnecessary waste of computing resources, and reducing the amount of calculation, thereby effectively improving the noise reduction efficiency.
[0101] above Figure 3 The apparatus for silencing indoor environmental noise in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The device for silencing indoor environmental noise in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0102] Figure 41 is a schematic diagram of the structure of a device for silencing indoor environmental noise provided by an embodiment of the present invention. The device 300 for silencing indoor environmental noise may have relatively large differences due to different configurations or performances, and may include one or more central processing units, CPU 310, for example, one or more processors and memory 320, one or more storage media 330 storing application programs 333 or data 332, for example, one or more mass storage devices. Among them, the memory 320 and the storage medium 330 may be short-term storage or permanent storage. The program stored in the storage medium 330 may include one or more modules not shown in the diagram, and each module may include a series of instruction operations in the device 300 for silencing indoor environmental noise. Furthermore, the processor 310 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the device 300 for silencing indoor environmental noise.
[0103] The device 300 for eliminating indoor environmental noise may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 330, and / or one or more operating systems 331, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be understood by those skilled in the art that Figure 4 The structure of the device for eliminating indoor environmental noise shown does not constitute a limitation on the device based on eliminating indoor environmental noise, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0104] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the method based on silencing indoor environmental noise.
[0105] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device, such as a personal computer, a server, or a network device, to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory, ROM, random access memory, RAM, disk or optical disk, and other media that can store program codes.
[0107] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for silencing indoor environmental noise, characterized in that: include: Acquire noise information, and divide the noise information into multiple information segments; Screening the plurality of information fragments, and marking the screened information fragments to obtain a plurality of marked information fragments; Based on a noise reduction algorithm, the plurality of identification information segments are processed to generate a plurality of noise reduction information segments accordingly; offsetting the plurality of noise reduction information with the noise information in sequence; The acquiring of noise information and dividing the noise information into a plurality of information segments comprises: Get ambient noise; According to the environmental noise, PCM data information is obtained with sampling value as the horizontal axis and time as the vertical axis; According to a preset timestamp, the PCM data information is divided into a plurality of information segments; The filtering of the plurality of information fragments and marking the filtered information fragments includes: Determine whether there is a sampling value in the plurality of information segments greater than a preset threshold; If it exists, mark it at the head of the corresponding information fragment to obtain the identification information fragment; If not, skip the information segment and re-determine whether the sampling values in the multiple information segments are greater than the preset threshold; The processing of the plurality of identification information segments based on the noise reduction algorithm to correspondingly generate a plurality of noise reduction information segments includes: Determining whether there is an identifier in the plurality of information fragments; If so, based on an adaptive filtering algorithm, the plurality of identified information segments are processed respectively to obtain a plurality of noise-reduced information segments; If not, skip the information segment and re-determine whether there is an identifier in the multiple information segments; Wherein, based on the adaptive filtering algorithm, the plurality of identified information segments are processed respectively to obtain a plurality of noise reduction information segments, including: setting the identified information segments as , set the noise reduction information segment to ; Based on the adaptive filtering algorithm, obtain the noise reduction information fragment The expression is: , wherein the is the filter coefficient; The step of offsetting the plurality of noise reduction information with the noise information in sequence comprises: Set the expected output information segment ; The expression for obtaining error information is: , wherein the For error information.
2. The method for silencing indoor environmental noise according to claim 1, characterized in that: The filter coefficient Need to be updated in real time, the specific update expression is: , wherein the is the filter coefficient at the next moment, is the convergence factor.
3. A device for silencing indoor environmental noise, characterized in that: include: A segmentation module, used for acquiring noise information and segmenting the noise information into multiple information segments; A screening module, used for screening the plurality of information fragments, and marking the screened information fragments to obtain a plurality of marked information fragments; A calculation module, used for processing the plurality of identification information segments based on a noise reduction algorithm, and correspondingly generating a plurality of noise reduction information segments; A noise cancellation module, used for canceling the plurality of noise reduction information with the noise information in sequence; The sharding module can also specifically perform: Get ambient noise; According to the environmental noise, PCM data information is obtained with sampling value as the horizontal axis and time as the vertical axis; According to a preset timestamp, the PCM data information is divided into a plurality of information segments; Among them, the screening module can also specifically perform: Determine whether there is a sampling value in the plurality of information segments greater than a preset threshold; If it exists, mark it at the head of the corresponding information fragment to obtain the identification information fragment; If not, skip the information segment and re-determine whether the sampling values in the multiple information segments are greater than the preset threshold; The calculation module may also specifically execute: Determining whether there is an identifier in the plurality of information fragments; If so, based on an adaptive filtering algorithm, the plurality of identified information segments are processed respectively to obtain a plurality of noise-reduced information segments; If not, skip the information segment and re-determine whether there is an identifier in the multiple information segments; Among them, the silencer module is also used for: Set the identification information segment to , set the noise reduction information segment to ; Based on the adaptive filtering algorithm, obtain the noise reduction information fragment The expression is: , wherein the is the filter coefficient; Among them, the silencer module is also used for: Set the expected output information segment ; The expression for obtaining error information is: , wherein the For error information.
4. A device for silencing indoor environmental noise, characterized in that: The device for silencing indoor environmental noise comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the device to execute the method for canceling indoor environmental noise according to any one of claims 1-2.
5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for eliminating indoor environmental noise according to any one of claims 1 to 2 is implemented.
Citation Information
Patent Citations
Active noise control method for eliminating and reducing noise
CN101833949A
Adaptive noise reduction
US8027743B1