Mute control method and system and storage medium
By analyzing the volume of environmental noise and the output volume of the subject in real time, calculate the anti -phase noise signal and control the silencer, solve the lack of the existing macroster in low -frequency noise processing and automatic control, and achieve more efficient noise reduction and longer service life. Essence
Patent Information
- Application Number
- CN202411486388.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-23
- Publication Date
- 2025-01-21
AI Technical Summary
Existing mutes are not effective when dealing with low-frequency noise, and are large in size, complex in installation due to their reliance on physical isolation, and performance deterioration due to aging of sound-absorbing materials.
Get environmental noise data and the output volume of the receiver in real time, and perform filtering to obtain low -frequency noise data, calculate the anti -phase noise signal and output through the headset, combined with the sound pressure formula calculation level Control the signal to realize the automatic opening or closing of the macroscover.
The noise reduction effect in a high noise environment is improved, the problem of limited volume output is solved, the real -time adjustment and personalized settings of noise reduction are realized, the service life of the mute use and reduces the waste of power.
Smart Images

Figure CN119339699A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of earphone control technology, and in particular to a control method, system and storage medium for a mute. Background Art
[0002] At present, noise pollution is becoming increasingly serious in industrial environments. It not only has a negative impact on production efficiency, but also directly threatens the health of employees. Long-term exposure to high-intensity noise can cause hearing loss, tinnitus and other hearing damage. Hearing loss within 30dB is mild noise-induced deafness, while hearing loss exceeding 60dB is severe noise-induced deafness, which seriously affects communication ability. At the same time, noise also affects vision. For example, when the noise intensity reaches 90 decibels, the sensitivity of human visual cells decreases, and the reaction time to identify weak light is prolonged. When the noise reaches 115 decibels, most people's eyeballs have different degrees of weakening in adapting to light brightness. Noise pollution can also seriously affect wild animals, interfering with their communication, navigation and survival abilities. Although the impact on plant life is not direct, it can indirectly affect plant reproduction and propagation by affecting the efficiency of pollinators and seed spreaders. Continuous noise can also increase the risk of cardiovascular disease, affect sleep quality, and cause mental stress and psychological disorders. Excessive background noise can interfere with work performance and indirectly increase the probability of work-related accidents.
[0003] The application of silencers has become a key means to improve the quality of the working environment and reduce noise pollution. In the prior art, the design of silencers is based on acoustic theory. Sound-absorbing materials such as foam or fiberboard are used to construct sound barriers. These materials contain a large number of tiny pores inside, which can absorb sound energy and convert it into heat energy, thereby reducing noise propagation; for noise within a specific frequency range, a resonant cavity structure or Helmholtz resonator is used. Such devices match the sound wavelength of a certain frequency band through the precisely designed cavity size, so that the sound waves in this frequency band can be fully absorbed after entering the cavity, achieving a more efficient noise reduction effect. However, due to the reliance on physical isolation, such devices are often large in size and complex to install, which is not practical when space is limited or flexible layout is required. In addition, passive noise reduction technology has different processing capabilities for sounds in different frequency ranges, especially for low-frequency noise. Furthermore, after long-term use, the sound-absorbing material will age, resulting in performance degradation or even failure, thereby limiting the effectiveness and durability of its application. Summary of the invention
[0004] The present invention provides a control method, system and storage medium of a mute to achieve low-frequency noise reduction and improve the durability of the mute.
[0005] In a first aspect, in order to solve the above technical problem, the present invention provides a control method of a mute device, comprising: Acquire environmental noise data and receiver output volume, wherein the environmental noise data includes acquisition time and noise intensity; Filtering the environmental noise data to obtain low-frequency noise data; Calculate an anti-phase noise signal according to the low-frequency noise data, and output an anti-phase noise sound wave through headphones; Calculate the average environmental noise intensity according to the environmental noise data; Calculating the sound pressure level according to the average noise intensity of the environment and the output volume of the receiver using a sound pressure formula; According to the sound pressure level and the preset sound pressure threshold, a mute control signal is calculated by a control signal formula to control the mute to be turned off or on.
[0006] In an optional implementation, filtering the environmental noise data to obtain low-frequency noise data includes: Performing Fourier transform on the environmental noise data to obtain a noise spectrum; Removing high-frequency components greater than a preset threshold in the noise spectrum to obtain a low-frequency noise data spectrum; Performing inverse Fourier transform on the spectrum of the low-frequency noise data to obtain low-frequency noise data.
[0007] In an optional implementation, the calculating the anti-phase noise signal according to the low-frequency noise data and outputting the anti-phase noise sound wave through headphones includes: The low-frequency noise data is segmented in combination with a preset sampling rate, and each sampling interval is approximately a sine wave signal; The anti-phase noise acoustic wave part is obtained by the following formula: in is low frequency noise data, is the amplitude, is the angular frequency, For time, is the phase, is the anti-phase noise, is the ratio of pi; The anti-phase noise sound waves are partially combined and output through headphones.
[0008] In an optional implementation, the calculating the average environmental noise intensity according to the environmental noise data includes: The average noise intensity of the environment is calculated by the following formula: in, is the average noise intensity of the environment, is the total amount of noise data collected, is the noise intensity at time n.
[0009] In an optional implementation manner, calculating the sound pressure level by using a sound pressure formula according to the average noise intensity of the environment and the output volume of the receiver includes: The sound pressure level is calculated using the following formula: in, is the sound pressure level, For the strong ambient sound, is the preset reference sound intensity, Output volume for the receiver. is the average noise intensity of the environment.
[0010] In an optional implementation, the step of calculating the mute control signal by a control signal formula according to the sound pressure level and the preset sound pressure threshold to control the mute to be turned off or on includes: in, is the mute control signal voltage value, is the sound pressure level, is the preset coefficient, is the preset sound pressure threshold; When the mute control signal voltage value is 1, the mute control signal is a start signal, and the mute is started; When the voltage value of the mute control signal is 0, the mute control signal is a closing signal, and the mute is closed.
[0011] In an optional implementation, after calculating the mute control signal by a control signal formula according to the sound pressure level and the preset sound pressure threshold to control the mute to be turned off or on, the method further includes: When the mute is on, the voice communication function is enabled and the receiver is turned off; When the mute is turned off, the voice communication function is turned off and the receiver is turned on.
[0012] In a second aspect, the present invention provides a control system for a mute device, comprising: A sound collection module, used to obtain environmental noise data and receiver output volume, wherein the environmental noise data includes collection time and noise intensity; A low-frequency filtering module, used for filtering the environmental noise data to obtain low-frequency noise data; A low-frequency noise reduction module, used to calculate an anti-phase noise signal according to the low-frequency noise data, and output an anti-phase noise sound wave through headphones; A noise intensity module, used to calculate the average environmental noise intensity according to the environmental noise data; A sound pressure level module, used to calculate the sound pressure level through a sound pressure formula according to the average noise intensity of the environment and the output volume of the receiver; The control signal module is used to calculate the mute control signal according to the sound pressure level and the preset sound pressure threshold through the control signal formula to control the mute to be turned off or on.
[0013] In a third aspect, the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements any one of the above-mentioned methods for controlling a mute when executing the computer program.
[0014] In a fourth aspect, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned methods for controlling a mute.
[0015] Compared with the prior art, the present invention has the following beneficial effects: the present invention discloses a control method, system and storage medium for a mute, the method comprising obtaining environmental noise data and receiver output volume, the environmental noise data comprising acquisition time and noise intensity; filtering the environmental noise data to obtain low-frequency noise data; calculating an inverted noise signal according to the low-frequency noise data, and outputting an inverted noise sound wave through headphones; calculating the average environmental noise intensity according to the environmental noise data; calculating the sound pressure level according to the environmental average noise intensity and the receiver output volume through a sound pressure formula; and calculating a mute control signal according to the sound pressure level and a preset sound pressure threshold through a control signal formula to control the mute to be turned off or on. The present invention obtains the environmental noise and the receiver output volume in real time, and uses these data to calculate the sound pressure value of the spatial point where the human ear is located, and automatically turns the mute on and off according to the result of comparing the sound pressure value with the preset threshold. Combined with the active noise reduction function, it has a better noise reduction effect, especially for low-frequency noise. It not only improves the noise reduction effect in high-noise environments and solves the problem of limited volume output, but also realizes real-time adjustment and personalized settings of noise reduction to meet the needs of different users for noise sensitivity. At the same time, it can automatically turn on or off the mute according to the ambient noise conditions, avoiding unnecessary power waste in low-noise environments, and increasing the durability and noise reduction effect of the mute. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1It is a flowchart of a control method of a mute provided by the first embodiment of the present invention; Figure 2 It is a schematic diagram of the control system structure of a mute provided by the second embodiment of the present invention. DETAILED DESCRIPTION
[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0018] At present, noise pollution is becoming increasingly serious in industrial environments. It not only has a negative impact on production efficiency, but also directly threatens the health of employees. Long-term exposure to high-intensity noise can cause hearing loss, tinnitus and other hearing damage. Hearing loss within 30dB is mild noise-induced deafness, while hearing loss exceeding 60dB is severe noise-induced deafness, which seriously affects communication ability. At the same time, noise also affects vision. For example, when the noise intensity reaches 90 decibels, the sensitivity of human visual cells decreases, and the reaction time to identify weak light is prolonged. When the noise reaches 115 decibels, the adaptation of most people's eyes to light brightness is weakened to varying degrees. Noise pollution can also seriously affect wild animals, interfering with their communication, navigation and survival abilities. Although the impact on plant life is not direct, it can indirectly affect plant reproduction and propagation by affecting the efficiency of pollinators and seed spreaders. Continuous noise can also increase the risk of cardiovascular disease, affect sleep quality, and cause problems such as mental stress and psychological disorders. Excessive background noise interferes with work performance and indirectly increases the probability of work-related accidents.
[0019] The application of silencers has become a key means to improve the quality of the working environment and reduce noise pollution. In the prior art, the design of silencers is based on acoustic theory. Sound-absorbing materials such as foam or fiberboard are used to construct sound barriers. These materials contain a large number of tiny pores inside, which can absorb sound energy and convert it into heat energy, thereby reducing noise propagation; for noise within a specific frequency range, a resonant cavity structure or Helmholtz resonator is used. Such devices match the sound wavelength of a certain frequency band through the precisely designed cavity size, so that the sound waves in this frequency band can be fully absorbed after entering the cavity, achieving a more efficient noise reduction effect. However, due to the reliance on physical isolation, such devices are often large in size and complex to install, which is not practical when space is limited or flexible layout is required. In addition, passive noise reduction technology has different processing capabilities for sounds in different frequency ranges, especially for low-frequency noise. Furthermore, after long-term use, the sound-absorbing material will age, resulting in performance degradation or even failure, thereby limiting the effectiveness and durability of its application.
[0020] To solve the above problems, refer to Figure 1 The first embodiment of the present invention provides a method for controlling a mute device, comprising the following steps: S11, obtaining environmental noise data and receiver output volume, wherein the environmental noise data includes collection time and noise intensity; S12, filtering the environmental noise data to obtain low-frequency noise data; S13, calculating an anti-phase noise signal according to the low-frequency noise data, and outputting an anti-phase noise sound wave through headphones; S14, calculating the average environmental noise intensity according to the environmental noise data; S15, calculating the sound pressure level by using a sound pressure formula according to the average noise intensity of the environment and the output volume of the receiver; S16, according to the sound pressure level and the preset sound pressure threshold, a mute control signal is calculated by a control signal formula to control the mute to be turned off or on.
[0021] In step S11, environmental noise data and receiver output volume are obtained, wherein the environmental noise data includes collection time and noise intensity.
[0022] In one embodiment, in order to effectively obtain the environmental noise data and the output volume of the receiver, a mute system with integrated high-sensitivity microphone units is used. These microphone units are arranged in key positions in the working area and can capture and record the noise level in the surrounding environment in real time. At the same time, the speakers in the headphones or earplugs are used to transmit audio signals to the user, and their output volume is monitored by the built-in sound sensor. During the whole process, the environmental noise data collected by the microphone unit and the output volume information of the receiver will be transmitted to the central processing unit or a dedicated control module. After analysis and processing, the actual sound pressure value at the spatial point where the human ear is located can be calculated.
[0023] It is worth noting that environmental noise data describes the specific form of noise signals changing over time, which can be used to identify different types of noise sources and their characteristics. Waveform data is a continuous analog signal or a discrete digital signal after sampling. The noise intensity is expressed in decibels, reflecting the loudness of the sound in the environment. The collection time is the specific moment of each noise data collection, which is used for the subsequent segmentation of the noise data.
[0024] In step S12, the environmental noise data is filtered to obtain low-frequency noise data.
[0025] In one implementation, the environmental noise data is Fourier transformed to obtain a noise spectrum; high-frequency components in the noise spectrum that are greater than a preset threshold are removed to obtain a low-frequency noise data spectrum; and the low-frequency noise data spectrum is inversely Fourier transformed to obtain low-frequency noise data.
[0026] In another embodiment, it is implemented by a digital filter, in particular a low-pass filter, which can effectively allow signals below a certain cutoff frequency to pass through while attenuating signals above the cutoff frequency. Sensor devices such as microphone units are used to collect noise data in the environment in real time, and these data include sound signals with different frequency components. For analog signals, it is necessary to convert them into digital signals through an analog-to-digital converter, and then perform subsequent digital signal processing. The digitized noise data is input into a designed low-pass filter. This filter can choose a Butterworth filter, a Chebyshev filter, or an elliptical filter, etc. The design parameter cutoff frequency of the filter can be set according to the actual measurement of the part that cannot be processed by physical noise reduction to achieve the optimization of filter performance. After filtering, the output is noise data mainly containing low-frequency components.
[0027] It is worth mentioning that the biggest advantage of the Butterworth filter is that it provides the flattest frequency response in the passband, which means that before the cutoff frequency, the amplitude of the signal remains almost unchanged without fluctuations. In the stopband, its attenuation rate accelerates as the filter order increases, but the transition band of the Butterworth filter is wider than that of other types of filters. Chebyshev filters include type 1 and type 2. Type 1 Chebyshev filters allow equal ripple fluctuations in the passband, but the attenuation in the stopband is very rapid. This design enables it to reach the required attenuation level faster, and is particularly suitable for applications that require a fast transition from passband to stopband. Type 2 Chebyshev filters are the opposite of type 1. They remain flat in the passband and exhibit equal ripple characteristics in the stopband. This type of filter is usually used in applications that require no ripple fluctuations in the passband and a steep transition band. Elliptical filters can provide the narrowest transition band at the same order, that is, the change from the passband to the stopband is the most abrupt. However, this performance comes at the expense of fluctuations in both the passband and the stopband. Therefore, it exhibits equal ripple characteristics in both the passband and the stopband.
[0028] In step S13, an anti-phase noise signal is calculated according to the low-frequency noise data, and an anti-phase noise sound wave is output through headphones.
[0029] In one implementation, the low-frequency noise data is segmented in combination with a preset sampling rate, and each sampling interval is approximately a sinusoidal wave signal; The anti-phase noise acoustic wave part is obtained by the following formula: in is low frequency noise data, is the amplitude, is the angular frequency, For time, is the phase, is the anti-phase noise, is the ratio of pi; The anti-phase noise sound waves are partially combined and output through headphones.
[0030] It is worth noting that active noise reduction technology is based on the principle of sound wave interference, that is, when two sound waves of the same frequency but opposite phases meet, they will cancel each other out. After obtaining the low-frequency noise data, it is necessary to generate a signal with the opposite phase but the same amplitude as the original noise signal. This process can be completed through simple mathematical operations. Specifically, if the original noise signal is a time domain sequence , then its inverted signal This is usually performed quickly by a digital signal processor. Furthermore, in order to ensure that the anti-phase noise signal can accurately cancel the original noise, the time delay of sound propagation must be taken into account. This means that the anti-phase signal needs to be appropriately delayed to match the time it takes for the external noise source to reach the user's ear. This delay is determined by measurement and calibration, or dynamically adjusted by an algorithm. The calculated anti-phase noise signal is played out through the headphone speaker. When these anti-phase noise sound waves meet the original noise entering the ear from the outside world, they will theoretically cancel each other in the ear canal due to their opposite phases, thereby reducing the perceived noise level. Furthermore, in order to achieve the best noise reduction effect, the method includes a feedback mechanism. The method installs an additional microphone inside the earmuff headphone to monitor the actual noise level in the ear canal. Based on this feedback information, the strength and phase of the anti-phase signal can be continuously adjusted to adapt to the changing environmental noise conditions.
[0031] It is worth noting that active noise reduction technology includes feedforward active noise reduction, in which the microphone is located outside the headset and directly picks up the ambient noise signal. This design can respond quickly to changes in external noise and is suitable for processing low-frequency noise. Feedback active noise reduction, the microphone is located inside the headset, close to the ear, and is used to detect the actual noise situation in the ear canal. This method can process high-frequency noise more accurately, but because the signal processing occurs in the ear, the response time is longer. Hybrid active noise reduction combines the feedforward and feedback methods, and sets microphones inside and outside the headset to capture external and internal noise signals at the same time, thereby providing a wider frequency band noise reduction effect. Adaptive active noise reduction uses a dynamic filtering algorithm to automatically adjust the anti-phase signal according to changes in noise frequency to ensure good noise reduction performance in a variety of environments.
[0032] In step S14, the average environmental noise intensity is calculated according to the environmental noise data.
[0033] In one implementation, the average ambient noise intensity is calculated using the following formula: in, is the average noise intensity of the environment, is the total amount of noise data collected, is the noise intensity at time n.
[0034] It is worth noting that the noise intensity data is continuously sampled at a certain time interval. This method uses 44100 samples per second. The unit of noise intensity data is Pascal. In order to obtain the average noise intensity over a period of time, this method uses the arithmetic mean method.
[0035] It is worth noting that sound intensity is a vector quantity that describes the energy flow rate of a sound wave through a unit area perpendicular to the propagation direction in unit time. The dual microphone method is one of the most commonly used sound intensity measurement techniques. This method uses two closely adjacent microphones with a fixed spacing to measure the sound pressure difference at different positions at the same time, and then calculates the particle velocity, and combines the sound pressure data to obtain the sound intensity. Furthermore, the particle velocity sensor is a device that directly measures the particle velocity. It can be used in combination with a traditional sound pressure sensor to calculate the sound intensity. This type of sensor works based on the laser Doppler principle or the thermoelectric effect and can provide high-precision velocity information. The sound intensity meter method is another practical way to measure sound intensity. It involves placing a sound intensity meter in the area to be measured and estimating the sound intensity by processing the received sound signal through a built-in algorithm. Modern sound intensity meters often integrate multiple sensors and can simultaneously perform multi-channel data acquisition, thereby improving measurement efficiency and accuracy. In the actual measurement process, it is necessary to pay attention to the influence of the surrounding environment, such as the presence of a reflective surface that will interfere with the measurement results. The measurement equipment used needs to have a wide frequency response range to cover the working frequency band. Sound intensity measurements can be used to calculate the total sound power on an enclosed surface or part of a surface.
[0036] In another embodiment, the average is calculated based on the sound energy. Each sample is converted to a linear noise intensity; the sound energy density is calculated; the average of the sound energy density of all sample points is calculated; and the average sound energy density is converted to noise intensity. This sound energy-based averaging method can better reflect the true level of sound energy over a period of time, especially when dealing with sounds with different intensities. It avoids the deviation caused by simple arithmetic averaging and conforms to acoustic principles.
[0037] In step S15, the sound pressure level is calculated using a sound pressure formula according to the average noise intensity of the environment and the output volume of the receiver.
[0038] In one implementation, the sound pressure level is calculated using the following formula: in, is the sound pressure level, For the strong ambient sound, is the preset reference sound intensity, Output volume for the receiver. is the average noise intensity of the environment.
[0039] It is worth noting that the definition of sound pressure level is to take the common logarithm of the ratio of the measured sound pressure to a reference sound pressure and multiply it by 20. It is defined based on the human ear's perception of sound, because the human ear responds to sound intensity logarithmically, not linearly. This means that the perceived change in the intensity of the sound heard is not proportional to the change in the actual sound pressure. Ambient sound intensity refers to sound power or sound energy density. The preset reference sound intensity is the benchmark value, using 1 picowatt per square meter. The receiver output volume can be regarded as the amplitude of the sound signal received from the microphone, which is converted into a physical quantity related to sound intensity after a certain calibration. Since the human ear perceives sound intensity logarithmically, the sound pressure level or sound intensity level is expressed logarithmically to more intuitively reflect the human hearing experience. The dynamic range of sound is very wide, from almost inaudible sounds to painful noises, with sound pressures differing by millions of times. The logarithmic scale can compress this wide range into a range that is easier to understand and compare. Since the human ear has different sensitivities to sounds of different frequencies, the sound pressure level is measured using A-weighting. This takes into account the human ear's relative insensitivity to low-frequency and high-frequency sounds, and adjusts the contribution of each frequency component through a weighting network to improve the reliability of the sound data.
[0040] In step S16, a mute control signal is obtained by calculating a control signal formula according to the sound pressure level and a preset sound pressure threshold, and the mute is controlled to be turned off or on.
[0041] In one embodiment, the mute control signal is calculated by a control signal formula according to the sound pressure level and the preset sound pressure threshold to control the mute to be turned off or on, including: in, is the mute control signal voltage value, is the sound pressure level, is the preset coefficient, is the preset sound pressure threshold; When the mute control signal voltage value is 1, the mute control signal is a start signal, and the mute is started; When the voltage value of the mute control signal is 0, the mute control signal is a closing signal, and the mute is closed.
[0042] It is worth noting that the threshold is set to define a standard for the noise level. When the ambient noise exceeds this standard, the mute is activated; when the noise is lower than another standard, the mute is turned off. These thresholds are set according to the needs of the actual application scenario. For example, in an office environment, it is hoped that the mute function will be enabled when the background noise exceeds a certain level to reduce interference. The thresholds for office environments and factory environments are adjusted by preset coefficients. The control signal is a binary value, represented by 0 or 1. 0 means turning off the mute, and 1 means starting the mute. The generation of the control signal depends on the relationship between the current sound pressure level and the threshold. This logic enables the mute to be activated or deactivated at the appropriate time. The control logic is implemented by programming, and a microcontroller, a single-chip microcomputer, or a computer program can be used. The program will periodically read the sound pressure level data and update the control signal according to the preset rules. The control signal needs to be sent to the mute device, and the high and low levels are directly output through the GPIO pins. Furthermore, using protocols such as UART, I2C, and SPI to send control instructions can achieve more efficient control. Furthermore, to prevent frequent switching caused by noise fluctuations, different start and shut-down thresholds can be set to prevent hysteresis. Smoothing the sound pressure level data can reduce false triggering and improve system stability. Considering the actual response time of the mute and system delay, adding them to the control calculation formula ensures that the control logic can be executed in a timely and effective manner.
[0043] In one embodiment, after the mute control signal is calculated by a control signal formula according to the sound pressure level and the preset sound pressure threshold to control the closing or starting of the mute, the method further includes: when the mute is turned on, the voice communication function is enabled and the receiver is turned off; when the mute is turned off, the voice communication function is turned off and the receiver is started.
[0044] It is worth noting that when the mute is activated, the method starts the voice communication function. The microphone array or other sound collection device is enabled to capture the speaker's voice more clearly, and the noise reduction algorithm is activated to reduce the impact of background noise on the voice signal. Further, the voice communication function can adjust audio processing parameters, such as gain control, dynamic range compression, and echo cancellation to avoid echo problems during calls to optimize voice quality. Further, the receiver is turned off because in a high-noise environment, the sound played through the speaker will be mixed with the ambient noise, resulting in unclear hearing, and high noise will cause hearing damage. When the mute is turned off, the voice communication function is turned off, and the microphone sensitivity can be reduced or the microphone can be completely turned off to reduce unnecessary data processing and power consumption. At the same time, the system will restart the receiver because in a low-noise environment, the sound played through the speaker can be clearly heard without worrying about the impact of background noise. For some systems, such as in-vehicle entertainment systems, restoring the speaker function allows drivers and passengers to enjoy a better audio experience. The speaker can resume normal audio output functions, including music playback and notification prompts.
[0045] In order to facilitate the understanding of the present invention, some preferred embodiments of the present invention are further described below.
[0046] In another implementation, active noise reduction uses adaptive active noise reduction. The core lies in the ability to intelligently respond to and adapt to noise changes in the environment. One or more microphones are used to collect environmental noise signals; the system quickly analyzes these noise signals and uses an adaptive algorithm to calculate a sound wave signal with a phase opposite to the noise; the calculated anti-phase sound wave is played through a speaker, meets the original noise in the air and cancels each other out; the system continuously monitors the actual noise reduction effect and continuously adjusts the anti-phase sound wave through a feedback mechanism to achieve the best noise reduction performance. Adaptive active noise reduction relies on an efficient signal processing algorithm, using an adaptive filtering algorithm. The minimum mean algorithm is an iterative algorithm that minimizes the output error by gradually adjusting the filter coefficients. The minimum mean algorithm has low computational complexity and can process data quickly. Further, the fast Fourier transform is used to convert the noise signal from the time domain to the frequency domain for processing. In this way, an anti-phase signal can be generated separately for each frequency component, which is particularly suitable for processing noise with complex frequency components and works better under high-frequency noise. Further, deep learning and machine learning are introduced into active noise reduction technology. Through the neural network model, the system can learn the pattern of environmental noise, predict future noise changes, and generate corresponding anti-phase signals. This type of algorithm has strong adaptability and is particularly suitable for changeable and complex noise environments, but it requires higher computing power.
[0047] In one embodiment, the sound pressure threshold is set. In an industrial environment, long-term exposure to high sound pressure levels can cause damage to workers' hearing. Many countries and regions have set occupational health and safety standards to limit noise levels in the workplace. For example, the U.S. Occupational Safety and Health Administration stipulates that the allowable noise exposure level within a continuous 8-hour workday is 90 decibels A-weighted. This means that if the noise level in a working environment exceeds 90 dBA, measures need to be taken to reduce the noise. Further, determining whether a person has a normal hearing range is also done by setting a sound pressure threshold. Pure tone hearing threshold determination is a commonly used method that plays a series of pure tones of different frequencies and gradually reduces their intensity until the subject can just hear the sound. The intensity of the sound that can just be heard is the hearing threshold at that frequency. In some cases, only sudden high-intensity noise events are needed, rather than continuous low-intensity noise. For example, in a factory, a higher instantaneous sound pressure level threshold is set to capture the loud noise generated when the machine starts and lands. For custom thresholds, measurements can be made using a sound level meter, and the preliminary threshold can be set by directly observing the data. At the same time, the Otsu method is used to analyze the distribution of noise data and find the best split point. The optimal factory noise threshold is found by maximizing information entropy. In the process of developing the mute, the volume adjustment algorithm can be optimized through user testing and feedback to ensure both safety and user experience. Evaluate the safety and user satisfaction of the headphones under different threshold settings, and select the true positive rate, which means the correct volume reduction; the false positive rate, which means unnecessary volume reduction, to achieve the threshold of the best balance point.
[0048] In summary, the present invention discloses a control method, system and storage medium for a mute, the core of which is to obtain and analyze various sound data such as environmental noise and output volume in real time, calculate the sound pressure value of the spatial point where the human ear is located using a specific algorithm, and intelligently control the opening and closing of the mute accordingly. This method can not only improve the noise reduction effect of the mute in a high-noise environment and solve the problem of limited volume output, but also realize real-time and personalized adjustment of the noise reduction amount, and automatically adjust the noise reduction amount according to the individual's sensitivity to noise. In addition, the method can also automatically turn on or off the mute according to the environmental noise, reduce power waste, and ensure that the set value of the noise reduction amount is consistent with the actual noise reduction amount through accurate environmental noise test data, thereby improving the noise reduction effect. In terms of implementation method, the system can accurately obtain environmental noise data, calculate the average environmental noise, and calculate the sound pressure value of the human ear spatial point according to the output volume of the receiver and the average environmental noise. Then, the system will intelligently generate a control signal to turn on or off the mute according to the comparison result of the sound pressure value and the preset threshold value, so as to realize the automatic opening and closing of the mute. Furthermore, the method takes into account the voice communication function, and can automatically enable the voice communication function when the mute is enabled, and cut off the voice communication function when the mute is turned off. This design not only improves the intelligence level of the mute, but also effectively avoids the problem of the mute continuing to work and generate noise when the ambient noise is low, thereby improving the use effect and user experience. By introducing the active noise reduction function, the technology that can effectively cope with the dynamic noise environment, by intelligently adjusting the noise reduction parameters, provides excellent noise reduction effects for low-frequency noise in various application scenarios. Furthermore, the method solves multiple problems in the prior art through an intelligent control method, including individual differences in ambient noise, the inability to automatically adjust the noise reduction amount according to the individual's sensitivity to noise, the inability of the mute to automatically turn on or off according to the ambient noise, and the inability of the ambient noise test data to be accurate. The noise reduction effect of high-frequency and low-frequency noise is improved, and the durability of the mute is enhanced.
[0049] Reference Figure 2 A second embodiment of the present invention provides a control system for a mute device, comprising: A sound collection module, used to obtain environmental noise data and receiver output volume, wherein the environmental noise data includes collection time and noise intensity; A low-frequency filtering module, used for filtering the environmental noise data to obtain low-frequency noise data; A low-frequency noise reduction module, used to calculate an anti-phase noise signal according to the low-frequency noise data, and output an anti-phase noise sound wave through headphones; A noise intensity module, used to calculate the average environmental noise intensity according to the environmental noise data; A sound pressure level module, used to calculate the sound pressure level through a sound pressure formula according to the average noise intensity of the environment and the output volume of the receiver; The control signal module is used to calculate the mute control signal according to the sound pressure level and the preset sound pressure threshold through the control signal formula to control the mute to be turned off or on.
[0050] Preferably, the sound collection module is used to: Acquire environmental noise data and receiver output volume, wherein the environmental noise data includes acquisition time and noise intensity.
[0051] Preferably, the low-frequency filtering module is used to: The environmental noise data is filtered to obtain low-frequency noise data, including: Performing Fourier transform on the environmental noise data to obtain a noise spectrum; Removing high-frequency components greater than a preset threshold in the noise spectrum to obtain a low-frequency noise data spectrum; Performing inverse Fourier transform on the spectrum of the low-frequency noise data to obtain low-frequency noise data.
[0052] Preferably, the low-frequency noise reduction module is used to: Calculating an anti-phase noise signal according to the low-frequency noise data and outputting an anti-phase noise sound wave through headphones includes: The low-frequency noise data is segmented in combination with a preset sampling rate, and each sampling interval is approximately a sine wave signal; The anti-phase noise acoustic wave part is obtained by the following formula: in is low frequency noise data, is the amplitude, is the angular frequency, For time, is the phase, is the anti-phase noise, is the ratio of pi; The anti-phase noise sound waves are partially combined and output through headphones.
[0053] Preferably, the noise intensity module is used to: Calculating the average environmental noise intensity according to the environmental noise data includes: The average noise intensity of the environment is calculated by the following formula: in, is the average noise intensity of the environment, is the total amount of noise data collected, is the noise intensity at time n.
[0054] Preferably, the sound pressure level module is used to: The sound pressure level is calculated according to the average noise intensity of the environment and the output volume of the receiver by using a sound pressure formula, including: The sound pressure level is calculated using the following formula: in, is the sound pressure level, For the strong ambient sound, is the preset reference sound intensity, Output volume for the receiver. is the average noise intensity of the environment.
[0055] Preferably, the control signal module is used to: According to the sound pressure level and the preset sound pressure threshold, a mute control signal is calculated by a control signal formula to control the mute to be turned off or on, including: in, is the mute control signal voltage value, is the sound pressure level, is the preset coefficient, is the preset sound pressure threshold; When the mute control signal voltage value is 1, the mute control signal is a start signal, and the mute is started; When the voltage value of the mute control signal is 0, the mute control signal is a closing signal, and the mute is closed.
[0056] Preferably, after obtaining a mute control signal by calculating the mute control signal according to the sound pressure level and the preset sound pressure threshold through a control signal formula to control the mute to be turned off or on, the method further comprises: When the mute is on, the voice communication function is enabled and the receiver is turned off; When the mute is turned off, the voice communication function is turned off and the receiver is turned on.
[0057] It should be noted that the control system of a mute provided in an embodiment of the present invention is used to execute all the process steps of a mute control method in the above embodiment, and the working principles and beneficial effects of the two correspond one to one, so they will not be described in detail.
[0058] The embodiment of the present invention further provides an electronic device. The electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a low-frequency filter program. When the processor executes the computer program, the steps in the above-mentioned control method of each mute are implemented, such as Figure 1 Alternatively, when the processor executes the computer program, the functions of each module / unit in the above-mentioned device embodiments are realized, such as the sound collection module.
[0059] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the electronic device.
[0060] The electronic device may be a computing device such as a desktop computer, a notebook, a PDA, and a smart tablet. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the above components are merely examples of electronic devices and do not constitute a limitation on the electronic device. The electronic device may include more or fewer components than the above components, or may combine certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0061] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device.
[0062] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the electronic device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0063] Wherein, if the module / unit integrated in the electronic device 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.
[0064] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0065] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for controlling a mute, characterized in that: include: Acquire environmental noise data and receiver output volume, wherein the environmental noise data includes acquisition time and noise intensity; Filtering the environmental noise data to obtain low-frequency noise data; Calculate an anti-phase noise signal according to the low-frequency noise data, and output an anti-phase noise sound wave through headphones; Calculate the average environmental noise intensity according to the environmental noise data; Calculating the sound pressure level according to the average noise intensity of the environment and the output volume of the receiver using a sound pressure formula; According to the sound pressure level and the preset sound pressure threshold, a mute control signal is calculated by a control signal formula to control the mute to be turned off or on.
2. The method for controlling a mute device according to claim 1, characterized in that: The filtering process of the environmental noise data to obtain low-frequency noise data includes: Performing Fourier transform on the environmental noise data to obtain a noise spectrum; Removing high-frequency components greater than a preset threshold in the noise spectrum to obtain a low-frequency noise data spectrum; Performing inverse Fourier transform on the spectrum of the low-frequency noise data to obtain low-frequency noise data.
3. The control method of the mute device according to claim 1, characterized in that: The step of calculating the anti-phase noise signal according to the low-frequency noise data and outputting the anti-phase noise sound wave through headphones comprises: The low-frequency noise data is segmented in combination with a preset sampling rate, and each sampling interval is approximately a sine wave signal; The anti-phase noise acoustic wave part is obtained by the following formula: in is low frequency noise data, is the amplitude, is the angular frequency, For time, is the phase, is the anti-phase noise, is the ratio of pi; The anti-phase noise sound waves are partially combined and output through headphones.
4. The method for controlling a mute device according to claim 1, characterized in that: The calculating the average environmental noise intensity according to the environmental noise data comprises: The average noise intensity of the environment is calculated by the following formula: in, is the average noise intensity of the environment, is the total amount of noise data collected, is the noise intensity at time n.
5. The method for controlling a mute device according to claim 1, characterized in that: The calculating the sound pressure level by a sound pressure formula according to the average noise intensity of the environment and the output volume of the receiver includes: The sound pressure level is calculated using the following formula: in, is the sound pressure level, For the strong ambient sound, is the preset reference sound intensity, Output volume for the receiver. is the average noise intensity of the environment.
6. The method for controlling a mute device according to claim 5, characterized in that: The step of calculating a mute control signal according to the sound pressure level and the preset sound pressure threshold value by a control signal formula to control the mute to be turned off or on includes: in, is the mute control signal voltage value, is the sound pressure level, is the preset coefficient, is the preset sound pressure threshold; When the mute control signal voltage value is 1, the mute control signal is a start signal, and the mute is started; When the voltage value of the mute control signal is 0, the mute control signal is a closing signal, and the mute is closed.
7. The method for controlling a mute device according to claim 1, characterized in that: After obtaining a mute control signal by calculating the mute control signal according to the sound pressure level and the preset sound pressure threshold through a control signal formula to control the mute to be turned off or on, the method further includes: When the mute is on, the voice communication function is enabled and the receiver is turned off; When the mute is turned off, the voice communication function is turned off and the receiver is turned on.
8. A control system for a mute, characterized in that: include: A sound collection module, used to obtain environmental noise data and receiver output volume, wherein the environmental noise data includes collection time and noise intensity; A low-frequency filtering module, used for filtering the environmental noise data to obtain low-frequency noise data; A low-frequency noise reduction module, used to calculate an anti-phase noise signal according to the low-frequency noise data, and output an anti-phase noise sound wave through headphones; A noise intensity module, used to calculate the average environmental noise intensity according to the environmental noise data; A sound pressure level module, used to calculate the sound pressure level through a sound pressure formula according to the average noise intensity of the environment and the output volume of the receiver; The control signal module is used to calculate the mute control signal according to the sound pressure level and the preset sound pressure threshold through the control signal formula to control the mute to be turned off or on.
9. An electronic device, characterized in that: The invention comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor implements the control method of the mute according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for controlling a mute device according to any one of claims 1 to 7.