CN114640925B - Dynamic gain equalization system and method for sound equipment - Google Patents
Dynamic gain equalization system and method for sound equipment Download PDFInfo
- Publication number
- CN114640925B CN114640925B CN202210198059.0A CN202210198059A CN114640925B CN 114640925 B CN114640925 B CN 114640925B CN 202210198059 A CN202210198059 A CN 202210198059A CN 114640925 B CN114640925 B CN 114640925B
- Authority
- CN
- China
- Prior art keywords
- volume
- frequency
- preset
- sound signal
- range value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 23
- 230000005236 sound signal Effects 0.000 claims abstract description 186
- 238000001514 detection method Methods 0.000 claims description 36
- 230000002596 correlated effect Effects 0.000 claims description 8
- 230000000694 effects Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 10
- 238000005314 correlation function Methods 0.000 description 8
- 230000001105 regulatory effect Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000001629 suppression Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000033228 biological regulation Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
- G10L25/51—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/20—Arrangements for obtaining desired frequency or directional characteristics
- H04R1/22—Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
- H04R2430/01—Aspects of volume control, not necessarily automatic, in sound systems
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Health & Medical Sciences (AREA)
- Computational Linguistics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Otolaryngology (AREA)
- Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
Abstract
The application is applicable to the technical field of sound processing, and provides a dynamic gain equalization system and a method for sound, wherein the dynamic gain equalization system and the method comprise the following steps: detecting a first sound signal and a second sound signal which pass through the front and the rear of the wave trap to obtain a first volume, a second volume and a second frequency; processing the second sound signal to obtain a third sound signal; determining a third sound signal; when the volume of the third sound signal belongs to a preset volume range value and the frequency belongs to a preset frequency range value, directly outputting the third sound signal; and when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value, performing gain equalization processing on the third sound signal. According to the application, the sound signal passing through the wave trap is detected and compared, so that the sound volume value of the second sound signal is increased from the second sound volume to the first sound volume, and the playing effect of the sound is ensured; and all the sound signals are not subjected to gain processing, so that the sound distortion is avoided as much as possible.
Description
Technical Field
The application relates to the technical field of sound processing, in particular to a dynamic gain equalization system and method for sound.
Background
In order to avoid the howling phenomenon of the sound equipment, measures for howling suppression need to be taken, and the suppression is mainly performed through a wave trap at present. However, the sound system often becomes dumb and silent after howling is suppressed, resulting in a reduction in the audio output effect of the sound system. In addition, in the conventional acoustic device, when an input sound signal is small, the performance of the acoustic device is insufficient in some audio frequency bands, and the performance can be improved by adjusting the equalizing gain of the audio frequency band. Accordingly, there is a need to provide a dynamic gain equalization system and method for audio, which aims to solve the above problems.
Disclosure of Invention
Aiming at the defects of the prior art, the application aims to provide a dynamic gain balancing system and a dynamic gain balancing method for sound equipment, so as to solve the problems in the background art.
The application is realized in that a dynamic gain equalization method for sound equipment comprises the following steps:
detecting a first sound signal before passing through the wave trap and a second sound signal after passing through the wave trap, and obtaining a first volume, a second volume and a second frequency after detection;
processing the volume of the second sound signal according to the first volume and the second volume to obtain a third sound signal, wherein the volume and the frequency of the third sound signal are respectively the first volume and the second frequency;
determining the volume and frequency of the third sound signal;
when the volume of the third sound signal belongs to a preset volume range value and the frequency belongs to a preset frequency range value, gain equalization processing is not performed on the third sound signal, and the third sound signal is directly output;
when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value, the third sound signal is output after gain equalization processing.
As a further scheme of the application: the step of detecting the first sound signal before passing through the wave trap and the second sound signal after passing through the wave trap to obtain a first volume, a second volume and a second frequency after detection specifically comprises the following steps:
performing volume detection on the first sound signal before passing through the wave trap to obtain a first volume;
performing volume detection on the second sound signal after passing through the wave trap to obtain a second volume;
and carrying out frequency detection on the second sound signal after passing through the wave trap to obtain a second frequency.
As a further scheme of the application: when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value, the step of outputting the third sound signal after the gain equalization processing specifically includes:
when the volume of the third sound signal does not belong to the preset volume range value and the frequency does not belong to the preset frequency range value, the volume and the frequency are independently adjusted;
when the volume of the third sound signal does not belong to a preset volume range value and the frequency belongs to a preset frequency range value, performing associated adjustment on the frequency after adjusting the volume;
when the frequency of the third sound signal does not belong to the preset volume range value and the volume belongs to the preset frequency range value, the frequency is adjusted, and then the volume is adjusted in a correlated mode.
As a further scheme of the application: the step of independently adjusting the volume and the frequency specifically comprises the following steps:
adjusting the volume to a boundary value of a preset volume range value, and adjusting the volume to an upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
adjusting the frequency to a boundary value of a preset frequency range value, and adjusting the frequency to an upper boundary value when the frequency is larger than the preset frequency range value; and when the frequency is smaller than the preset frequency range value, adjusting the frequency to a lower boundary value.
As a further scheme of the application: after the volume is adjusted, the step of performing associated adjustment on the frequency specifically includes:
adjusting the volume to a boundary value of a preset volume range value, and adjusting the volume to an upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
obtaining a preset adjustment value of frequency according to a volume frequency association function, wherein the volume frequency association function is established in advance;
judging a preset adjustment value of the frequency, and adjusting the frequency to the preset adjustment value when the preset adjustment value of the frequency belongs to a preset frequency range value; when the preset adjusting value of the frequency does not belong to the preset frequency range value, the frequency is adjusted to the boundary value.
Another object of the present application is to provide a dynamic gain equalization system for sound, the system comprising:
the signal detection module is used for detecting the first sound signal before passing through the wave trap and the second sound signal after passing through the wave trap, and obtaining a first volume, a second volume and a second frequency after detection;
the sound processing module is used for processing the volume of the second sound signal according to the first volume and the second volume to obtain a third sound signal, wherein the volume and the frequency of the third sound signal are respectively the first volume and the second frequency;
the signal judging module is used for judging the volume and the frequency of the third sound signal;
the first gain equalization module is used for directly outputting the third sound signal without performing gain equalization processing on the third sound signal when the volume of the third sound signal belongs to a preset volume range value and the frequency of the third sound signal belongs to a preset frequency range value; and
and the second gain equalization module is used for carrying out gain equalization processing on the third sound signal and outputting the third sound signal when the volume of the third sound signal does not belong to a preset volume range value and/or the frequency of the third sound signal does not belong to a preset frequency range value.
As a further scheme of the application: the signal detection module includes:
the first volume detection unit is used for detecting the volume of the first sound signal before passing through the wave trap to obtain a first volume;
the second volume detection unit is used for detecting the volume of the second sound signal passing through the wave trap to obtain a second volume; and
and the second frequency detection unit is used for carrying out frequency detection on the second sound signal after passing through the wave trap to obtain a second frequency.
As a further scheme of the application: the second gain equalization module includes:
an individual gain unit that individually adjusts the volume and the frequency when the volume of the third sound signal does not belong to a preset volume range value and the frequency does not belong to a preset frequency range value;
the sound volume frequency gain unit is used for performing association adjustment on the frequency after adjusting the sound volume when the sound volume of the third sound signal does not belong to a preset sound volume range value and the frequency belongs to a preset frequency range value;
and the frequency and volume gain unit is used for performing associated adjustment on the volume after adjusting the frequency when the frequency of the third sound signal does not belong to the preset volume range value and the volume belongs to the preset frequency range value.
As a further scheme of the application: the individual gain unit includes:
the volume adjusting subunit is used for adjusting the volume to the boundary value of the preset volume range value, and adjusting the volume to the upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
the frequency adjusting subunit is used for adjusting the frequency to a boundary value of a preset frequency range value, and adjusting the frequency to an upper boundary value when the frequency is larger than the preset frequency range value; and when the frequency is smaller than the preset frequency range value, adjusting the frequency to a lower boundary value.
As a further scheme of the application: the volume frequency gain unit includes:
the volume gain subunit is used for adjusting the volume to the boundary value of the preset volume range value, and adjusting the volume to the upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
a preset adjustment value subunit, configured to obtain a preset adjustment value of a frequency according to a volume frequency association function, where the volume frequency association function is established in advance;
the associated gain subunit is used for judging a preset adjustment value of the frequency, and adjusting the frequency to the preset adjustment value when the preset adjustment value of the frequency belongs to a preset frequency range value; when the preset adjusting value of the frequency does not belong to the preset frequency range value, the frequency is adjusted to the boundary value.
Compared with the prior art, the application has the beneficial effects that:
the sound signal before and after passing through the wave trap is detected and compared, and the sound value of the second sound signal is increased from the second sound volume to the first sound volume, so that the sound system is prevented from becoming dumb and silent or the sound is less; and the subsequent gain processing is not carried out on all the sound signals, so that the sound distortion is avoided as much as possible.
Drawings
Fig. 1 is a flow chart of a dynamic gain equalization method for audio.
Fig. 2 is a flow chart of a method for dynamic gain equalization of sound for detecting a first sound signal before passing through a trap and a second sound signal after passing through the trap.
Fig. 3 is a flowchart of a dynamic gain equalization method for audio, which performs gain equalization processing on a third sound signal and outputs the third sound signal.
Fig. 4 is a flow chart of the individual adjustment of the volume and frequency in a dynamic gain equalization method for sound.
Fig. 5 is a flowchart of a dynamic gain equalization method for audio, in which the frequency is adjusted in association with the volume.
Fig. 6 is a schematic structural diagram of a dynamic gain equalization system for audio.
Fig. 7 is a schematic structural diagram of a signal detection module in a dynamic gain equalization system for audio equipment.
Fig. 8 is a schematic structural diagram of a second gain equalization module in a dynamic gain equalization system for audio.
Fig. 9 is a schematic diagram of an individual gain unit in a dynamic gain equalization system for audio.
Fig. 10 is a schematic diagram of a sound volume frequency gain unit in a dynamic gain equalization system for sound.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, the present application will be described in further detail with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Specific implementations of the application are described in detail below in connection with specific embodiments.
As shown in fig. 1, an embodiment of the present application provides a dynamic gain equalization method for sound, including the following steps:
s100, detecting a first sound signal before passing through a wave trap and a second sound signal after passing through the wave trap, and obtaining a first volume, a second volume and a second frequency after detection;
s200, processing the volume of the second sound signal according to the first volume and the second volume to obtain a third sound signal, wherein the volume and the frequency of the third sound signal are respectively the first volume and the second frequency;
s300, judging the volume and the frequency of the third sound signal;
s400, when the volume of the third sound signal belongs to a preset volume range value and the frequency belongs to a preset frequency range value, gain equalization processing is not performed on the third sound signal, and the third sound signal is directly output;
s500, when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value, performing gain equalization processing on the third sound signal and outputting the third sound signal.
In order to avoid the howling phenomenon in the audio, measures for howling suppression need to be taken, and at present, the suppression is mainly performed by a wave trap. However, the sound system often becomes dumb and silent after howling is suppressed, resulting in a reduction in the audio output effect of the sound system. In addition, the conventional sound equipment has insufficient performance for some audio frequency bands when the input sound signal is small, and the performance of the sound equipment can be improved by adjusting the equalizing gain of the frequency band, however, when the signal of the frequency band is increased, the equalizing gain which is improved in advance is easy to cause distortion, and the embodiment of the application aims to solve the problems.
In the embodiment of the application, the first sound signal before passing through the wave trap and the second sound signal after passing through the wave trap are detected, and the first sound volume, the second sound volume and the second frequency are obtained, the first sound volume corresponds to the first sound signal, the second sound volume corresponds to the second sound signal, then the second sound signal is processed according to the first sound volume and the second sound volume to obtain the third sound signal, the third sound signal is respectively the first sound volume and the second frequency, that is to say, the sound volume value is increased from the second sound volume to the first sound volume, so that the sound system is prevented from becoming mute or sound is prevented from being smaller, the sound volume value at the moment is the received sound volume, and distortion is avoided as much as possible; and then judging the volume and the frequency of the third sound signal, when the volume of the third sound signal belongs to a preset volume range value and the frequency belongs to a preset frequency range value, not performing gain equalization processing on the third sound signal and directly outputting the third sound signal, wherein the preset volume range value and the preset frequency range value are all preset, when the volume of the third sound signal belongs to the preset volume range value and the preset frequency range value, the sound emitted by the sound equipment can be clearly heard, and when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value, the sound emitted by the sound equipment is difficult to be clearly heard, and the third sound signal is required to be output after the gain equalization processing.
As shown in fig. 2, as a preferred embodiment of the present application, the step of detecting the first sound signal before passing through the wave trap and the second sound signal after passing through the wave trap to obtain a first volume, a second volume and a second frequency specifically includes:
s101, detecting the volume of a first sound signal before passing through a wave trap to obtain a first volume;
s102, detecting the volume of the second sound signal after passing through the wave trap to obtain a second volume;
and S103, performing frequency detection on the second sound signal after passing through the wave trap to obtain a second frequency.
As shown in fig. 3, as a preferred embodiment of the present application, when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value, the step of performing gain equalization processing on the third sound signal and outputting the third sound signal specifically includes:
s501, when the volume of the third sound signal does not belong to a preset volume range value and the frequency does not belong to a preset frequency range value, the volume and the frequency are independently adjusted;
s502, when the volume of the third sound signal does not belong to a preset volume range value and the frequency belongs to a preset frequency range value, performing association adjustment on the frequency after adjusting the volume;
s503, when the frequency of the third sound signal does not belong to the preset volume range value and the volume belongs to the preset frequency range value, the frequency is adjusted, and then the volume is adjusted in a correlated way.
In the embodiment of the application, when the volume of the third sound signal does not belong to a preset volume range value and/or the frequency does not belong to a preset frequency range value, the sound emitted by the sound equipment is difficult to hear clearly, at the moment, the third sound signal is required to be processed correspondingly according to different conditions, and when the volume of the third sound signal does not belong to the preset volume range value and the frequency does not belong to the preset frequency range value, the volume and the frequency are regulated independently, so that the volume and the frequency respectively meet the requirements; when the volume of the third sound signal does not belong to the preset volume range value and the frequency belongs to the preset frequency range value, the volume is adjusted first, and then the frequency is adjusted in a correlated way according to the volume adjustment, so that the accuracy of sound is improved; and similarly, when the frequency of the third sound signal does not belong to the preset volume range value and the volume belongs to the preset frequency range value, the volume is required to be adjusted first, and then the frequency is subjected to association adjustment according to the volume adjustment.
As shown in fig. 4, as a preferred embodiment of the present application, the step of individually adjusting the volume and the frequency specifically includes:
s5011, adjusting the volume to a boundary value of a preset volume range value, and adjusting the volume to an upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
s5012, adjusting the frequency to a boundary value of a preset frequency range value, and adjusting the frequency to an upper boundary value when the frequency is larger than the preset frequency range value; and when the frequency is smaller than the preset frequency range value, adjusting the frequency to a lower boundary value.
In the embodiment of the application, the volume and the frequency are independently regulated, namely the volume value is regulated to the boundary value of the preset volume range value, and the frequency value is regulated to the boundary value of the preset frequency range value, so that the regulation sequence of the volume and the frequency is not sequential, and the purpose is achieved.
As shown in fig. 5, as a preferred embodiment of the present application, the step of performing the associated adjustment on the frequency after the adjustment on the volume specifically includes:
s5021, adjusting the volume to a boundary value of a preset volume range value, and adjusting the volume to an upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
s5022, obtaining a preset frequency adjustment value according to a volume frequency correlation function, wherein the volume frequency correlation function is established in advance;
s5023, judging a preset adjustment value of the frequency, and adjusting the frequency to the preset adjustment value when the preset adjustment value of the frequency belongs to a preset frequency range value; when the preset adjusting value of the frequency does not belong to the preset frequency range value, the frequency is adjusted to the boundary value.
In the embodiment of the application, when the volume of the third sound signal does not belong to the preset volume range value and the frequency belongs to the preset frequency range value, the volume is adjusted firstly, then the frequency is adjusted in a correlated way, when the volume is adjusted, the volume is adjusted to the boundary value of the preset volume range value, then the preset adjustment value of the frequency is obtained according to the volume frequency correlation function, the volume frequency correlation function is established in advance and is calculated by an expert, and the volume frequency correlation function is a function which is inversely proportional, that is, if the volume is adjusted to be larger, the frequency is adjusted to be smaller later; then judging the preset adjustment value of the frequency, wherein the adjusted frequency value is required to be ensured to be within the preset frequency range value, and when the preset adjustment value of the frequency belongs to the preset frequency range value, the frequency is adjusted to the preset adjustment value; when the predetermined adjustment value of the frequency does not belong to the preset frequency range value, the frequency is adjusted to the boundary value, and it is easy to understand that the boundary value of the boundary between the predetermined adjustment value and the boundary between the predetermined adjustment value is selected as the final frequency value.
In the embodiment of the present application, similarly, the step of performing the associated adjustment on the volume after the adjustment on the frequency specifically includes: adjusting the frequency to a boundary value of a preset frequency range value, and adjusting the frequency to an upper boundary value when the frequency is larger than the preset frequency range value; when the frequency is smaller than the preset frequency range value, the frequency is adjusted to a lower boundary value; obtaining a preset adjustment value of the volume according to a volume frequency association function, wherein the volume frequency association function is established in advance; judging a preset adjusting value of the volume, and adjusting the volume to the preset adjusting value when the preset adjusting value of the volume belongs to a preset volume range value; when the preset adjusting value of the volume does not belong to the preset volume range value, the volume is adjusted to the boundary value.
As shown in fig. 6, an embodiment of the present application further provides a dynamic gain equalization system for sound, where the system includes:
the signal detection module 100 is configured to detect a first sound signal before passing through the wave trap and a second sound signal after passing through the wave trap, and obtain a first volume, a second volume and a second frequency after detection;
the sound processing module 200 is configured to process the volume of the second sound signal according to the first volume and the second volume to obtain a third sound signal, where the volume and the frequency of the third sound signal are the first volume and the second frequency respectively;
a signal determination module 300, configured to determine a volume and a frequency of the third sound signal;
the first gain equalization module 400 does not perform gain equalization processing on the third sound signal and directly outputs the third sound signal when the volume of the third sound signal belongs to a preset volume range value and the frequency of the third sound signal belongs to a preset frequency range value; and
the second gain equalization module 500 performs gain equalization processing on the third sound signal and outputs the third sound signal when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value.
In the embodiment of the application, the first sound signal before passing through the wave trap and the second sound signal after passing through the wave trap are detected, and the first sound volume, the second sound volume and the second frequency are obtained, the first sound volume corresponds to the first sound signal, the second sound volume corresponds to the second sound signal, then the second sound signal is processed according to the first sound volume and the second sound volume to obtain the third sound signal, the third sound signal is respectively the first sound volume and the second frequency, that is to say, the sound volume value is increased from the second sound volume to the first sound volume, so that the sound system is prevented from becoming mute or sound is prevented from being smaller, the sound volume value at the moment is the received sound volume, and distortion is avoided as much as possible; and then judging the volume and the frequency of the third sound signal, when the volume of the third sound signal belongs to a preset volume range value and the frequency belongs to a preset frequency range value, not performing gain equalization processing on the third sound signal and directly outputting the third sound signal, wherein the preset volume range value and the preset frequency range value are all preset, when the volume of the third sound signal belongs to the preset volume range value and the preset frequency range value, the sound emitted by the sound equipment can be clearly heard, and when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value, the sound emitted by the sound equipment is difficult to be clearly heard, and the third sound signal is required to be output after the gain equalization processing.
As shown in fig. 7, as a preferred embodiment of the present application, the signal detection module 100 includes:
a first volume detection unit 101, configured to perform volume detection on a first sound signal before passing through the wave trap to obtain a first volume;
the second volume detection unit 102 is configured to perform volume detection on the second sound signal after passing through the wave trap to obtain a second volume; and
and the second frequency detection unit 103 is configured to perform frequency detection on the second sound signal after passing through the wave trap to obtain a second frequency.
As shown in fig. 8, as a preferred embodiment of the present application, the second gain equalization module 500 includes:
an individual gain unit 501 that individually adjusts the volume and the frequency when the volume of the third sound signal does not belong to a preset volume range value and the frequency does not belong to a preset frequency range value;
the volume frequency gain unit 502 is configured to, when the volume of the third sound signal does not belong to the preset volume range value and the frequency belongs to the preset frequency range value, perform an associated adjustment on the frequency after adjusting the volume;
and a frequency and volume gain unit 503, when the frequency of the third sound signal does not belong to the preset volume range value and the volume belongs to the preset frequency range value, the frequency is adjusted, and then the volume is adjusted in a correlated manner.
In the embodiment of the application, when the volume of the third sound signal does not belong to a preset volume range value and/or the frequency does not belong to a preset frequency range value, the sound emitted by the sound equipment is difficult to hear clearly, at the moment, the third sound signal is required to be processed correspondingly according to different conditions, and when the volume of the third sound signal does not belong to the preset volume range value and the frequency does not belong to the preset frequency range value, the volume and the frequency are regulated independently, so that the volume and the frequency respectively meet the requirements; when the volume of the third sound signal does not belong to the preset volume range value and the frequency belongs to the preset frequency range value, the volume is adjusted first, and then the frequency is adjusted in a correlated way according to the volume adjustment, so that the accuracy of sound is improved; and similarly, when the frequency of the third sound signal does not belong to the preset volume range value and the volume belongs to the preset frequency range value, the volume is required to be adjusted first, and then the frequency is subjected to association adjustment according to the volume adjustment.
As shown in fig. 9, as a preferred embodiment of the present application, the individual gain unit 501 includes:
a volume adjustment subunit 5011, configured to adjust the volume to a boundary value of a preset volume range value, and adjust the volume to an upper boundary value when the volume is greater than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
a frequency adjustment subunit 5012, configured to adjust the frequency to a boundary value of a preset frequency range value, and when the frequency is greater than the preset frequency range value, adjust the frequency to an upper boundary value; and when the frequency is smaller than the preset frequency range value, adjusting the frequency to a lower boundary value.
In the embodiment of the application, the volume and the frequency are independently regulated, namely the volume value is regulated to the boundary value of the preset volume range value, and the frequency value is regulated to the boundary value of the preset frequency range value, so that the regulation sequence of the volume and the frequency is not sequential, and the purpose is achieved.
As shown in fig. 10, as a preferred embodiment of the present application, the volume frequency gain unit 502 includes:
the volume gain subunit 5021 is configured to adjust the volume to a boundary value of a preset volume range value, and adjust the volume to an upper boundary value when the volume is greater than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
a preset adjustment value subunit 5022, configured to obtain a preset adjustment value of the frequency according to a volume frequency association function, where the volume frequency association function is established in advance;
an associated gain subunit 5023, configured to determine a predetermined adjustment value of the frequency, and adjust the frequency to the predetermined adjustment value when the predetermined adjustment value of the frequency belongs to a preset frequency range value; when the preset adjusting value of the frequency does not belong to the preset frequency range value, the frequency is adjusted to the boundary value.
In the embodiment of the application, when the volume of the third sound signal does not belong to the preset volume range value and the frequency belongs to the preset frequency range value, the volume is adjusted firstly, then the frequency is adjusted in a correlated way, when the volume is adjusted, the volume is adjusted to the boundary value of the preset volume range value, then the preset adjustment value of the frequency is obtained according to the volume frequency correlation function, the volume frequency correlation function is established in advance and is calculated by an expert, and the volume frequency correlation function is a function which is inversely proportional, that is, if the volume is adjusted to be larger, the frequency is adjusted to be smaller later; then judging the preset adjustment value of the frequency, wherein the adjusted frequency value is required to be ensured to be within the preset frequency range value, and when the preset adjustment value of the frequency belongs to the preset frequency range value, the frequency is adjusted to the preset adjustment value; when the predetermined adjustment value of the frequency does not belong to the preset frequency range value, the frequency is adjusted to the boundary value, and it is easy to understand that the boundary value of the boundary between the predetermined adjustment value and the boundary between the predetermined adjustment value is selected as the final frequency value.
The foregoing description of the preferred embodiments of the present application should not be taken as limiting the application, but rather should be understood to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the application.
It should be understood that, although the steps in the flowcharts of the embodiments of the present application are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by a computer program for instructing relevant hardware, where the program may be stored in a non-volatile computer readable storage medium, and where the program, when executed, may include processes in the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
Claims (6)
1. A method for dynamic gain equalization of sound, the method comprising the steps of:
detecting a first sound signal before passing through the wave trap and a second sound signal after passing through the wave trap, and obtaining a first volume, a second volume and a second frequency after detection;
processing the volume of the second sound signal according to the first volume and the second volume to obtain a third sound signal, wherein the volume and the frequency of the third sound signal are respectively the first volume and the second frequency;
determining the volume and frequency of the third sound signal;
when the volume of the third sound signal belongs to a preset volume range value and the frequency belongs to a preset frequency range value, gain equalization processing is not performed on the third sound signal, and the third sound signal is directly output;
when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value, performing gain equalization processing on the third sound signal and outputting the third sound signal;
the step of detecting the first sound signal before passing through the wave trap and the second sound signal after passing through the wave trap to obtain a first volume, a second volume and a second frequency after detection specifically comprises the following steps:
performing volume detection on the first sound signal before passing through the wave trap to obtain a first volume;
performing volume detection on the second sound signal after passing through the wave trap to obtain a second volume;
performing frequency detection on the second sound signal after passing through the wave trap to obtain a second frequency;
when the volume of the third sound signal does not belong to the preset volume range value and/or the frequency does not belong to the preset frequency range value, the step of outputting the third sound signal after the gain equalization processing specifically includes:
when the volume of the third sound signal does not belong to the preset volume range value and the frequency does not belong to the preset frequency range value, the volume and the frequency are independently adjusted;
when the volume of the third sound signal does not belong to a preset volume range value and the frequency belongs to a preset frequency range value, performing associated adjustment on the frequency after adjusting the volume;
when the frequency of the third sound signal does not belong to the preset volume range value and the volume belongs to the preset frequency range value, the frequency is adjusted, and then the volume is adjusted in a correlated mode.
2. The method for dynamic gain equalization of an acoustic device according to claim 1, wherein said step of individually adjusting said volume and frequency comprises:
adjusting the volume to a boundary value of a preset volume range value, and adjusting the volume to an upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
adjusting the frequency to a boundary value of a preset frequency range value, and adjusting the frequency to an upper boundary value when the frequency is larger than the preset frequency range value; and when the frequency is smaller than the preset frequency range value, adjusting the frequency to a lower boundary value.
3. The method for dynamic gain equalization of an acoustic device according to claim 2, wherein said step of performing an associated adjustment of said frequency after said volume adjustment, comprises:
adjusting the volume to a boundary value of a preset volume range value, and adjusting the volume to an upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
obtaining a preset adjustment value of frequency according to a volume frequency association function, wherein the volume frequency association function is established in advance;
judging a preset adjustment value of the frequency, and adjusting the frequency to the preset adjustment value when the preset adjustment value of the frequency belongs to a preset frequency range value; when the preset adjusting value of the frequency does not belong to the preset frequency range value, the frequency is adjusted to the boundary value.
4. A dynamic gain equalization system for sound, the system comprising:
the signal detection module is used for detecting the first sound signal before passing through the wave trap and the second sound signal after passing through the wave trap, and obtaining a first volume, a second volume and a second frequency after detection;
the sound processing module is used for processing the volume of the second sound signal according to the first volume and the second volume to obtain a third sound signal, wherein the volume and the frequency of the third sound signal are respectively the first volume and the second frequency;
the signal judging module is used for judging the volume and the frequency of the third sound signal;
the first gain equalization module is used for directly outputting the third sound signal without performing gain equalization processing on the third sound signal when the volume of the third sound signal belongs to a preset volume range value and the frequency of the third sound signal belongs to a preset frequency range value; and
the second gain equalization module is used for performing gain equalization processing on the third sound signal and outputting the third sound signal when the volume of the third sound signal does not belong to a preset volume range value and/or the frequency of the third sound signal does not belong to a preset frequency range value;
the signal detection module includes:
the first volume detection unit is used for detecting the volume of the first sound signal before passing through the wave trap to obtain a first volume;
the second volume detection unit is used for detecting the volume of the second sound signal passing through the wave trap to obtain a second volume; and
the second frequency detection unit is used for carrying out frequency detection on the second sound signal after passing through the wave trap to obtain a second frequency;
the second gain equalization module includes:
an individual gain unit that individually adjusts the volume and the frequency when the volume of the third sound signal does not belong to a preset volume range value and the frequency does not belong to a preset frequency range value;
the sound volume frequency gain unit is used for performing association adjustment on the frequency after adjusting the sound volume when the sound volume of the third sound signal does not belong to a preset sound volume range value and the frequency belongs to a preset frequency range value;
and the frequency and volume gain unit is used for performing associated adjustment on the volume after adjusting the frequency when the frequency of the third sound signal does not belong to the preset volume range value and the volume belongs to the preset frequency range value.
5. The dynamic gain equalization system for an acoustic device of claim 4, wherein said individual gain element comprises:
the volume adjusting subunit is used for adjusting the volume to the boundary value of the preset volume range value, and adjusting the volume to the upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
the frequency adjusting subunit is used for adjusting the frequency to a boundary value of a preset frequency range value, and adjusting the frequency to an upper boundary value when the frequency is larger than the preset frequency range value; and when the frequency is smaller than the preset frequency range value, adjusting the frequency to a lower boundary value.
6. The dynamic gain equalization system for an acoustic device of claim 5, wherein said volume frequency gain unit comprises:
the volume gain subunit is used for adjusting the volume to the boundary value of the preset volume range value, and adjusting the volume to the upper boundary value when the volume is larger than the preset volume range value; when the volume is smaller than the preset volume range value, the volume is adjusted to a lower boundary value;
a preset adjustment value subunit, configured to obtain a preset adjustment value of a frequency according to a volume frequency association function, where the volume frequency association function is established in advance;
the associated gain subunit is used for judging a preset adjustment value of the frequency, and adjusting the frequency to the preset adjustment value when the preset adjustment value of the frequency belongs to a preset frequency range value; when the preset adjusting value of the frequency does not belong to the preset frequency range value, the frequency is adjusted to the boundary value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210198059.0A CN114640925B (en) | 2022-03-02 | 2022-03-02 | Dynamic gain equalization system and method for sound equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210198059.0A CN114640925B (en) | 2022-03-02 | 2022-03-02 | Dynamic gain equalization system and method for sound equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114640925A CN114640925A (en) | 2022-06-17 |
CN114640925B true CN114640925B (en) | 2023-10-03 |
Family
ID=81948087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210198059.0A Active CN114640925B (en) | 2022-03-02 | 2022-03-02 | Dynamic gain equalization system and method for sound equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114640925B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1066197A (en) * | 1996-08-13 | 1998-03-06 | Shuichi Mimura | Howling-removing device for speaker |
KR19980039207A (en) * | 1996-11-27 | 1998-08-17 | 정장호 | Speaker volume control circuit automatically adjusts the volume according to the noise level |
JP2007274640A (en) * | 2006-03-31 | 2007-10-18 | Yamaha Corp | Acoustic processing apparatus |
CN101465141A (en) * | 2007-12-21 | 2009-06-24 | 株式会社东芝 | Data processing apparatus and method of controlling the same |
JP2012063394A (en) * | 2010-09-14 | 2012-03-29 | Casio Comput Co Ltd | Noise suppression device, noise suppression method, and program |
CN202634563U (en) * | 2012-04-25 | 2012-12-26 | 周贤锋 | Audio signal processing system for television program |
CN104902387A (en) * | 2015-03-31 | 2015-09-09 | 广州乐畅声学科技有限公司 | Power amplifier system and howling suppression circuit |
CN106877820A (en) * | 2017-01-12 | 2017-06-20 | 广州市迪声音响有限公司 | A kind of dynamic changes the equalizing system and method for EQ Gain |
CN108174324A (en) * | 2017-12-25 | 2018-06-15 | 美芯集成电路(深圳)有限公司 | Chauvent's criterion device and method |
CN109686347A (en) * | 2018-11-30 | 2019-04-26 | 北京达佳互联信息技术有限公司 | Sound effect treatment method, sound-effect processing equipment, electronic equipment and readable medium |
CN110505555A (en) * | 2019-08-29 | 2019-11-26 | 昆腾微电子股份有限公司 | A kind of acoustics gain regulation method and device based on sound system |
CN111045634A (en) * | 2018-10-12 | 2020-04-21 | 北京微播视界科技有限公司 | Audio processing method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013150277A (en) * | 2012-01-23 | 2013-08-01 | Funai Electric Co Ltd | Audio control device and television receiver with the same |
-
2022
- 2022-03-02 CN CN202210198059.0A patent/CN114640925B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH1066197A (en) * | 1996-08-13 | 1998-03-06 | Shuichi Mimura | Howling-removing device for speaker |
KR19980039207A (en) * | 1996-11-27 | 1998-08-17 | 정장호 | Speaker volume control circuit automatically adjusts the volume according to the noise level |
JP2007274640A (en) * | 2006-03-31 | 2007-10-18 | Yamaha Corp | Acoustic processing apparatus |
CN101465141A (en) * | 2007-12-21 | 2009-06-24 | 株式会社东芝 | Data processing apparatus and method of controlling the same |
JP2012063394A (en) * | 2010-09-14 | 2012-03-29 | Casio Comput Co Ltd | Noise suppression device, noise suppression method, and program |
CN202634563U (en) * | 2012-04-25 | 2012-12-26 | 周贤锋 | Audio signal processing system for television program |
CN104902387A (en) * | 2015-03-31 | 2015-09-09 | 广州乐畅声学科技有限公司 | Power amplifier system and howling suppression circuit |
CN106877820A (en) * | 2017-01-12 | 2017-06-20 | 广州市迪声音响有限公司 | A kind of dynamic changes the equalizing system and method for EQ Gain |
CN108174324A (en) * | 2017-12-25 | 2018-06-15 | 美芯集成电路(深圳)有限公司 | Chauvent's criterion device and method |
CN111045634A (en) * | 2018-10-12 | 2020-04-21 | 北京微播视界科技有限公司 | Audio processing method and device |
CN109686347A (en) * | 2018-11-30 | 2019-04-26 | 北京达佳互联信息技术有限公司 | Sound effect treatment method, sound-effect processing equipment, electronic equipment and readable medium |
CN110505555A (en) * | 2019-08-29 | 2019-11-26 | 昆腾微电子股份有限公司 | A kind of acoustics gain regulation method and device based on sound system |
Non-Patent Citations (1)
Title |
---|
刘宏.分析均衡器在人声录制过程中的应用.《广播与电视技术》.2010,第82-85页. * |
Also Published As
Publication number | Publication date |
---|---|
CN114640925A (en) | 2022-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3764628B1 (en) | System and method for reducing distortion and echo leakage in hands-free communication | |
US20120189147A1 (en) | Sound processing apparatus, sound processing method and hearing aid | |
US8473291B2 (en) | Sound processing apparatus, apparatus and method for controlling gain, and computer program | |
EP2992605B1 (en) | Frequency band compression with dynamic thresholds | |
JP4770440B2 (en) | Signal processing apparatus and signal processing method | |
US9311933B2 (en) | Method of processing a voice segment and hearing aid | |
JPH06310962A (en) | Automatic sound volume control device | |
EP2172930B1 (en) | Audio signal processing device and audio signal processing method | |
US20080260170A1 (en) | Signal processing apparatus, signal processing method, and recording medium having program recorded thereon | |
CN112165670B (en) | Dynamic adjusting method and device for sound effect frequency response parameters, intelligent terminal and storage medium | |
US8112283B2 (en) | In-vehicle audio apparatus | |
CN111800725A (en) | Howling detection method and device, storage medium and computer equipment | |
US8774426B2 (en) | Signal processing apparatus, semiconductor chip, signal processing system, and method of processing signal | |
CN112272848A (en) | Background noise estimation using gap confidence | |
US5408581A (en) | Apparatus and method for speech signal processing | |
US20130301841A1 (en) | Audio processing device, audio processing method and program | |
EP3755005B1 (en) | Howling suppression device, method therefor, and program | |
CN114640925B (en) | Dynamic gain equalization system and method for sound equipment | |
US20120143603A1 (en) | Speech processing apparatus and method | |
CN112564655A (en) | Audio signal gain control method, device, equipment and storage medium | |
US20230360662A1 (en) | Method and device for processing a binaural recording | |
CN112802492A (en) | Method, device, chip and module equipment for inhibiting howling | |
JPH06334457A (en) | Automatic sound volume controller | |
JP6887315B2 (en) | Speech processing device and its control method, program and storage medium | |
JPH09116362A (en) | Automatic volume control equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |