CN109391875B - Audio debugging method and device, storage medium and processor - Google Patents

Audio debugging method and device, storage medium and processor Download PDF

Info

Publication number
CN109391875B
CN109391875B CN201811240270.4A CN201811240270A CN109391875B CN 109391875 B CN109391875 B CN 109391875B CN 201811240270 A CN201811240270 A CN 201811240270A CN 109391875 B CN109391875 B CN 109391875B
Authority
CN
China
Prior art keywords
resistance value
frequency
digital potentiometer
sound signal
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811240270.4A
Other languages
Chinese (zh)
Other versions
CN109391875A (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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/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)
  • Electrophonic Musical Instruments (AREA)
  • Monitoring And Testing Of Exchanges (AREA)

Abstract

The invention discloses an audio debugging method and device, a storage medium and a processor. Wherein, the method comprises the following steps: determining the resistance value of a first digital potentiometer corresponding to a target central frequency, wherein the target central frequency is the frequency of the center of a frequency response range; collecting a sound signal under the condition that the resistance value of the first digital potentiometer is determined; judging whether noise exists or not through the sound signal; in the presence of noise, the resistance of a second digital potentiometer is adjusted, wherein the second digital potentiometer is used to control the sensitivity. The invention solves the technical problems of complex operation and long debugging time in the prior art when audio detection is carried out in a manual mode.

Description

Audio debugging method and device, storage medium and processor
Technical Field
The invention relates to the field of audio detection, in particular to an audio debugging method and device, a storage medium and a processor.
Background
The audio detection is used for judging whether the buzzer makes a sound with a specified frequency or not and judging whether the buzzer or a product with the buzzer is good or not. Because the audio frequency detection integrated circuit board is adorned in frock (tool), has the detection of multichannel audio frequency moreover, debugs more troublesome. When the environment changes or the equipment goes wrong each time, the tool (jig) needs to be disassembled for debugging, and the multi-channel audio needs to be debugged all the way, so that the debugging time is long.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an audio debugging method and device, a storage medium and a processor, which are used for at least solving the technical problems of complex operation and long debugging time in the prior art when audio detection is carried out in a manual mode.
According to an aspect of the embodiments of the present invention, there is provided an audio debugging method, including: determining the resistance value of a first digital potentiometer corresponding to a target central frequency, wherein the target central frequency is the frequency of the center of a frequency response range; collecting a sound signal under the condition that the resistance value of the first digital potentiometer is determined; judging whether noise exists or not through the sound signal; in the presence of noise, the resistance of a second digital potentiometer is adjusted, wherein the second digital potentiometer is used to control the sensitivity.
Optionally, determining the resistance value of the first digital potentiometer corresponding to the target center frequency comprises: controlling a sound generating device to generate a sound signal at a first frequency, wherein the first frequency is a minimum frequency of a frequency response range; and acquiring a first resistance value of a voice signal vanishing point, wherein the first resistance value is the resistance value of the first digital potentiometer when the voice signal disappears.
Optionally, obtaining a first resistance value of the sound signal vanishing point comprises: the following steps are repeatedly executed for a preset number of times: controlling the resistance value of the first digital potentiometer to increase progressively from a preset resistance value by a first preset step length to obtain a third resistance value, wherein the third resistance value is the resistance value of a sound signal point which starts to be acquired; controlling the resistance value of the first digital potentiometer to decrease progressively from the third resistance value by a second preset step length to obtain a fourth resistance value when the sound signal disappears; and averaging the fourth resistance values of the preset times to obtain the first resistance value, wherein the preset times and the preset times have the same value.
Optionally, determining the resistance value of the first digital potentiometer corresponding to the target center frequency comprises: controlling a sound generating device to generate a sound signal at a target center frequency; and acquiring a second resistance value of the voice signal vanishing point, wherein the second resistance value is the resistance value of the first digital potentiometer when the voice signal disappears.
Optionally, obtaining a second resistance value of the sound signal vanishing point comprises: the following steps are repeatedly executed for a preset number of times: controlling the resistance value of the first digital potentiometer to increase progressively from a preset resistance value by a third preset step length to obtain a fifth resistance value, wherein the fifth resistance value is the resistance value of the sound signal point which starts to be acquired; controlling the resistance value of the first digital potentiometer to decrease progressively from the fifth resistance value by a fourth preset step length to obtain a sixth resistance value when the sound signal disappears; and averaging the sixth resistance values of the preset times to obtain a second resistance value, wherein the preset times and the preset times have the same value.
Optionally, the frequency at the center of the frequency response range is determined by: in the process of controlling the frequency change of the sound signal, controlling the frequency of the sound signal to gradually reach a second preset frequency from a first preset frequency according to a first preset frequency step length, wherein the first frequency is smaller than the second preset frequency; determining a sound signal acquisition point a and a signal vanishing point b in the frequency changing process, wherein a is a point where a signal appears in the frequency changing process, and b is the signal vanishing point in the frequency changing process; the control frequency is decreased progressively from the signal acquisition point a by a second preset frequency step length to obtain a signal vanishing point c; controlling the frequency to decrease from the signal vanishing point b by a third preset frequency step length to obtain a signal vanishing point d; determining a frequency response range, wherein the frequency response range is from the frequency of the point d to the frequency of the point c.
Optionally, the determining whether the noise exists through the sound signal includes: determining a difference value between the resistance value of the frequency-selecting digital potentiometer and a target resistance value to obtain a target difference value; judging whether the target difference is larger than a preset difference or not; and determining that the noise exists under the condition that the target difference is larger than the preset difference.
Optionally, the determining whether the noise exists through the sound signal includes: setting the resistance value of the second digital potentiometer; collecting a sound signal of a sound production device; if a sound signal is collected, it is determined that noise is present.
Optionally, adjusting the resistance of the second digital potentiometer in the presence of noise comprises: under the condition of controlling the resistance value of the first digital potentiometer to be unchanged, collecting a sound signal of sound production equipment; and determining the resistance value of the second digital potentiometer according to the voice signal, wherein the resistance value is the resistance value of the sensitivity for starting to acquire the voice minus a preset value.
According to another aspect of the embodiments of the present invention, there is also provided an audio debugging apparatus, including: the determining unit is used for determining the resistance value of the first digital potentiometer corresponding to a target central frequency, wherein the target central frequency is the frequency of the center of the frequency response range; the acquisition unit is used for acquiring a sound signal under the condition that the resistance value of the first digital potentiometer is determined; a judging unit for judging whether there is noise by the sound signal; and the adjusting unit is used for adjusting the resistance value of the second digital potentiometer under the condition that noise exists, wherein the second digital potentiometer is used for controlling the sensitivity.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus on which the storage medium is located is controlled to execute the above audio debugging method.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes the audio debugging method described above.
In the embodiment of the invention, a digital potentiometer is adopted to replace a frequency-selecting sliding rheostat, a singlechip is used for controlling the resistance value of the digital potentiometer to perform frequency selection, the center frequency is enabled to be the required frequency, the digital potentiometer is used to replace the sliding rheostat with adjustable sensitivity, the sensitivity is reduced when the existence of noise is judged, finally, the mode that a sound signal is collected when a buzzer responds and no sound signal is collected when the buzzer does not respond is achieved, and the resistance value of a first digital potentiometer corresponding to the target center frequency is determined, wherein the target center frequency is the frequency in the center of a frequency response range; collecting a sound signal under the condition that the resistance value of the first digital potentiometer is determined; judging whether noise exists or not through the sound signal; under the condition that noise exists, the resistance value of the second digital potentiometer is adjusted, wherein the second digital potentiometer is used for controlling the sensitivity, the sensitivity of taking compromise between the noise and product sound is achieved, the circuit can collect the product sound and can remove the influence of the noise, the technical effects of simplicity in operation and time saving during audio detection are achieved, and the technical problems that operation is complex and debugging time is long when the audio detection is carried out in a manual mode in the related art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of debugging audio according to an embodiment of the present invention;
FIG. 2 is a circuit diagram of a single-pass audio detection circuit according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a single-pass audio detection circuit according to an embodiment of the present invention;
fig. 4 is a block diagram of an audio debugging apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The audio detection is used for judging whether the buzzer makes a sound with a specified frequency or not and judging whether the buzzer or a product with the buzzer is good or not. Because the audio frequency detection integrated circuit board is adorned in frock (tool), has the detection of multichannel audio frequency moreover, debugs more troublesome. When the environment changes or the equipment goes wrong each time, the tool (jig) needs to be disassembled for debugging, and the multi-channel audio needs to be debugged all the way, so that the debugging time is longer.
In order to solve the above problems, embodiments of the present application provide corresponding solutions, which are described in detail below.
Firstly, a frequency-selecting slide rheostat is required to be adjusted, the circuit is required to react to a specified frequency, for example, the frequency of 4KHz is required to be reacted, the value of the slide rheostat is required to be adjusted to a relatively better state, the center frequency of the frequency selection is close to the frequency of 4KHz, the state is usually achieved by manually adjusting the slide rheostat, however, if the slide rheostat is required to be automatically adjusted, the slide rheostat needs to be replaced by a digital potentiometer, then a singlechip is used for controlling the resistance value of the digital potentiometer, so that a tool (jig) does not need to be frequently disassembled to be debugged, multi-channel audio detection can be automatically debugged through an automatic program of the singlechip, and time and labor are saved.
The digital potentiometer is used for replacing a sliding rheostat with adjustable sensitivity, when the condition that the noise is too large or the sound is too small is identified, the sensitivity can be automatically adjusted to achieve a selected state that the noise influence is small and the sound of the buzzer can be normally collected.
In accordance with an embodiment of the present invention, there is provided a method embodiment of debugging of audio, it is noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a debugging method of audio according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, determining the resistance value of a first digital potentiometer corresponding to a target central frequency, wherein the target central frequency is the frequency of the center of a frequency response range;
wherein the first digital potentiometer is used for adjusting the frequency.
FIG. 2 is a circuit diagram of a single-channel audio detection circuit according to an embodiment of the present invention, in which the left arrow is a microphone interface, the middle small arrow is a power supply, and the right downward arrow is an output; the chip on the left is LM386, and the chip on the right is LM 567.
Fig. 3 is a schematic diagram of a single-channel audio detection circuit according to an embodiment of the present invention, and as shown in fig. 3, the working process of the single-channel audio detection circuit according to the embodiment of the present invention is as follows:
collecting a sound signal; processing the sound signal to obtain an acquisition signal; judging whether the frequency of the sound signal is a target frequency; outputting a low level in the case where the frequency is the target frequency; in the case where the frequency is not the target frequency, a high level is output. Wherein, it includes to the sound signal processing acquisition signal: converting the sound signal into a voltage waveform to obtain a first voltage waveform; and amplifying the first voltage waveform to obtain a second voltage waveform, and taking the second voltage waveform as an acquisition signal.
Specifically, the microphone is connected to a microphone interface, sound signals are converted into voltage waveforms through sound collection of the microphone, the voltage waveforms are weak signals, the weak signals are amplified through an LM386 amplification chip, the amplified signals are transmitted to a decoding chip LM567, whether the collected signals are fixed frequencies or not can be identified through the decoding chip, for example, the collected buzzer frequency is 4KHZ, if the buzzer rings at 4KHZ, a low level is output, if the buzzer does not ring at 4KHZ or the buzzer does not ring, the low level is output, and therefore the fixed frequency sound signals are judged and identified.
When the device is used, the device is required to be debugged on site, the frequency acquired when the environment changes is deviated, for example, the center frequency of the acquired frequency is adjusted to be 4KHz, the input voltage changes when the environment changes, so that the input voltage change affects the center frequency to be deviated from 4KHz, and noise is changed when the environment is changed, if the noise is too loud, we may need to turn the sensitivity down to mask the effects of the noise, but not too low, because the sound intensity of the product is large or small, the minimum signal will be less than 50dB but not less than 40dB, the sensitivity of sound collection is also required to be relatively high, a sound signal with the smallest practical product is required to be collected, therefore, it is necessary to obtain a suitable sensitivity, which can collect the required sound without being affected by the noise.
The field debugging needs frequently to operate the host computer and need frequently to open frock (tool) and go to debug audio acquisition integrated circuit board, and the cooperation just can debug between host computer operation and the tool integrated circuit board moreover, and the debugging cycle is long. Two digital potentiometers are used to replace the sensitivity-adjusted sliding rheostat and the frequency-selective sliding rheostat, respectively, and a single-chip-controlled approach is used to achieve optimization of audio acquisition and compromise of sensitivity.
The user can directly determine the resistance value of the required first digital potentiometer, and the frequency is determined according to the corresponding relation between the frequency and the resistance value, or the user can determine the required frequency and determine the resistance value according to the corresponding relation between the frequency and the resistance value, wherein the corresponding relation between the frequency and the resistance value is as follows:
Figure BDA0001839119650000051
in the embodiment of the present application, the frequency at the center of the frequency response range can be determined by:
in the process of controlling the frequency change of the sound signal, controlling the frequency of the sound signal to gradually reach a second preset frequency from a first preset frequency according to a first preset frequency step length, wherein the first frequency is smaller than the second preset frequency; determining a sound signal acquisition point a and a signal vanishing point b in the frequency changing process, wherein a is a point where a signal appears in the frequency changing process, and b is the signal vanishing point in the frequency changing process; the control frequency is decreased progressively from the signal acquisition point a by a second preset frequency step length to obtain a signal vanishing point c; controlling the frequency to decrease from the signal vanishing point b by a third preset frequency step length to obtain a signal vanishing point d; determining a frequency response range, wherein the frequency response range is from the frequency of the point d to the frequency of the point c.
In an alternative embodiment, if, for example, 4KHz is to be picked up, a resistance value of 1.5K is first chosen (this resistance value will cause the pick-up frequency to be around 4KHz, by
Figure BDA0001839119650000061
It can be obtained, where C5 can take 0.1UF), then let the frequency from 3KHz to 5KHz, take the acquisition every 100Hz, record the two points from the frequency of the point a where the signal starts to be acquired to the vanishing point b of the signal, then decrease the frequency from the point a where the signal is acquired every 10Hz to the frequency of the vanishing point C of the signal, decrease the frequency from the point b every 10Hz to the point d where the signal is just acquired, and then subtract the two to obtain the frequency response range.
The frequency of the response may be controlled in the embodiments of the present application by:
1) controlling a sound generating device to generate a sound signal at a first frequency, wherein the first frequency is a minimum frequency of a frequency response range; wherein the generating device may be a buzzer.
And acquiring a first resistance value of a voice signal vanishing point, wherein the first resistance value is the resistance value of the first digital potentiometer when the voice signal disappears.
The process of obtaining the first resistance value of the sound signal vanishing point is as follows:
the following steps are repeatedly executed for a preset number of times: controlling the resistance value of the first digital potentiometer to increase progressively from a preset resistance value by a first preset step length to obtain a third resistance value, wherein the third resistance value is the resistance value of a sound signal point which starts to be acquired; controlling the resistance value of the first digital potentiometer to decrease progressively from the third resistance value by a second preset step length to obtain a fourth resistance value when the sound signal disappears;
and averaging the fourth resistance values of the preset times to obtain the first resistance value, wherein the preset times and the preset times have the same value.
The embodiments of the present application provide an alternative embodiment: if 4KHz sound needs to be collected (in the process, the sensitivity is low when the second digital potentiometer R16 is 1K), a resistance value is first taken to be 1.5K (the resistance value can make the collected frequency be near 4KHz, and the collected frequency passes through
Figure BDA0001839119650000062
It can be obtained that C5 may be 0.1UF), for example, the frequency bandwidth is 320Hz (i.e. the frequency response range is 3840Hz-4160Hz), the buzzer is allowed to sound at a fixed frequency of 3840Hz (3840Hz is the minimum frequency of the frequency response range, i.e. 3840Hz is the first frequency mentioned above), then the resistance value of the first digital potentiometer is increased from 1K ohm every 100 ohms, the resistance value of the signal immediately after being acquired is determined and then decreased every 10 ohms, a point where the signal disappears is obtained, then the resistance value of the point where the signal disappears is recorded, then two times are repeated, three fourth resistance values are obtained, and the fourth resistance value whose difference is not more than 20 is averaged, so that the first resistance value is obtained.
2) Controlling a sound generating device to generate a sound signal at a target center frequency;
and acquiring a second resistance value of the voice signal vanishing point, wherein the second resistance value is the resistance value of the first digital potentiometer when the voice signal disappears.
Obtaining a second resistance value of the sound signal vanishing point, comprising:
the following steps are repeatedly executed for a preset number of times: controlling the resistance value of the first digital potentiometer to increase progressively from a preset resistance value by a third preset step length to obtain a fifth resistance value, wherein the fifth resistance value is the resistance value of the sound signal point which starts to be acquired; controlling the resistance value of the first digital potentiometer to decrease progressively from the fifth resistance value by a fourth preset step length to obtain a sixth resistance value when the sound signal disappears;
and averaging the sixth resistance values of the preset times to obtain a second resistance value, wherein the preset times and the preset times have the same value.
The embodiments of the present application provide an alternative embodiment: the buzzer is enabled to sound at a fixed frequency of 4KHz (in the process, the sensitivity is low when a second digital potentiometer R16 is equal to 1K), then the resistance value is increased from 1K ohm to 100 ohms, the resistance value of the signal just collected is determined and then is reduced to 10 ohms until the sound signal disappears, the resistance value of the signal vanishing point is determined to obtain a sixth resistance value, the sixth resistance value is obtained again twice to obtain three sixth resistance values, and the sixth resistance values with the resistance value difference not more than 20 are averaged to obtain a second resistance value.
In the embodiment of the present application, 1, a plurality of fourth resistance values and sixth resistance values may be obtained by using the methods in 1) and 2) at the same time, and an average value of the plurality of fourth resistance values and sixth resistance values whose average value does not exceed twenty is taken as the resistance value r7, or 2, a first resistance value and a second resistance value may be obtained by using the methods in 1) and 2), and an average value of the first resistance value and the second resistance value is taken as the resistance value r7, or 3, at least two first resistance values and at least two second resistance values may be obtained by performing multiple measurements by using the methods in 1) and 2), and an average value of all the first group of values and the second resistance value is taken as the resistance value r 7.
Step S104, collecting a sound signal under the condition that the resistance value of the first digital potentiometer is determined;
step S106, judging whether noise exists or not through the sound signal;
in the embodiment of the present application, whether noise exists may be determined by:
1) determining a difference value between the resistance value of the frequency-selecting digital potentiometer and a target resistance value to obtain a target difference value; judging whether the target difference is larger than a preset difference or not; and determining that the noise exists under the condition that the target difference is larger than the preset difference.
2) Setting the resistance value of the second digital potentiometer; collecting a sound signal of a sound production device; if a sound signal is collected, it is determined that noise is present.
In an alternative embodiment: 1) using the formula
Figure BDA0001839119650000081
(wherein f represents the frequency of the sound signal), calculating the value of R7, judging whether the subtraction of R7 and R7 is less than 100, if the subtraction is more than 100, proving that the noise is too large to cause the equipment to be capable of normally collecting sound, wherein R7 is a theoretical value obtained by the formula, and R7 is an actual value obtained by the method; 2) the buzzer is enabled not to sound, sound collection is carried out under the condition that the resistance value is R7 and the sensitivity (R16 is 2K ohm) is high, if sound is collected, noise of 4KHz frequency and frequency within a certain range of 4KHz exists, and the noise has a certain influence on the operation of equipment; 3) the buzzer controlled by the single chip microcomputer is enabled to sound intermittently at 4KHz (R16 is 2K ohm), when the buzzer sounds, the buzzer collects sound, when the buzzer does not sound, the buzzer does not collect sound, almost no noise is influenced, and if the buzzer does not sound, the buzzer does not have intermittent noise influence.
And step S108, in the presence of noise, adjusting the resistance value of a second digital potentiometer, wherein the second digital potentiometer is used for controlling the sensitivity.
In the embodiment of the application, a digital potentiometer is used for replacing the slide rheostat with sensitivity adjustment; when the noise exists, R16 is 1K as a base number, and the sensitivity is increased by 100 times, the buzzer is intermittently sounded at 4KHz under the control of the single chip microcomputer, and the buzzer is acquired when the buzzer is sounded and cannot be acquired when the buzzer is not sounded. Or the buzzer is not sounded, the resistance value of R7 is not changed, the sensitivity is slowly increased to collect the sound, and after the point of collecting the sound is reached, the resistance value is subtracted by 50 to determine the value R16 of the second digital potentiometer.
Through the steps, the digital potentiometer can be automatically adjusted according to the required frequency, the response frequency can be automatically calibrated to the required frequency, the better state is achieved, the sensitivity can be obtained between noise and product sound, the circuit can not only collect the product sound, but also remove the influence of the noise, the computer can be debugged in one key without opening a tool, time and labor are saved, and the debugging time is greatly shortened.
According to an embodiment of the present invention, an embodiment of a method for debugging an audio is provided, and fig. 4 is a structural diagram of an apparatus for debugging an audio according to an embodiment of the present invention, as shown in fig. 4, the method includes the following steps:
a determination unit 40 for determining a resistance value of the first digital potentiometer corresponding to a target center frequency, wherein the target center frequency is a frequency at the center of the frequency response range;
the acquisition unit 42 is used for acquiring a sound signal under the condition that the resistance value of the first digital potentiometer is determined;
a judging unit 44 for judging whether there is noise by the sound signal;
an adjusting unit 46 for adjusting the resistance of the second digital potentiometer in the presence of noise, wherein the second digital potentiometer is used for controlling the sensitivity.
In an alternative embodiment of the present application, the determining unit 40 includes:
the first control module is used for controlling the sound generating equipment to generate a sound signal at a first frequency, wherein the first frequency is the minimum frequency of a frequency response range;
the first obtaining module is used for obtaining a first resistance value of a voice signal vanishing point, and the first resistance value is the resistance value of the first digital potentiometer when the voice signal disappears.
Wherein, first acquisition module includes:
a first control submodule for repeatedly executing the following steps for a preset number of times: controlling the resistance value of the first digital potentiometer to increase progressively from a preset resistance value by a first preset step length to obtain a third resistance value, wherein the third resistance value is the resistance value of a sound signal point which starts to be acquired; controlling the resistance value of the first digital potentiometer to decrease progressively from the third resistance value by a second preset step length to obtain a fourth resistance value when the sound signal disappears;
and the first obtaining submodule is used for averaging the fourth resistance values of the preset number to obtain the first resistance value, wherein the preset number is the same as the preset number.
In an alternative embodiment of the present application, the determining unit 40 includes:
the second control module is used for controlling the sound generating equipment to generate a sound signal at the target center frequency;
and the second acquisition module is used for acquiring a second resistance value of the voice signal vanishing point, wherein the second resistance value is the resistance value of the first digital potentiometer when the voice signal disappears.
Wherein, the second acquisition module includes:
a second control submodule for repeatedly executing the following steps for a preset number of times: controlling the resistance value of the first digital potentiometer to increase progressively from a preset resistance value by a third preset step length to obtain a fifth resistance value, wherein the fifth resistance value is the resistance value of the sound signal point which starts to be acquired; controlling the resistance value of the first digital potentiometer to decrease progressively from the fifth resistance value by a fourth preset step length to obtain a sixth resistance value when the sound signal disappears;
and the second obtaining submodule is used for averaging the sixth resistance values of the preset times to obtain a second resistance value, wherein the preset times and the preset times have the same value.
Optionally, the determining unit 40 includes:
the third control module is used for controlling the frequency of the sound signal to gradually reach a second preset frequency from the first preset frequency according to the first preset frequency step length in the process of controlling the frequency change of the sound signal, wherein the first frequency is smaller than the second preset frequency;
the device comprises a first determining module, a second determining module and a control module, wherein the first determining module is used for determining a sound signal acquisition point a and a signal vanishing point b in the frequency changing process, wherein a is a point where a signal appears in the frequency changing process, and b is the signal vanishing point in the frequency changing process;
the fourth control module is used for controlling the frequency to decrease from the signal acquisition point a by a second preset frequency step length to obtain a signal vanishing point c;
the fifth control module is used for controlling the frequency to decrease from the signal vanishing point b by a third preset frequency step length to obtain a signal vanishing point d;
and the second determining module is used for determining a frequency response range, wherein the frequency response range is from the frequency of the point d to the frequency of the point c.
In an alternative embodiment of the present application, the determining unit 44 includes:
the third determining module is used for determining the difference value between the resistance value of the frequency-selecting digital potentiometer and the target resistance value to obtain a target difference value;
the judging module is used for judging whether the target difference value is larger than a preset difference value or not;
and the fourth determining module is used for determining that the noise exists under the condition that the target difference is larger than the preset difference.
In an alternative embodiment of the present application, the determining unit 44 includes:
the setting module is used for setting the resistance value of the second digital potentiometer;
the acquisition module is used for acquiring a sound signal of the sound production equipment;
and the fifth determining module is used for determining that noise exists if the sound signal is collected.
In an alternative embodiment of the present application, the adjusting unit 46 includes:
the acquisition module is used for acquiring a sound signal of the sound production equipment under the condition of controlling the resistance value of the first digital potentiometer to be unchanged;
and the determining module is used for determining the resistance value of the second digital potentiometer according to the sound signal, wherein the resistance value is obtained by subtracting a preset value from the resistance value of the sensitivity of the sound collected at the beginning.
It should be noted that, reference may be made to the description of fig. 1 to 3 for a preferred implementation of the embodiment shown in fig. 4, and details are not repeated here.
The embodiment of the application also provides a storage medium, wherein the storage medium comprises a stored program, and when the program runs, the device where the storage medium is located is controlled to execute the audio debugging method.
The embodiment of the application further provides a processor, wherein the processor is used for running the program, and the program is run to execute the audio debugging method.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for debugging audio, comprising:
determining a resistance value of a first digital potentiometer corresponding to a target center frequency, wherein the target center frequency is a frequency at the center of a frequency response range, and the first digital potentiometer is used for adjusting the frequency;
collecting a sound signal under the condition that the resistance value of the first digital potentiometer is determined;
judging whether noise exists or not through the sound signal;
adjusting a resistance of a second digital potentiometer in the presence of noise, wherein the second digital potentiometer is configured to control a sensitivity of the second digital potentiometer, comprising: under the condition of controlling the resistance value of the first digital potentiometer to be unchanged, collecting a sound signal of sound production equipment; and determining the resistance value of the second digital potentiometer according to the sound signal, wherein the resistance value is obtained by subtracting a preset value from the resistance value of the sensitivity of the sound collected at the beginning.
2. The method of claim 1, wherein determining the resistance of the first digital potentiometer corresponding to the target center frequency comprises:
controlling a sound generating device to generate a sound signal at a first frequency, wherein the first frequency is a minimum frequency of a frequency response range;
and acquiring a first resistance value of the voice signal vanishing point, wherein the first resistance value is the resistance value of the first digital potentiometer when the voice signal disappears.
3. The method of claim 2, wherein obtaining a first resistance value for a vanishing point of the sound signal comprises:
the following steps are repeatedly executed for a preset number of times: controlling the resistance value of the first digital potentiometer to increase progressively from a preset resistance value by a first preset step length to obtain a third resistance value, wherein the third resistance value is the resistance value of a point where the sound signal starts to be collected; controlling the resistance value of the first digital potentiometer to decrease progressively from the third resistance value by a second preset step length to obtain a fourth resistance value when the sound signal disappears;
and averaging the fourth resistance values of a preset number of times to obtain the first resistance value, wherein the preset number of times is the same as the preset number of times.
4. The method of claim 1, wherein determining the resistance of the first digital potentiometer corresponding to the target center frequency comprises:
controlling a sound generating device to generate a sound signal at the target center frequency;
and acquiring a second resistance value of the voice signal vanishing point, wherein the second resistance value is the resistance value of the first digital potentiometer when the voice signal disappears.
5. The method of claim 4, wherein obtaining a second resistance value for the vanishing point of the sound signal comprises:
the following steps are repeatedly executed for a preset number of times: controlling the resistance value of the first digital potentiometer to increase progressively from a preset resistance value by a third preset step length to obtain a fifth resistance value, wherein the fifth resistance value is the resistance value of a point where the sound signal starts to be collected; controlling the resistance value of the first digital potentiometer to decrease progressively from the fifth resistance value by a fourth preset step length to obtain a sixth resistance value when the sound signal disappears;
and averaging the sixth resistance values of a preset number to obtain the second resistance value, wherein the preset number is the same as the preset number.
6. The method of claim 1, wherein the frequency at the center of the frequency response range is determined by:
in the process of controlling the frequency change of the sound signal, controlling the frequency of the sound signal to gradually reach a second preset frequency from a first preset frequency according to a first preset frequency step length, wherein the first frequency is smaller than the second preset frequency;
determining a sound signal acquisition point a and a signal vanishing point b in the frequency changing process, wherein a is a point where a signal appears in the frequency changing process, and b is the signal vanishing point in the frequency changing process;
the control frequency is decreased progressively from the signal acquisition point a by a second preset frequency step length to obtain a signal vanishing point c;
controlling the frequency to decrease from the signal vanishing point b by a third preset frequency step length to obtain a signal vanishing point d;
determining a frequency response range, wherein the frequency response range is from the frequency of the point d to the frequency of the point c.
7. The method of claim 1, wherein determining whether noise is present from the sound signal comprises:
determining a difference value between the resistance value of the first digital potentiometer and the target resistance value to obtain a target difference value;
judging whether the target difference value is larger than a preset difference value or not;
and determining that the noise exists under the condition that the target difference is larger than a preset difference.
8. The method of claim 1, wherein determining whether noise is present from the sound signal comprises:
setting the resistance value of the second digital potentiometer;
when the resistance value of the second digital potentiometer is 2K ohm, collecting a sound signal of sound production equipment;
if the sound signal is collected, determining that noise is present.
9. An apparatus for debugging audio, comprising:
the device comprises a determining unit, a judging unit and a control unit, wherein the determining unit is used for determining the resistance value of a first digital potentiometer corresponding to a target central frequency, the target central frequency is the frequency at the center of a frequency response range, and the first digital potentiometer is used for adjusting the frequency;
the acquisition unit is used for acquiring a sound signal under the condition that the resistance value of the first digital potentiometer is determined;
a judging unit for judging whether noise exists or not by the sound signal;
an adjusting unit, configured to adjust a resistance of a second digital potentiometer in the presence of noise, wherein the second digital potentiometer is configured to control a sensitivity of the second digital potentiometer, and the adjusting unit includes: under the condition of controlling the resistance value of the first digital potentiometer to be unchanged, collecting a sound signal of sound production equipment; and determining the resistance value of the second digital potentiometer according to the sound signal, wherein the resistance value is obtained by subtracting a preset value from the resistance value of the sensitivity of the sound collected at the beginning.
10. A computer-readable storage medium, comprising a stored program, wherein when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the audio debugging method according to any one of claims 1 to 8.
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 CN109391875A (en) 2019-02-26
CN109391875B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN109391875A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
US10665250B2 (en) Real-time feedback during audio recording, and related devices and systems
JP5450049B2 (en) Method and apparatus in an acoustic system
JP2018528735A5 (en)
CN108111956A (en) A kind of sound equipment adjustment method and device based on amplitude-frequency response
CN101437191B (en) Calibration method for audio MACSYM
CN101411213A (en) Calibration method and device in an audio system
US20200213702A1 (en) Signal processing device, signal processing method, and program
CN112017693B (en) Audio quality assessment method and device
US20080183429A1 (en) Enhancement of periodic data collection by addition of audio data
CN111866690A (en) Microphone testing method and device
CN106775558B (en) Method and device for obtaining earphone optimization parameters and audio providing method and system
US20240257795A1 (en) Noise reduction parameter setting method and apparatus, earphone device and storage medium
CN109391875B (en) Audio debugging method and device, storage medium and processor
JP2008125587A (en) Hearing testing/measuring apparatus and hearing testing/measuring method
CN107438221B (en) Online loudspeaker sound pressure detector and detection method
CN115604621A (en) Earphone testing method, device, equipment and computer readable storage medium
CN108919962B (en) Auxiliary piano training method based on brain-computer data centralized processing
JP2010226332A (en) Portable terminal device, and server
CN110403591A (en) A kind of processing method of fetal heart rate signal
CN109163225A (en) A kind of leakage water detector and its data processing method
CN113257247B (en) Test method and system
CN209026528U (en) A kind of leakage water detector
EP3232906B1 (en) Hearing test system
CN118507085B (en) Method for evaluating precision of event marking time and related product
CN114205726B (en) Method and device for testing finished earphone and earphone manufacturing system

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