CN112468935A - Microphone gain adjusting method, system, device and storage medium - Google Patents

Microphone gain adjusting method, system, device and storage medium Download PDF

Info

Publication number
CN112468935A
CN112468935A CN202110145615.3A CN202110145615A CN112468935A CN 112468935 A CN112468935 A CN 112468935A CN 202110145615 A CN202110145615 A CN 202110145615A CN 112468935 A CN112468935 A CN 112468935A
Authority
CN
China
Prior art keywords
amplitude
gain
state
microphone
audio signal
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.)
Granted
Application number
CN202110145615.3A
Other languages
Chinese (zh)
Other versions
CN112468935B (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.)
Shenzhen Tendzone Intelligent Technology Co ltd
Original Assignee
Shenzhen Tendzone Intelligent 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 Shenzhen Tendzone Intelligent Technology Co ltd filed Critical Shenzhen Tendzone Intelligent Technology Co ltd
Priority to CN202110145615.3A priority Critical patent/CN112468935B/en
Publication of CN112468935A publication Critical patent/CN112468935A/en
Application granted granted Critical
Publication of CN112468935B publication Critical patent/CN112468935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04R3/005Circuits for transducers, loudspeakers or microphones for combining the signals of two or more microphones

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a microphone gain adjusting method, a system, equipment and a storage medium, wherein the method comprises the following steps: acquiring an audio signal sampling point; determining the waveform direction states of two continuous audio signal sampling points at adjacent moments; and adjusting the microphone gain by adopting a gain adjustment rule corresponding to the waveform direction state. The invention solves the problems that the traditional microphone gain adjustment algorithm has long gain adjustment time, and the microphone is easy to eat words and lose small signals, can quickly distribute gain to the microphone, realizes the stable transition of audio stream, and avoids the phenomenon that the microphone eats words.

Description

Microphone gain adjusting method, system, device and storage medium
Technical Field
The present invention relates to the field of audio signal processing technologies, and in particular, to a method, a system, a device, and a storage medium for adjusting microphone gain.
Background
The network audio is applied to a large-scale sound amplification system, and the number of microphone matrixes can reach hundreds. In the case of only the field ambient noise, when hundreds of microphones simultaneously pick up the ambient noise and mix the sound for output, the noise floor is very large, such as the ambient noise which is almost hundreds of times unprocessed. In order to solve this problem, the conventional method is to reduce the number of microphones that are turned on, or to reduce noise for the audio signal collected by each microphone by using a noise reduction algorithm. When the traditional microphone gain adjustment algorithm is adopted to adjust the microphone gain, each audio signal sampling point is changed at equal intervals, the change of the single microphone gain is very small and is almost about 0.0001dB, so that the microphone gain adjustment time is longer, and the problems of 'word eating' of the microphone and small signal loss are easily caused.
Disclosure of Invention
The embodiment of the application aims to solve the problems that the traditional microphone gain adjustment algorithm has long gain adjustment time, and the microphone easily takes words and loses small signals by providing a microphone gain adjustment method, a microphone gain adjustment system, a microphone gain adjustment device and a storage medium.
The embodiment of the application provides a microphone gain adjusting method, which comprises the following steps:
acquiring an audio signal sampling point;
determining the waveform direction states of two continuous audio signal sampling points at adjacent moments;
and adjusting the microphone gain by adopting a gain adjustment rule corresponding to the waveform direction state.
In one embodiment, the determining the waveform direction states of two consecutive audio signal sampling points at adjacent time includes:
acquiring a first amplitude of a first audio signal sampling point and a second amplitude of a second audio signal sampling point; wherein the time point corresponding to the second audio signal sampling point is after the time point corresponding to the first audio signal sampling point;
if the first amplitude is greater than 0 and the first amplitude is less than the second amplitude, determining that the waveform direction state is a positive-value rising state; alternatively, the first and second electrodes may be,
if the first amplitude is greater than the second amplitude and the first amplitude is less than 0, determining that the waveform direction state is a negative value falling state; alternatively, the first and second electrodes may be,
if the first amplitude and the second amplitude are both greater than 0 and the first amplitude is greater than the second amplitude, determining that the waveform direction state is a positive-value descending state; alternatively, the first and second electrodes may be,
if the first amplitude and the second amplitude are both less than 0 and the first amplitude is less than the second amplitude, determining that the waveform direction state is a negative-value rising state; alternatively, the first and second electrodes may be,
and if the first amplitude is equal to 0 or the second amplitude is equal to 0, determining that the waveform direction state is a zero-crossing point state.
In an embodiment, the adjusting the microphone gain by using a gain adjustment rule corresponding to the waveform direction state includes:
and if the waveform direction state is judged to be a positive value rising state, calculating a first distribution gain amount of the microphone gain by adopting a first preset gain calculation formula.
In an embodiment, the adjusting the microphone gain by using a gain adjustment rule corresponding to the waveform direction state further includes:
and if the waveform direction state is judged to be a negative value descending state, calculating a second distribution gain amount of the microphone gain by adopting the first preset gain calculation formula.
In one embodiment, the first predetermined gain is calculated by the following formula
Figure 339405DEST_PATH_IMAGE001
(ii) a Wherein S1 represents the first amplitude and S2 represents the second amplitude.
In an embodiment, the adjusting the microphone gain by using a gain adjustment rule corresponding to the waveform direction state further includes:
if the waveform direction state is judged to be a positive value descending state or a negative value ascending state, thenDetermining a third distribution gain amount of the microphone gain by adopting a second preset gain calculation formula; wherein the second predetermined gain calculation formula is
Figure 385072DEST_PATH_IMAGE002
And g represents the third distribution gain amount.
In an embodiment, the adjusting the microphone gain by using a gain adjustment rule corresponding to the waveform direction state further includes:
and if the waveform direction state is judged to be a zero-crossing point state, determining a preset gain amount as a fourth distribution gain amount of the microphone gain.
In addition, to achieve the above object, the present invention also provides a microphone gain adjustment system, including:
the signal acquisition module is used for acquiring audio signal sampling points;
the state determining module is used for determining the waveform direction states of two continuous audio signal sampling points at adjacent moments;
and the gain adjusting module is used for adjusting the microphone gain by adopting a gain adjusting rule corresponding to the waveform direction state.
In addition, to achieve the above object, the present invention further provides a microphone gain adjustment method device, including: a memory, a processor and a microphone gain adjustment program stored on the memory and executable on the processor, the microphone gain adjustment program when executed by the processor implementing the steps of the microphone gain adjustment method described above.
Further, to achieve the above object, the present invention also provides a storage medium having stored thereon a microphone gain adjustment program, which when executed by a processor, implements the steps of the above-described microphone gain adjustment method.
The technical scheme of the microphone gain adjusting method, system, device and storage medium provided in the embodiments of the present application has at least the following technical effects or advantages:
the technical scheme that the microphone gain is adjusted by acquiring the audio signal sampling points, determining the waveform direction states of two continuous audio signal sampling points at adjacent moments and adopting the gain adjustment rule corresponding to the waveform direction states is adopted, so that the problems that the gain adjustment time of the traditional microphone gain adjustment algorithm is long, the microphone is easy to eat words and lose small signals are solved, the gain can be rapidly distributed to the microphone, the stable transition of audio streams is realized, the phenomenon that the microphone eats words is avoided, and meanwhile, the comb filter effects generated by feedback, environmental noise and adjacent microphones are reduced.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a microphone gain adjustment method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a microphone gain adjustment method according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram showing waveforms of audio signal sampling points and a vibration direction of a speaker;
FIG. 5 is a schematic diagram of a waveform with a 5dB abrupt change in volume at a positive-value rising state of an audio signal sampling point;
FIG. 6 is a schematic diagram of a waveform with a 5dB abrupt change in volume when the sampling point of the audio signal is in a negative-value falling state;
FIG. 7 is a schematic diagram of a waveform with a 5dB abrupt change in volume when the sampling point of the audio signal is in a positive-value falling state;
FIG. 8 is a schematic diagram of a waveform with a 0.1dB abrupt change in volume when the sampling point of the audio signal is in a positive-value falling state;
FIG. 9 is a schematic diagram of a waveform with a 5dB abrupt change in volume when the sampling point of the audio signal is in a negative-value rising state;
FIG. 10 is a waveform diagram illustrating a 5dB abrupt change in volume at a zero-crossing point of a sampling point of an audio signal;
fig. 11 is a functional block diagram of a microphone gain adjustment system according to the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The invention provides a microphone gain adjustment apparatus. As shown in fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 1 is a schematic structural diagram of a hardware operating environment of the microphone gain adjustment device.
As shown in fig. 1, the microphone gain adjusting apparatus may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the microphone gain adjusting apparatus may further include an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, and the like.
Those skilled in the art will appreciate that the microphone gain adjustment apparatus configuration shown in fig. 1 does not constitute a limitation of the microphone gain adjustment apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a microphone gain adjustment program. Among them, the operating system is a program that manages and controls hardware and software resources of the microphone gain adjustment device, the microphone gain adjustment program, and the execution of other software or programs.
In the microphone gain adjustment apparatus shown in fig. 1, the user interface 1003 is mainly used for connecting a terminal to perform data communication with the terminal; the network interface 1004 is mainly used for the background server and performs data communication with the background server; the processor 1001 may be used to invoke a microphone gain adjustment program stored in the memory 1005.
In the present embodiment, the microphone gain adjustment apparatus includes: a memory 1005, a processor 1001 and a microphone gain adjustment program stored on the memory and executable on the processor, wherein:
when the processor 1001 calls the microphone gain adjustment program stored in the memory 1005, the following operations are performed:
acquiring an audio signal sampling point;
determining the waveform direction states of two continuous audio signal sampling points at adjacent moments;
and adjusting the microphone gain by adopting a gain adjustment rule corresponding to the waveform direction state.
When the processor 1001 calls the microphone gain adjustment program stored in the memory 1005, the following operations are also performed:
acquiring a first amplitude of a first audio signal sampling point and a second amplitude of a second audio signal sampling point; wherein the time point corresponding to the second audio signal sampling point is after the time point corresponding to the first audio signal sampling point;
if the first amplitude is greater than 0 and the first amplitude is less than the second amplitude, determining that the waveform direction state is a positive-value rising state; alternatively, the first and second electrodes may be,
if the first amplitude is greater than the second amplitude and the first amplitude is less than 0, determining that the waveform direction state is a negative value falling state; alternatively, the first and second electrodes may be,
if the first amplitude and the second amplitude are both greater than 0 and the first amplitude is greater than the second amplitude, determining that the waveform direction state is a positive-value descending state; alternatively, the first and second electrodes may be,
if the first amplitude and the second amplitude are both less than 0 and the first amplitude is less than the second amplitude, determining that the waveform direction state is a negative-value rising state; alternatively, the first and second electrodes may be,
and if the first amplitude is equal to 0 or the second amplitude is equal to 0, determining that the waveform direction state is a zero-crossing point state.
When the processor 1001 calls the microphone gain adjustment program stored in the memory 1005, the following operations are also performed:
and if the waveform direction state is judged to be a positive value rising state, calculating a first distribution gain amount of the microphone gain by adopting a first preset gain calculation formula.
When the processor 1001 calls the microphone gain adjustment program stored in the memory 1005, the following operations are also performed:
and if the waveform direction state is judged to be a negative value descending state, calculating a second distribution gain amount of the microphone gain by adopting the first preset gain calculation formula.
Wherein the first predetermined gain calculation formula is
Figure DEST_PATH_IMAGE003
(ii) a Wherein S1 represents the first amplitude and S2 represents the second amplitude.
When the processor 1001 calls the microphone gain adjustment program stored in the memory 1005, the following operations are also performed:
if the waveform direction state is judged to be a positive value descending state or a negative value ascending state, determining a third distribution gain amount of the microphone gain by adopting a second preset gain calculation formula; wherein the second predetermined gain calculation formula is
Figure 908457DEST_PATH_IMAGE002
And g represents the third distribution gain amount.
When the processor 1001 calls the microphone gain adjustment program stored in the memory 1005, the following operations are also performed:
and if the waveform direction state is judged to be a zero-crossing point state, determining a preset gain amount as a fourth distribution gain amount of the microphone gain.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in a different order than presented herein.
As shown in fig. 2, in a first embodiment of the present application, a microphone gain adjustment method of the present application includes the steps of:
step S210: and acquiring audio signal sampling points.
In the present embodiment, the sound signal in the environment is collected by the sound signal collecting device. Wherein, the sound signal collecting device is such as microphone, etc.; sound signals such as human voice, animal voice, sounds emitted by musical instruments, noise, recordings, and the like. Specifically, sampling time is set, and audio signal sampling points at any time can be acquired from the acquired sound signals according to the sampling time. Generating a waveform signal diagram corresponding to the audio signal sampling point according to the collected audio signal sampling point, wherein the waveform signal diagram can be a sine wave signal diagram, a square wave signal diagram, a sawtooth wave signal diagram and the like; the waveform signal diagram generated by the audio signal sampling points is, for example, a sine wave signal shown above the horizontal line in fig. 4.
Step S220: and determining the waveform direction states of two continuous audio signal sampling points at adjacent moments.
In this embodiment, two adjacent consecutive audio signal sampling points may form a straight line. The slope of the straight line can represent the motion direction and the motion transformation amount of the audio signal sampling point. If the slope is positive, the wave direction state is a rising state, and if the slope is negative, the wave direction state is a falling state. The larger the absolute value of the slope is, the steeper the waveform is, and the larger the difference value of two adjacent audio signal sampling points is, the position distance of the two horn vibration basins is more distant. Specifically, coordinates of two continuous audio signal sampling points at adjacent moments in the waveform signal are obtained, and coordinates of the two sampling points are obtained. The sampling point coordinates comprise time and amplitude of the audio signal sampling point, the time is an abscissa, and the amplitude is an ordinate; according to the magnitude relation between the respective amplitudes of the two continuous audio signal sampling points and the 0 point, namely the magnitude relation between the three, the waveform direction states of the two continuous audio signal sampling points at adjacent moments can be determined.
As shown in fig. 3, in the second embodiment of the present application, the step S220 specifically includes the following steps:
step S221: a first amplitude of the first audio signal sample point and a second amplitude of the second audio signal sample point are obtained.
In the present embodiment, coordinates M (T1, S1) of a sampling point of a first audio signal sampling point and coordinates N (T2, S2) of a sampling point of a second audio signal sampling point at adjacent times are obtained, and according to the coordinates M (T1, S1) of the sampling point and the coordinates N (T2, S2) of the sampling point, a first amplitude of the first audio signal sampling point and a second amplitude of the second audio signal sampling point can be obtained respectively, and the first amplitude and the second amplitude can be understood as floating point sampling values of the normalized first audio signal sampling point and the normalized second audio signal sampling point, which are respectively represented as S1 and S2. Wherein, the amplitude can be a positive value or a negative value; the first audio signal sampling point and the second audio signal sampling point are adjacent and continuous audio signal sampling points, the sampling time of the adjacent first audio signal sampling point and the second audio signal sampling point is equal interval, the sampling time is the time difference between the second audio signal sampling point and the first audio signal sampling point, namely the time corresponding to the second audio signal sampling point is after the time corresponding to the first audio signal sampling point, namely T1< T2.
Step S222: if the first amplitude is greater than 0 and the first amplitude is less than the second amplitude, determining that the waveform direction state is a positive-value rising state.
As shown in fig. 4 and 5, the horn vibration pattern is shown below the horizontal line in fig. 4, and the dashed line indicates the center line of the horn movement, i.e., the zero crossing point of the waveform. Wherein, when the loudspeaker outputs sine waves, the loudspeaker vibrates left and right. When the sine wave is at the wave crest, the loudspeaker is located at the rightmost position, and when the sine wave is at the wave trough, the loudspeaker is located at the leftmost position. Fig. 5 is a waveform of 5dB abrupt change in volume when the audio signal sampling point is a sine wave signal in a positive-value rising state. A sudden upward increase in the waveform can be seen at the arrow, which is abrupt codirectional in the direction of horn movement, i.e. coincident with the direction of horn movement, and the transient characteristics of the horn can generally carry this abrupt voltage. Specifically, the magnitude relationship among S1, S2, and 0 is compared, and if 0< S1< S2, the waveform direction state of the audio signal sampling point is determined to be a positive-value rising state.
Step S223: and if the first amplitude is larger than the second amplitude and the first amplitude is smaller than 0, determining that the waveform direction state is a negative value descending state.
As shown in fig. 6, fig. 6 shows a waveform in which the volume of the audio signal sampling point abruptly changes by 5dB in a negative-value falling state when the audio signal sampling point is a sine wave signal. A sudden downward increase in the waveform can be seen at the arrow, which is abrupt codirectional in the direction of horn movement, i.e. coincident with the direction of horn movement, and the transient characteristics of the horn can generally carry this abrupt voltage. Specifically, if S2< S1, and S1<0, the waveform direction state of the audio signal sampling point is determined to be a negative-value falling state.
Step S224: if the first amplitude and the second amplitude are both greater than 0 and the first amplitude is greater than the second amplitude, determining that the waveform direction state is a positive-value descending state; or if the first amplitude and the second amplitude are both smaller than 0 and the first amplitude is smaller than the second amplitude, determining that the waveform direction state is a negative value rising state.
As shown in fig. 7, fig. 7 shows a waveform in which the volume of the audio signal sampling point abruptly changes by 5dB in a positive-value falling state when the audio signal sampling point is a sine wave signal. A sudden upward increase in the waveform can be seen at the arrow, which is a sudden reversal in the direction of horn motion, resulting in a "snap" sound. Because the horn movement is inertial, abrupt reversal, transient characteristics of the horn are difficult to carry such large reverse abrupt voltages. As shown in fig. 8, fig. 8 shows a waveform in which the volume of the audio signal sampling point abruptly changes by 0.1dB in a positive-value falling state when the audio signal sampling point is a sine wave signal. A slight upward increase in the waveform can be seen at the arrow, which is also in the same direction as the horn movement, i.e. in line with the horn movement. Specifically, if S1>0, S2>0, and S1> S2, the waveform direction state of the audio signal sampling point is determined to be a positive-value falling state.
As shown in fig. 9, fig. 9 shows a waveform in which the volume of the audio signal sampling point abruptly changes by 5dB in a negative-value rising state when the audio signal sampling point is a sine wave signal. A sudden downward increase in the waveform can be seen at the arrow, which is a sudden reversal in the direction of horn movement, resulting in a "snap" sound. Because the horn movement is inertial, abrupt reversal, transient characteristics of the horn are difficult to carry such large reverse abrupt voltages. Specifically, if S1<0, S2<0, and S1< S2, the waveform direction state of the audio signal sampling point is determined to be a negative-value rising state.
Step S225: and if the first amplitude is equal to 0 or the second amplitude is equal to 0, determining that the waveform direction state is a zero-crossing point state.
As shown in fig. 10, fig. 10 is a waveform in which the volume of an audio signal sampling point abruptly changes by 5dB in a zero-crossing state when the audio signal sampling point is a sine wave signal. A slight upward increase in the waveform can be seen at the arrow, which is abrupt and co-directional in the direction of horn movement, i.e. coincident with the direction of horn movement, and the transient characteristics of the horn can generally carry this abrupt voltage. Specifically, if S1=0 or S2=0, the waveform direction state of the audio signal sampling point is determined to be the zero-crossing point state.
According to the above technical solution, in the present embodiment, technical means are adopted to obtain the first amplitude of the first audio signal sampling point and the second amplitude of the second audio signal sampling point, if the first amplitude is greater than 0 and the first amplitude is smaller than the second amplitude, determine that the waveform direction state is a positive value rising state, or if the first amplitude is greater than the second amplitude and the second amplitude is smaller than 0, determine that the waveform direction state is a negative value falling state, or if the first amplitude and the second amplitude are both greater than 0 and the first amplitude is greater than the second amplitude, determine that the waveform direction state is a positive value falling state, or if the first amplitude and the second amplitude are both less than 0 and the first amplitude is smaller than the second amplitude, determine that the waveform direction state is a negative value rising state, or if the first amplitude is equal to 0 or the second amplitude is equal to 0, determine that the waveform direction state is a zero-crossing point state, the waveform direction state of the audio signal sampling point can be rapidly and accurately determined, and the microphone gain can be conveniently adjusted according to the specific waveform direction state.
Step S230: and adjusting the microphone gain by adopting a gain adjustment rule corresponding to the waveform direction state.
In the present embodiment, the gain adjustment rules include a microphone gain sub-adjustment rule corresponding to a positive-value rising state, a microphone gain sub-adjustment rule corresponding to a negative-value falling state, a microphone gain sub-adjustment rule corresponding to a positive-value falling state, a microphone gain sub-adjustment rule corresponding to a negative-value rising state, and a microphone gain sub-adjustment rule corresponding to a zero-crossing point state.
The microphone gain sub-regulation rule corresponding to the positive value rising state is that a first distribution gain amount can be calculated by adopting a first preset gain calculation formula; the microphone gain sub-regulation rule corresponding to the negative value descending state is that a first preset gain calculation formula is also adopted to calculate to obtain a second distribution gain amount; wherein the first predetermined gain is calculated by
Figure 400618DEST_PATH_IMAGE003
(ii) a Where S1 denotes the first amplitude and S2 denotes the second amplitude. The microphone gain sub-adjustment rule corresponding to the positive value falling state and the microphone gain sub-adjustment rule corresponding to the negative value rising state are both the third distribution gain amount of the microphone gain determined by adopting a second preset gain calculation formula. Wherein the second predetermined gain is calculated by
Figure 642243DEST_PATH_IMAGE002
And g represents a third distribution gain amount. Rule for adjusting gain of microphone corresponding to zero crossing point state, i.e. determining preset gainAllocating a fourth amount of gain to the microphone gain; the preset gain amount can be set in a user-defined mode according to actual requirements, and the preset gain amount is preferably 6 dB.
Specifically, if it is determined that the waveform direction state of the audio signal sampling point is a positive-value rising state according to the magnitude relationship among S1, S2, and 0, e.g., S1=0.2, and S2=0.4, the first allocation gain amount is
Figure 917367DEST_PATH_IMAGE004
. If the waveform direction state of the audio signal sampling point is determined to be a negative value descending state according to the magnitude relation among S1, S2 and 0, such as S1= -0.2 and S2= -0.4, the second division gain amount is
Figure 373887DEST_PATH_IMAGE004
If the waveform direction state of the audio signal sampling point is determined to be a positive value falling state according to the magnitude relation among S1, S2 and 0, such as S1= 0.1, S2= 0.06, the third distribution gain amount should be less than 0.47 dB; if it is determined that the waveform direction state of the audio signal sampling point is a negative-value rising state according to the magnitude relationship among S1, S2, and 0, e.g., S1= -0.3, S2= -0.25, the third distribution gain amount should be less than 0.25 dB. Wherein the microphone gain can be finely adjusted by the third distributed gain amount. If the waveform direction state of the audio signal sampling point is determined to be the zero-crossing point state according to the magnitude relation among S1, S2 and 0, such as S1=0 or S2=0, the fourth distribution gain amount is 6 dB.
According to the technical scheme, the method comprises the steps of obtaining audio signal sampling points, determining the waveform direction states of two continuous audio signal sampling points at adjacent moments, adopting the gain adjustment rule corresponding to the waveform direction states, adjusting the microphone gain, rapidly distributing the gain to the microphone, and rapidly obtaining the gain by the microphone so as to recover the attenuation state, thereby realizing the stable transition of audio streams, avoiding the phenomenon that the microphone eats words, and simultaneously reducing feedback, environmental noise and comb filter effects generated between adjacent microphones.
As shown in fig. 11, the present application provides a microphone gain adjustment system, including:
the signal acquisition module 310 is configured to acquire audio signal sampling points;
the state determining module 320 is configured to determine waveform direction states of two consecutive audio signal sampling points at adjacent moments;
a gain adjusting module 330, configured to adjust the microphone gain according to a gain adjusting rule corresponding to the waveform direction state.
Further, the state determining module 320 includes:
the amplitude acquisition unit is used for acquiring a first amplitude of a first audio signal sampling point and a second amplitude of a second audio signal sampling point; wherein the time point corresponding to the second audio signal sampling point is after the time point corresponding to the first audio signal sampling point;
a first determining unit, configured to determine that the waveform direction state is a positive-value rising state if the first amplitude is greater than 0 and the first amplitude is smaller than the second amplitude;
a second determining unit, configured to determine that the waveform direction state is a negative value falling state if the first amplitude is greater than the second amplitude and the first amplitude is less than 0;
a third determining unit configured to determine that the waveform-direction state is a positive-value falling state if the first amplitude and the second amplitude are both greater than 0 and the first amplitude is greater than the second amplitude; or if the first amplitude and the second amplitude are both less than 0 and the first amplitude is less than the second amplitude, determining that the waveform direction state is a negative value rising state;
a fourth determining unit, configured to determine that the waveform direction state is a zero-crossing point state if the first amplitude is equal to 0 or the second amplitude is equal to 0.
Further, the gain adjustment module 330 includes:
and the first adjusting unit is used for calculating a first distribution gain of the microphone gain by adopting a first preset gain calculation formula if the waveform direction state is judged to be a positive value rising state.
Further, the gain adjustment module 330 further includes:
and the second adjusting unit is used for calculating a second distribution gain amount of the microphone gain by adopting the first preset gain calculation formula if the waveform direction state is judged to be a negative value descending state.
Further, the first predetermined gain calculation formula is
Figure 709054DEST_PATH_IMAGE001
(ii) a Wherein S1 represents the first amplitude and S2 represents the second amplitude.
Further, the gain adjustment module 330 further includes:
the third adjusting unit is used for determining a third distribution gain amount of the microphone gain by adopting a second preset gain calculation formula if the waveform direction state is judged to be a positive value descending state or a negative value ascending state; wherein the second predetermined gain calculation formula is
Figure 437975DEST_PATH_IMAGE002
And g represents the third distribution gain amount.
Further, the gain adjustment module 330 further includes:
and the fourth adjusting unit is used for determining a preset gain amount as a fourth distribution gain amount of the microphone gain if the waveform direction state is judged to be a zero-crossing point state.
The specific implementation of the microphone gain adjustment system of the present invention is substantially the same as the embodiments of the microphone gain adjustment method described above, and will not be described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A microphone gain adjustment method, comprising:
acquiring an audio signal sampling point;
determining the waveform direction states of two continuous audio signal sampling points at adjacent moments;
and adjusting the microphone gain by adopting a gain adjustment rule corresponding to the waveform direction state.
2. The method of claim 1, wherein determining the waveform direction state of two consecutive audio signal sampling points at adjacent time instances comprises:
acquiring a first amplitude of a first audio signal sampling point and a second amplitude of a second audio signal sampling point; wherein the time point corresponding to the second audio signal sampling point is after the time point corresponding to the first audio signal sampling point;
if the first amplitude is greater than 0 and the first amplitude is less than the second amplitude, determining that the waveform direction state is a positive-value rising state; alternatively, the first and second electrodes may be,
if the first amplitude is greater than the second amplitude and the first amplitude is less than 0, determining that the waveform direction state is a negative value falling state; alternatively, the first and second electrodes may be,
if the first amplitude and the second amplitude are both greater than 0 and the first amplitude is greater than the second amplitude, determining that the waveform direction state is a positive-value descending state; alternatively, the first and second electrodes may be,
if the first amplitude and the second amplitude are both less than 0 and the first amplitude is less than the second amplitude, determining that the waveform direction state is a negative-value rising state; alternatively, the first and second electrodes may be,
and if the first amplitude is equal to 0 or the second amplitude is equal to 0, determining that the waveform direction state is a zero-crossing point state.
3. The method of claim 2, wherein said adjusting the microphone gain using a gain adjustment rule corresponding to the waveform direction state comprises:
and if the waveform direction state is judged to be a positive value rising state, calculating a first distribution gain amount of the microphone gain by adopting a first preset gain calculation formula.
4. The method of claim 3, wherein said adjusting the microphone gain using a gain adjustment rule corresponding to the waveform direction state further comprises:
and if the waveform direction state is judged to be a negative value descending state, calculating a second distribution gain amount of the microphone gain by adopting the first preset gain calculation formula.
5. The method of claim 4, wherein the first predetermined gain is calculated as
Figure 605718DEST_PATH_IMAGE001
(ii) a Wherein S1 represents the first amplitude and S2 represents the second amplitude.
6. The method of claim 5, wherein said adjusting the microphone gain using a gain adjustment rule corresponding to the waveform direction state further comprises:
if the waveform direction state is judged to be a positive value descending state or a negative value ascending state, determining a third distribution gain amount of the microphone gain by adopting a second preset gain calculation formula; wherein the second predetermined gain calculation formula is
Figure 103695DEST_PATH_IMAGE002
And g represents the third distribution gain amount.
7. The method of claim 2, wherein said adjusting the microphone gain using a gain adjustment rule corresponding to the waveform direction state further comprises:
and if the waveform direction state is judged to be a zero-crossing point state, determining a preset gain amount as a fourth distribution gain amount of the microphone gain.
8. A microphone gain adjustment system, comprising:
the signal acquisition module is used for acquiring audio signal sampling points;
the state determining module is used for determining the waveform direction states of two continuous audio signal sampling points at adjacent moments;
and the gain adjusting module is used for adjusting the microphone gain by adopting a gain adjusting rule corresponding to the waveform direction state.
9. A microphone gain adjustment device, comprising: memory, a processor and a microphone gain adjustment program stored on the memory and executable on the processor, the microphone gain adjustment program when executed by the processor implementing the steps of the microphone gain adjustment method according to any of claims 1-7.
10. A storage medium having stored thereon a microphone gain adjustment program which, when executed by a processor, implements the steps of the microphone gain adjustment method of any one of claims 1-7.
CN202110145615.3A 2021-02-03 2021-02-03 Microphone gain adjusting method, system, device and storage medium Active CN112468935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110145615.3A CN112468935B (en) 2021-02-03 2021-02-03 Microphone gain adjusting method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110145615.3A CN112468935B (en) 2021-02-03 2021-02-03 Microphone gain adjusting method, system, device and storage medium

Publications (2)

Publication Number Publication Date
CN112468935A true CN112468935A (en) 2021-03-09
CN112468935B CN112468935B (en) 2022-03-11

Family

ID=74802567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110145615.3A Active CN112468935B (en) 2021-02-03 2021-02-03 Microphone gain adjusting method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN112468935B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370322A (en) * 2008-09-12 2009-02-18 深圳华为通信技术有限公司 Microphone gain control method and communication equipment
CN102103855A (en) * 2009-12-16 2011-06-22 北京中星微电子有限公司 Method and device for detecting audio clip
US8352052B1 (en) * 2006-10-23 2013-01-08 Adobe Systems Incorporated Adjusting audio volume
CN106448690A (en) * 2016-10-20 2017-02-22 广州视源电子科技股份有限公司 Automatic gain control method and apparatus of audio signals
CN106505960A (en) * 2016-10-20 2017-03-15 广州视源电子科技股份有限公司 A kind of auto gain control method of audio signal and device
CN106504765A (en) * 2016-10-20 2017-03-15 广州视源电子科技股份有限公司 A kind of auto gain control method of audio signal and device
CN106688177A (en) * 2014-09-19 2017-05-17 美商楼氏电子有限公司 Digital microphone with adjustable gain control
CN107395149A (en) * 2017-07-28 2017-11-24 矽力杰半导体技术(杭州)有限公司 Acoustic signal processing method, device and integrated circuit
CN108429946A (en) * 2018-04-18 2018-08-21 广东小天才科技有限公司 It is a kind of to control the method, apparatus and microphone that microphone uses

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8352052B1 (en) * 2006-10-23 2013-01-08 Adobe Systems Incorporated Adjusting audio volume
CN101370322A (en) * 2008-09-12 2009-02-18 深圳华为通信技术有限公司 Microphone gain control method and communication equipment
CN102103855A (en) * 2009-12-16 2011-06-22 北京中星微电子有限公司 Method and device for detecting audio clip
CN106688177A (en) * 2014-09-19 2017-05-17 美商楼氏电子有限公司 Digital microphone with adjustable gain control
CN106448690A (en) * 2016-10-20 2017-02-22 广州视源电子科技股份有限公司 Automatic gain control method and apparatus of audio signals
CN106505960A (en) * 2016-10-20 2017-03-15 广州视源电子科技股份有限公司 A kind of auto gain control method of audio signal and device
CN106504765A (en) * 2016-10-20 2017-03-15 广州视源电子科技股份有限公司 A kind of auto gain control method of audio signal and device
CN107395149A (en) * 2017-07-28 2017-11-24 矽力杰半导体技术(杭州)有限公司 Acoustic signal processing method, device and integrated circuit
CN108429946A (en) * 2018-04-18 2018-08-21 广东小天才科技有限公司 It is a kind of to control the method, apparatus and microphone that microphone uses

Also Published As

Publication number Publication date
CN112468935B (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN109429147B (en) Electronic device and control method thereof
RU2011154551A (en) DEVICE FOR FORMING OUTPUT SPATIAL MULTI-CHANNEL AUDIO SIGNAL
CN103024634B (en) A kind of processing method and processing device of audio signal
US11822854B2 (en) Automatic volume adjustment method and apparatus, medium, and device
CN103237282A (en) Wireless audio processing equipment, wireless audio player and working method thereof
CN104683920A (en) Method and device for realizing smooth rise and fall of sound volume
CN203313386U (en) Wireless audio processing equipment, wireless audio player, household karaoke system
CN112468935B (en) Microphone gain adjusting method, system, device and storage medium
WO2022111381A1 (en) Audio processing method, electronic device and readable storage medium
CN101155440A (en) Three-dimensional around sound effect technology aiming at double-track audio signal
CN112863545B (en) Performance test method, device, electronic equipment and computer readable storage medium
CN116156413A (en) Audio playing method, device, electronic equipment and storage medium
US10341764B2 (en) Structures for dynamically tuned audio in a media device
CN113327624B (en) Method for intelligent monitoring of environmental noise by adopting end-to-end time domain sound source separation system
CN116450256A (en) Editing method, device, equipment and storage medium for audio special effects
CN109584892A (en) Audio analogy method, device, medium and electronic equipment
CN112153535B (en) Sound field expansion method, circuit, electronic equipment and storage medium
CN112307161B (en) Method and apparatus for playing audio
CN111045635B (en) Audio processing method and device
US20140348350A1 (en) Structures for dynamically tuned audio in a media device
CN113518286B (en) Reverberation processing method and device for audio signal, electronic equipment and storage medium
CN213638184U (en) Directional sound self-adaptive adjusting device
CN109819391B (en) Audio resampling method and device for FreeRTOS single chip
US11425500B2 (en) Apparatus for generating audio signal to compensate for missing components in the audio signal
CN108270501A (en) A kind of information synchronization method and 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