CN114640926B - Current sound detection method, device, equipment and computer readable storage medium - Google Patents

Current sound detection method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN114640926B
CN114640926B CN202210335605.0A CN202210335605A CN114640926B CN 114640926 B CN114640926 B CN 114640926B CN 202210335605 A CN202210335605 A CN 202210335605A CN 114640926 B CN114640926 B CN 114640926B
Authority
CN
China
Prior art keywords
value
threshold
frequency point
amplitude
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
CN202210335605.0A
Other languages
Chinese (zh)
Other versions
CN114640926A (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.)
Goertek Inc
Original Assignee
Goertek Inc
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 Goertek Inc filed Critical Goertek Inc
Priority to CN202210335605.0A priority Critical patent/CN114640926B/en
Publication of CN114640926A publication Critical patent/CN114640926A/en
Application granted granted Critical
Publication of CN114640926B publication Critical patent/CN114640926B/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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/02Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using spectral analysis, e.g. transform vocoders or subband vocoders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Acoustics & Sound (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

The invention discloses a current sound detection method, a device, equipment and a computer readable storage medium, wherein the current sound detection method comprises the following steps: acquiring a recording signal, wherein the recording signal is obtained by recording a test microphone for equipment to be tested in a test environment; analyzing the recording signal to obtain a frequency spectrum curve; analyzing the frequency spectrum curve to obtain an index value for determining a current sound detection result of the device to be detected based on the index value, wherein the index value comprises at least two of a peak value, an energy sum, a superthreshold frequency point number and a superthreshold frequency point difference value in a preset frequency band in the frequency spectrum curve, and the superthreshold frequency point difference value represents the amplitude difference between a frequency point exceeding a preset amplitude threshold and the preset amplitude threshold in the preset frequency band in the frequency spectrum curve. The invention reduces the probability of false detection and missing detection of the current sound and improves the accuracy of detection of the current sound.

Description

Current sound detection method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of acoustic testing technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for detecting current sound.
Background
With the development of technology, electronic devices are increasingly widely used in all aspects of people's life. At present, the electronic device may generate current sound for some reasons, and in the use process of the user, if the current sound generated by the electronic device is too large, the use of the user is affected, so that in the production process or the use process of the electronic device, the current sound of the electronic device is often required to be detected, when the current sound affecting the use of the user is detected, a corresponding countermeasure is adopted to remove the current sound, for example, reworking on unqualified products on a production line. The current sound detection method has higher probability of missing detection or false detection.
Disclosure of Invention
The invention mainly aims to provide a current sound detection method, a device, equipment and a computer readable storage medium, and aims to provide the current sound detection method, reduce the occurrence probability of missing detection and false detection and improve the current sound detection accuracy.
In order to achieve the above object, the present invention provides a current sound detection method, comprising the steps of:
acquiring a recording signal, wherein the recording signal is obtained by recording a test microphone for equipment to be tested in a test environment;
Analyzing the recording signal to obtain a frequency spectrum curve;
analyzing the frequency spectrum curve to obtain an index value for determining a current sound detection result of the device to be detected based on the index value, wherein the index value comprises at least two of a peak value, an energy sum, a superthreshold frequency point number and a superthreshold frequency point difference value in a preset frequency band in the frequency spectrum curve, and the superthreshold frequency point difference value represents the amplitude difference between a frequency point exceeding a preset amplitude threshold and the preset amplitude threshold in the preset frequency band in the frequency spectrum curve.
Optionally, when the index value includes a super-threshold frequency number and/or a super-threshold frequency difference value, the step of analyzing the spectral curve to obtain the index value includes:
performing amplitude average value calculation on each frequency point of a preset frequency band in a frequency spectrum curve to obtain a reference value;
respectively calculating the difference value between the amplitude value of each frequency point in the frequency spectrum curve and the reference value to obtain a zeroing curve composed of the difference values corresponding to each frequency point;
and calculating to obtain the number of the superthreshold frequency points or the difference value of the superthreshold frequency points based on the zeroing curve.
Optionally, when the index value includes the number of frequency points exceeding the threshold, the step of calculating the number of frequency points exceeding the threshold based on the zeroing curve includes:
comparing the amplitude value of each frequency point in the preset frequency band in the zeroing curve with the preset amplitude value threshold of the corresponding frequency point, and counting the number of the frequency points with the amplitude value exceeding the corresponding preset amplitude value threshold to obtain the number of the frequency points with the super threshold.
Optionally, when the index value includes a super-threshold frequency point difference value, the step of calculating the super-threshold frequency point difference value based on the zeroing curve includes:
comparing the amplitude of each frequency point in the preset frequency band in the zeroing curve with a preset amplitude threshold of the corresponding frequency point, and determining a superthreshold frequency point of which the amplitude exceeds the corresponding preset amplitude threshold;
and respectively calculating the difference value between the amplitude value of each super-threshold frequency point and the preset amplitude value threshold of the corresponding frequency point, and obtaining the super-threshold frequency point difference value based on the square sum after calculating the square sum of the difference values.
Optionally, the step of calculating the average value of the amplitude values of each frequency point of the preset frequency band in the frequency spectrum curve to obtain the reference value includes:
sequencing the amplitude values of all frequency points in a preset frequency band in a frequency spectrum curve according to the size to obtain a first amplitude sequence;
removing the first preset number of amplitude values and/or the second preset number of amplitude values in the first amplitude value sequence to obtain a second amplitude value sequence;
and averaging all the amplitudes in the second amplitude sequence to obtain a reference value.
Optionally, when the index value includes a first value and a second value, the step of analyzing the spectral curve to obtain the index value includes:
Analyzing the spectrum curve to obtain a first numerical value, wherein the first numerical value comprises a peak value and/or an energy sum;
detecting whether the first numerical value exceeds a corresponding preset first index threshold;
and if the first numerical value does not exceed the first index threshold, analyzing the frequency spectrum curve to obtain a second numerical value for determining a current sound detection result of the device to be detected based on the second numerical value, wherein the second numerical value comprises a super-threshold frequency point number and/or a super-threshold frequency point difference value.
Optionally, after the step of analyzing the spectral curve to obtain the second value, the method further includes:
detecting whether the second value exceeds a corresponding preset second index threshold;
if the second numerical value exceeds the second index threshold, determining that the current sound exists in the equipment to be tested;
and if the second numerical value does not exceed the second index threshold, determining that the current sound does not exist in the equipment to be tested.
In order to achieve the above object, the present invention also provides a current sound detection device, including:
the acquisition module is used for acquiring a recording signal, wherein the recording signal is obtained by recording a test signal played by the equipment to be tested through the test microphone;
the frequency spectrum analysis module is used for analyzing the recording signal to obtain a frequency spectrum curve;
The index analysis module is used for analyzing the frequency spectrum curve to obtain an index value, so that a current sound detection result of the device to be detected can be determined based on the index value, wherein the index value comprises at least two of a peak value, an energy sum, a super-threshold frequency point number and a super-threshold frequency point difference value in a preset frequency band in the frequency spectrum curve, and the super-threshold frequency point difference value represents the amplitude difference between a frequency point exceeding a preset amplitude threshold and the preset amplitude threshold in the preset frequency band in the frequency spectrum curve.
In order to achieve the above object, the present invention also provides a current sound detection apparatus including: the current sound detection method comprises the steps of a memory, a processor and a current sound detection program stored in the memory and capable of running on the processor, wherein the current sound detection program is executed by the processor to realize the current sound detection method.
In addition, in order to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon a current sound detection program which, when executed by a processor, implements the steps of the current sound detection method as described above.
According to the invention, the recorded sound signal obtained by the test microphone aiming at the equipment to be tested in the test environment is obtained, the recorded sound signal is analyzed to obtain a frequency spectrum curve, the frequency spectrum curve is analyzed to obtain an index value, and the current sound detection result of the equipment to be tested is determined based on the index value, wherein the index value comprises at least two of a peak value, an energy sum, a super-threshold frequency point number and a super-threshold frequency point difference value in a preset frequency band in the frequency spectrum curve, the contribution of the peak value and a side lobe to the current sound is considered, the probability of false detection and missing detection is reduced, and the accuracy of the current sound detection is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a current sound detection method according to a first embodiment of the present invention;
fig. 3 is a schematic diagram of a current sound detection scenario according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a frequency response curve according to an embodiment of the present invention;
fig. 5 is a schematic diagram of functional modules of a current sound detection device according to a preferred embodiment of the invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic device structure of a hardware running environment according to an embodiment of the present invention.
It should be noted that, the current sound detection device in the embodiment of the present invention may be an electronic device such as a computer, a smart phone, a server, etc., which is not limited herein.
As shown in fig. 1, the current sound detection apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the current sound detection device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a current sound detection program may be included in a memory 1005 as one type of computer storage medium. An operating system is a program that manages and controls the hardware and software resources of the device, supporting the running of a galvanic tone detection program, as well as other software or programs. In the device shown in fig. 1, the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used for establishing communication connection with a server; and the processor 1001 may be configured to call the current sound detection program stored in the memory 1005 and perform the following operations:
acquiring a recording signal, wherein the recording signal is obtained by recording a test microphone for equipment to be tested in a test environment;
analyzing the recording signal to obtain a frequency spectrum curve;
analyzing the frequency spectrum curve to obtain an index value for determining a current sound detection result of the device to be detected based on the index value, wherein the index value comprises at least two of a peak value, an energy sum, a superthreshold frequency point number and a superthreshold frequency point difference value in a preset frequency band in the frequency spectrum curve, and the superthreshold frequency point difference value represents the amplitude difference between a frequency point exceeding a preset amplitude threshold and the preset amplitude threshold in the preset frequency band in the frequency spectrum curve.
Further, when the index value includes a super-threshold frequency point number and/or a super-threshold frequency point difference value, the operation of analyzing the spectrum curve to obtain the index value includes:
performing amplitude average value calculation on each frequency point of a preset frequency band in a frequency spectrum curve to obtain a reference value;
respectively calculating the difference value between the amplitude value of each frequency point in the frequency spectrum curve and the reference value to obtain a zeroing curve composed of the difference values corresponding to each frequency point;
and calculating to obtain the number of the superthreshold frequency points or the difference value of the superthreshold frequency points based on the zeroing curve.
Further, when the index value includes the super-threshold frequency point number, the operation of calculating the super-threshold frequency point number based on the zeroing curve includes:
comparing the amplitude value of each frequency point in the preset frequency band in the zeroing curve with the preset amplitude value threshold of the corresponding frequency point, and counting the number of the frequency points with the amplitude value exceeding the corresponding preset amplitude value threshold to obtain the number of the frequency points with the super threshold.
Further, when the index value includes a super-threshold frequency point difference value, the operation of calculating the super-threshold frequency point difference value based on the zeroing curve includes:
comparing the amplitude of each frequency point in the preset frequency band in the zeroing curve with a preset amplitude threshold of the corresponding frequency point, and determining a superthreshold frequency point of which the amplitude exceeds the corresponding preset amplitude threshold;
And respectively calculating the difference value between the amplitude value of each super-threshold frequency point and the preset amplitude value threshold of the corresponding frequency point, and obtaining the super-threshold frequency point difference value based on the square sum after calculating the square sum of the difference values.
Further, the operation of calculating the average value of the amplitude values of each frequency point of the preset frequency band in the frequency spectrum curve to obtain the reference value comprises the following steps:
sequencing the amplitude values of all frequency points in a preset frequency band in a frequency spectrum curve according to the size to obtain a first amplitude sequence;
removing the first preset number of amplitude values and/or the second preset number of amplitude values in the first amplitude value sequence to obtain a second amplitude value sequence;
and averaging all the amplitudes in the second amplitude sequence to obtain a reference value.
Further, when the index value includes the first value and the second value, the operation of analyzing the spectral curve to obtain the index value includes:
analyzing the spectrum curve to obtain a first numerical value, wherein the first numerical value comprises a peak value and/or an energy sum;
detecting whether the first numerical value exceeds a corresponding preset first index threshold;
and if the first numerical value does not exceed the first index threshold, analyzing the frequency spectrum curve to obtain a second numerical value for determining a current sound detection result of the device to be detected based on the second numerical value, wherein the second numerical value comprises a super-threshold frequency point number and/or a super-threshold frequency point difference value.
Further, after the operation of analyzing the spectral curve to obtain the second value, the processor 1001 may be further configured to invoke the current sound detection program stored in the memory 1005 to perform the following operations:
detecting whether the second value exceeds a corresponding preset second index threshold;
if the second numerical value exceeds the second index threshold, determining that the current sound exists in the equipment to be tested;
and if the second numerical value does not exceed the second index threshold, determining that the current sound does not exist in the equipment to be tested.
Based on the above-described structure, various embodiments of a current sound detection method are proposed.
Referring to fig. 2, fig. 2 is a flowchart illustrating a current sound detection method according to a first embodiment of the present invention.
The embodiments of the present invention provide embodiments of a method of current tone detection, it being noted that although a logic sequence is shown in the flow chart, in some cases the steps shown or described may be performed in a different order than that shown or described herein. The execution body of each step of the current sound detection method is not limited in this embodiment, and a description of the execution body in the following description will be omitted. In this embodiment, the current sound detection method includes:
step S10, a recording signal is obtained, wherein the recording signal is obtained by recording aiming at equipment to be tested in a test environment through a test microphone;
The device to be tested may be any device that needs to detect a current sound, such as an earphone, a mobile phone, a sound box, etc., and is not limited in this embodiment. The device under test may be placed in the test environment during testing or the test may be initiated when the device under test is detected in the test environment. The test environment may be, among other things, an environment that meets certain criteria, e.g., a relatively quiet environment. The test microphone is used for recording sound signals for the device to be tested, and according to the requirements of current sound detection scenes, the test microphone can be a microphone which is arranged independently of the device to be tested, or can be used as the test microphone by utilizing the microphone in the device to be tested. When the device to be tested is in a test environment, the sound signals recorded by the test microphone for the device to be tested are hereinafter referred to as recording signals. Depending on the purpose of detection, the microphone may be set to be in a certain functional state (for example, in a one-way link state or a two-way link state when the device to be detected is an earphone) or may be set to play a test signal when the microphone captures a sound signal for the device to be detected, which is not limited in this embodiment.
In an embodiment, as shown in fig. 3, when the device to be tested is a bluetooth headset, the headset to be tested and the test microphone can be placed on a test tool in the audio shielding box, a bluetooth connection is established between the bluetooth adapter and the headset to be tested, and a test signal is output to the headset to be tested, so that the headset to be tested is in a working state, and when the headset to be tested plays the test signal, a recording signal is obtained by recording through the test microphone, so that current sound detection is performed on the bluetooth headset in the working state.
When the current sound detection is needed to be carried out on the equipment to be tested, recording signals recorded through the test microphone are obtained. In a specific embodiment, after the test microphone captures the recording signal, the recording signal may be stored so as to be obtained when the recording signal needs to be analyzed, or the recording signal may be sent to a device for analyzing the recording signal, so that the device stores or analyzes the recording signal in real time.
S20, analyzing the recording signal to obtain a frequency spectrum curve;
after the recording signal is obtained, the recording signal can be analyzed to obtain a spectrum curve. The specific method for analyzing the recording signal to obtain the spectral curve is not limited in this embodiment, and for example, the recording signal may be analyzed by using fast fourier transform to obtain the spectral curve. The spectral curve is a curve composed of the magnitudes of different frequency points, as shown in fig. 4, and is a spectral curve, and part of the peak and side lobe of the spectral curve are schematically marked in the figure.
In the spectrum curve, if a high peak occurs, there may be a current sound (hereinafter referred to as a first current sound to show distinction), and if the peak is not particularly high, but a side lobe around the peak does not differ significantly from the peak and is large, there may be a current sound (hereinafter referred to as a second current sound to show distinction). That is, the current tones occur not only in relation to the peak but also in relation to the side lobes, the first current tone occurring because of the greater peak contribution and the second current tone occurring because of the greater side lobe contribution. In the existing current sound detection method, detection is performed by setting a threshold, when the amplitude value higher than the threshold exists, namely, the current sound is considered to exist, and the detection mode can solve the problem of inaccurate detection, because when the threshold is set higher, the second current sound can not be detected because the peak value of the second current sound is below the threshold, namely, missed detection, and when the threshold is set lower, the second current sound can be detected, however, some peak values are not very high, side lobes are not very high (the peak value does not reach the level of the first current sound), and the second current sound can be considered to be current sound because the peak value is above the threshold, namely, false detection.
Step S30, analyzing the frequency spectrum curve to obtain an index value, so as to determine a current sound detection result of the device to be detected based on the index value, wherein the index value comprises at least two of a peak value, an energy sum, a super-threshold frequency point number and a super-threshold frequency point difference value in a preset frequency band in the frequency spectrum curve, and the super-threshold frequency point difference value represents the amplitude difference between a frequency point exceeding a preset amplitude threshold and the preset amplitude threshold in the preset frequency band in the frequency spectrum curve.
In this embodiment, in order to reduce the probability of occurrence of missing detection and false detection, and improve the accuracy of current sound detection, it is proposed to perform current sound detection by analyzing multiple index values, that is, because only the threshold is set, when the detection method is adopted, either missing detection or false detection occurs, and therefore, in this embodiment, at least two index values are analyzed, and contributions of a peak value and a side lobe to current sound are considered respectively, so that false detection is avoided while both current sounds are detected as much as possible.
Specifically, after the recording signal is analyzed to obtain a spectrum curve, the spectrum curve may be analyzed to obtain an index value, where the index value may include at least two of a peak value, an energy sum, a super-threshold frequency point number and a super-threshold frequency point difference value in a preset frequency band in the spectrum curve. The preset frequency band can be set according to experience or test requirements, and represents the frequency band concerned when detecting the current sound.
One or more peaks in the preset frequency band in the spectrum curve may be found by a peak analysis algorithm of the spectrum curve, and the specific algorithm is not limited in this embodiment. In this embodiment, it is considered that the higher the peak value is, the more likely the recording signal is that there is a current sound, or the more the current sound is more influenced by the user. In a specific embodiment, when the peak value is greater than a higher threshold, it may be determined that the current sound exists in the device under test, that is, the index value of the peak value is set, and a higher index threshold is set correspondingly, so that the first current sound may be detected.
The sum of the energy in the preset frequency band in the spectrum curve and the energy representing the signal in the preset frequency band in the recording signal can be calculated by using an energy and calculation formula, for example, in an embodiment, the sum can be calculated by using the following formula:
wherein y is i And B represents the Equivalent Noise Bandwidth (ENBW) of the window function selected when the recorded signal is analyzed to obtain a spectrum curve. The larger the energy sum, the greater the loudness of the sound that the user can hear, and when reaching the level that the user can hear, it is for the user that the device produces a galvanic sound. In particular embodiments, a threshold may be empirically set when When the energy sum is larger than the threshold, the existence of current sound of the device to be tested can be judged, and the energy sum index value is set, so that the second current sound can be detected generally.
The number of the super-threshold frequency points in the preset frequency band in the frequency spectrum curve refers to the number of the frequency points exceeding the preset amplitude threshold. The preset amplitude threshold may be set according to experience, and the amplitude thresholds corresponding to different frequency points may be the same or different, which is not limited in this embodiment; the preset amplitude threshold characterizes a threshold for judging the current sound, and in this embodiment, it can be considered that when the number of the frequency points exceeding the threshold is greater, the more likely the current sound exists in the recording signal, or the greater the influence of the existing current sound on the user. In a specific embodiment, the preset amplitude threshold may be relative to the spectrum curve itself, that is, when judging whether the preset amplitude threshold is exceeded, each amplitude in the spectrum curve is directly compared with the corresponding preset amplitude threshold; alternatively, the preset amplitude threshold may be opposite to other curves after the transformation of the spectrum curve, that is, after the spectrum curve is transformed correspondingly, each amplitude in the transformed curve is compared with the corresponding preset amplitude threshold. In a specific embodiment, a specific method for analyzing the number of frequency points exceeding the threshold may be selected according to needs, for example, in an embodiment, the magnitudes of the frequency points in the preset frequency band of the spectrum curve may be compared with the preset magnitude threshold of the corresponding frequency point, and the number of frequency points whose magnitudes exceed the corresponding preset magnitude threshold may be counted to obtain the number of frequency points exceeding the threshold. In a specific embodiment, if the first current sound is detected by using the number of frequency points exceeding the threshold, the preset amplitude threshold can be set higher, and a smaller threshold is set for the number of frequency points exceeding the threshold, which means that the first current sound can be determined as long as a few frequency points exceeding the preset amplitude threshold exist; if the second current sound is detected by using the number of the frequency points exceeding the threshold, the preset amplitude threshold can be set relatively low, and a higher threshold is set for the number of the frequency points exceeding the preset amplitude threshold, so that when a plurality of frequency points exceeding the preset amplitude threshold exist, the frequency point with a peak value not particularly high but a plurality of side lobes and similar to the peak value exists, namely, the existence of the second current sound can be determined.
The over-threshold frequency point difference value in the preset frequency band in the frequency spectrum curve is a numerical value representing the amplitude difference between the frequency point exceeding the preset amplitude threshold in the preset frequency band in the frequency spectrum curve and the preset amplitude threshold. The preset amplitude threshold may be the same as or different from the amplitude threshold used in the above analysis of the number of frequency points exceeding the threshold, and may specifically be the same or different preset amplitude threshold selected according to different index values or different detection targets. In this embodiment, it is considered that when the threshold frequency point difference value is larger, the more likely a current sound exists in the recording signal, or the more influence the current sound exists on the user. In a specific embodiment, when calculating the difference value of the over-threshold frequency point, each amplitude value in the spectrum curve can be directly compared with the corresponding preset amplitude value threshold to determine the over-threshold frequency point, and then the difference is calculated between each amplitude value of the over-threshold frequency point in the spectrum curve and the corresponding preset amplitude value threshold; or after the spectrum curves are correspondingly transformed, comparing each amplitude value in the transformed curves with a corresponding preset amplitude value threshold to determine a super-threshold frequency point, and calculating the difference between each amplitude value in the transformed curves and the corresponding preset amplitude value threshold. In a specific embodiment, a specific method for analyzing the difference value of the over-threshold frequency points can be selected according to needs, for example, in an embodiment, the amplitude of each frequency point in a preset frequency band in a spectrum curve can be compared with a preset amplitude threshold of a corresponding frequency point, the over-threshold frequency point with the amplitude exceeding the corresponding preset amplitude threshold is determined, the difference value is calculated respectively between the amplitude of each over-threshold frequency point and the preset amplitude threshold of the corresponding frequency point, and the over-threshold frequency point difference value is obtained based on the square sum after the square sum is calculated. In a specific embodiment, if the first current sound is detected by using the super-threshold frequency point difference value, the preset amplitude threshold can be set higher, and a smaller threshold is set for the super-threshold frequency point difference value, which means that the first current sound can be determined as long as a few frequency points exceeding the preset amplitude threshold exist; if the second current sound is detected by using the difference value of the frequency points exceeding the threshold, the preset amplitude threshold can be set relatively low, and a higher threshold is set for the difference value of the frequency points exceeding the threshold, which means that when the difference between the frequency points exceeding the threshold and the threshold is large, the frequency points with the peak value not being particularly high but with a plurality of side lobes and similar to the peak value exist, that is, the second current sound can be determined.
The peak value in the index value can be used for detecting the first current sound, the energy and the second current sound, and the difference value of the super-threshold frequency point and the super-threshold frequency point can be used for detecting the first current sound and the second current sound, so that when at least two index values are combined, the first current sound and the second current sound can be detected, the probability of missing detection and false detection is reduced, and the accuracy of current sound detection is improved.
In a specific embodiment, after calculating the index value, each index value may be output, and the inspector may determine from the index value to obtain a current sound detection result of the device under test, or after calculating the index value, the index value may be compared with a threshold corresponding to each preset index value (hereinafter referred to as an index threshold to be distinguished from the above-mentioned amplitude threshold), and the current sound detection result may be obtained according to the comparison result.
When the current sound detection result is determined according to the index threshold after calculating the index value, in a specific embodiment, different decision rules may be set or different index thresholds may be set according to different adopted index values or different detection purposes. For example, in one embodiment, for the N index values, at least one index value may be set to exceed the corresponding index threshold as required, that is, the device under test is considered to have a current sound, or in another embodiment, the N index values are set to exceed the corresponding index threshold and the device under test is considered to have no current sound.
When the N index values are set so that at least one index value exceeds the corresponding index threshold, that is, the current sound exists in the device to be measured, each index value may be sequentially calculated according to a certain order, and each calculated index value is compared with the corresponding index threshold.
The current sound detection method of the embodiment can be used for detecting the equipment to be detected on a production line to control the production quality of the equipment to be detected, and also can be used for detecting the equipment to be detected in the use process of the equipment to be detected, so that the current sound is eliminated through an algorithm when the existence of the current sound is detected, that is, the application scene of the current sound detection method of the embodiment is not limited.
In this embodiment, a recording signal obtained by recording a device to be tested in a test environment by a test microphone is obtained, a spectrum curve is obtained by analyzing the recording signal, an index value is obtained by analyzing the spectrum curve, and a current sound detection result of the device to be tested is determined based on the index value, wherein the index value is set to include at least two of a peak value, an energy sum, a super-threshold frequency point number and a super-threshold frequency point difference value in a preset frequency band in the spectrum curve, contributions of the peak value and a side lobe to the current sound are considered, the probability of false detection and missing detection is reduced, and the accuracy of the current sound detection is improved.
Further, based on the above-mentioned first embodiment, a second embodiment of the current sound detection method of the present invention is proposed, in which step S30 includes:
step S301, calculating the average value of the amplitude values of all frequency points of a preset frequency band in a frequency spectrum curve to obtain a reference value;
in this embodiment, when the index value includes the over-threshold frequency point number and/or the over-threshold frequency point difference value, the spectral curve may be transformed first, and then the transformed curve is used to analyze the over-threshold frequency point number or the over-threshold frequency point difference value.
In this embodiment, the purpose of transforming the spectrum curve is to eliminate unstable factors during detection, and improve reliability of detection results, that is, to make the results obtained by one-time detection reliable, without occurrence of multiple detection results, thereby avoiding re-detection and improving detection efficiency.
Specifically, after the recorded signal is analyzed to obtain a spectrum curve, the amplitude mean value of each frequency point of the preset frequency band in the spectrum curve can be calculated, and the calculated result is used as a reference value. When the amplitude average value is calculated for each frequency point in the preset frequency band, the amplitudes of all the frequency points in the preset frequency band can be averaged, or the amplitudes can be averaged after eliminating some abnormal values, which is not limited in the embodiment. The reference value represents the average level of the amplitude of each frequency point in the preset frequency band of the spectrum curve, in an ideal state, recording the recording signals of the same equipment to be tested for multiple times in the same environment, and the spectrum curves obtained by analyzing the recording signals are the same, so that the calculated reference value is the same, and the superthreshold frequency point number and the superthreshold frequency point difference value obtained by directly aiming at the spectrum curves are correspondingly the same. However, in the actual detection process, the recorded signal obtained during the current sound detection is a very tiny signal, and when the test equipment processes the very tiny signal, a drift phenomenon easily occurs, so that the result of each test cannot be guaranteed to be identical, the obtained spectrum curves cannot be identical, the reference values obtained by calculation are also different, and in the worst case, the current sound detection result obtained by each detection may be different, so that the result of one detection is unreliable, and multiple repeated detections are needed to determine the final detection result.
Step S302, respectively calculating the difference value between the amplitude value and the reference value of each frequency point in the frequency spectrum curve to obtain a zeroing curve composed of the difference values corresponding to each frequency point;
by adopting the test equipment with better quality to test, the consistency of the test equipment when processing the tiny signals can be ensured, and the consistency of each test result is further ensured, but the hardware cost of current sound detection is increased. Therefore, compared with the method of ensuring the reliability of the detection result by optimizing the stability of the hardware testing environment by the testing device, in the embodiment, the reference value of the spectrum curve is calculated, and the unstable factors in the spectrum curve are eliminated by using the reference value, so that the reliability of the detection result is improved, and meanwhile, the hardware cost is not required to be increased additionally.
Specifically, after the reference value is obtained by calculation, the difference value is calculated between the amplitude value of each frequency point in the spectrum curve and the reference value, so as to obtain the difference value corresponding to each frequency point, and the curve formed by the difference values corresponding to each frequency point can still be regarded as a spectrum curve, but for illustration and distinction, the curve is called a zeroing curve hereinafter. "zeroing" means the restoration of spectral curves that were not originally at one level to one level. That is, when the detection is performed for multiple times, the reference value of the spectrum curve obtained by each detection may be different, which indicates that the spectrum curve obtained by each detection is affected by the unstable factor of the test environment, the spectrum curve obtained by each detection is in different layers, which are represented by the upper layer and the lower layer on the ordinate, and if the amplitude of each frequency point of the spectrum curve is subtracted by the reference value, the obtained zeroing curve eliminates the influence caused by the unstable factor, and if the detection is performed for multiple times, the zeroing curve obtained by each calculation is in the same layer, so that when the difference value of the over-threshold frequency point and the over-threshold frequency point is calculated based on the zeroing curve, the calculated results of the multiple detections are more consistent, so that the current sound detection results obtained by the multiple detections are more consistent, and the result of one detection is more reliable, thereby eliminating the need of multiple repeated detection and improving the detection efficiency.
Step S303, calculating to obtain the number of the super-threshold frequency points or the difference value of the super-threshold frequency points based on the zeroing curve.
After the zeroing curve is calculated, the number of the super-threshold frequency points or the difference value of the super-threshold frequency points can be calculated based on the zeroing curve. The specific calculation method is not limited in this embodiment.
Further, in an embodiment, the step of calculating the number of the super-threshold frequency points based on the zeroing curve in step S303 includes:
step S3031, comparing the amplitude of each frequency point in the preset frequency band in the zeroing curve with the preset amplitude threshold of the corresponding frequency point, and counting the number of frequency points with the amplitude exceeding the corresponding preset amplitude threshold to obtain the number of frequency points exceeding the threshold.
When the index value includes the over-threshold frequency point, calculating the over-threshold frequency point based on the zeroing curve may specifically be comparing the amplitude of each frequency point in the preset frequency band in the zeroing curve with the preset amplitude threshold of the corresponding frequency point, if the amplitude of one frequency point exceeds the preset amplitude threshold corresponding to the frequency point, the frequency point is used as the over-threshold frequency point, and counting the number of the over-threshold frequency points, so as to obtain the over-threshold frequency point.
Further, in an embodiment, the step of calculating the over-threshold frequency point difference value based on the zeroing curve in step S303 includes:
Step S3032, comparing the amplitude of each frequency point in the preset frequency band in the zeroing curve with a preset amplitude threshold of the corresponding frequency point to determine a super-threshold frequency point with the amplitude exceeding the corresponding preset amplitude threshold;
step S3033, the difference value is calculated respectively between the amplitude value of each super-threshold frequency point and the preset amplitude value threshold of the corresponding frequency point, and the difference value of the super-threshold frequency point is obtained based on the square sum after the square sum is calculated on each difference value.
When the index value includes a superthreshold frequency point difference value, the superthreshold frequency point difference value may be calculated based on a zeroing curve, specifically, by comparing the amplitude of each frequency point in a preset frequency band in the zeroing curve with a preset amplitude threshold of a corresponding frequency point, and if the amplitude of one frequency point exceeds the preset amplitude threshold corresponding to the frequency point, the frequency point is used as the superthreshold frequency point. After each superthreshold frequency point is determined, the difference value can be calculated respectively between the amplitude value of the superthreshold frequency point and the preset amplitude value threshold of the corresponding frequency point, that is, for each superthreshold frequency point, the difference value is calculated between the amplitude value of the superthreshold frequency point and the preset amplitude value threshold corresponding to the frequency point, and the difference value corresponding to the superthreshold frequency point is obtained. And calculating the square sum of the difference values corresponding to the super-threshold frequency points, and obtaining the super-threshold frequency point difference value based on the square sum. Specifically, the square sum obtained by calculation may be directly used as the over-threshold frequency point difference value, or the square sum may be used as the over-threshold frequency point difference value after square root calculation, which is not limited in this embodiment.
Further, in an embodiment, step S301 includes:
step S3011, sequencing the amplitude values of all frequency points in a preset frequency band in a frequency spectrum curve according to the size to obtain a first amplitude sequence;
if the maximum and minimum values participate in calculating the average value, the calculated reference value cannot accurately represent the average level of the spectrum curve, so in this embodiment, the maximum and minimum values can be eliminated to improve the accuracy of the calculated reference value, and further improve the reliability of the current sound detection result.
Specifically, after the spectrum curve is obtained, the magnitudes of all the frequency points in the preset frequency band in the spectrum curve can be ranked according to the magnitude, from large to small or from small to large, and the ranked sequences are called a first magnitude sequence.
Step S3012, eliminating the first preset number of amplitude values and/or the second preset number of amplitude values in the first amplitude value sequence to obtain a second amplitude value sequence;
after the first amplitude sequence is obtained, the first preset number of amplitudes and/or the second preset number of amplitudes in the first amplitude sequence can be eliminated. That is, the first preset number of magnitudes before the first and second preset numbers of magnitudes after the first and second preset numbers of magnitudes are eliminated. The first preset number and the second preset number may be set as required, for example, may be set to eliminate the first third of the amplitude values and the second third of the amplitude values in the first amplitude sequence.
And eliminating the first preset number of amplitude values and/or the second preset number of amplitude values in the first amplitude value sequence, and then obtaining a sequence called a second amplitude value sequence.
And step S3013, averaging all the amplitudes in the second amplitude sequence to obtain a reference value.
And averaging all the amplitudes in the second amplitude sequence to obtain a reference value. Because the amplitudes are sorted, and a certain number of amplitudes arranged in front and/or behind are removed, the influence of the maximum and/or minimum values on the reference value can be removed, the accuracy of the calculated reference value is improved, and the reliability of the current sound detection result can be further improved.
Further, based on the first and/or second embodiments described above, a third embodiment of the current sound detection method of the present invention is provided, in which step S30 includes:
step S304, analyzing the spectrum curve to obtain a first numerical value, wherein the first numerical value comprises a peak value and/or energy sum;
the index value may include a first value including a peak value and/or an energy sum and a second value including a super-threshold frequency number and/or a super-threshold frequency difference value. That is, the index value obtained by analyzing the spectrum curve includes at least one of the peak value and the energy sum, and one of the over-threshold frequency point number and the over-threshold frequency point difference value.
When the spectral curve is analyzed, a first value can be obtained by analyzing, and whether the current sound exists in the device to be tested or not is determined according to the first value.
Step S305, detecting whether the first value exceeds a corresponding preset first index threshold;
specifically, after the first value is obtained through analysis, whether the first value exceeds a corresponding preset first index threshold or not can be detected. The first index threshold may be set as needed. When the first numerical value comprises two index values, namely a peak value and an energy sum, detecting whether the peak value exceeds a first index threshold preset corresponding to the peak value, and detecting whether the energy sum exceeds the first index threshold preset corresponding to the energy sum. In a specific embodiment, the method may be configured to determine that the first value exceeds the first index threshold when both the peak value and the energy sum exceed the corresponding preset first index threshold, or configured to determine that the first value exceeds the first index threshold when one of the peak value and the energy sum exceeds the corresponding preset first index threshold, as required.
And step S306, if the first value does not exceed the first index threshold, analyzing the frequency spectrum curve to obtain a second value for determining a current sound detection result of the device to be detected based on the second value, wherein the second value comprises a super-threshold frequency point number and/or a super-threshold frequency point difference value.
If the first value is determined not to exceed the first index threshold, the fact that the current sound exists in the equipment to be detected cannot be judged according to the first value is indicated, a second value is needed to be obtained through analysis, and whether the current sound exists in the equipment to be detected is judged according to the second value. After the second value is obtained by calculation, the second value may be output for a detecting person to determine to obtain a current sound detection result of the device to be detected, or the second value may be compared with a second preset threshold to determine to obtain the current sound detection result of the device to be detected, which is not limited herein.
Further, in an embodiment, after step S306, the method further includes:
step S307, detecting whether the second value exceeds a corresponding preset second index threshold;
after the second value is obtained through calculation, whether the second value exceeds a corresponding preset second index threshold or not can be detected. The second index threshold may be set as desired. When the second numerical value comprises two index values, namely the over-threshold frequency point number and the over-threshold frequency point difference value, detecting whether the over-threshold frequency point number exceeds a second index threshold preset corresponding to the over-threshold frequency point number or not, and detecting whether the over-threshold frequency point difference value exceeds the second index threshold preset corresponding to the over-threshold frequency point difference value or not. In a specific embodiment, the method may be set as required, so that when the number of the over-threshold frequency points and the difference value of the over-threshold frequency points exceed the corresponding preset second index threshold, the second value is determined to exceed the second index threshold, or when one of the number of the over-threshold frequency points and the difference value of the over-threshold frequency points exceeds the corresponding preset second index threshold, the second value is determined to exceed the second index threshold.
Step S308, if the second value exceeds the second index threshold, determining that the current sound exists in the device to be tested;
in step S309, if the second value does not exceed the second indicator threshold, it is determined that the device under test has no current sound.
If the second value is determined to exceed the second index threshold, the current sound of the device to be tested can be determined, and if the second value is determined to not exceed the second index threshold, the current sound of the device to be tested can be determined to be absent.
Further, in an embodiment, if the first value exceeds the first indicator threshold, it may be determined that the current sound exists in the device under test. At this time, the second value does not need to be calculated continuously, so that the waste of calculation resources is avoided. It can be understood that the current sound exists in the device to be detected directly when the first numerical value exceeds the first index threshold, so that the current sound detection efficiency can be improved, and on the basis, when the first numerical value does not exceed the first index threshold, the second numerical value is analyzed, whether the current sound exists in the device to be detected is determined according to whether the second numerical value exceeds the second index threshold, the accuracy of the current sound detection can be improved, and missing detection is avoided.
In addition, an embodiment of the present invention further provides a current sound detection device, referring to fig. 5, where the current sound detection device includes:
The acquisition module 10 is configured to acquire a recording signal, where the recording signal is obtained by recording a test signal played by a device to be tested through a test microphone;
the spectrum analysis module 20 is used for analyzing the recording signal to obtain a spectrum curve;
the index analysis module 30 is configured to analyze the spectrum curve to obtain an index value, so as to determine a current sound detection result of the device to be tested based on the index value, where the index value includes at least two of a peak value, an energy sum, a super-threshold frequency point number and a super-threshold frequency point difference value in a preset frequency band in the spectrum curve, and the super-threshold frequency point difference value characterizes an amplitude difference between a frequency point exceeding a preset amplitude threshold and the preset amplitude threshold in the preset frequency band in the spectrum curve.
Further, when the index value includes a super-threshold frequency number and/or a super-threshold frequency difference value, the index analysis module 30 is further configured to:
performing amplitude average value calculation on each frequency point of a preset frequency band in a frequency spectrum curve to obtain a reference value;
respectively calculating the difference value between the amplitude value of each frequency point in the frequency spectrum curve and the reference value to obtain a zeroing curve composed of the difference values corresponding to each frequency point;
and calculating to obtain the number of the superthreshold frequency points or the difference value of the superthreshold frequency points based on the zeroing curve.
Further, when the index value includes the number of the super-threshold frequency points, the index analysis module 30 is further configured to:
comparing the amplitude value of each frequency point in the preset frequency band in the zeroing curve with the preset amplitude value threshold of the corresponding frequency point, and counting the number of the frequency points with the amplitude value exceeding the corresponding preset amplitude value threshold to obtain the number of the frequency points with the super threshold.
Further, when the index value includes a super-threshold frequency point difference value, the index analysis module 30 is further configured to:
comparing the amplitude of each frequency point in the preset frequency band in the zeroing curve with a preset amplitude threshold of the corresponding frequency point, and determining a superthreshold frequency point of which the amplitude exceeds the corresponding preset amplitude threshold;
and respectively calculating the difference value between the amplitude value of each super-threshold frequency point and the preset amplitude value threshold of the corresponding frequency point, and obtaining the super-threshold frequency point difference value based on the square sum after calculating the square sum of the difference values.
Further, the index analysis module 30 is further configured to:
sequencing the amplitude values of all frequency points in a preset frequency band in a frequency spectrum curve according to the size to obtain a first amplitude sequence;
removing the first preset number of amplitude values and/or the second preset number of amplitude values in the first amplitude value sequence to obtain a second amplitude value sequence;
and averaging all the amplitudes in the second amplitude sequence to obtain a reference value.
Further, when the index value includes a first value and a second value, the index analysis module 30 is further configured to:
analyzing the spectrum curve to obtain a first numerical value, wherein the first numerical value comprises a peak value and/or an energy sum;
detecting whether the first numerical value exceeds a corresponding preset first index threshold;
and if the first numerical value does not exceed the first index threshold, analyzing the frequency spectrum curve to obtain a second numerical value for determining a current sound detection result of the device to be detected based on the second numerical value, wherein the second numerical value comprises a super-threshold frequency point number and/or a super-threshold frequency point difference value.
Further, the current sound detection device further includes:
the determining module is used for detecting whether the second value exceeds a corresponding preset second index threshold;
if the second numerical value exceeds the second index threshold, determining that the current sound exists in the equipment to be tested;
and if the second numerical value does not exceed the second index threshold, determining that the current sound does not exist in the equipment to be tested.
The expansion content of the specific implementation mode of the current sound detection device is basically the same as that of each embodiment of the current sound detection method, and is not repeated here.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the storage medium stores a current sound detection program, and the current sound detection program realizes the following steps of the current sound detection method when being executed by a processor.
Embodiments of the current sound detection apparatus and the computer readable storage medium of the present invention may refer to embodiments of the current sound detection method of the present invention, and are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method of the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (8)

1. A current sound detection method, characterized in that the current sound detection method comprises the steps of:
acquiring a recording signal, wherein the recording signal is acquired by recording a test microphone for equipment to be tested in a test environment;
analyzing the recording signal to obtain a frequency spectrum curve;
analyzing the frequency spectrum curve to obtain an index value, so as to determine a current sound detection result of the device to be detected based on the index value, wherein the index value comprises at least two of a peak value, an energy sum, a super-threshold frequency point number and a super-threshold frequency point difference value in a preset frequency band in the frequency spectrum curve, and the super-threshold frequency point difference value represents the amplitude difference between a frequency point exceeding a preset amplitude threshold in the preset frequency band in the frequency spectrum curve and the preset amplitude threshold;
when the index value includes a first value and a second value, the step of analyzing the spectral curve to obtain the index value includes:
Analyzing the spectrum curve to obtain the first numerical value, wherein the first numerical value comprises the peak value and/or the energy sum;
detecting whether the first numerical value exceeds a corresponding preset first index threshold;
if the first numerical value does not exceed the first index threshold, analyzing the frequency spectrum curve to obtain the second numerical value, wherein the second numerical value comprises the super-threshold frequency point number and/or the super-threshold frequency point difference value;
detecting whether the second value exceeds a corresponding preset second index threshold;
if the second numerical value exceeds the second index threshold, determining that the equipment to be tested has current sound;
and if the second numerical value does not exceed the second index threshold, determining that the device to be tested does not have current sound.
2. The current sound detection method according to claim 1, wherein when the index value includes the super-threshold frequency point number and/or the super-threshold frequency point difference value, the step of analyzing the spectral curve to obtain the index value includes:
performing amplitude average value calculation on each frequency point of the preset frequency band in the frequency spectrum curve to obtain a reference value;
Respectively calculating the difference value between the amplitude value of each frequency point in the frequency spectrum curve and the reference value to obtain a zeroing curve composed of the difference values corresponding to each frequency point;
and calculating the number of the super-threshold frequency points or the difference value of the super-threshold frequency points based on the zeroing curve.
3. The current sound detection method according to claim 2, wherein when the index value includes the super-threshold frequency point number, the step of calculating the super-threshold frequency point number based on the zeroing curve includes:
comparing the amplitude of each frequency point in the preset frequency band in the zeroing curve with a preset amplitude threshold of the corresponding frequency point, and counting the number of the frequency points with the amplitude exceeding the corresponding preset amplitude threshold to obtain the super-threshold frequency point number.
4. The current sound detection method according to claim 2, wherein when the index value includes the above-threshold frequency point difference value, the step of calculating the above-threshold frequency point difference value based on the zeroing curve includes:
comparing the amplitude of each frequency point in the preset frequency band in the zeroing curve with a preset amplitude threshold of the corresponding frequency point, and determining a super-threshold frequency point of which the amplitude exceeds the corresponding preset amplitude threshold;
And respectively calculating the difference value between the amplitude value of each super-threshold frequency point and the preset amplitude value threshold of the corresponding frequency point, calculating the square sum of the difference values, and obtaining the super-threshold frequency point difference value based on the square sum.
5. The method for detecting current sound according to claim 2, wherein the step of calculating the average value of the magnitudes of the frequency points of the preset frequency band in the spectral curve to obtain the reference value comprises:
sequencing the amplitude values of all frequency points in the preset frequency band in the frequency spectrum curve according to the size to obtain a first amplitude sequence;
removing the first preset number of amplitude values and/or the second preset number of amplitude values in the first amplitude value sequence to obtain a second amplitude value sequence;
and averaging all the amplitudes in the second amplitude sequence to obtain a reference value.
6. A current sound detection device, characterized in that the current sound detection device comprises:
the acquisition module is used for acquiring a recording signal, wherein the recording signal is obtained by recording a test signal played by equipment to be tested through the test microphone;
the frequency spectrum analysis module is used for analyzing the recording signal to obtain a frequency spectrum curve;
The index analysis module is used for analyzing the frequency spectrum curve to obtain an index value, so as to determine a current sound detection result of the equipment to be detected based on the index value, wherein the index value comprises at least two of a peak value, an energy sum, a super-threshold frequency point number and a super-threshold frequency point difference value in a preset frequency band in the frequency spectrum curve, and the super-threshold frequency point difference value represents the amplitude difference between a frequency point exceeding a preset amplitude threshold and the preset amplitude threshold in the preset frequency band in the frequency spectrum curve;
when the index value includes a first value and a second value, the index analysis module is further configured to:
analyzing the spectrum curve to obtain a first numerical value, wherein the first numerical value comprises a peak value and/or an energy sum;
detecting whether the first numerical value exceeds a corresponding preset first index threshold;
if the first numerical value does not exceed the first index threshold, analyzing the frequency spectrum curve to obtain a second numerical value, wherein the second numerical value comprises a super-threshold frequency point number and/or a super-threshold frequency point difference value;
the current sound detection device further includes:
the determining module is used for detecting whether the second value exceeds a corresponding preset second index threshold;
If the second numerical value exceeds the second index threshold, determining that the current sound exists in the equipment to be tested;
and if the second numerical value does not exceed the second index threshold, determining that the current sound does not exist in the equipment to be tested.
7. A current sound detection apparatus, characterized in that the current sound detection apparatus comprises: a memory, a processor and a current sound detection program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the current sound detection method according to any one of claims 1 to 5.
8. A computer-readable storage medium, wherein a current sound detection program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the current sound detection method according to any one of claims 1 to 5.
CN202210335605.0A 2022-03-31 2022-03-31 Current sound detection method, device, equipment and computer readable storage medium Active CN114640926B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210335605.0A CN114640926B (en) 2022-03-31 2022-03-31 Current sound detection method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210335605.0A CN114640926B (en) 2022-03-31 2022-03-31 Current sound detection method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114640926A CN114640926A (en) 2022-06-17
CN114640926B true CN114640926B (en) 2023-11-17

Family

ID=81952229

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210335605.0A Active CN114640926B (en) 2022-03-31 2022-03-31 Current sound detection method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114640926B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607489A (en) * 2013-11-28 2014-02-26 小米科技有限责任公司 Method, device and terminal device for eliminating current sound
JP2015023508A (en) * 2013-07-22 2015-02-02 沖電気工業株式会社 Sound gathering device and program
CN105761726A (en) * 2014-12-15 2016-07-13 华为终端(东莞)有限公司 Method and device for eliminating TDD noise
CN107622773A (en) * 2017-09-08 2018-01-23 科大讯飞股份有限公司 Audio feature extraction method and device and electronic equipment
CN107967919A (en) * 2016-10-19 2018-04-27 展讯通信(上海)有限公司 Eliminate the method, device and mobile terminal of TDD noises
CN112135235A (en) * 2020-09-22 2020-12-25 歌尔科技有限公司 Quality detection method, system and computer readable storage medium
CN113329315A (en) * 2021-05-24 2021-08-31 歌尔股份有限公司 Detection method, device and equipment of audio playing equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015023508A (en) * 2013-07-22 2015-02-02 沖電気工業株式会社 Sound gathering device and program
CN103607489A (en) * 2013-11-28 2014-02-26 小米科技有限责任公司 Method, device and terminal device for eliminating current sound
CN105761726A (en) * 2014-12-15 2016-07-13 华为终端(东莞)有限公司 Method and device for eliminating TDD noise
CN107967919A (en) * 2016-10-19 2018-04-27 展讯通信(上海)有限公司 Eliminate the method, device and mobile terminal of TDD noises
CN107622773A (en) * 2017-09-08 2018-01-23 科大讯飞股份有限公司 Audio feature extraction method and device and electronic equipment
CN112135235A (en) * 2020-09-22 2020-12-25 歌尔科技有限公司 Quality detection method, system and computer readable storage medium
CN113329315A (en) * 2021-05-24 2021-08-31 歌尔股份有限公司 Detection method, device and equipment of audio playing equipment and storage medium

Also Published As

Publication number Publication date
CN114640926A (en) 2022-06-17

Similar Documents

Publication Publication Date Title
CN109831733B (en) Method, device and equipment for testing audio playing performance and storage medium
US9524735B2 (en) Threshold adaptation in two-channel noise estimation and voice activity detection
US9025780B2 (en) Method and system for determining a perceived quality of an audio system
US20220201125A1 (en) Howl detection in conference systems
US20120253813A1 (en) Speech segment determination device, and storage medium
KR101624652B1 (en) Method and Apparatus for removing a noise signal from input signal in a noisy environment, Method and Apparatus for enhancing a voice signal in a noisy environment
US20150058002A1 (en) Detecting Wind Noise In An Audio Signal
CN110719461B (en) Audio and video equipment testing method and device and computer readable storage medium
US8520861B2 (en) Signal processing system for tonal noise robustness
CN116437280A (en) Method, device, apparatus and system for evaluating consistency of microphone array
CN111918196B (en) Method, device and equipment for diagnosing recording abnormity of audio collector and storage medium
EP1975924A1 (en) Method and system for speech quality prediction of the impact of time localized distortions of an audio transmission system
CN115604621A (en) Earphone testing method, device, equipment and computer readable storage medium
CN116564332A (en) Frequency response analysis method, device, equipment and storage medium
CN114640926B (en) Current sound detection method, device, equipment and computer readable storage medium
CN112135235B (en) Quality detection method, system and computer readable storage medium
US9351072B2 (en) Multi-band harmonic discrimination for feedback suppression
EP1424684A1 (en) Voice activity detection apparatus and method
WO2021179470A1 (en) Method, device and system for recognizing sampling rate of pure voice data
CN114222234A (en) Microphone array consistency detection method, electronic device and storage medium
US8233590B2 (en) Method for automatically controling volume level for calculating MOS
CN112562717A (en) Howling detection method, howling detection device, storage medium and computer equipment
CN111741168B (en) Communication equipment testing method and device, computer readable medium and equipment thereof
CN115273909B (en) Voice activity detection method, device, equipment and computer readable storage medium
US20230253010A1 (en) Voice activity detection (vad) based on multiple indicia

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