[go: up one dir, main page]

CN119012108B - Speaker abnormal sound testing method, device, testing equipment and storage medium - Google Patents

Speaker abnormal sound testing method, device, testing equipment and storage medium Download PDF

Info

Publication number
CN119012108B
CN119012108B CN202411455457.1A CN202411455457A CN119012108B CN 119012108 B CN119012108 B CN 119012108B CN 202411455457 A CN202411455457 A CN 202411455457A CN 119012108 B CN119012108 B CN 119012108B
Authority
CN
China
Prior art keywords
harmonic
frequency
test
total energy
abnormal sound
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
CN202411455457.1A
Other languages
Chinese (zh)
Other versions
CN119012108A (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.)
Zhuhai Aosens Sensing Technology Co ltd
Original Assignee
Zhuhai Aosens Sensing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Aosens Sensing Technology Co ltd filed Critical Zhuhai Aosens Sensing Technology Co ltd
Priority to CN202411455457.1A priority Critical patent/CN119012108B/en
Publication of CN119012108A publication Critical patent/CN119012108A/en
Application granted granted Critical
Publication of CN119012108B publication Critical patent/CN119012108B/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
    • H04R29/00Monitoring arrangements; Testing arrangements
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/03Synergistic effects of band splitting and sub-band processing

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

The invention discloses a method, a device, test equipment and a storage medium for testing abnormal sound of a loudspeaker, which comprise the steps of sending sweep frequency signals containing a plurality of test frequencies to a target loudspeaker, collecting audio signals sent by the target loudspeaker to obtain sound pressure signals, carrying out Fourier transform on the sound pressure signals to obtain frequency spectrum signals with sound pressure changing along with the frequency, obtaining and determining a harmonic frequency range corresponding to each test frequency according to a target harmonic frequency range of each test frequency, determining harmonic total energy in the harmonic frequency range corresponding to each test frequency according to the frequency spectrum signals to obtain a relation curve of the harmonic total energy and the frequency, and carrying out harmonic distortion abnormal sound detection on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold. The invention can detect abnormal sound of the loudspeaker caused by harmonic distortion.

Description

Method, device, test equipment and storage medium for testing abnormal sound of loudspeaker
Technical Field
The present invention relates to the field of audio testing technologies, and in particular, to a method and apparatus for testing abnormal sound of a speaker, a testing device, and a storage medium.
Background
The speaker is one of important parts of modern electronic products, and in order to ensure the product quality of the speaker, the speaker needs to be subjected to abnormal sound testing before leaving the factory. In practical tests, it is found that the types of abnormal sounds are more, and a single test method cannot detect all types of abnormal sounds, and the same abnormal sounds may have different detection modes. The speaker may have abnormal sound caused by harmonic distortion, but the abnormal sound cannot identify the frequency range of the abnormal sound by means of manual listening, and cannot determine the frequency range of the harmonic distortion by THD (Total Harmonic Distortion ) analysis.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides a method, a device, a test device and a storage medium for testing abnormal sound of a loudspeaker, which can detect abnormal sound of the loudspeaker caused by harmonic distortion.
In one aspect, an embodiment of the present invention provides a method for testing abnormal sound of a speaker, including:
Sending sweep frequency signals containing a plurality of test frequencies to a target loudspeaker, and collecting audio signals sent by the target loudspeaker to obtain sound pressure signals;
performing Fourier transform on the sound pressure signal to obtain a frequency spectrum signal of sound pressure changing along with frequency;
acquiring and determining a harmonic frequency range corresponding to each test frequency according to the target harmonic frequency range of each test frequency;
According to the frequency spectrum signals, determining the total harmonic energy in the harmonic frequency range corresponding to each test frequency, and obtaining a relation curve of the total harmonic energy and the frequency;
And carrying out harmonic distortion abnormal sound detection on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold.
According to some embodiments of the invention, the determining harmonic total energy in the harmonic frequency range corresponding to each test frequency according to the spectrum signal, to obtain a relationship curve between harmonic total energy and frequency, includes:
Determining total harmonic energy in the harmonic frequency range corresponding to each test frequency according to the frequency spectrum signal by a first relation, wherein the first relation is te=20×lg (E 1 2+E2 2+...+En 2)1/2)/P0, wherein TE is used for representing total harmonic energy in the harmonic frequency range corresponding to a single test frequency, E n is used for representing sum of harmonic components and noise energy between a previous harmonic and a next harmonic in the frequency spectrum signal, n is used for representing a difference value between a previous harmonic and a next harmonic in the target harmonic range, and P 0 is a reference sound pressure value;
And obtaining a relation curve of the harmonic total energy and the frequency according to the plurality of test frequencies and the corresponding harmonic total energy.
According to some embodiments of the invention, the determining, according to the spectrum signal, the total harmonic energy in the harmonic frequency range corresponding to each test frequency according to a first relation further includes:
And determining E n values in the harmonic frequency range corresponding to each test frequency according to the frequency spectrum signal by a second relation, wherein the second relation is En= (E n1 2+En2 2+...+Eni 21/2, wherein E ni is used for representing energy corresponding to each frequency point between a previous harmonic and a next harmonic in the frequency spectrum signal, and i is used for representing a serial number of the frequency point between the previous harmonic and the next harmonic in the frequency spectrum signal.
According to some embodiments of the invention, the harmonic total energy threshold is a harmonic total energy threshold curve varying with frequency, and the harmonic distortion detection is performed on the relation curve of the harmonic total energy and frequency based on a preset harmonic total energy threshold, including:
and carrying out harmonic distortion abnormal sound detection on the relation curve of the harmonic total energy and the frequency based on the preset harmonic total energy threshold curve.
According to some embodiments of the invention, the harmonic distortion abnormal sound detection is performed on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold, and then the method further includes:
and determining the frequency range in which harmonic distortion abnormal sound occurs in the relation curve of the harmonic total energy and the frequency according to the harmonic total energy threshold.
According to some embodiments of the invention, the obtaining and determining the harmonic frequency range corresponding to each test frequency according to the target harmonic frequency range of each test frequency further includes:
The target harmonic order range is determined according to historical experience or analysis of the spectrum signal, and is used for representing a set of harmonic orders with larger contribution to abnormal sound.
According to some embodiments of the present invention, the sending a sweep frequency signal including a plurality of test frequencies to a target speaker, and collecting an audio signal sent by the target speaker, to obtain a sound pressure signal, includes:
In a closed test space, continuously sending sweep frequency signals containing a plurality of test frequencies to a target loudspeaker, and collecting audio signals sent by the target loudspeaker to obtain sound pressure signals.
In a second aspect, an embodiment of the present invention provides a speaker abnormal sound testing apparatus, including:
the frequency sweep acquisition module is used for sending frequency sweep signals of a plurality of test frequencies to the target loudspeaker and acquiring audio signals sent by the target loudspeaker to obtain sound pressure signals;
the signal conversion module is used for carrying out Fourier transform on the sound pressure signal to obtain a frequency spectrum signal of which the sound pressure changes along with the frequency;
the acquisition module is used for acquiring and determining a harmonic frequency range corresponding to each test frequency according to the target harmonic frequency range of each test frequency;
The first determining module is used for determining the total harmonic energy in the harmonic frequency range corresponding to each test frequency according to the frequency spectrum signal to obtain a relation curve of the total harmonic energy and the frequency;
and the second determining module is used for carrying out harmonic distortion abnormal sound detection on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold.
In a third aspect, an embodiment of the present invention provides a test apparatus, including a processor and a memory, where the memory stores a computer program, and the processor is configured to implement the method for testing abnormal sound of a speaker when running the computer program.
In a fourth aspect, an embodiment of the present invention provides a storage medium in which a computer program is stored, which when executed implements a speaker abnormal sound testing method as described above.
The embodiment of the invention has at least the following beneficial effects:
The collected sound pressure signals are subjected to Fourier transformation to obtain frequency spectrum signals of sound pressure changing along with frequency, local analysis is carried out according to harmonic frequency ranges corresponding to each test frequency, a relation curve of harmonic total energy and frequency is obtained through calculation, abnormal sound detection of harmonic distortion is carried out on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold, and whether abnormal sound caused by the harmonic distortion exists in a target loudspeaker can be detected.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
fig. 1 is a flowchart illustrating steps of a method for testing a speaker abnormal sound according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of frequency axes of fundamental and harmonic components of a swept frequency signal according to embodiments of the invention;
FIG. 3 is an enlarged partial schematic view of the circled position A in FIG. 2;
FIG. 4 is a plot of total energy versus frequency for harmonics in accordance with an embodiment of the present invention;
fig. 5 is a schematic block diagram of a speaker abnormal sound testing apparatus according to an embodiment of the present invention;
fig. 6 is a functional block diagram of a test apparatus according to an embodiment of the present invention.
Reference numerals:
The device comprises a sweep frequency acquisition module 110, a signal conversion module 120, an acquisition module 130, a first determination module 140, a second determination module 150, a processor 210 and a memory 220.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, the meaning of "a number" means one or more, the meaning of "a plurality" means two or more, and greater than, less than, exceeding, etc. are understood to not include the present number, and "above", "below", "within", etc. are understood to include the present number. If any, the terms "first," "second," etc. are used for distinguishing between technical features only, and should not be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
Referring to fig. 1, the embodiment discloses a method for testing abnormal sound of a speaker, which includes steps S100 to S500, and it should be noted that the reference numerals of the steps in the embodiment are only for facilitating examination and understanding, and not limiting the execution sequence of the steps. Details of the individual steps are as follows:
S100, sending sweep frequency signals containing a plurality of test frequencies to a target loudspeaker, and collecting audio signals sent by the target loudspeaker to obtain sound pressure signals;
For example, the sweep frequency signal is usually a pure tone signal, such as a sine wave signal, and is sent to the target speaker, the target speaker can play corresponding sound, and then the microphone arranged on the adjacent side of the target speaker is used for recording the sound sent by the target speaker, so that the audio signal sent by the target speaker can be collected, and the sound pressure signal is obtained. For example, the step S100 specifically includes continuously transmitting a sweep frequency signal containing a plurality of test frequencies to a target speaker in a closed test space, and collecting an audio signal emitted from the target speaker to obtain a sound pressure signal. The test is carried out in the closed test space, so that the interference of environmental noise on the acquisition of the audio signal can be reduced, the noise component of the sound pressure signal can be reduced, and the accuracy of abnormal sound detection can be improved. The method comprises the steps of continuously sending sweep frequency signals containing a plurality of test frequencies to the target loudspeaker, detecting abnormal sound conditions of the target loudspeaker at different test frequencies at one time, and improving detection efficiency in a continuous sending mode compared with a conventional mode of sending the target loudspeaker one by one through different test frequencies.
S200, carrying out Fourier transform on the sound pressure signal to obtain a frequency spectrum signal of sound pressure changing along with frequency;
Illustratively, the sound pressure signal is a time domain signal of sound pressure over time, the abscissa is time, and the ordinate is sound pressure value. The collected sound pressure signal may include a sweep frequency signal, an abnormal sound signal caused by harmonic distortion, and other noise signals, such as an environmental noise signal. Since various signal components are synthesized in the sound pressure signal, the sound pressure signal is converted from the time domain to the frequency domain by means of fourier transform to obtain a frequency spectrum signal in which sound pressure varies with frequency in order to facilitate signal analysis.
S300, acquiring and determining a harmonic frequency range corresponding to each test frequency according to the target harmonic frequency range of each test frequency;
By way of example, harmonic distortion refers to the occurrence of distortion in the loudspeaker during operation, which may result in the loudspeaker reproducing sound due to the occurrence of resonance phenomena. Although only the fundamental frequency signal is the original signal of sound in the loudspeaker, resonance phenomenon (generating secondary, tertiary and even multiple harmonics on the basis of the original sound wave) inevitably occurs, so that only the fundamental frequency signal is not included in the sound signal any more, but harmonic waves and frequency multiplication components thereof are included, and the frequency multiplication signals cause distortion when the loudspeaker plays sound. Harmonic distortion is typically measured as Total Harmonic Distortion (THD), which refers to the additional harmonic component of the output signal (harmonic and its frequency-multiplied components) that is greater than the input signal, typically expressed as a percentage, when input by the signal source. However, the total harmonic distortion can only reflect the abnormal sound degree of the target loudspeaker, and cannot analyze the frequency band corresponding to the abnormal sound. Based on the principle of harmonic distortion, the generation of abnormal sounds is usually caused by harmonic signals. But for a normal loudspeaker, certain harmonic signal components are allowed to exist, that is, not all harmonic signals cause serious interference to the output of the original sound wave. Therefore, by carrying out key analysis on part of harmonic signals in all harmonic signals, whether abnormal sound caused by harmonic distortion exists in the target loudspeaker can be detected, and the frequency band where the abnormal sound exists can be further determined.
In order to determine the harmonic signal that contributes significantly to the alien sound, step S300 is preceded by determining a target harmonic order range for characterizing the set of harmonic orders that contribute significantly to the alien sound based on historical experience or analysis of the spectral signal. For example, for the speakers of the same batch, the harmonic frequency corresponding to the harmonic component with a larger contribution to the abnormal sound in the speakers of the defective products can be determined according to the comparative analysis between the good products and the defective products, for example, please refer to fig. 2, through statistical analysis, when the sweep signal is 100Hz, the contribution of the 11 th to 15 th harmonic of the sweep signal to the abnormal sound caused by the harmonic distortion is larger, that is, the signal component with the harmonic frequency of 1100 to 1500Hz of the sweep signal easily causes serious interference to the output of the original sound wave, so that the target harmonic frequency range can be determined to be 11 to 15 th, and the corresponding harmonic frequency range is 100×11 to 15 Hz, that is, 1100 to 1500Hz, and it is conceivable that the harmonic component is an integer multiple of the fundamental wave. The defective speaker is a speaker whose presence is detected and determined to be abnormal due to harmonic distortion. In this manner, the target harmonic order range may be determined based on historical experience. Or based on manual work, carrying out rough signal analysis on the acquired frequency spectrum signals to roughly determine the target harmonic frequency range.
S400, determining the total harmonic energy in a harmonic frequency range corresponding to each test frequency according to the frequency spectrum signal, and obtaining a relation curve of the total harmonic energy and the frequency;
The swept frequency signal illustratively contains a plurality of test frequencies, for example, an initial frequency of 100Hz, and a frequency step interval of 100Hz, i.e., 100Hz, 200Hz, 300Hz. For a certain test frequency, for example, 100Hz, assuming that the corresponding harmonic frequency range is 11 th to 15 th, the harmonic frequency range is 1100 to 1500Hz, and the total harmonic energy in the harmonic frequency range can be determined to be TE 100. Similarly, the total harmonic energy corresponding to 200Hz can be determined and marked as TE 200, the total harmonic energy corresponding to 300Hz can be marked as TE 300, and the like, so that the total harmonic energy TE x in the harmonic frequency range corresponding to each test frequency can be obtained, and x represents the numerical value of the test frequency. Each test frequency and its corresponding harmonic total energy TEx may form a coordinate point, for example, (100, TE 100)、(200,TE200)、(300,TE300)...(x,TEx), and a relationship curve may be formed by connecting a plurality of coordinate points, so as to obtain a relationship curve of harmonic total energy and frequency (TE relationship curve for short).
Specifically, step S400 includes steps S410 and S420, wherein the details of step S410 and step S420 are as follows:
S410, determining harmonic total energy in a harmonic frequency range corresponding to each test frequency according to a frequency spectrum signal by a first relation, wherein the first relation is that TE=20×lg (E 1 2+E2 2+...+En 2)1/2)/P0, wherein TE is used for representing the harmonic total energy in the harmonic frequency range corresponding to a single test frequency, E n is used for representing the sum of harmonic components and noise energy between a previous harmonic and a next harmonic in the frequency spectrum signal, n is used for representing the difference between the previous harmonic and the next harmonic in a target harmonic frequency range, and P 0 is a reference sound pressure value;
S420, obtaining a relation curve of the harmonic total energy and the frequency according to the plurality of test frequencies and the corresponding harmonic total energy.
For example, TE x described above may be determined by a first relationship, where P 0 is equal to 2 x10 -5 Pa. It should be noted that, as described above, the collected sound pressure signal may include a frequency sweep signal, an abnormal sound signal caused by harmonic distortion, and other noise signals, and then the frequency spectrum signal obtained through fourier transform also includes the frequency sweep signal, the abnormal sound signal, and other noise signals. In the analysis process, the abnormal sound signal and the noise signal are difficult to separate, so that E n in the first relation contains both harmonic components and noise energy between adjacent harmonics, but the duty ratio of the noise energy is usually smaller, and the influence on the analysis result is smaller. Referring to fig. 2, taking a 100Hz sweep signal as an example, assuming that the frequency range of the harmonic component with a larger contribution to the abnormal sound is 11 th to 15 th, i.e. the frequency range is 1100 to 1500Hz, E1 represents the sum of the harmonic component and the noise energy between the 11 th and 12 th harmonic components, E2 represents the sum of the harmonic component and the noise energy between the 12 th and 13 th harmonic components, and so on.
Step S410 is preceded by determining, from the spectrum signal, an E n value in a harmonic frequency range corresponding to each test frequency according to a second relation, where en= (E n1 2+En2 2+...+Eni 21/2, where E ni is used to represent energy corresponding to each frequency point between a previous harmonic and a next harmonic in the spectrum signal, and i is used to represent a sequence number of a frequency point between the previous harmonic and the next harmonic in the spectrum signal.
For example, the harmonic signal is generally an integer multiple of the fundamental frequency signal, but in the frequency signal, a plurality of frequency points (as shown by a mark p 1、p2 in fig. 3 and the like) still exist between two adjacent harmonics, each frequency point has a corresponding sound pressure value, the sound pressure value is taken as energy corresponding to the frequency point, the value of E n of the adjacent two harmonics can be determined, for example, taking E 1 of 11 th to 12 th harmonic components as an example, i frequency points are provided between 11 th to 12 th harmonic components, each frequency point has a corresponding sound pressure value, the sound pressure value is taken as energy corresponding to the frequency point, the value of E 11 between the frequency point p 1 and the frequency point p 2, the value of E 12 between the frequency point p 2 and the frequency point p 3 can be determined, and so on, the value of E 13....E1i can be determined, and the value of E 1 can be determined by substituting into the second relational expression. Similarly, a plurality of E n values may be determined, and substituting the obtained plurality of E n values into the first relational expression may determine the corresponding TE value. In this way, the abnormal sound condition of a certain test frequency can be quantified.
S500, harmonic distortion abnormal sound detection is carried out on a relation curve of harmonic total energy and frequency based on a preset harmonic total energy threshold.
By way of example, through the relation curve of the total harmonic energy and the frequency, abnormal sound conditions of the target loudspeaker under each test frequency in a certain harmonic frequency range can be quantified, and through setting a total harmonic energy threshold, when the total harmonic energy corresponding to a certain test frequency in the relation curve of the total harmonic energy and the frequency is greater than a preset total harmonic energy threshold, the abnormal sound caused by harmonic distortion exists in the current set harmonic frequency range, and the subsequent analysis can be facilitated. Therefore, the target harmonic frequency range is used as an input variable, whether abnormal sound caused by harmonic distortion exists in the target loudspeaker can be detected, and further, the abnormal sound caused by the harmonic distortion is easy to occur in the harmonic frequency range and the abnormal sound caused by the harmonic distortion is easy to occur in the test frequency in the certain harmonic frequency range can be analyzed, so that the data basis is provided for quality improvement of the target loudspeaker.
The collected sound pressure signals are subjected to Fourier transformation to obtain frequency spectrum signals of sound pressure changing along with frequency, local analysis is carried out according to harmonic frequency ranges corresponding to each test frequency, a relation curve of harmonic total energy and frequency is obtained through calculation, abnormal sound detection of harmonic distortion is carried out on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold, and whether abnormal sound caused by the harmonic distortion exists in a target loudspeaker can be detected.
In some examples of application, the harmonic total energy thresholds may be a single value, i.e., the harmonic total energy thresholds corresponding to different test frequencies are all the same. In yet other examples of applications, the harmonic total energy threshold is a frequency-dependent harmonic total energy threshold curve, and step S500 includes performing harmonic distortion outlier detection on the harmonic total energy versus frequency curve based on a preset harmonic total energy threshold curve.
For example, for a test frequency in the range of 400-500 hz, the harmonic total energy threshold may be set to TE m1, for a test frequency in the range of 501-800 hz, the harmonic total energy threshold may be set to TE m2, and for a test frequency in the range of 801-1000 hz, the harmonic total energy threshold may be set to TE m3, so that whether abnormal sounds caused by harmonic distortion exist in a target speaker at different test frequencies can be more flexibly and accurately detected. For example, referring to fig. 4, a TE relationship curve of a good speaker (as shown by a mark L1), a TE relationship curve of a bad speaker (as shown by a mark L2), and a harmonic total energy threshold curve (as shown by a mark L3) are shown in the figure, wherein comparing the TE relationship curves of the good speaker and the bad speaker, the TE relationship curves of the good speaker and the bad speaker are significantly different at positions shown by marks Z1 and Z2, and the harmonic total energy of the TE relationship curve of the good speaker significantly exceeds the harmonic total energy threshold curve. By setting the harmonic total energy threshold, whether the target loudspeaker has abnormal sound caused by harmonic distortion can be rapidly and effectively detected.
Step S500 is followed by determining a frequency range in which harmonic distortion noise occurs in the harmonic total energy versus frequency relationship according to the harmonic total energy threshold.
For example, when a certain harmonic total energy in the relation curve is greater than a corresponding harmonic total energy threshold, it indicates that the target speaker has abnormal sound caused by harmonic distortion at a corresponding test frequency, at this time, the corresponding test frequency may be determined, and when more harmonic total energy exceeds the harmonic total energy threshold, the corresponding frequency range may be determined.
Referring to fig. 5, the present embodiment further provides a speaker abnormal sound testing device, which includes a sweep frequency acquisition module 110, a signal conversion module 120, an acquisition module 130, a first determination module 140, and a second determination module 150.
The sweep frequency acquisition module 110 is configured to send sweep frequency signals of a plurality of test frequencies to a target speaker, and acquire an audio signal sent by the target speaker to obtain a sound pressure signal;
the signal conversion module 120 is configured to perform fourier transform on the sound pressure signal to obtain a frequency spectrum signal of sound pressure changing along with frequency;
the acquiring module 130 is configured to acquire and determine a harmonic frequency range corresponding to each test frequency according to the target harmonic frequency range of each test frequency;
the first determining module 140 is configured to determine, according to the spectrum signal, harmonic total energy in a harmonic frequency range corresponding to each test frequency, so as to obtain a relationship curve between the harmonic total energy and the frequency;
the second determining module 150 is configured to perform harmonic distortion abnormal sound detection on a relationship curve of harmonic total energy and frequency based on a preset harmonic total energy threshold.
The inventive concept of the embodiment of the speaker abnormal sound testing device is the same as that of the speaker abnormal sound testing method, and the content not related in the embodiment of the speaker abnormal sound testing device can refer to the embodiment of the speaker abnormal sound testing method, and the description thereof is omitted here. The collected sound pressure signals are subjected to Fourier transformation to obtain frequency spectrum signals of sound pressure changing along with frequency, local analysis is carried out according to harmonic frequency ranges corresponding to each test frequency, a relation curve of harmonic total energy and frequency is obtained through calculation, abnormal sound detection of harmonic distortion is carried out on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold, and whether abnormal sound caused by the harmonic distortion exists in a target loudspeaker can be detected.
Referring to fig. 6, the present embodiment provides a test apparatus, which includes a processor 210 and a memory 220, wherein a computer program is stored in the memory 220, and the processor 210 is used for implementing the above-mentioned speaker abnormal sound test method when running the computer program. The inventive concept of the embodiment of the test device is the same as that of the above-mentioned speaker abnormal sound test method, and the content not related in the embodiment of the test device may refer to the above-mentioned speaker abnormal sound test method embodiment, which is not described herein again. The collected sound pressure signals are subjected to Fourier transformation to obtain frequency spectrum signals of sound pressure changing along with frequency, local analysis is carried out according to harmonic frequency ranges corresponding to each test frequency, a relation curve of harmonic total energy and frequency is obtained through calculation, abnormal sound detection of harmonic distortion is carried out on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold, and whether abnormal sound caused by the harmonic distortion exists in a target loudspeaker can be detected.
The present embodiment also provides a storage medium in which a computer program is stored, which when executed implements the speaker abnormal sound test method as described above. The inventive concept of the storage medium embodiment is the same as that of the speaker abnormal sound test method described above, and the content not related in the storage medium embodiment may refer to the speaker abnormal sound test method embodiment described above, and will not be described herein. The collected sound pressure signals are subjected to Fourier transformation to obtain frequency spectrum signals of sound pressure changing along with frequency, local analysis is carried out according to harmonic frequency ranges corresponding to each test frequency, a relation curve of harmonic total energy and frequency is obtained through calculation, abnormal sound detection of harmonic distortion is carried out on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold, and whether abnormal sound caused by the harmonic distortion exists in a target loudspeaker can be detected.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention.

Claims (8)

1. A method for testing abnormal sound of a loudspeaker, comprising:
Sending sweep frequency signals containing a plurality of test frequencies to a target loudspeaker, and collecting audio signals sent by the target loudspeaker to obtain sound pressure signals;
performing Fourier transform on the sound pressure signal to obtain a frequency spectrum signal of sound pressure changing along with frequency;
acquiring and determining a harmonic frequency range corresponding to each test frequency according to the target harmonic frequency range of each test frequency;
determining E n values in the harmonic frequency range corresponding to each test frequency according to the frequency spectrum signal by a second relation, wherein the second relation is En= (E n1 2+En2 2+...+Eni 21/2, wherein E ni is used for representing energy corresponding to each frequency point between a previous harmonic and a next harmonic in the frequency spectrum signal, and i is used for representing a serial number of a frequency point between the previous harmonic and the next harmonic in the frequency spectrum signal;
Determining total harmonic energy in the harmonic frequency range corresponding to each test frequency according to the frequency spectrum signal by a first relation, wherein the first relation is te=20×lg (E 1 2+E2 2+...+En 2)1/2)/P0, wherein TE is used for representing total harmonic energy in the harmonic frequency range corresponding to a single test frequency, E n is used for representing sum of harmonic components and noise energy between a previous harmonic and a next harmonic in the frequency spectrum signal, n is used for representing a difference value between a previous harmonic and a next harmonic in the target harmonic range, and P 0 is a reference sound pressure value;
obtaining a relation curve of the total harmonic energy and the frequency according to a plurality of test frequencies and the total harmonic energy corresponding to the test frequencies;
And carrying out harmonic distortion abnormal sound detection on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold.
2. The method for testing the abnormal sound of the loudspeaker according to claim 1, wherein the harmonic total energy threshold is a harmonic total energy threshold curve varying with frequency, and the harmonic distortion abnormal sound detection is performed on the relation curve of the harmonic total energy and frequency based on a preset harmonic total energy threshold, and the method comprises the following steps:
and carrying out harmonic distortion abnormal sound detection on the relation curve of the harmonic total energy and the frequency based on the preset harmonic total energy threshold curve.
3. The method for testing the abnormal sound of the loudspeaker according to claim 1 or 2, wherein the harmonic distortion abnormal sound detection is performed on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold, and then the method further comprises:
and determining the frequency range in which harmonic distortion abnormal sound occurs in the relation curve of the harmonic total energy and the frequency according to the harmonic total energy threshold.
4. The method for testing the abnormal sound of the loudspeaker according to claim 1, wherein the obtaining and determining the harmonic frequency range corresponding to each test frequency according to the target harmonic frequency range of each test frequency further comprises:
The target harmonic order range is determined according to historical experience or analysis of the spectrum signal, and is used for representing a set of harmonic orders with larger contribution to abnormal sound.
5. The method for testing abnormal sound of speaker according to claim 1, wherein the step of transmitting a sweep frequency signal containing a plurality of test frequencies to a target speaker and collecting an audio signal transmitted from the target speaker to obtain a sound pressure signal comprises:
In a closed test space, continuously sending sweep frequency signals containing a plurality of test frequencies to a target loudspeaker, and collecting audio signals sent by the target loudspeaker to obtain sound pressure signals.
6. A speaker abnormal sound testing device, comprising:
the frequency sweep acquisition module is used for sending frequency sweep signals of a plurality of test frequencies to the target loudspeaker and acquiring audio signals sent by the target loudspeaker to obtain sound pressure signals;
the signal conversion module is used for carrying out Fourier transform on the sound pressure signal to obtain a frequency spectrum signal of which the sound pressure changes along with the frequency;
the acquisition module is used for acquiring and determining a harmonic frequency range corresponding to each test frequency according to the target harmonic frequency range of each test frequency;
A first determining module, configured to determine, according to the spectrum signal, an E n value in the harmonic frequency range corresponding to each test frequency by a second relational expression, where the second relational expression is en= (E n1 2+En2 2+...+Eni 21/2, where E ni is used to represent energy corresponding to each frequency point between a previous harmonic and a next harmonic in the spectrum signal, i is used to represent a sequence number of a frequency point between the previous harmonic and the next harmonic in the spectrum signal, and according to the spectrum signal, determine, by a first relational expression, a harmonic total energy in the harmonic frequency range corresponding to each test frequency, where te=20×lg (E 1 2+E2 2+...+En 2)1/2)/P0, where TE is used to represent a harmonic total energy in the harmonic frequency range corresponding to a single test frequency, and E n is used to represent a sum of harmonic components and noise energy between the previous harmonic and the next harmonic in the spectrum signal, n is used to represent a sum of harmonic components and noise energy between the previous harmonic and the next harmonic in the target harmonic range, and P 0 is a total energy in the harmonic frequency range;
and the second determining module is used for carrying out harmonic distortion abnormal sound detection on the relation curve of the harmonic total energy and the frequency based on a preset harmonic total energy threshold.
7. A test apparatus comprising a processor and a memory, the memory having a computer program stored therein, wherein the processor is configured to implement the loudspeaker abnormal sound test method of any one of claims 1 to 5 when the computer program is run by the processor.
8. A storage medium having a computer program stored therein, characterized in that the speaker abnormal sound testing method according to any one of claims 1 to 5 is implemented when the computer program is executed.
CN202411455457.1A 2024-10-18 2024-10-18 Speaker abnormal sound testing method, device, testing equipment and storage medium Active CN119012108B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411455457.1A CN119012108B (en) 2024-10-18 2024-10-18 Speaker abnormal sound testing method, device, testing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411455457.1A CN119012108B (en) 2024-10-18 2024-10-18 Speaker abnormal sound testing method, device, testing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN119012108A CN119012108A (en) 2024-11-22
CN119012108B true CN119012108B (en) 2025-01-28

Family

ID=93481801

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411455457.1A Active CN119012108B (en) 2024-10-18 2024-10-18 Speaker abnormal sound testing method, device, testing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN119012108B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684806A (en) * 2023-07-10 2023-09-01 珠海欧森斯传感技术有限公司 Method for testing abnormal sound of loudspeaker
CN118118846A (en) * 2024-02-29 2024-05-31 欧森斯(珠海)科技有限公司 Electroacoustic performance bearable maximum pressure detection method, device and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118400673B (en) * 2024-03-28 2024-12-03 方博科技(深圳)有限公司 A method for measuring total harmonic distortion plus noise
CN118413797A (en) * 2024-04-15 2024-07-30 上海摩软通讯技术有限公司 Abnormal sound detection method, system and equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116684806A (en) * 2023-07-10 2023-09-01 珠海欧森斯传感技术有限公司 Method for testing abnormal sound of loudspeaker
CN118118846A (en) * 2024-02-29 2024-05-31 欧森斯(珠海)科技有限公司 Electroacoustic performance bearable maximum pressure detection method, device and system

Also Published As

Publication number Publication date
CN119012108A (en) 2024-11-22

Similar Documents

Publication Publication Date Title
EP3166239B1 (en) Method and system for scoring human sound voice quality
JP5141542B2 (en) Noise detection apparatus and noise detection method
CN103546853A (en) Speaker abnormal sound detecting method based on short-time Fourier transformation
JP2012226080A (en) Music piece retrieval device and method, program, and recording medium
KR20130055410A (en) Sound quality evaluation apparatus and method thereof
TWI774472B (en) Abnormal sound detection method and apparatus
US20090304195A1 (en) Method and device for diagnosing the operating state of a sound system
CN118984407B (en) Multimedia multi-audio test system
JP2017090888A (en) Method for modeling characteristic of instrument
CN116684806A (en) Method for testing abnormal sound of loudspeaker
CN116564332A (en) Frequency response analysis method, device, equipment and storage medium
CN112298030A (en) Frequency response test system and method for low-speed prompt tone device of electric automobile
CN116055975A (en) Earphone quality assessment method based on psychoacoustics
CN119012108B (en) Speaker abnormal sound testing method, device, testing equipment and storage medium
CN112908347A (en) Noise detection method and terminal
CN118836964A (en) Noise testing method, sound pressure signal testing system, analysis device and storage medium
CN118413797A (en) Abnormal sound detection method, system and equipment
CN111953967A (en) Method for automatically testing microphone and loudspeaker of network camera
CN113543005A (en) Audio device detection method and system
US8712018B2 (en) Testing apparatus and testing method for telephone apparatus
US12058498B2 (en) Noise detection device and method thereof
CN114203197A (en) Objective evaluation method, system, equipment and storage medium for in-vehicle audio quality
van Veen et al. Coherence as an Indicator of Distortion for Wide-Band Audio Signals such as M-Noise and Music
JP7262636B1 (en) measuring device
TWI595791B (en) Method of detecting audio signal

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