[go: up one dir, main page]

CN114124116B - Wave detector and classified audio signal automatic gain control device - Google Patents

Wave detector and classified audio signal automatic gain control device Download PDF

Info

Publication number
CN114124116B
CN114124116B CN202111289068.2A CN202111289068A CN114124116B CN 114124116 B CN114124116 B CN 114124116B CN 202111289068 A CN202111289068 A CN 202111289068A CN 114124116 B CN114124116 B CN 114124116B
Authority
CN
China
Prior art keywords
value
audio signal
digital
audio
module
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
Application number
CN202111289068.2A
Other languages
Chinese (zh)
Other versions
CN114124116A (en
Inventor
梁富林
张百川
高振中
龙平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Bbef Science and Technology Co Ltd
Original Assignee
Beijing Bbef Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Bbef Science and Technology Co Ltd filed Critical Beijing Bbef Science and Technology Co Ltd
Priority to CN202111289068.2A priority Critical patent/CN114124116B/en
Publication of CN114124116A publication Critical patent/CN114124116A/en
Application granted granted Critical
Publication of CN114124116B publication Critical patent/CN114124116B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/02Transmitters
    • H04B1/04Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Control Of Amplification And Gain Control (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention provides a digital detector, which comprises a module taking operation module, a module obtaining module and a module calculating module, wherein the module taking operation module is used for obtaining a digital audio signal and carrying out module taking operation to obtain a value after the module taking operation; the delayer is used for delaying the envelope signal of one period of the current amplitude envelope value and transmitting a first value obtained by the first operation of the modulus operation module to the first comparator; the first comparator is used for receiving the first value and a second value obtained by the second operation of the modulus operation module, and comparing the first value with the second value; a second comparator for receiving the first value and a noise threshold value and comparing the first value to a noise threshold value; a third comparator for receiving a product of the first value and a time parameter and a noise threshold value, and comparing the first value with the product of the time parameter and the noise threshold value; the invention can quickly detect and set the noise threshold to prevent the noise signal from being output, thereby improving the efficiency and the broadcasting effect.

Description

Wave detector and classified audio signal automatic gain control device
Technical Field
The present invention relates to the field of audio signal processing, and in particular, to a detector, a classified audio processing device, a classified audio signal automatic gain control device, a transmitter, and a classified audio signal automatic gain control method.
Background
Different programs or large difference of sound loudness in the same program in the process of broadcasting the audio program can affect the modulation degree of the audio broadcasting emission equipment, so that the emitter cannot emit audio signals with relatively balanced modulation degree, power waste is caused, and the listening effect of a user is not good; currently, the amplitude control of audio signals is mainly divided into two categories, one category is that an analog circuit is adopted, and the purpose of controlling the signal amplitude is achieved by adding automatic gain control in an analog envelope tracking mode; the second category is the use of specialized audio processors to control the gain of the sound signal. However, the former cannot process digital audio signals, has poor consistency in processing analog signals, has the defect of amplifying noise at the same time, and is inconvenient to adjust the audio amplitude; in the latter case, the audio processor is relatively comprehensive but expensive, and has poor integration and pertinence.
Disclosure of Invention
The invention provides a digital detector which can quickly detect and set a noise threshold to prevent noise signals from being output.
In a first aspect, an embodiment of the present invention provides a digital detector, where the digital detector includes:
the module operation module is used for acquiring the digital audio signal and carrying out module operation to obtain a value after the module operation;
the delayer is used for delaying the envelope signal of one period of the current amplitude envelope value and transmitting a first value obtained by the first operation of the modulus operation module to the first comparator;
the first comparator is used for receiving the first value and a second value obtained by the second operation of the modular operation module, comparing the first value with the second value, if the first value is smaller than the second value, taking the second value as the modular value, and if the first value is larger than the second value, taking the product of the first value and the time parameter as the modular value;
a second comparator, configured to receive the first value and a noise threshold, compare the first value with a noise threshold, if the first value is greater than the noise threshold, take the first value as a modulus value, and transmit the first value to a delay, and if the first value is less than the noise threshold, take the noise threshold as the modulus value, and transmit a no-audio-signal input instruction to the delay;
a third comparator, configured to receive a product of the first value and the time parameter and a noise threshold, and compare the product of the first value and the time parameter and the noise threshold, where if the product of the first value and the time parameter is greater than the noise threshold, a module value is a product of the first value and the time parameter, and if the product of the first value and the time parameter is less than the noise threshold, the module value is the noise threshold.
Specifically, in the first comparator, when the first value is greater than the second value, the detection value of the digital detector is the product of the first value and the time parameter, in the third comparator, when the product of the first value and the time parameter is greater than the noise threshold value, the detection value of the digital detector is the product of the first value and the time parameter, and when the product of the first value and the time parameter is less than the noise threshold value, the digital detector outputs the no-audio-output indication.
In a second aspect, an embodiment of the present invention provides a classified audio processing apparatus, where the classified audio processing apparatus includes:
the gain amplifier is used for acquiring the digital audio signal or the analog audio signal processed by the digital acquisition module and then dividing the digital audio signal or the analog audio signal into two paths, wherein the first path directly outputs the digital audio to the audio switch, and the other path sends the digital audio to the digital detector;
a digital detector for feeding the detected value to the digital subtractor and inputting the no-audio output indication to the audio switch;
the digital subtracter is used for receiving a detection value input by the digital detector, comparing the detection value with a target amplitude value, taking a difference value as an error input of the gain amplifier, and inputting the difference value into the gain amplifier;
optionally, the classified audio processing device further includes a digital acquisition module, and the digital acquisition module includes:
the audio type selection module is used for selecting the audio type input into the gain amplifier;
the analog-to-digital conversion module is used for performing analog-to-digital conversion on the analog audio and then inputting the analog audio into the audio selection module;
and the audio selection module is used for selecting the analog audio and the digital audio which are input into the gain amplifier and subjected to analog-to-digital conversion.
Optionally, the PID parameter of the gain amplifier is automatically input.
In a third aspect, an embodiment of the present invention provides a transmitter, where the transmitter includes:
the classified audio signal processing device is used for receiving and processing the analog audio or digital audio signal;
the modulation link is used for carrying out amplitude modulation or frequency modulation on the audio signals processed by the classified audio signal processing device;
and the power amplification link is used for carrying out power amplification on the audio signal subjected to amplitude modulation or frequency modulation through the modulation link.
In a fourth aspect, an embodiment of the present invention provides an apparatus for automatic gain control for classifying audio signals, where the apparatus for automatic gain control for classifying audio signals includes:
the audio input module is used for inputting various audio signals into the transmitter;
a transmitter for receiving and processing an analog audio or digital audio signal;
and the antenna transmitting system is used for wirelessly transmitting the received audio signal.
In a fifth aspect, an embodiment of the present invention provides an automatic gain control method for classified audio signals, where the audio signal control method includes:
inputting an audio signal into a transmitter, wherein the audio signal comprises a digital audio signal and an analog audio signal;
the classified audio signal processing device receives and processes the analog audio signal or the digital audio signal;
and the antenna transmitting system wirelessly transmits the received processed digital audio signal and the analog audio signal.
Optionally, the method for controlling automatic gain of classified audio signals further includes that after the audio signal processing device receives the audio signal, the audio signal is adjusted by the variable gain amplifier and then divided into two paths, one path directly outputs audio, and the other path sends the instantaneous amplitude value to the digital subtractor through the digital detector, and the instantaneous amplitude value is compared with the target amplitude value, and the difference value is used as the error input of the gain amplifier.
Optionally, the digital detector is used for fast detection and setting a noise threshold, and the noise signal is prevented from being output by the control without the audio signal aiming at the noise signal.
Advantageous effects
The invention provides a digital detector, which comprises a module taking operation module, a module obtaining module and a module calculating module, wherein the module taking operation module is used for obtaining a digital audio signal and carrying out module taking operation to obtain a value after the module taking operation; the delayer is used for delaying the envelope signal of one period of the current amplitude envelope value and transmitting a first value obtained by the first operation of the modulus operation module to the first comparator; the first comparator is used for receiving the first value and a second value obtained by the second operation of the modular operation module, comparing the first value with the second value, if the first value is smaller than the second value, taking the second value as the modular value, and if the first value is larger than the second value, taking the product of the first value and the time parameter as the modular value; a second comparator for receiving the first value and a noise threshold value, comparing the first value with a noise threshold value, if the first value is greater than the noise threshold value, taking the first value as a modulus value, and transmitting the first value to the delay unit, and if the first value is less than the noise threshold value, taking the noise threshold value as the modulus value, and transmitting a no-audio-signal input instruction to the delay unit; a third comparator, configured to receive a product of the first value and the time parameter and a noise threshold, and compare the product of the first value and the time parameter and the noise threshold, where if the product of the first value and the time parameter is greater than the noise threshold, a module value is a product of the first value and the time parameter, and if the product of the first value and the time parameter is less than the noise threshold, the module value is the noise threshold; the method can quickly detect and set a noise threshold to prevent the noise signal from being output, thereby improving the efficiency and the broadcasting effect.
Drawings
In order to more clearly illustrate one or more embodiments or prior art solutions of the present specification, the drawings used in the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the description below are only some embodiments described in the present specification, and that other drawings may be obtained by those skilled in the art without inventive labor.
FIG. 1 is a schematic diagram of a detector according to an embodiment of the present invention;
FIG. 2 is a graph of output waveforms for a detector according to an embodiment of the present invention using different processing modes;
FIG. 3 is a graph of the output envelope of a detector according to an embodiment of the present invention, using different processing modes;
FIG. 4 is a block diagram of a classified audio processing device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a transmitter according to an embodiment of the present invention;
fig. 6 is a block diagram of an automatic gain control apparatus for classifying audio signals according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the following embodiments, and it should be understood that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention will be further described with reference to the following description and specific examples, taken in conjunction with the accompanying drawings:
fig. 1 shows a schematic diagram of an implementation of a digital detector 214 according to an embodiment of the present invention, and as shown in fig. 1, the digital detector 214 includes:
a module taking module 2141, configured to obtain a digital audio signal and perform a module taking operation to obtain a value after the module taking operation;
a delayer 2142, configured to delay the envelope signal of the current amplitude envelope value by one period, and transmit a first value obtained by a first operation performed by the modulo operation module 2141 to the first comparator 2143;
a first comparator 2143, configured to receive the first value and a second value obtained by a second operation performed by the modulo operation module, compare the first value with the second value, if the first value is smaller than the second value, the modulo value takes the second value, and if the first value is larger than the second value, the modulo value takes a product of the first value and the time parameter;
a second comparator 2144, configured to receive the first value and the noise threshold value, compare the first value with the noise threshold value, if the first value is greater than the noise threshold value, the module value takes the first value, and transmit the first value to the delayer 2142, if the first value is less than the noise threshold value, the module value takes the noise threshold value, and transmit the no-tone-signal-input command to the delayer 2142;
a third comparator 2145, configured to receive a product of the first value and the time parameter and a noise threshold, and compare the first value with the product of the time parameter and the noise threshold, where if the product of the first value and the time parameter is greater than the noise threshold, the module value is a product of the first value and the time parameter, and if the product of the first value and the time parameter is less than the noise threshold, the module value is a noise threshold.
Specifically, in the first comparator 2143, when the first value is greater than the second value, the detection value of the digital detector 214 takes the product of the first value and the time parameter, in the third comparator 2145, when the product of the first value and the time parameter is greater than the noise threshold value, the detection value of the digital detector 214 takes the product of the first value and the time parameter, and when the product of the first value and the time parameter is less than the noise threshold value, the digital detector 214 outputs the no-audio-output indication.
Specifically, digital detectors are generally classified into peak detection, envelope detection, and mean detection; the envelope detection is designed, and the main working process is as follows: setting the noise threshold of input audio signal as P and the initial envelope amplitude as A initially E (0) = P, while indicating no audio input. Sampling an input digital audio signal by s (nT), and taking a modulus value (namely A (nT) = abs (s (nT))); if A (nT)>A E (0) Then the amplitude envelope of the current digital audio signal can be consideredThe number is: a. The E (nT) = a (nT), while indicating audio input; conversely, if A (nT)<P, then the amplitude of the current digital audio signal can be considered to remain a E (nT) = P while indicating no audio signal input. Delaying the envelope signal of the current amplitude envelope value by one period, namely A D (nT)=A E (nT); when an audio signal is input with a sample s ((n + 1) T), the analog value is calculated (i.e. a ((n + 1) T) = abs (s ((n + 1) T))); the amplitude values are then compared by a comparator: a ((n + 1) T) and A D (nT); if present A ((n + 1) T)>=A D (nT) is, A E ((n+1)T)=A((n+1)T);A((n+1)T)<A D (nT); then: a. The E ((n+1)T)=A D (nT) K; where K = e -aT (ii) a Where aT is a time constant, which needs to be set in advance, if the sampling rate is 48K, T =0.02ms, and if a =10, K =0.9998; when A however E ((n+1)T)<When P is in the middle; the envelope of the signal is considered to be P; i.e. when force A E ((n + 1) T) = P, while outputting an audio-free no-signal indication; simultaneously A is added E (n + 1) T) is delayed by one cycle and is assigned to A D ((n+1)T)=A E ((n + 1) T); for processing of the next audio sample value. By analogy, the envelope value of the input signal and the indication of the existence of the audio signal can be calculated according to the value of the input audio signal, the noise threshold and the time constant related parameters; a. The E (0),…,A E (nT),A E ((n+1)T)。
As shown in fig. 2, the output waveform after detection according to the normal envelope is shown on the left; since the detector considers the input signal small, the applied AGC gain becomes large and the noise signal is amplified. The right side adopts a noise threshold level, the input is considered as noise when the input is lower than a certain level, the signal envelope level is clamped to a certain level at the moment, the input which is lower than the certain level is considered as no signal input, and the section is the output signal amplitude is zero at the moment; because of the clamp signal level, the AGC control gain can not be increased any more, and the noise can be removed and then the AGC control gain is output.
As shown in fig. 3, the distinction is mainly on the ordinate, when the envelope signal is less than a certain threshold, the left side is not processed, the right side maintains the threshold, and the noise signal output is limited.
The embodiment provides a digital detector, which includes a module extracting module 2141, configured to obtain a digital audio signal and perform a module extracting operation to obtain a value after the module extracting operation; a delayer 2142, configured to delay the envelope signal of the current amplitude envelope value by one period, and transmit a first value obtained by a first operation performed by the modulo operation module 2141 to the first comparator 2143; a first comparator 2143, configured to receive the first value and a second value obtained by a second operation performed by the modulo operation module, compare the first value with the second value, if the first value is smaller than the second value, the modulo value takes the second value, and if the first value is larger than the second value, the modulo value takes a product of the first value and the time parameter; a second comparator 2144, configured to receive the first value and the noise threshold value, compare the first value with the noise threshold value, if the first value is greater than the noise threshold value, the module value takes the first value, and transmit the first value to the delayer 2142, if the first value is less than the noise threshold value, the module value takes the noise threshold value, and transmit the no-tone-signal-input command to the delayer 2142; a third comparator 2145, configured to receive a product of the first value and the time parameter and a noise threshold, and compare the product of the first value and the time parameter with the noise threshold, where if the product of the first value and the time parameter is greater than the noise threshold, the module value takes the product of the first value and the time parameter, and if the product of the first value and the time parameter is less than the noise threshold, the module value takes the noise threshold; the simple digital algorithm is adopted to realize the fast detection of the envelope signal and set the noise threshold to prevent the noise signal from being output, thereby improving the broadcasting effect.
Fig. 4 shows a block diagram of a classified audio processing apparatus 21 according to an embodiment of the present invention, and as shown in fig. 4, the classified audio processing apparatus 21 includes:
the gain amplifier 212 is configured to obtain the digital audio signal or the analog audio signal processed by the digital acquisition module 211, and then divide the digital audio signal or the analog audio signal into two paths, where the first path directly outputs the digital audio to the audio switch 215, and the other path sends the digital audio to the digital detector 214;
a digital detector 214 for feeding the detected value to the digital subtractor 213 and inputting the no-audio-output indication to the audio switch 215;
the digital detector 214 includes:
a modulus operation module 2141, configured to obtain a digital audio signal and perform a modulus operation to obtain a value after the modulus operation;
the delayer 2142 is configured to delay the envelope signal of the current amplitude envelope value by one period, and transmit a first value obtained by a first operation of the modulo operation module to the first comparator 2143;
a first comparator 2143, configured to receive the first value and a second value obtained by performing a second operation by the modulo operation module, compare the first value with the second value, if the first value is smaller than the second value, take the second value as the modulo value, and if the first value is greater than the second value, take the product of the first value and the time parameter as the modulo value;
a second comparator 2144, configured to receive the first value and a noise threshold, compare the first value with a noise threshold, if the first value is greater than the noise threshold, module the first value, and transmit the first value to the delayer 2142, if the first value is less than the noise threshold, module the noise threshold, and transmit a no-tone signal input command to the delayer 2142;
a third comparator 2145, configured to receive a product of the first value and the time parameter and a noise threshold, and compare the product of the first value and the time parameter with the noise threshold, where if the product of the first value and the time parameter is greater than the noise threshold, the module value is a product of the first value and the time parameter, and if the product of the first value and the time parameter is less than the noise threshold, the module value is a noise threshold.
And a digital subtractor 213, configured to receive the detection value input by the digital detector 214, compare the detection value with a target amplitude value, and input a difference value as an error input of the gain amplifier to the gain amplifier.
In some embodiments, different types of audio input signals are input into the classified audio signal processing means in the form of analog audio or digital audio; the classified audio signal processing device automatically matches pre-stored control parameters, controls the loudness of sound through audio AGC, keeps the modulation degree of the exciter at a relatively constant value, and performs power amplification after the processed audio signal is subjected to amplitude modulation or frequency modulation.
The embodiment of the invention provides a classified audio processing device, which digitizes collected digital audio signals or analog audio signals; after being regulated by a variable gain amplifier (PID controller), the audio is divided into direct output audio, the instantaneous amplitude value is sent to a digital subtracter through a digital detector in the other path, the instantaneous amplitude value is compared with a target amplitude value, and the difference value is used as the error input of the PID controller; the detector can not only carry out rapid detection, but also conveniently set a noise threshold; and the noise signal is controlled by the non-audio signal, and the noise signal is not output.
Specifically, the classified audio processing device 21 further includes a digital acquisition module 211, and the digital acquisition module 211 includes:
an audio type selection module 2111 for selecting the type of audio input to the gain amplifier 212;
the analog-to-digital conversion module 2113 is used for performing analog-to-digital conversion on the analog audio and then inputting the analog audio into the audio selection module 2114;
an audio selection module 2114 is used to select the analog audio and digital audio after analog-to-digital conversion inputted into the gain amplifier 212.
Specifically, the PID parameters of the gain amplifier 212 are automatically input.
Fig. 5 shows a block diagram of a transmitter 2 according to an embodiment of the present invention, and as shown in fig. 5, the transmitter 2 includes:
a classified audio signal processing device 21 for receiving and processing an analog audio or digital audio signal;
the classification audio processing device 21 includes:
the gain amplifier 212 is configured to obtain the digital audio signal or the analog audio signal processed by the digital acquisition module 211, and then divide the digital audio signal or the analog audio signal into two paths, where the first path directly outputs the digital audio to the audio switch 215, and the other path sends the digital audio to the digital detector 214;
a digital detector 214 for feeding the detected value to the digital subtractor 213 and inputting the no-audio-output indication to the audio switch 215;
the digital detector 214 includes:
a module taking module 2141, configured to obtain a digital audio signal and perform a module taking operation to obtain a value after the module taking operation;
the delayer 2142 is configured to delay the envelope signal of the current amplitude envelope value by one period, and transmit a first value obtained by a first operation performed by the modulo operation module to the first comparator 2143;
a first comparator 2143, configured to receive the first value and a second value obtained by a second operation performed by the modulo operation module, compare the first value with the second value, if the first value is smaller than the second value, the modulo value takes the second value, and if the first value is larger than the second value, the modulo value takes a product of the first value and the time parameter;
a second comparator 2144, configured to receive the first value and a noise threshold, compare the first value with a noise threshold, if the first value is greater than the noise threshold, module the first value, and transmit the first value to the delayer 2142, if the first value is less than the noise threshold, module the noise threshold, and transmit a no-tone signal input command to the delayer 2142;
a third comparator 2145, configured to receive a product of the first value and the time parameter and a noise threshold, and compare the first value with the product of the time parameter and the noise threshold, where if the product of the first value and the time parameter is greater than the noise threshold, the module value is a product of the first value and the time parameter, and if the product of the first value and the time parameter is less than the noise threshold, the module value is a noise threshold.
A digital subtractor 213, configured to receive the detection value input by the digital detector 214, compare the detection value with a target amplitude value, and input a difference value as an error input of the gain amplifier to the gain amplifier;
a modulation link 22, through which the audio signal processed by the classified audio signal processing device is subjected to amplitude modulation or frequency modulation;
and the power amplifier link 23 is used for performing power amplification on the audio signal subjected to amplitude modulation or frequency modulation by the modulation link 22.
The classified audio signal processing device inputs different types of audio input signals and enters the transmitter in the form of analog audio or digital audio; (it should be noted that, the transmitter includes an amplitude modulation or frequency modulation transmitter), the classified audio signal processing device automatically matches the prestored control parameters, controls the loudness of sound through the audio AGC, maintains the modulation degree of the exciter at a relatively constant value, and performs power amplification after the processed audio signal is amplitude-modulated or frequency-modulated. Based on AGC audio control of sound source parameterization PID control, the modulation degree of an analog amplitude modulation transmitter and a frequency modulation transmitter can be maintained at a relatively constant level, the efficiency of the transmitter can be improved, and the effect of broadcasting sound can be improved; according to different voice inputs, different PID parameters are adopted, and the sound quality can be better ensured. The amplitude modulation or frequency modulation transmitter with the device can suppress noise through reasonably controlling the modulation degree and without audio input, so that the efficiency of the transmitter is greatly improved, and the broadcasting effect and the user experience are improved.
Fig. 6 is a block diagram illustrating an automatic gain control apparatus for classifying audio signals according to an embodiment of the present invention, and as shown in fig. 6, the automatic gain control apparatus for classifying audio signals includes:
an audio input module 1 for inputting various audio signals into a transmitter;
a transmitter 2 for receiving and processing an analog audio or digital audio signal;
the transmitter 2 includes:
a classified audio signal processing device 21 for receiving and processing an analog audio or digital audio signal;
the classification audio processing device 21 includes:
the gain amplifier 212 is configured to obtain the digital audio signal or the analog audio signal processed by the digital acquisition module 211, and then divide the digital audio signal or the analog audio signal into two paths, where the first path directly outputs the digital audio to the audio switch 215, and the other path sends the digital audio to the digital detector 214;
a digital detector 214 for feeding the detected value to the digital subtractor 213 and inputting the no-audio-output indication to the audio switch 215;
the digital detector 214 includes:
a modulus operation module 2141, configured to obtain a digital audio signal and perform a modulus operation to obtain a value after the modulus operation;
the delayer 2142 is configured to delay the envelope signal of the current amplitude envelope value by one period, and transmit a first value obtained by a first operation of the modulo operation module to the first comparator 2143;
a first comparator 2143, configured to receive the first value and a second value obtained by performing a second operation by the modulo operation module, compare the first value with the second value, if the first value is smaller than the second value, take the second value as the modulo value, and if the first value is greater than the second value, take the product of the first value and the time parameter as the modulo value;
a second comparator 2144, configured to receive the first value and a noise threshold, compare the first value with a noise threshold, if the first value is greater than the noise threshold, module the first value, and transmit the first value to the delayer 2142, if the first value is less than the noise threshold, module the noise threshold, and transmit a no-tone signal input command to the delayer 2142;
a third comparator 2145, configured to receive a product of the first value and the time parameter and a noise threshold, and compare the product of the first value and the time parameter with the noise threshold, where if the product of the first value and the time parameter is greater than the noise threshold, the module value is a product of the first value and the time parameter, and if the product of the first value and the time parameter is less than the noise threshold, the module value is a noise threshold.
A digital subtractor 213, configured to receive the detection value input by the digital detector 214, compare the detection value with a target amplitude value, and input a difference value as an error input of the gain amplifier to the gain amplifier;
a modulation link 22, through which the audio signal processed by the classified audio signal processing device 21 is subjected to amplitude modulation or frequency modulation;
and the power amplifier link 23 is used for performing power amplification on the audio signal subjected to amplitude modulation or frequency modulation by the modulation link 22.
And the antenna transmission system 3 is used for wirelessly transmitting the received audio signals.
The embodiment of the invention provides an automatic gain control device for classifying audio signals, wherein different types of audio input signals such as voice signals or music signals enter a classified audio signal processing device 21 in a transmitter through an audio input module 1 in the form of analog audio or digital audio, pre-stored control parameters are automatically matched, the loudness of sound is controlled through an audio AGC, and the modulation degree of an exciter is kept at a relatively constant value. The processed audio signal is subjected to amplitude modulation or frequency modulation, power amplification is performed, and wireless transmission is performed by the antenna transmission system 3.
The embodiment of the invention also provides an automatic gain control method for the classified audio signals, which comprises the following steps:
inputting an audio signal into the transmitter 2, wherein the audio signal includes a digital audio signal and an analog audio signal;
the classified audio signal processing device 21 receives and processes an analog audio signal or a digital audio signal;
the antenna transmission system 3 wirelessly transmits the received processed digital audio signal and analog audio signal.
Further, the method for controlling the automatic gain of the classified audio signal further includes that after the classified audio signal processing device 21 receives the audio signal, the audio signal is adjusted by the variable gain amplifier 212 and then divided into two paths, one path directly outputs audio, and the other path passes through the digital detector 214, and sends the instantaneous amplitude value to the digital subtractor 213, and compares the instantaneous amplitude value with the target amplitude value, and the difference value is used as the error input of the gain amplifier 212.
The digital detector 214 is used for fast detection and setting a noise threshold, and the noise signal is prevented from being output by the control without the audio signal aiming at the noise signal.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A digital detector, comprising:
the module operation module is used for acquiring the digital audio signal and carrying out module operation to obtain a value after the module operation;
the delayer is used for delaying the envelope signal of one period of the current amplitude envelope value and transmitting a first value obtained by the first operation of the modulus operation module to the first comparator;
the first comparator is used for receiving the first value and a second value obtained by the second operation of the modular operation module, comparing the first value with the second value, if the first value is smaller than the second value, taking the second value as the modular value, and if the first value is larger than the second value, taking the product of the first value and the time parameter as the modular value;
a second comparator, configured to receive the first value and a noise threshold, compare the first value with a noise threshold, if the first value is greater than the noise threshold, take the first value as a modulus value, and transmit the first value to a delay, and if the first value is less than the noise threshold, take the noise threshold as the modulus value, and transmit a no-audio-signal input instruction to the delay;
a third comparator, configured to receive a product of the first value and the time parameter and a noise threshold, and compare the product of the first value and the time parameter and the noise threshold, where if the product of the first value and the time parameter is greater than the noise threshold, a module value is a product of the first value and the time parameter, and if the product of the first value and the time parameter is less than the noise threshold, the module value is the noise threshold.
2. The digital detector of claim 1, wherein the digital detector has a detector value that is a product of the first value and a time parameter when the first value is greater than the second value in a first comparator, wherein the digital detector has a detector value that is a product of the first value and a time parameter when the product of the first value and a time parameter is greater than the noise threshold value in a third comparator, and wherein the digital detector outputs the no-audio-output indication when the product of the first value and a time parameter is less than the noise threshold value.
3. A classified audio signal processing apparatus, comprising:
the gain amplifier is used for acquiring the digital audio signal or the analog audio signal processed by the digital acquisition module and then dividing the digital audio signal or the analog audio signal into two paths, wherein the first path directly outputs the digital audio to the audio switch, and the other path sends the digital audio to the digital detector;
a digital detector as claimed in claim 1 or 2, for feeding the detected value to the digital subtractor and for inputting the no-audio-output indication to the audio switch;
and the digital subtracter is used for receiving a detection value input by the digital detector, comparing the detection value with a target amplitude value, and inputting a difference value serving as an error input of the gain amplifier into the gain amplifier.
4. The classified audio signal processing device according to claim 3, further comprising a digital acquisition module, the digital acquisition module comprising:
the audio type selection module is used for selecting the audio type input into the gain amplifier;
the analog-to-digital conversion module is used for performing analog-to-digital conversion on the analog audio and then inputting the analog audio to the audio selection module;
and the audio selection module is used for selecting the analog audio and the digital audio which are input into the gain amplifier and subjected to analog-to-digital conversion.
5. The classified audio signal processing device according to claim 3, wherein the PID parameter of the gain amplifier is automatically inputted.
6. A transmitter, characterized in that the transmitter comprises:
the classified audio signal processing device according to claim 3, for receiving and processing an analog audio or digital audio signal;
the audio signal processed by the classified audio signal processing device is subjected to amplitude modulation or frequency modulation through the modulation link;
and the power amplification link is used for carrying out power amplification on the audio signal subjected to amplitude modulation or frequency modulation through the modulation link.
7. An automatic gain control apparatus for classifying an audio signal, the automatic gain control apparatus for classifying an audio signal comprising:
the audio input module is used for inputting various audio signals into the transmitter;
the transmitter of claim 6, configured to receive and process an analog audio or digital audio signal;
and the antenna transmitting system is used for wirelessly transmitting the received audio signal.
8. An automatic gain control method for a classified audio signal, applied to the automatic gain control apparatus for a classified audio signal according to claim 7, the automatic gain control method for a classified audio signal comprising:
inputting an audio signal into a transmitter, wherein the audio signal comprises a digital audio signal and an analog audio signal;
the classified audio signal processing device receives and processes the analog audio signal or the digital audio signal;
the antenna transmission system wirelessly transmits the received processed digital audio signal and the analog audio signal.
9. The method according to claim 8, wherein the classified audio signal automatic gain control method further comprises the step of, after the classified audio signal processing device receives the audio signal, the audio signal is adjusted by the variable gain amplifier and then divided into two paths, one path directly outputs audio, and the other path passes through the digital detector, the instantaneous amplitude value is sent to the digital subtractor and compared with the target amplitude value, and the difference value is used as the error input of the gain amplifier.
10. The method of claim 9, wherein the digital detector is used for fast detection and setting a noise threshold to prevent noise signals from being output by the non-audio control.
CN202111289068.2A 2021-11-02 2021-11-02 Wave detector and classified audio signal automatic gain control device Active CN114124116B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111289068.2A CN114124116B (en) 2021-11-02 2021-11-02 Wave detector and classified audio signal automatic gain control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111289068.2A CN114124116B (en) 2021-11-02 2021-11-02 Wave detector and classified audio signal automatic gain control device

Publications (2)

Publication Number Publication Date
CN114124116A CN114124116A (en) 2022-03-01
CN114124116B true CN114124116B (en) 2023-01-24

Family

ID=80380099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111289068.2A Active CN114124116B (en) 2021-11-02 2021-11-02 Wave detector and classified audio signal automatic gain control device

Country Status (1)

Country Link
CN (1) CN114124116B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116192072B (en) * 2023-04-25 2023-07-25 成都允高科技有限公司 Digital audio AGC linear gain modulation method and system
CN119523474A (en) * 2024-12-27 2025-02-28 广州市麦力声医疗器械有限公司 A method for automatically adjusting vocal gain based on PID and hearing device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5636250A (en) * 1994-12-13 1997-06-03 Hitachi America, Ltd. Automatic VSB/QAM modulation recognition method and apparatus
CN1801609A (en) * 2005-01-05 2006-07-12 北京六合万通微电子技术有限公司 Fast automatic gain control method
CN101800520A (en) * 2010-02-25 2010-08-11 青岛海信移动通信技术股份有限公司 Realization method and realization system for automatic gain control
CN108616315A (en) * 2018-03-16 2018-10-02 京信通信系统(中国)有限公司 Power amplifier output power detection method, device, computer equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7737875B2 (en) * 2007-12-13 2010-06-15 Nxp B.V. Time interpolation flash ADC having automatic feedback calibration
US20100085086A1 (en) * 2008-07-29 2010-04-08 Fujitsu Limited Digital Frequency Detector
US9106197B2 (en) * 2012-08-10 2015-08-11 Broadcom Corporation Systems and methods to suppress noise and idle tones

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5636250A (en) * 1994-12-13 1997-06-03 Hitachi America, Ltd. Automatic VSB/QAM modulation recognition method and apparatus
CN1801609A (en) * 2005-01-05 2006-07-12 北京六合万通微电子技术有限公司 Fast automatic gain control method
CN101800520A (en) * 2010-02-25 2010-08-11 青岛海信移动通信技术股份有限公司 Realization method and realization system for automatic gain control
CN108616315A (en) * 2018-03-16 2018-10-02 京信通信系统(中国)有限公司 Power amplifier output power detection method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高效数字检波的自动增益控制环路研究;李政等;《电子科技大学学报》;20050625(第03期);全文 *

Also Published As

Publication number Publication date
CN114124116A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN114124116B (en) Wave detector and classified audio signal automatic gain control device
US8831934B2 (en) Speech enhancement method and system
US9224395B2 (en) Voice detection for automatic volume controls and voice sensors
CN100539405C (en) The Method and circuits of automatic gain control is provided in signal processing
CN114650494B (en) DSP sound system and sound system acoustic automatic testing method
CN107277683A (en) A kind of audio amplifier system and method
CN100521521C (en) Automatic gain control method for radio communication mobile station
CN106775558B (en) Method and device for obtaining earphone optimization parameters and audio providing method and system
US20040202332A1 (en) Sound-field setting system
US8587376B2 (en) Automatic gain control
US9166544B2 (en) Volume control apparatus with first and second controllers
CN102984626B (en) Method and device for detecting and correcting audio system input digital signals
CN103747375B (en) A method for automatically installing a wireless microphone
CN107896356B (en) Audio control method and system of FM control system
CN104980175A (en) Radio broadcast receiving apparatus and broadcast frequency detection method
EP1158667A2 (en) Digital demodulation apparatus
JP4514545B2 (en) Noise detector, radio, and noise detection method
TW200807900A (en) Apparatus and method for automatic gain control
CN109586740B (en) System and method for automatically muting human voice signal in digital receiver
JP3876644B2 (en) High frequency signal receiver
EP1363403A1 (en) Receiver with an automatic gain control
WO2010002405A1 (en) Voice detection for automatic volume controls and voice sensors
CN113784157B (en) Live broadcast audio signal processing method and sound card
CN109462809B (en) Power amplifier detection method and system
JP2003152540A (en) Signal level control device

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