CN109887522A - A kind of microphone array gain adjusting method therefore, device and terminal device - Google Patents
A kind of microphone array gain adjusting method therefore, device and terminal device Download PDFInfo
- Publication number
- CN109887522A CN109887522A CN201910077644.3A CN201910077644A CN109887522A CN 109887522 A CN109887522 A CN 109887522A CN 201910077644 A CN201910077644 A CN 201910077644A CN 109887522 A CN109887522 A CN 109887522A
- Authority
- CN
- China
- Prior art keywords
- gain
- amplitude
- voice
- thresholds
- voice 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
Links
Landscapes
- Circuit For Audible Band Transducer (AREA)
Abstract
The application is suitable for signal processing technology field, provides a kind of microphone array gain adjusting method therefore, device and terminal device, and method includes: the first gain for obtaining analog-digital converter and the voice amplitude by the amplified voice signal of analog-digital converter;It judges whether there is and is greater than default highest voice signal amplitude thresholds or less than the voice amplitude for presetting minimum voice signal amplitude thresholds;When there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, according to the second gain of maximum value calculation in the first gain and voice amplitude;When existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds, the second gain is calculated according to the minimum value in the first gain and voice amplitude;First gain of analog-digital converter is updated to the second gain.The application can solve existing microphone array and usually set fixed value for the gain of ADC, clipping phenomena may occurs in crest location, or the problem of speech energy too small unrecognized situation occurs.
Description
Technical field
The application belong to signal processing technology field more particularly to a kind of microphone array gain adjusting method therefore, device and
Terminal device.
Background technique
With the development of AI intelligent sound product, AI intelligent sound product is increasingly by everybody concern, and simultaneously
It needs to optimize along with more and more AI intelligent sound product problems and solve.
In all AI intelligent sound products, can use microphone array technology acquisition environment in voice messaging into
Row processing, since the speech signal energy value of microphone acquisition is all smaller, in order to facilitate back-end processing, it will usually use ADC
(Analog-to-Digital Converter, analog-digital converter) the collected voice signal of microphone is amplified and
Analog-to-digital conversion process.
Fixed value, the collected voice letter of microphone array usually are set by the gain of ADC in microphone array at present
Number amplified according to fixed ratio, but when the gain of microphone array is fixed, if sound source distance microphone it is excessively close or
When speech signal energy is larger, it is easy clipping phenomena occur in crest location, if sound source distance microphone is too far or voice signal
When energy is smaller, it is smaller to will lead to collected voice signal amplitude, while it is smaller to will lead to its voice noise, will affect and adopts
The accuracy of the voice signal collected, it is possible that the too small unrecognized feelings of voice signal during subsequent processing
Condition.
To sum up, existing microphone array usually sets fixed value for the gain of ADC, probably due to sound source is apart from Mike
Wind is excessively close or speech signal energy is larger, clipping phenomena occurs in crest location, or because sound source distance microphone too far or language
Sound signal energy is smaller, the too small unrecognized situation of speech energy occurs.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of microphone array gain adjusting method therefore, device and terminal device,
Fixed value usually is set by the gain of ADC to solve existing microphone array, probably due to sound source distance microphone is excessively close
Or speech signal energy is larger, clipping phenomena occurs in crest location, or because sound source distance microphone too far or voice signal
Energy is smaller, the problem of speech energy too small unrecognized situation occurs.
The first aspect of the embodiment of the present application provides a kind of microphone array gain adjusting method therefore, comprising:
Obtain the first gain of analog-digital converter and the voice by the amplified voice signal of the analog-digital converter
Amplitude;
It judges whether there is and is greater than default highest voice signal amplitude thresholds or less than presetting minimum voice signal amplitude threshold
The voice amplitude of value;
When there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, according to first gain and voice
The second gain of maximum value calculation in amplitude;
When existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds, according to first gain and voice
Minimum value in amplitude calculates the second gain;
First gain of analog-digital converter is updated to second gain.
The second aspect of the embodiment of the present application provides a kind of microphone array gain adjustment device, comprising:
Data acquisition module, the first gain and each microphone for obtaining analog-digital converter are by the modulus turn
The voice amplitude of the amplified voice signal of parallel operation;
Amplitude judgment module is preset most for judging whether there is to be greater than default highest voice signal amplitude thresholds or be less than
The voice amplitude of sound signal of speaking in a low voice amplitude thresholds;
High pitch adjustment module, when for being greater than the voice amplitude of default highest voice signal amplitude thresholds when presence, according to
The second gain of maximum value calculation in first gain and voice amplitude;
Bass adjustment module, for when exist be less than preset minimum voice signal amplitude thresholds voice amplitude when, according to
Minimum value in first gain and voice amplitude calculates the second gain;
Gain update module, for first gain of analog-digital converter to be updated to second gain.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It realizes such as the step of the above method.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, realizes when the computer program is executed by processor such as the step of the above method.
Existing beneficial effect is the embodiment of the present application compared with prior art:
In the microphone array gain adjusting method therefore of the application, dynamic regulation, judgement are carried out to the gain of analog-digital converter
It is greater than default highest voice signal amplitude threshold by whether there is in the voice amplitude of the amplified voice signal of analog-digital converter
Value or less than the voice amplitude for presetting minimum voice signal amplitude thresholds, is greater than default highest voice signal amplitude thresholds when existing
Voice amplitude when, indicate at this time probably due to sound source distance microphone is excessively close or speech signal energy is larger, in crest location
There is clipping phenomena, needs to be preset according to the second gain of maximum value calculation in the first gain and voice amplitude when existing to be less than
When the voice amplitude of minimum voice signal amplitude thresholds, indicate at this time probably due to sound source distance microphone too far or voice signal
Energy is smaller, the too small unrecognized situation of speech energy occurs, needs according to the minimum value in the first gain and voice amplitude
The second gain is calculated, the first gain is updated with the second gain, reduces voice amplitude or increase voice amplitude to reach
Purpose so that the voice amplitude of each voice signal in the range of restriction, avoids the occurrence of clipping phenomena or voice energy occurs
Too small unrecognized situation is measured, existing microphone array is solved and usually sets fixed value, Ke Nengyin for the gain of ADC
It is excessively close or speech signal energy is larger for sound source distance microphone, there is clipping phenomena, or because sound source distance in crest location
Microphone is too far or speech signal energy is smaller, the problem of speech energy too small unrecognized situation occurs.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these
Figure obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of microphone array gain adjusting method therefore provided by the embodiments of the present application;
Fig. 2 is a kind of schematic diagram of microphone array gain adjustment device provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In addition, term " first ", " second " etc. are only used for distinguishing description, and should not be understood as in the description of the present application
Indication or suggestion relative importance.
Embodiment one:
A kind of microphone array gain adjusting method therefore provided below the embodiment of the present application one is described, and please refers to attached
Fig. 1, the microphone array gain adjusting method therefore in the embodiment of the present application one include:
Step S101, the first gain of analog-digital converter is obtained and by the amplified voice letter of the analog-digital converter
Number voice amplitude;
When adjusting the gain of analog-digital converter, need first to obtain the first current gain of analog-digital converter and by number
The voice amplitude of the amplified voice signal of mode converter
Step S102, it judges whether there is and is greater than default highest voice signal amplitude thresholds or believes less than minimum voice is preset
The voice amplitude of number amplitude thresholds;
It obtains after the voice amplitude of the amplified voice signal of analog-digital converter, judges whether there is to be greater than and preset most
High voice signal amplitude thresholds or less than the voice amplitude for presetting minimum voice signal amplitude thresholds, to preset highest voice signal
Amplitude thresholds and decision condition of the minimum voice signal amplitude thresholds as gain adjustment is preset, is greater than presets highest language if it exists
Sound signal amplitude thresholds or less than the voice amplitude for presetting minimum voice signal amplitude thresholds, then need to carry out gain adjustment, if
It is not present, then without carrying out gain adjustment.
Step S103, when there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, according to described first
The second gain of maximum value calculation in gain and voice amplitude;
When there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, indicate at this time probably due to sound source away from
It is excessively close from microphone or speech signal energy is larger, there is clipping phenomena in crest location, therefore, it is necessary to according to the first gain and
The second gain of maximum value calculation in voice amplitude passes through adjusting by the voice amplitude of each voice signal of the second gain reduction
Gain makes the voice amplitude of each voice signal in suitable amplitude range.
Step S104, when existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds, according to described first
Minimum value in gain and voice amplitude calculates the second gain;
When exist be less than preset minimum voice signal amplitude thresholds voice amplitude when, indicate at this time probably due to sound source away from
Too far or speech signal energy is smaller from microphone, there is the too small unrecognized situation of speech energy, therefore, it is necessary to according to
Minimum value in one gain and voice amplitude calculates the second gain, and the voice amplitude of each voice signal is improved by the second gain,
Make the voice amplitude of each voice signal in suitable amplitude range by adjusting gain.
Step S105, first gain of analog-digital converter is updated to second gain.
It is calculated after the second gain, the first gain of analog-digital converter is updated to the second gain, analog-digital converter
Signal amplification can be carried out according to the second gain, make the voice amplitude of amplified voice signal in suitable amplitude range
It is interior, avoid the occurrence of clipping phenomena or the too small unrecognized situation of speech energy, it is ensured that the collected voice letter of microphone array
Number in can recognize but distortionless state.
When carrying out gain adjustment, gain adjustment periods can be set, carry out a gain tune every preset time interval
Section guarantees that the dynamic of the gain of analog-digital converter updates, for example, can be set to carry out a gain adjustment every 0.05s, protects
Demonstrate,prove real-time tracing and the update of the gain of analog-digital converter.
During carrying out gain adjustment, gain tune can be carried out according to the ratio of default tuning amplitude and voice amplitude
Section can also carry out feedback regulation according to the difference of default tuning amplitude and voice amplitude.
When carrying out gain adjustment according to the ratio for presetting tuning amplitude and voice amplitude, it is described when exist be greater than it is default most
When the voice amplitude of high voice signal amplitude thresholds, increased according to the maximum value calculation second in first gain and voice amplitude
Benefit specifically includes:
A1, when there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, calculate the first default tuning width
First ratio of value and the maximum value in voice amplitude;
When there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, show that possible sound source is apart from wheat at this time
Gram wind is excessively close or speech signal energy is larger, needs to reduce the gain of analog-digital converter, calculates the first default tuning amplitude and language
First ratio of maximum value in sound amplitude.
First default tuning amplitude can be configured according to the actual situation, such as the first default tuning amplitude can be set
To preset highest voice signal amplitude thresholds, the value that other are not in clipping phenomena may be set to be.
A2, first gain is obtained into the second gain multiplied by first ratio.
First gain is obtained into the second gain multiplied by the first ratio, is put when analog-digital converter carries out signal using the second gain
When big, the voice amplitude of each voice signal can be made to be less than or equal to the first default tuning amplitude, avoid the occurrence of clipping phenomena.
Further, described when existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds, according to described
Minimum value in first gain and voice amplitude calculates the second gain and specifically includes:
B1, when exist be less than preset minimum voice signal amplitude thresholds voice amplitude when, calculate the second default tuning width
Second ratio of value and the minimum value in voice amplitude;
When exist be less than preset minimum voice signal amplitude thresholds voice amplitude when, indicate at this time probably due to sound source away from
Too far or speech signal energy is smaller from microphone, there is the too small unrecognized situation of speech energy, increasing modulus is needed to turn
The gain of parallel operation calculates the second ratio of minimum value in the second default tuning amplitude and voice amplitude.
Second default tuning amplitude can be configured according to the actual situation, such as the first default tuning amplitude can be set
To preset minimum voice signal amplitude thresholds, it may be set to be other readily identified amplitudes.
B2, first gain is obtained into the second gain multiplied by second ratio.
First gain is obtained into the second gain multiplied by the second ratio, is put when analog-digital converter carries out signal using the second gain
When big, the voice amplitude of each voice signal can be made to be greater than or equal to the first default tuning amplitude, avoid the occurrence of voice amplitude mistake
Small the case where being difficult to.
It is described when in the presence of greater than default highest when the difference progress feedback regulation of the default tuning amplitude of basis and voice amplitude
When the voice amplitude of voice signal amplitude thresholds, according to the second gain of maximum value calculation in first gain and voice amplitude
It specifically includes:
C1, when existing, when being greater than the voice amplitude for presetting highest voice signal amplitude thresholds, calculating third presets tuning width
First difference of value and the maximum value in voice amplitude;
During feedback regulation, need to be adjusted according to the difference of ideal value and actual value as regulated quantity and instead
Therefore feedback when there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, first calculating third and presetting tuning amplitude
With the first difference of the maximum value in voice amplitude, using the first difference as regulated quantity.
Third is preset tuning amplitude and can be configured according to the actual situation, such as third is preset tuning amplitude and be can be set
To preset highest voice signal amplitude thresholds, the value that other are not in clipping phenomena may be set to be.
C2, first difference is inputted in the first default transmission function, calculates the first gain variables;
First difference is inputted in the first default transmission function and calculates the first gain variables, the first default transmission function can be with
It one of is configured according to the actual situation, such as can be set to proportional component, integral element and differentiation element or is a variety of
Combination.
C3, first gain is added to obtain the second gain with first gain variables.
First gain is added to obtain the second gain with the first gain variables, the second gain can subtract less than the first gain
The voice amplitude of small each voice signal, avoids the occurrence of clipping phenomena.
Further, described when existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds, according to described
Minimum value in first gain and voice amplitude calculates the second gain and specifically includes:
D1, when exist be less than preset minimum voice signal amplitude thresholds voice amplitude when, calculate the 4th default tuning width
Second difference of value and the minimum value in voice amplitude;
When existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds, the 4th default tuning amplitude is first calculated
With the second difference of the minimum value in voice amplitude, using the second difference as regulated quantity.
D2, second difference is inputted in the second default transmission function, calculates the second gain variables;
Second difference is inputted in the second default transmission function and calculates the first gain variables, the second default transmission function can be with
It one of is configured according to the actual situation, such as can be set to proportional component, integral element and differentiation element or is a variety of
Combination.
D3, first gain is added to obtain the second gain with second gain variables.
First gain is added to obtain the second gain with the second gain variables, the second gain is greater than the first gain, Ke Yizeng
The voice amplitude of big each voice signal, avoids the occurrence of the too small unrecognized situation of speech energy.
In the microphone array gain adjusting method therefore that the present embodiment one provides, dynamic tune is carried out to the gain of analog-digital converter
Section, to achieve the purpose that reduce voice amplitude according to the actual situation or increase voice amplitude, so that the voice of each voice signal
Amplitude in the range of restriction, avoids the occurrence of clipping phenomena or the too small unrecognized situation of speech energy occurs, solve
Existing microphone array usually sets fixed value for the gain of ADC, probably due to sound source distance microphone is excessively close or voice
Signal energy is larger, clipping phenomena occurs in crest location, or because sound source distance microphone too far or speech signal energy compared with
It is small, there is the problem of speech energy too small unrecognized situation.
The mode of gain adjustment can be configured according to the actual situation, for example, the mode of gain adjustment can be set to
Gain adjustment is carried out according to the ratio of default tuning amplitude and voice amplitude, may be set to be according to default tuning amplitude and language
The difference of sound duplication carries out feedback regulation.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Embodiment two:
The embodiment of the present application two provides a kind of microphone array gain adjustment device, for purposes of illustration only, only showing and this
Apply for relevant part, as shown in Fig. 2, microphone array gain adjustment device includes,
Data acquisition module 201, the first gain and each microphone for obtaining analog-digital converter are by the mould
The voice amplitude of the amplified voice signal of number converter;
Amplitude judgment module 202 is greater than default highest voice signal amplitude thresholds or less than pre- for judging whether there is
If the voice amplitude of minimum voice signal amplitude thresholds;
High pitch adjustment module 203, when for being greater than the voice amplitude of default highest voice signal amplitude thresholds when presence, root
According to the second gain of maximum value calculation in first gain and voice amplitude;
Bass adjustment module 204, for when exist be less than preset minimum voice signal amplitude thresholds voice amplitude when, root
The second gain is calculated according to the minimum value in first gain and voice amplitude;
Gain update module 205, for first gain of analog-digital converter to be updated to second gain.
Further, the high pitch adjustment module 203 specifically includes:
First ratio submodule, for counting when there is the voice amplitude for being greater than default highest voice signal amplitude thresholds
Calculate the first ratio of the maximum value in the first default tuning amplitude and voice amplitude;
First computational submodule, for first gain to be obtained the second gain multiplied by first ratio.
Further, the bass adjustment module 204 specifically includes:
Second ratio submodule, for counting when existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds
Calculate the second ratio of the minimum value in the second default tuning amplitude and voice amplitude;
Second computational submodule, for first gain to be obtained the second gain multiplied by second ratio.
Further, the high pitch adjustment module 203 specifically includes:
First difference submodule, for counting when there is the voice amplitude for being greater than default highest voice signal amplitude thresholds
Calculate the first difference of the maximum value that third is preset in tuning amplitude and voice amplitude;
First variable submodule calculates the first gain for inputting first difference in the first default transmission function
Variable;
Third computational submodule, for first gain to be added to obtain the second gain with first gain variables.
Further, the bass adjustment module 204 specifically includes:
Second difference submodule, for counting when existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds
Calculate the second difference of the minimum value in the 4th default tuning amplitude and voice amplitude;
Second variable submodule calculates the second gain for inputting second difference in the second default transmission function
Variable;
4th computational submodule, for first gain to be added to obtain the second gain with second gain variables.
It should be noted that the contents such as information exchange, implementation procedure between above-mentioned apparatus/unit, due to the application
Embodiment of the method is based on same design, concrete function and bring technical effect, for details, reference can be made to embodiment of the method part, this
Place repeats no more.
Embodiment three:
Fig. 3 is the schematic diagram for the terminal device that the embodiment of the present application three provides.As shown in figure 3, the terminal of the embodiment is set
Standby 3 include: processor 30, memory 31 and are stored in the meter that can be run in the memory 31 and on the processor 30
Calculation machine program 32.The processor 30 realizes that above-mentioned microphone array gain adjusting method therefore is real when executing the computer program 32
Apply the step in example, such as step S101 to S105 shown in FIG. 1.Alternatively, the processor 30 executes the computer program
The function of each module/unit in above-mentioned each Installation practice, such as the function of module 201 to 205 shown in Fig. 2 are realized when 32.
Illustratively, the computer program 32 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 31, and are executed by the processor 30, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 32 in the terminal device 3 is described.For example, the computer program 32 can be divided
It is cut into data acquisition module, amplitude judgment module, high pitch adjustment module, bass adjustment module and gain update module, each mould
Block concrete function is as follows:
Data acquisition module, the first gain and each microphone for obtaining analog-digital converter are by the modulus turn
The voice amplitude of the amplified voice signal of parallel operation;
Amplitude judgment module is preset most for judging whether there is to be greater than default highest voice signal amplitude thresholds or be less than
The voice amplitude of sound signal of speaking in a low voice amplitude thresholds;
High pitch adjustment module, when for being greater than the voice amplitude of default highest voice signal amplitude thresholds when presence, according to
The second gain of maximum value calculation in first gain and voice amplitude;
Bass adjustment module, for when exist be less than preset minimum voice signal amplitude thresholds voice amplitude when, according to
Minimum value in first gain and voice amplitude calculates the second gain;
Gain update module, for first gain of analog-digital converter to be updated to second gain.
The terminal device 3 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 30, memory 31.It will be understood by those skilled in the art that Fig. 3
The only example of terminal device 3 does not constitute the restriction to terminal device 3, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 31 can be the internal storage unit of the terminal device 3, such as the hard disk or interior of terminal device 3
It deposits.The memory 31 is also possible to the External memory equipment of the terminal device 3, such as be equipped on the terminal device 3
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 31 can also both include the storage inside list of the terminal device 3
Member also includes External memory equipment.The memory 31 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 31 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice
Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions
Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality
Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Comprising within the scope of protection of this application.
Claims (10)
1. a kind of microphone array gain adjusting method therefore characterized by comprising
Obtain the first gain of analog-digital converter and the voice amplitude by the amplified voice signal of the analog-digital converter;
It judges whether there is and is greater than default highest voice signal amplitude thresholds or less than presetting minimum voice signal amplitude thresholds
Voice amplitude;
When there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, according to first gain and voice amplitude
In the second gain of maximum value calculation;
When existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds, according to first gain and voice amplitude
In minimum value calculate the second gain;
First gain of analog-digital converter is updated to second gain.
2. microphone array gain adjusting method therefore as described in claim 1, which is characterized in that described to be preset most in the presence of being greater than
When the voice amplitude of high voice signal amplitude thresholds, increased according to the maximum value calculation second in first gain and voice amplitude
Benefit specifically includes:
When there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, the first default tuning amplitude and voice are calculated
First ratio of the maximum value in amplitude;
First gain is obtained into the second gain multiplied by first ratio.
3. microphone array gain adjusting method therefore as described in claim 1, which is characterized in that described to be preset most in the presence of being less than
When the voice amplitude of sound signal of speaking in a low voice amplitude thresholds, second is calculated according to the minimum value in first gain and voice amplitude and is increased
Benefit specifically includes:
When existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds, the second default tuning amplitude and voice are calculated
Second ratio of the minimum value in amplitude;
First gain is obtained into the second gain multiplied by second ratio.
4. microphone array gain adjusting method therefore as described in claim 1, which is characterized in that described to be preset most in the presence of being greater than
When the voice amplitude of high voice signal amplitude thresholds, increased according to the maximum value calculation second in first gain and voice amplitude
Benefit specifically includes:
When there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, calculating third and presetting tuning amplitude and voice
First difference of the maximum value in amplitude;
First difference is inputted in the first default transmission function, the first gain variables are calculated;
First gain is added to obtain the second gain with first gain variables.
5. microphone array gain adjusting method therefore as described in claim 1, which is characterized in that described to be preset most in the presence of being less than
When the voice amplitude of sound signal of speaking in a low voice amplitude thresholds, second is calculated according to the minimum value in first gain and voice amplitude and is increased
Benefit specifically includes:
When existing less than the voice amplitude for presetting minimum voice signal amplitude thresholds, the 4th default tuning amplitude and voice are calculated
Second difference of the minimum value in amplitude;
Second difference is inputted in the second default transmission function, the second gain variables are calculated;
First gain is added to obtain the second gain with second gain variables.
6. a kind of microphone array gain adjustment device characterized by comprising
Data acquisition module, the first gain and each microphone for obtaining analog-digital converter are by the analog-digital converter
The voice amplitude of amplified voice signal;
Amplitude judgment module, for judging whether there is greater than default highest voice signal amplitude thresholds or most speaking in a low voice less than default
The voice amplitude of sound signal amplitude thresholds;
High pitch adjustment module, when for being greater than the voice amplitude of default highest voice signal amplitude thresholds when presence, according to described
The second gain of maximum value calculation in first gain and voice amplitude;
Bass adjustment module, for when exist be less than preset minimum voice signal amplitude thresholds voice amplitude when, according to described
Minimum value in first gain and voice amplitude calculates the second gain;
Gain update module, for first gain of analog-digital converter to be updated to second gain.
7. microphone array gain adjustment device as claimed in claim 6, which is characterized in that the high pitch adjustment module is specific
Include:
First ratio submodule, for when there is the voice amplitude for being greater than default highest voice signal amplitude thresholds, calculating the
First ratio of the maximum value in one default tuning amplitude and voice amplitude;
First computational submodule, for first gain to be obtained the second gain multiplied by first ratio.
8. microphone array gain adjustment device as claimed in claim 6, which is characterized in that the bass adjustment module is specific
Include:
Second ratio submodule, for when exist be less than the voice amplitude for presetting minimum voice signal amplitude thresholds when, calculate the
Second ratio of the minimum value in two default tuning amplitudes and voice amplitude;
Second computational submodule, for first gain to be obtained the second gain multiplied by second ratio.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program
The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910077644.3A CN109887522B (en) | 2019-01-24 | 2019-01-24 | Microphone array gain adjusting method and device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910077644.3A CN109887522B (en) | 2019-01-24 | 2019-01-24 | Microphone array gain adjusting method and device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109887522A true CN109887522A (en) | 2019-06-14 |
CN109887522B CN109887522B (en) | 2021-05-04 |
Family
ID=66927125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910077644.3A Active CN109887522B (en) | 2019-01-24 | 2019-01-24 | Microphone array gain adjusting method and device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109887522B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110648678A (en) * | 2019-09-20 | 2020-01-03 | 厦门亿联网络技术股份有限公司 | Scene identification method and system for conference with multiple microphones |
CN111161750A (en) * | 2019-12-13 | 2020-05-15 | 西安讯飞超脑信息科技有限公司 | Voice processing method and related device |
CN111935572A (en) * | 2020-07-02 | 2020-11-13 | 浙江大华技术股份有限公司 | Audio signal adjusting circuit, method, electronic equipment and storage medium |
CN112333606A (en) * | 2020-10-21 | 2021-02-05 | 浙江华创视讯科技有限公司 | Microphone gain abnormity adjusting method and device |
CN113748688A (en) * | 2020-06-10 | 2021-12-03 | 深圳市大疆创新科技有限公司 | Recording method, device and chip for unmanned aerial vehicle, unmanned aerial vehicle and system |
US11272307B2 (en) | 2020-03-10 | 2022-03-08 | Beijing Xiaomi Pinecone Electronics Co., Ltd. | Method and device for controlling recording volume, and storage medium |
CN116153321A (en) * | 2023-04-19 | 2023-05-23 | 中国传媒大学 | Sound processing operation server and sound processing operation method suitable for audio system |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030156666A1 (en) * | 2002-02-19 | 2003-08-21 | Nichols Gregory M. | Automatic gain control for digitized RF signal processing |
CN1668124A (en) * | 2004-03-08 | 2005-09-14 | 乐金电子(中国)研究开发中心有限公司 | Method of proceeding gain adjustment for downloadable music file |
US20090163153A1 (en) * | 2005-08-29 | 2009-06-25 | Kyocera Corporation | Wireless Communication System, Wireless Communication Apparatus, Amplification Factor Determination Method, and Storage Medium |
CN101567672A (en) * | 2009-05-15 | 2009-10-28 | 杭州华三通信技术有限公司 | Method and system for acquiring gain |
US7908134B1 (en) * | 2006-07-26 | 2011-03-15 | Starmark, Inc. | Automatic volume control to compensate for speech interference noise |
US20120050087A1 (en) * | 2010-08-24 | 2012-03-01 | Yasunori Aoki | Ad converter and ad converter circuit voltage control method |
US20120143603A1 (en) * | 2010-12-01 | 2012-06-07 | Samsung Electronics Co., Ltd. | Speech processing apparatus and method |
CN102638746A (en) * | 2012-04-26 | 2012-08-15 | 中国科学院微电子研究所 | Analog front-end circuit with low power consumption for medical equipment |
JP2013141101A (en) * | 2011-12-28 | 2013-07-18 | Icom Inc | Signal processing apparatus, signal processing method and program |
CN103840863A (en) * | 2012-11-23 | 2014-06-04 | 京信通信系统(中国)有限公司 | Automatic gain control method and device having temperature compensation function, and digital communication system having temperature compensation function |
CN103916797A (en) * | 2014-04-04 | 2014-07-09 | 安徽森力汽车电子有限公司 | Vehicle-mounted audible device |
US20140218222A1 (en) * | 2013-01-15 | 2014-08-07 | Imagination Technologies, Ltd. | Automatic gain control system for an analog to digital converter |
CN104518746A (en) * | 2013-10-02 | 2015-04-15 | 宏达国际电子股份有限公司 | Electronic device and gain control method |
US20150222240A1 (en) * | 2014-02-06 | 2015-08-06 | Kabushiki Kaisha Toshiba | Reception device and reception method |
CN106714038A (en) * | 2016-12-27 | 2017-05-24 | 维沃移动通信有限公司 | Sound loudness control method and mobile terminal |
CN106791280A (en) * | 2017-02-20 | 2017-05-31 | 上海顺久电子科技有限公司 | The method and apparatus for determining gain and side-play amount and its corresponding relation in ADC |
CN107659279A (en) * | 2017-09-30 | 2018-02-02 | 杭州雄迈集成电路技术有限公司 | A kind of audio auto gain control method and device |
-
2019
- 2019-01-24 CN CN201910077644.3A patent/CN109887522B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030156666A1 (en) * | 2002-02-19 | 2003-08-21 | Nichols Gregory M. | Automatic gain control for digitized RF signal processing |
CN1668124A (en) * | 2004-03-08 | 2005-09-14 | 乐金电子(中国)研究开发中心有限公司 | Method of proceeding gain adjustment for downloadable music file |
US20090163153A1 (en) * | 2005-08-29 | 2009-06-25 | Kyocera Corporation | Wireless Communication System, Wireless Communication Apparatus, Amplification Factor Determination Method, and Storage Medium |
US7908134B1 (en) * | 2006-07-26 | 2011-03-15 | Starmark, Inc. | Automatic volume control to compensate for speech interference noise |
CN101567672A (en) * | 2009-05-15 | 2009-10-28 | 杭州华三通信技术有限公司 | Method and system for acquiring gain |
US20120050087A1 (en) * | 2010-08-24 | 2012-03-01 | Yasunori Aoki | Ad converter and ad converter circuit voltage control method |
US20120143603A1 (en) * | 2010-12-01 | 2012-06-07 | Samsung Electronics Co., Ltd. | Speech processing apparatus and method |
JP2013141101A (en) * | 2011-12-28 | 2013-07-18 | Icom Inc | Signal processing apparatus, signal processing method and program |
CN102638746A (en) * | 2012-04-26 | 2012-08-15 | 中国科学院微电子研究所 | Analog front-end circuit with low power consumption for medical equipment |
CN103840863A (en) * | 2012-11-23 | 2014-06-04 | 京信通信系统(中国)有限公司 | Automatic gain control method and device having temperature compensation function, and digital communication system having temperature compensation function |
US20140218222A1 (en) * | 2013-01-15 | 2014-08-07 | Imagination Technologies, Ltd. | Automatic gain control system for an analog to digital converter |
CN104518746A (en) * | 2013-10-02 | 2015-04-15 | 宏达国际电子股份有限公司 | Electronic device and gain control method |
US20150222240A1 (en) * | 2014-02-06 | 2015-08-06 | Kabushiki Kaisha Toshiba | Reception device and reception method |
CN103916797A (en) * | 2014-04-04 | 2014-07-09 | 安徽森力汽车电子有限公司 | Vehicle-mounted audible device |
CN106714038A (en) * | 2016-12-27 | 2017-05-24 | 维沃移动通信有限公司 | Sound loudness control method and mobile terminal |
CN106791280A (en) * | 2017-02-20 | 2017-05-31 | 上海顺久电子科技有限公司 | The method and apparatus for determining gain and side-play amount and its corresponding relation in ADC |
CN107659279A (en) * | 2017-09-30 | 2018-02-02 | 杭州雄迈集成电路技术有限公司 | A kind of audio auto gain control method and device |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110648678A (en) * | 2019-09-20 | 2020-01-03 | 厦门亿联网络技术股份有限公司 | Scene identification method and system for conference with multiple microphones |
CN110648678B (en) * | 2019-09-20 | 2022-04-22 | 厦门亿联网络技术股份有限公司 | Scene identification method and system for conference with multiple microphones |
CN111161750A (en) * | 2019-12-13 | 2020-05-15 | 西安讯飞超脑信息科技有限公司 | Voice processing method and related device |
CN111161750B (en) * | 2019-12-13 | 2022-09-06 | 西安讯飞超脑信息科技有限公司 | Voice processing method and related device |
US11272307B2 (en) | 2020-03-10 | 2022-03-08 | Beijing Xiaomi Pinecone Electronics Co., Ltd. | Method and device for controlling recording volume, and storage medium |
CN113748688A (en) * | 2020-06-10 | 2021-12-03 | 深圳市大疆创新科技有限公司 | Recording method, device and chip for unmanned aerial vehicle, unmanned aerial vehicle and system |
WO2021248364A1 (en) * | 2020-06-10 | 2021-12-16 | 深圳市大疆创新科技有限公司 | Audio recording method and apparatus for unmanned aerial vehicle, chip, unmanned aerial vehicle, and system |
CN111935572A (en) * | 2020-07-02 | 2020-11-13 | 浙江大华技术股份有限公司 | Audio signal adjusting circuit, method, electronic equipment and storage medium |
CN111935572B (en) * | 2020-07-02 | 2022-07-05 | 浙江大华技术股份有限公司 | Audio signal adjusting circuit, method, electronic equipment and storage medium |
CN112333606A (en) * | 2020-10-21 | 2021-02-05 | 浙江华创视讯科技有限公司 | Microphone gain abnormity adjusting method and device |
CN116153321A (en) * | 2023-04-19 | 2023-05-23 | 中国传媒大学 | Sound processing operation server and sound processing operation method suitable for audio system |
Also Published As
Publication number | Publication date |
---|---|
CN109887522B (en) | 2021-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109887522A (en) | A kind of microphone array gain adjusting method therefore, device and terminal device | |
CN109308908A (en) | A kind of voice interactive method and device | |
CN108390393B (en) | Multi-target reactive power optimization method for power distribution network and terminal equipment | |
CN109684311A (en) | Abnormal deviation data examination method and device | |
CN110797031A (en) | Voice change detection method, system, mobile terminal and storage medium | |
CN112564117A (en) | Voltage sag treatment method, voltage sag treatment device and terminal equipment | |
CN109766331A (en) | Method for processing abnormal data and device | |
CN111626360B (en) | Method, apparatus, device and storage medium for detecting boiler fault type | |
CN112652320A (en) | Sound source positioning method and device, computer readable storage medium and electronic equipment | |
CN107491331A (en) | A kind of application upgrade method and terminal device | |
CN109363660A (en) | Rhythm of the heart method and server based on BP neural network | |
WO2021204027A1 (en) | Method and apparatus for controlling microphone array, and electronic device and computer storage medium | |
CN110455989A (en) | Gas concentration data processing method, device and terminal device | |
CN110493054B (en) | Power communication network equipment fault prediction method based on frequency domain characteristics | |
CN110210671A (en) | Power-system short-term load forecasting method, device and terminal device | |
CN110414147A (en) | Incline Side Slope Safety Coefficient calculation method, device and the terminal device such as non- | |
CN113129168B (en) | Line loss determination method and device for power distribution area and terminal equipment | |
CN113205824B (en) | Sound signal processing method, device, storage medium, chip and related equipment | |
CN108429946A (en) | It is a kind of to control the method, apparatus and microphone that microphone uses | |
CN109309888A (en) | Voice information processing method, playback equipment and computer readable storage medium | |
CN111563543A (en) | Method and device for cleaning wind speed-generated power data of wind turbine generator | |
CN114757348A (en) | Model quantitative training method and device, storage medium and electronic equipment | |
CN113223505B (en) | Model training method, data processing method, device, electronic equipment and storage medium | |
CN110929957A (en) | Optimization method and device for comprehensive energy system | |
CN109472103A (en) | A kind of profile jacking management method, device, computer equipment and can storage medium |
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 | ||
CB03 | Change of inventor or designer information | ||
CB03 | Change of inventor or designer information |
Inventor after: Wang Dan Inventor after: Yu Chaobao Inventor before: Yu Chaobao Inventor before: Wang Dan |