CN109391875A - The adjustment method and device of audio, storage medium, processor - Google Patents

The adjustment method and device of audio, storage medium, processor Download PDF

Info

Publication number
CN109391875A
CN109391875A CN201811240270.4A CN201811240270A CN109391875A CN 109391875 A CN109391875 A CN 109391875A CN 201811240270 A CN201811240270 A CN 201811240270A CN 109391875 A CN109391875 A CN 109391875A
Authority
CN
China
Prior art keywords
resistance value
frequency
voice signal
resistance
digital regulation
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
CN201811240270.4A
Other languages
Chinese (zh)
Other versions
CN109391875B (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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Gree Intelligent Equipment 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Gree Intelligent Equipment Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201811240270.4A priority Critical patent/CN109391875B/en
Publication of CN109391875A publication Critical patent/CN109391875A/en
Application granted granted Critical
Publication of CN109391875B publication Critical patent/CN109391875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/04Circuits for transducers, loudspeakers or microphones for correcting frequency response
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Monitoring And Testing Of Exchanges (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The invention discloses a kind of adjustment method of audio and device, storage medium, processors.Wherein, this method comprises: determining the resistance value of the first digital regulation resistance corresponding with target center frequency, wherein target center frequency is the frequency at frequency response range center;In the case where the resistance value of the first digital regulation resistance determines, collected sound signal;Noise is judged whether there is by voice signal;In the presence of noise, the resistance value of the second digital regulation resistance is adjusted, wherein the second digital regulation resistance is for controlling sensitivity.When the present invention solves in the related technology manually progress audio detection, longer technical problem the time required to complicated for operation, debugging.

Description

The adjustment method and device of audio, storage medium, processor
Technical field
The present invention relates to audio detection fields, and the adjustment method and device, storage in particular to a kind of audio are situated between Matter, processor.
Background technique
Audio detection is exactly to judge buzzer or with bee for judging whether buzzer issues the sound of assigned frequency The quality of the product of ring device.Since audio detection board is installed in inside tooling (jig), and there are the detection of MCVF multichannel voice frequency, Debugging is got up more troublesome.Each environmental change or equipment require to dismantle tooling (jig) progress when going wrong Debugging, and MCVF multichannel voice frequency needs go to be debugged all the way, cause the time of debugging long.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of adjustment method of audio and device, storage medium, processors, at least to solve When manually carrying out audio detection in the related technology, longer technical problem the time required to complicated for operation, debugging.
According to an aspect of an embodiment of the present invention, a kind of adjustment method of audio is provided, comprising: in determining and target The resistance value of corresponding first digital regulation resistance of frequency of heart, wherein target center frequency is the frequency at frequency response range center;? In the case that the resistance value of first digital regulation resistance determines, collected sound signal;Noise is judged whether there is by voice signal;? There are in the case where noise, the resistance value of the second digital regulation resistance is adjusted, wherein the second digital regulation resistance is for controlling sensitivity.
Optionally it is determined that the resistance value of the first digital regulation resistance corresponding with target center frequency, comprising: control audible device Voice signal is generated with first frequency, wherein first frequency is the minimum frequency of frequency response range;Voice signal is obtained to disappear First resistance value of point, the first resistance value are the resistance value of the first digital regulation resistance when voice signal disappears.
Optionally, the first resistance value of voice signal end point is obtained, comprising: repeat the following steps of preset times: It controls the first digital regulation resistance resistance value and is incremented by from preset resistive value with the first preset step-length, obtain third resistance value, wherein third resistance value To start to collect the resistance value of voice signal point;It controls the first digital regulation resistance resistance value and is passed from third resistance value with the second preset step-length Subtract, obtains the 4th resistance value when voice signal disappears;Preset times the 4th resistance value of amount is averaged, the first resistance value is obtained, Wherein, preset times amount is identical as the value of preset times.
Optionally it is determined that the resistance value of the first digital regulation resistance corresponding with target center frequency, comprising: control audible device Voice signal is generated with target center frequency;The second resistance value of voice signal end point is obtained, the second resistance value disappears for voice signal The resistance value of first digital regulation resistance when mistake.
Optionally, the second resistance value of voice signal end point is obtained, comprising: repeat the following steps of preset times: It controls the first digital regulation resistance resistance value and is incremented by from preset resistive value with third preset step-length, obtain the 5th resistance value, wherein the 5th resistance value To start to collect the resistance value of voice signal point;It controls the first digital regulation resistance resistance value and is passed from the 5th resistance value with the 4th preset step-length Subtract, obtains the 6th resistance value when voice signal disappears;Preset times the 6th resistance value of amount is averaged, the second resistance value is obtained, Wherein, preset times amount is identical as the value of preset times.
Optionally, the frequency at frequency response range center determines in the following manner: changing in the frequency of control voice signal During change, the frequency for controlling voice signal gradually reaches second according to the first predeterminated frequency step-length from the first predeterminated frequency and presets Frequency, wherein first frequency is less than the second predeterminated frequency;Sound signal collecting point a and signal are determined in frequency change procedure End point b, wherein a is the point that signal occurs in frequency change procedure, and b is blackout point in frequency change procedure;Control frequency Rate, with the second predeterminated frequency increments, obtains blackout point c from signal acquisition point a;Control frequency from blackout point b with Third predeterminated frequency increments obtain blackout point d;Determine frequency response range, wherein frequency response range is d point Frequency to c point frequency.
Optionally, noise is judged whether there is by voice signal, comprising: determine the resistance value and mesh of frequency-selective digital potentiometer The difference for marking resistance value, obtains target difference;Judge whether target difference is greater than preset difference value;It is greater than preset difference value in target difference In the case where, determine that there are noises.
Optionally, noise is judged whether there is by voice signal, comprising: the resistance value of the second digital regulation resistance of setting;It adopts Collect the voice signal of audible device;If collecting voice signal, determine that there are noises.
Optionally, in the presence of noise, the resistance value of the second digital regulation resistance is adjusted, comprising: in the number of control first In the case that the resistance value of word potentiometer is constant, the voice signal of audible device is acquired;According to voice signal, the second number electricity is determined The resistance value of position device, wherein resistance value is that the resistance value for the sensitivity for starting to collect sound subtracts preset value.
According to another aspect of an embodiment of the present invention, a kind of debugging apparatus of audio is additionally provided, comprising: determination unit, For determining the resistance value of the first digital regulation resistance corresponding with target center frequency, wherein target center frequency is frequency response The frequency at range center;Acquisition unit, for the first digital regulation resistance resistance value determine in the case where, collected sound signal; Judging unit, for judging whether there is noise by voice signal;Adjustment unit, in the presence of noise, adjusting The resistance value of whole second digital regulation resistance, wherein the second digital regulation resistance is for controlling sensitivity.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, storage medium includes the journey of storage Sequence, wherein equipment where control storage medium executes the adjustment method of above-mentioned audio in program operation.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, processor is used to run program, In, program executes the adjustment method of above-mentioned audio when running.
In embodiments of the present invention, frequency-selecting slide rheostat is replaced using digital regulation resistance, makes single-chip microcontroller control number electric The resistance value of position device carries out frequency-selecting, makes the required frequency of centre frequency, using digital regulation resistance instead of the sliding of adjustment of sensitivity Rheostat then turns down sensitivity judging that noise exists, is finally reached and collects voice signal when buzzer response, do not ring When do not acquire the mode of voice signal, by determining the resistance value of the first digital regulation resistance corresponding with target center frequency, In, target center frequency is the frequency at frequency response range center;In the case where the resistance value of the first digital regulation resistance determines, adopt Collect voice signal;Noise is judged whether there is by voice signal;In the presence of noise, the second digital regulation resistance is adjusted Resistance value, wherein the second digital regulation resistance has reached and has taken a compromise between noise and product sound for controlling sensitivity Sensitivity so that circuit can not only collect product sound but also can remove the influence purpose of noise, to realize in sound Frequency easy to operate, time saving technical effect when detecting, and then solve and manually carry out audio in the related technology When detection, longer technical problem the time required to complicated for operation, debugging.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the adjustment method of audio according to an embodiment of the present invention;
Fig. 2 is a kind of circuit diagram of SCVF single channel voice frequency detection circuit according to an embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of SCVF single channel voice frequency detection circuit according to an embodiment of the present invention;
Fig. 4 is a kind of structure chart of the debugging apparatus of audio according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Audio detection is exactly to judge buzzer or with bee for judging whether buzzer issues the sound of assigned frequency The quality of the product of ring device.Since audio detection board is installed in inside tooling (jig), and there are the detection of MCVF multichannel voice frequency, Debugging is got up more troublesome.Each environmental change or equipment require to dismantle tooling (jig) progress when going wrong Debugging, and MCVF multichannel voice frequency need all the way go to be debugged, cause debugging time it is long.
To solve the above problems, the embodiment of the present application provides corresponding solution, it is described further below.
Firstly the need of a frequency-selecting slide rheostat is adjusted, this slide rheostat is that circuit is allowed to generate anti-assigned frequency It answers, for example needs to react the frequency of 4KHz, it is necessary to the value of slide rheostat be transferred to relatively preferable state, allow choosing The centre frequency of frequency is near 4KHz frequency, and usually we are to reach this state by manually adjusting slide rheostat, But be adjusted automatically if necessary to it, then it needs this slide rheostat to be replaced with digital regulation resistance, then uses monolithic Machine goes to control the resistance value of this digital regulation resistance, can thus not have to frequent tooling (jig) of dismantling and remove debugging, Ke Yitong The auto-programming for crossing monolithic can allow the audio detection of multichannel to debug automatically, both saved the time or saved strength.
Using the slide rheostat of digital regulation resistance substitution adjustment of sensitivity, when identification noise is excessive or sound is too small When can automatic de-regulation sensitivity influence of noise is small to reach, buzzer sound also can one of normal acquisition select in shape State.
According to embodiments of the present invention, a kind of embodiment of the method for the debugging of audio is provided, it should be noted that in attached drawing Process the step of illustrating can execute in a computer system such as a set of computer executable instructions, although also, Logical order is shown in flow charts, but in some cases, can be executed with the sequence for being different from herein it is shown or The step of description.
Fig. 1 is a kind of flow chart of the adjustment method of audio according to an embodiment of the present invention, as shown in Figure 1, this method packet Include following steps:
Step S102 determines the resistance value of the first digital regulation resistance corresponding with target center frequency, wherein target's center's frequency Rate is the frequency at frequency response range center;
Wherein, the first digital regulation resistance is for adjusting frequency.
Fig. 2 is a kind of circuit diagram of SCVF single channel voice frequency detection circuit according to an embodiment of the present invention, is at left arrow in figure Microphone interface, intermediate small arrow are at power supply power supply, and the downward arrow in the right is at output;Left side chip is LM386, right Side chip is LM567.
Fig. 3 is a kind of schematic diagram of SCVF single channel voice frequency detection circuit according to an embodiment of the present invention, as shown in figure 3, the application The course of work of embodiment SCVF single channel voice frequency detection circuit is as follows:
Collected sound signal;Voice signal is handled to obtain acquisition signal;Judge voice signal frequency whether be Target frequency;In the case where frequency is target frequency, low level is exported;In the case where frequency is not target frequency, output High level.Wherein, voice signal is handled to obtain acquisition signal to include: that voice signal is converted to voltage waveform, is obtained First voltage waveform;First voltage waveform is amplified, second voltage waveform is obtained, using the second voltage waveform as acquisition Signal.
Specifically, microphone is connected to microphone interface first, becomes voice signal sound collection by microphone At voltage waveform, voltage waveform is small-signal at this time, is then amplified, is put to small-signal by LM386 amplification chip Signal after big is transmitted further to coding chip LM567, can identify whether the signal of acquisition is fixed by coding chip Frequency, for example, we acquire buzzer frequency be 4KHZ, if buzzer with 4KHZ in sound, pass through, export a low electricity It is flat, it if buzzer is not passed through if loud or buzzer is not rung with 4KHZ, exporting at this time is high level, to judge Identify fixed frequency acoustic signal.
When we using when generally require scene and debug, the frequency acquired when environment transformation is inclined It moves, for example having mixed up the centre frequency of acquisition is 4KHz, input voltage can change when the environment changes, to input electricity Pressure, which changes, influences whether centre frequency, 4KHz is offset from, and noise can also change when the environment changes, if noise Bigger than normal, that is it may be desired to turn down sensitivity to shield the influence of noise, but sensitivity again cannot be too low, because of product Intensity of sound vary again, the smallest signal can lower than 50dB but will not be lower than 40dB, so the spirit of sound collection Sensitivity is also required to relatively high, it would be desirable to be able to collect product actually the smallest voice signal, so we need to take one it is suitable Sensitivity can collect the sound of needs again not by the influence of noise.
Field adjustable needs frequent operation host computer and needs frequently to open tooling (jig) and go to carry out debugging audio to adopt Collect board, and cooperate and could debug between host computer operation and jig board, debugging cycle is long.So using two numbers Potentiometer to replace the slide rheostat and frequency-selecting slide rheostat of adjustment of sensitivity respectively, and uses monolithic processor controlled side Formula come realize audio collection optimization and sensitivity compromise selection.
The resistance value of first digital regulation resistance needed for user can directly determine, according to the corresponding relationship of frequency and resistance value, really Required frequency can be determined by determining frequency or user, according to the corresponding relationship of frequency and resistance value, determine resistance value, wherein frequency with The corresponding relationship of resistance value are as follows:
In the embodiment of the present application, the frequency at frequency response range center can determine in the following manner:
In the frequency change procedure of control voice signal, the frequency of voice signal is controlled from the first predeterminated frequency according to the One predeterminated frequency step-length gradually reaches the second predeterminated frequency, wherein first frequency is less than the second predeterminated frequency;In frequency shift Sound signal collecting point a and blackout point b is determined in journey, wherein a is the point that signal occurs in frequency change procedure, and b is frequency Blackout point during rate changes;Frequency is controlled from signal acquisition point a with the second predeterminated frequency increments, signal is obtained and disappears Lose point c;Frequency is controlled from blackout point b with third predeterminated frequency increments, obtains blackout point d;Determine that frequency is rung Answer range, wherein frequency response range be d point frequency to c point frequency.
In an alternative embodiment, for example, acquiring the sound of 4KHz if necessary, a resistance value=1.5K is taken first (this resistance value can make the frequency of acquisition near 4KHz, pass throughAvailable, wherein C5 can take 0.1UF), it next allows frequency from 3KHz to 5KHz, is acquired every 100Hz, record starts to collect the frequency of signal a point To two points of blackout point b, then subtracted down from the frequency of signal acquisition point a with the interval of every 10Hz, until signal The frequency of end point c is reduced to down with the interval of every 10Hz from the frequency of b point and just collects signaling point d, and so latter two subtracts each other To frequency response range.
In the embodiment of the present application can control response in the following manner frequency:
1) control audible device with first frequency generate voice signal, wherein first frequency be frequency response range most Small frequency;Wherein, occurrence of equipment can be buzzer.
The first resistance value of voice signal end point is obtained, the first resistance value is the first digital regulation resistance when voice signal disappears Resistance value.
Wherein, the process for obtaining the first resistance value of voice signal end point is as follows:
Repeat the following steps of preset times: the first digital regulation resistance resistance value of control is default with first from preset resistive value Step-length is incremented by, and obtains third resistance value, wherein third resistance value is the resistance value for starting to collect voice signal point;The first number of control Potentiometer resistance is successively decreased from third resistance value with the second preset step-length, obtains the 4th resistance value when voice signal disappears;
Preset times the 4th resistance value of amount is averaged, obtains the first resistance value, wherein preset times amount and preset times Value it is identical.
The embodiment of the present application provides a kind of alternative embodiment: (second counts the sound of acquisition 4KHz during being somebody's turn to do if necessary Word potentiometer R16=1K, sensitivity is lower at this time), taking a resistance value=1.5K first, (this resistance value can make the frequency of acquisition Rate passes through near 4KHzAvailable, wherein C5 can take 0.1UF), for example be that frequency bandwidth is 320Hz (i.e. frequency response range is 3840Hz-4160Hz), then allow buzzer to ring always with the fixed frequency of 3840Hz (3840Hz is the minimum frequency of frequency response range, i.e. 3840Hz is above-mentioned first frequency), then allows the first digital regulation resistance Resistance value up add from every 100 Europe, the Europe 1K, determine that every 10 Europe subtracts down again after just collecting the resistance value of signal, obtains signal The point of disappearance, then the resistance value of tracer signal end point, then comes twice again, obtains three the 4th resistance values, resistance value is differed The 4th resistance value no more than 20 is averaged, and obtains the first resistance value.
2) control audible device generates voice signal with target center frequency;
The second resistance value of voice signal end point is obtained, the second resistance value is the first digital regulation resistance when voice signal disappears Resistance value.
Obtain the second resistance value of voice signal end point, comprising:
Repeat the following steps of preset times: the first digital regulation resistance resistance value of control is default with third from preset resistive value Step-length is incremented by, and obtains the 5th resistance value, wherein the 5th resistance value is the resistance value for starting to collect voice signal point;The first number of control Potentiometer resistance is successively decreased from the 5th resistance value with the 4th preset step-length, obtains the 6th resistance value when voice signal disappears;
Preset times the 6th resistance value of amount is averaged, obtains the second resistance value, wherein preset times amount and preset times Value it is identical.
The embodiment of the present application provides a kind of alternative embodiment: buzzer being allowed to ring (the process always with the fixed frequency of 4KHz In the second digital regulation resistance R16=1K, sensitivity is lower at this time), then allow resistance value up to add from every 100 Europe, the Europe 1K, determine rigid It collects after the resistance value of signal every 10 Europe again to subtract down until voice signal disappears, determines the resistance value of blackout point, obtain 6th resistance value, comes twice again, obtains three the 6th resistance values, and sixth resistance value of the resistance value difference no more than 20 is averaged, is obtained To the second resistance value.
1) and 2) in the embodiment of the present application, 1, it can be used while obtaining multiple 4th resistance values and the using the method in Six resistance values, multiple 4th resistance values and the 6th resistance value by average value no more than 20 are averaged as resistance value r7 or 2, make 1) and 2) the first resistance value and the second resistance value are obtained with the method in, takes the first resistance value and the second resistance value average value as resistance value r7, Or 3,1) and 2) using the method in take multiple measurements to obtain at least two first resistance values and at least two second resistance values, take All first class values and the average value of the second resistance value are as resistance value r7.
Step S104, in the case where the resistance value of the first digital regulation resistance determines, collected sound signal;
Step S106 judges whether there is noise by voice signal;
In the embodiment of the present application, it can be judged by the following manner with the presence or absence of noise:
1) resistance value of frequency-selective digital potentiometer and the difference of target resistance value are determined, target difference is obtained;Judge target difference Whether preset difference value is greater than;In the case where target difference is greater than preset difference value, determine that there are noises.
2) resistance value of the second digital regulation resistance is set;Acquire the voice signal of audible device;If collecting voice signal, Determine that there are noises.
In a kind of optional embodiment: 1) using formula(wherein, f indicates the frequency of voice signal Rate), the value of R7 is calculated, judges that r7 and R7 above subtract each other whether less than 100, if it is greater than 100, it was demonstrated that noise is excessive to be caused Equipment is unable to normal acquisition sound, wherein R7 is the theoretical value obtained by above-mentioned formula, and r7 is using obtained by the above method Actual value;2) it allows buzzer not ring, is r7 in resistance value, go progress sound to adopt in the higher situation of sensitive (R16=2K ohm) degree Collection, if collecting sound, that just represents 4KHz frequency and the noise of a certain range of frequency of 4KHz exists, noise meeting There is a little influence to the operation of equipment;3) it allows single-chip microcontroller control buzzer to be interrupted with 4KHz and rings (R16=2K ohm), work as buzzer It is collected when ringing, the then influence almost without noise is not acquired when not ringing, if not then there is interruption noise effect.
Step S108 adjusts the resistance value of the second digital regulation resistance in the presence of noise, wherein the second number electricity Position device is for controlling sensitivity.
In the embodiment of the present application, the slide rheostat of adjustment of sensitivity is replaced using a digital regulation resistance;Noise is deposited Then using R16=1K as radix, sensitivity are turned up in every increase by 100, are controlled buzzer particular up to single-chip microcontroller and are interrupted sound with 4KHz, It collects when buzzer is rung, is not acquired when not ringing.Or buzzer is allowed not ring, the resistance value of r7 is constant, slowly increases sensitive Degree removes acquisition sound, and to after the point for just collecting sound, resistance value is subtracted the 50 value R16 for determining the second digital regulation resistance.
Through the above steps, the frequency automatic adjustment digital regulation resistance that can according to need, reaches automatic adjustments responsive frequency Rate is to required frequency and reaches a preferable state, and the spirit of a compromise can be taken between noise and product sound Sensitivity, so that circuit not only can collect product sound but also can remove the influence of noise, it can be without opening tooling (jig) The debugging of one key of computer can be carried out, it is time saving and energy saving, greatly shorten debug time.
According to embodiments of the present invention, a kind of embodiment of the method for the debugging of audio is provided, Fig. 4 is to implement according to the present invention A kind of structure chart of the debugging apparatus of audio of example, as shown in figure 4, this method comprises the following steps:
Determination unit 40, for determining the resistance value of the first digital regulation resistance corresponding with target center frequency, wherein target Centre frequency is the frequency at frequency response range center;
Acquisition unit 42, for the first digital regulation resistance resistance value determine in the case where, collected sound signal;
Judging unit 44, for judging whether there is noise by voice signal;
Adjustment unit 46, in the presence of noise, adjusting the resistance value of the second digital regulation resistance, wherein second Digital regulation resistance is for controlling sensitivity.
In the application alternative embodiment, determination unit 40 includes:
First control module generates voice signal for controlling audible device with first frequency, wherein first frequency is frequency The minimum frequency of rate response range;
First obtains module, and for obtaining the first resistance value of voice signal end point, the first resistance value is voice signal disappearance When the first digital regulation resistance resistance value.
Wherein, the first acquisition module includes:
First control submodule, for repeating the following steps of preset times: the first digital regulation resistance resistance value of control It is incremented by from preset resistive value with the first preset step-length, obtains third resistance value, wherein third resistance value is to start to collect voice signal point Resistance value;It controls the first digital regulation resistance resistance value and is successively decreased from third resistance value with the second preset step-length, when obtaining voice signal disappearance The 4th resistance value;
First acquisition submodule obtains the first resistance value for preset times the 4th resistance value of amount to be averaged, wherein Preset times amount is identical as the value of preset times.
In the application alternative embodiment, determination unit 40 includes:
Second control module generates voice signal for controlling audible device with target center frequency;
Second obtains module, and for obtaining the second resistance value of voice signal end point, the second resistance value is voice signal disappearance When the first digital regulation resistance resistance value.
Wherein, the second acquisition module includes:
Second control submodule, for repeating the following steps of preset times: the first digital regulation resistance resistance value of control It is incremented by from preset resistive value with third preset step-length, obtains the 5th resistance value, wherein the 5th resistance value is to start to collect voice signal point Resistance value;It controls the first digital regulation resistance resistance value and is successively decreased from the 5th resistance value with the 4th preset step-length, when obtaining voice signal disappearance The 6th resistance value;
Second acquisition submodule obtains the second resistance value for preset times the 6th resistance value of amount to be averaged, wherein Preset times amount is identical as the value of preset times.
Optionally it is determined that unit 40 includes:
Third control module, in the frequency change procedure of control voice signal, control the frequency of voice signal from First predeterminated frequency gradually reaches the second predeterminated frequency according to the first predeterminated frequency step-length, wherein first frequency is pre- less than second If frequency;
First determining module, for determining sound signal collecting point a and blackout point b in frequency change procedure, In, a is the point that signal occurs in frequency change procedure, and b is blackout point in frequency change procedure;
4th control module obtains signal for controlling frequency from signal acquisition point a with the second predeterminated frequency increments End point c;
5th control module obtains signal for controlling frequency from blackout point b with third predeterminated frequency increments End point d;
Second determining module, for determining frequency response range, wherein frequency response range is the frequency of d point to c point Frequency.
In the application alternative embodiment, judging unit 44 includes:
Third determining module obtains goal discrepancy for determining the resistance value of frequency-selective digital potentiometer and the difference of target resistance value Value;
Judgment module, for judging whether target difference is greater than preset difference value;
4th determining module, for determining that there are noises in the case where target difference is greater than preset difference value.
In the application alternative embodiment, judging unit 44 includes:
Setup module, for the resistance value of the second digital regulation resistance to be arranged;
Acquisition module, for acquiring the voice signal of audible device;
5th determining module, if determining that there are noises for collecting voice signal.
In the application alternative embodiment, adjustment unit 46 includes:
Acquisition module, for acquiring the sound of audible device in the case where the resistance value for controlling the first digital regulation resistance is constant Sound signal;
Determining module, for determining the resistance value of the second digital regulation resistance according to voice signal, wherein resistance value is to start to adopt The resistance value for collecting the sensitivity of sound subtracts preset value.
It should be noted that the preferred embodiment of embodiment illustrated in fig. 4, may refer to the associated description of Fig. 1 to 3, this Place repeats no more.
The embodiment of the present application also provides a kind of storage medium, storage medium includes the program of storage, wherein is transported in program Equipment where controlling storage medium when row executes the adjustment method of above-mentioned audio.
The embodiment of the present application also provides a kind of processor, processor is for running program, wherein program executes when running The adjustment method of above-mentioned audio.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical 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 On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into 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 unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (12)

1. a kind of adjustment method of audio characterized by comprising
Determine the resistance value of the first digital regulation resistance corresponding with target center frequency, wherein the target center frequency is frequency The frequency at response range center;
In the case where the resistance value of first digital regulation resistance determines, collected sound signal;
Noise is judged whether there is by the voice signal;
In the presence of noise, the resistance value of the second digital regulation resistance is adjusted, wherein second digital regulation resistance is for controlling Sensitivity processed.
2. the method according to claim 1, wherein determining the corresponding with target center frequency first digital current potential The resistance value of device, comprising:
It controls audible device and voice signal is generated with first frequency, wherein the first frequency is the minimum of frequency response range Frequency;
Obtain the first resistance value of the voice signal end point, first resistance value be when the voice signal disappears described in first The resistance value of digital regulation resistance.
3. according to the method described in claim 2, wrapping it is characterized in that, obtain the first resistance value of the voice signal end point It includes:
Repeat the following steps of preset times: control the first digital regulation resistance resistance value is default with first from preset resistive value Step-length is incremented by, and obtains third resistance value, wherein the third resistance value is the resistance value for starting to collect voice signal point;Described in control First digital regulation resistance resistance value is successively decreased from the third resistance value with the second preset step-length, and the 4th resistance when voice signal disappears is obtained Value;
Preset times amount the 4th resistance value is averaged, first resistance value is obtained, wherein the preset times amount with The value of the preset times is identical.
4. the method according to claim 1, wherein determining the corresponding with target center frequency first digital current potential The resistance value of device, comprising:
It controls audible device and voice signal is generated with the target center frequency;
Obtain the second resistance value of the voice signal end point, second resistance value be when the voice signal disappears described in first The resistance value of digital regulation resistance.
5. according to the method described in claim 4, wrapping it is characterized in that, obtain the second resistance value of the voice signal end point It includes:
Repeat the following steps of preset times: control the first digital regulation resistance resistance value is default with third from preset resistive value Step-length is incremented by, and obtains the 5th resistance value, wherein the 5th resistance value is the resistance value for starting to collect voice signal point;Described in control First digital regulation resistance resistance value is successively decreased from the 5th resistance value with the 4th preset step-length, and the 6th resistance when voice signal disappears is obtained Value;
Preset times amount the 6th resistance value is averaged, second resistance value is obtained, wherein the preset times amount with The value of the preset times is identical.
6. the method according to claim 1, wherein the frequency at the frequency response range center passes through with lower section Formula determines:
In the frequency change procedure for controlling the voice signal, the frequency for controlling the voice signal is pressed from the first predeterminated frequency The second predeterminated frequency is gradually reached according to the first predeterminated frequency step-length, wherein first frequency is less than the second predeterminated frequency;
Sound signal collecting point a and blackout point b is determined in the frequency change procedure, wherein a is the frequency shift The point that signal occurs in the process, b are blackout point in the frequency change procedure;
Frequency is controlled from signal acquisition point a with the second predeterminated frequency increments, obtains blackout point c;
Frequency is controlled from blackout point b with third predeterminated frequency increments, obtains blackout point d;
Determine frequency response range, wherein the frequency response range be d point frequency to c point frequency.
7. being wrapped the method according to claim 1, wherein judging whether there is noise by the voice signal It includes:
It determines the resistance value of frequency-selective digital potentiometer and the difference of target resistance value, obtains target difference;
Judge whether the target difference is greater than preset difference value;
In the case where the target difference is greater than preset difference value, determine that there are the noises.
8. being wrapped the method according to claim 1, wherein judging whether there is noise by the voice signal It includes:
The resistance value of second digital regulation resistance is set;
Acquire the voice signal of audible device;
If collecting the voice signal, determine that there are noises.
9. the method according to claim 1, wherein in the presence of noise, adjusting the second digital current potential The resistance value of device, comprising:
In the case where the resistance value for controlling first digital regulation resistance is constant, the voice signal of audible device is acquired;
According to the voice signal, the resistance value of second digital regulation resistance is determined, wherein the resistance value is to start to collect sound The resistance value of the sensitivity of sound subtracts preset value.
10. a kind of debugging apparatus of audio characterized by comprising
Determination unit, for determining the resistance value of the first digital regulation resistance corresponding with target center frequency, wherein in the target Frequency of heart is the frequency at frequency response range center;
Acquisition unit, for first digital regulation resistance resistance value determine in the case where, collected sound signal;
Judging unit, for judging whether there is noise by the voice signal;
Adjustment unit, in the presence of noise, adjusting the resistance value of the second digital regulation resistance, wherein second number Word potentiometer is for controlling sensitivity.
11. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program When control the storage medium where equipment perform claim require any one of 1 to 9 described in audio adjustment method.
12. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 9 described in audio adjustment method.
CN201811240270.4A 2018-10-23 2018-10-23 Audio debugging method and device, storage medium and processor Active CN109391875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811240270.4A CN109391875B (en) 2018-10-23 2018-10-23 Audio debugging method and device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811240270.4A CN109391875B (en) 2018-10-23 2018-10-23 Audio debugging method and device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN109391875A true CN109391875A (en) 2019-02-26
CN109391875B CN109391875B (en) 2021-03-26

Family

ID=65426831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811240270.4A Active CN109391875B (en) 2018-10-23 2018-10-23 Audio debugging method and device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN109391875B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111565348A (en) * 2020-05-27 2020-08-21 珠海格力智能装备有限公司 Audio circuit

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB660192A (en) * 1948-02-13 1951-10-31 Standard Telephones Cables Ltd Improvements in or relating to radio receivers
SU932624A1 (en) * 1980-11-06 1982-05-30 Одесский Электротехнический Институт Связи Им.А.С.Попова Corrector of distortions of amplitude-frequency characteristic of communication channel
CN201226202Y (en) * 2008-06-27 2009-04-22 北京联合大学生物化学工程学院 Control circuit based on singlechip for simulating noise
CN102118469A (en) * 2010-12-09 2011-07-06 宁波双林汽车部件股份有限公司 Two-microphone differential noise reduction device of mobile phone
CN103686578A (en) * 2012-09-25 2014-03-26 应美盛股份有限公司 Microphone with programmable frequency response
CN104244162A (en) * 2014-10-11 2014-12-24 广东欧珀移动通信有限公司 Noise detecting method and device of loudspeaker
CN104640050A (en) * 2013-11-11 2015-05-20 西格玛艾尔科技股份有限公司 Horn resonant frequency measuring method and measuring device thereof
CN107276550A (en) * 2017-06-20 2017-10-20 北京贝能达信息技术股份有限公司 The power amplifier and control method controlled with noise measuring and volume
CN108307284A (en) * 2017-12-29 2018-07-20 青岛海信移动通信技术股份有限公司 A kind of method, device and mobile terminal of automatic detection loud speaker

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB660192A (en) * 1948-02-13 1951-10-31 Standard Telephones Cables Ltd Improvements in or relating to radio receivers
SU932624A1 (en) * 1980-11-06 1982-05-30 Одесский Электротехнический Институт Связи Им.А.С.Попова Corrector of distortions of amplitude-frequency characteristic of communication channel
CN201226202Y (en) * 2008-06-27 2009-04-22 北京联合大学生物化学工程学院 Control circuit based on singlechip for simulating noise
CN102118469A (en) * 2010-12-09 2011-07-06 宁波双林汽车部件股份有限公司 Two-microphone differential noise reduction device of mobile phone
CN103686578A (en) * 2012-09-25 2014-03-26 应美盛股份有限公司 Microphone with programmable frequency response
CN104640050A (en) * 2013-11-11 2015-05-20 西格玛艾尔科技股份有限公司 Horn resonant frequency measuring method and measuring device thereof
CN104244162A (en) * 2014-10-11 2014-12-24 广东欧珀移动通信有限公司 Noise detecting method and device of loudspeaker
CN107276550A (en) * 2017-06-20 2017-10-20 北京贝能达信息技术股份有限公司 The power amplifier and control method controlled with noise measuring and volume
CN108307284A (en) * 2017-12-29 2018-07-20 青岛海信移动通信技术股份有限公司 A kind of method, device and mobile terminal of automatic detection loud speaker

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111565348A (en) * 2020-05-27 2020-08-21 珠海格力智能装备有限公司 Audio circuit

Also Published As

Publication number Publication date
CN109391875B (en) 2021-03-26

Similar Documents

Publication Publication Date Title
CN113613369B (en) Light effect control method, device, equipment and storage medium
CN103928025B (en) The method and mobile terminal of a kind of speech recognition
CN109151634A (en) Wireless headset method for controlling volume, wireless headset and mobile terminal
CN102318325A (en) Controlling an adaptation of a behavior of an audio device to a current acoustic environmental condition
WO2005066868A3 (en) Sleep and environment control method and system
CN104954949B (en) According to the intelligent earphone and control method of acquisition signal adjust automatically output signal
CN107026953B (en) Diagnostic device and diagnostic system
CN106952654A (en) Robot noise-reduction method, device and robot
CN107049308B (en) Idea control system based on deep neural network
CN109493883A (en) A kind of audio time-delay calculation method and apparatus of smart machine and its smart machine
CN113692091B (en) Equipment control method, device, terminal equipment and storage medium
CN107395873B (en) Volume adjusting method, device, storage medium and terminal
CN103226438A (en) Method and system for desktop subject display mode based on light intensity adjustable panel terminal
CN108108006A (en) The long-range control method and system of a kind of microphone
CN108404275A (en) Training method of sleeping and relevant device
CN107371295A (en) A kind of LED illumination speech control systems and its sound control method
CN109391875A (en) The adjustment method and device of audio, storage medium, processor
CN115604621A (en) Earphone testing method, device, equipment and computer readable storage medium
CN103297581A (en) Mobile terminal and method for adjusting equalizer thereof
CN106254648A (en) The regulation method of mobile device volume, device and mobile device
CN106020447A (en) A touch-type electronic apparatus proximity sensor parameter adjusting method and system
CN105141786A (en) Music playing control method, system and mobile terminal
CN106527169B (en) Intelligent home control system based on bluetooth
CN106658658A (en) Wireless configuration method and device for intelligent terminal equipment
CN113948106A (en) Audio rhythm detection method, light effect control system, device, equipment and 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