Speaker abnormal sound testing method, device, testing equipment and storage medium
By analyzing the Harmonious Energy of Fourier transformation of the sound pressure signal collected by the speaker, detecting the disorders caused by harmonic distortion in the speaker, solving the problem that the existing technology cannot accurately identify the harmonic distortion band, and realizes efficient efficiency Different sound detection.
Patent Information
- Application Number
- CN202411455457.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-18
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-10-18
AI Technical Summary
The prior art is difficult to detect the abnormal sound caused by the speaker due to harmonic distortion through manual listening or THD analysis, especially the harmonic distortion frequency band cannot be determined.
By sending a frequency scanning signal containing multiple test frequency to the target speaker, collecting sound pressure signals and performing Fourier transformations, the spectrum signal that changes with frequency changes. Then, according to the harmonic frequency range of each test frequency, calculate the relationship curve of the total energy and frequency of harmonic waves, and perform harmonic distortion detection based on the preset harmonic total energy threshold.
It can effectively detect different sounds caused by harmonic distortion in the speaker, and determine the frequency range of the disobeduration, which improves the accuracy and efficiency of the detection.
Smart Images

Figure CN119012108B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of audio testing, and in particular to a method, device, testing equipment and storage medium for abnormal sound testing of a loudspeaker. Background Art
[0002] Speakers are one of the important components of modern electronic products. In order to ensure the product quality of speakers, they need to be tested for abnormal sounds before leaving the factory. In actual tests, it is found that there are many types of abnormal sounds, and a single test method cannot detect all types of abnormal sounds. Similarly, the same abnormal sound may have different detection methods. Among them, speakers may have abnormal sounds caused by harmonic distortion, but the frequency range of this abnormal sound cannot be identified by manual listening, nor can the frequency band of harmonic distortion be determined by THD (Total Harmonic Distortion) analysis. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a speaker abnormal sound testing method, device, testing equipment and storage medium, which can detect abnormal sound caused by harmonic distortion of the speaker.
[0004] In one aspect, an embodiment of the present invention provides a method for testing abnormal sound of a loudspeaker, comprising:
[0005] Sending a sweep frequency signal including a plurality of test frequencies to a target speaker, and collecting an audio signal emitted by the target speaker to obtain a sound pressure signal;
[0006] Performing Fourier transform on the sound pressure signal to obtain a frequency spectrum signal of sound pressure varying with frequency;
[0007] Obtaining and determining the harmonic frequency range corresponding to each of the test frequencies according to the target harmonic order range of each of the test frequencies;
[0008] Determine the total harmonic energy within the harmonic frequency range corresponding to each of the test frequencies according to the spectrum signal, and obtain a relationship curve between the total harmonic energy and the frequency;
[0009] Based on a preset harmonic total energy threshold, harmonic distortion and abnormal sound detection is performed on the relationship curve between the harmonic total energy and frequency.
[0010] According to some embodiments of the present invention, determining the total harmonic energy within the harmonic frequency range corresponding to each of the test frequencies according to the spectrum signal, and obtaining a relationship curve between the total harmonic energy and the frequency, includes:
[0011] According to the spectrum signal, the total harmonic energy within the harmonic frequency range corresponding to each test frequency is determined by a first relational expression, wherein the first relational expression is: TE=20*lg(E1 2 +E2 2 +...+E n 2 ) 1 / 2 ) / P0, where TE is used to characterize the total harmonic energy within the harmonic frequency range corresponding to a single test frequency, E n It is used to characterize the sum of the harmonic components and noise energy between the previous harmonic and the next harmonic in the spectrum signal, n is used to characterize the difference between the previous harmonic order and the next harmonic order within the target harmonic order range, and P0 is the reference sound pressure value;
[0012] According to the plurality of test frequencies and the corresponding total harmonic energy, a relationship curve between the total harmonic energy and the frequency is obtained.
[0013] According to some embodiments of the present invention, determining the total harmonic energy within the harmonic frequency range corresponding to each test frequency by a first relationship according to the spectrum signal also includes:
[0014] According to the spectrum signal, the E in the harmonic frequency range corresponding to each test frequency is determined by the second relational expression. n value, the second relation is: En=(E n1 2 +E n2 2 +...+E ni 2 ) 1 / 2 , where E ni It is used to characterize the energy corresponding to each frequency point between the previous harmonic and the next harmonic in the spectrum signal, and i is used to characterize the sequence number of the frequency point between the previous harmonic and the next harmonic in the spectrum signal.
[0015] According to some embodiments of the present invention, the total harmonic energy threshold is a total harmonic energy threshold curve that varies with frequency, and the detection of harmonic distortion and abnormal sound on the relationship curve between the total harmonic energy and frequency based on the preset total harmonic energy threshold includes:
[0016] Based on the preset harmonic total energy threshold curve, the relationship curve between the harmonic total energy and frequency is used to perform harmonic distortion and abnormal sound detection.
[0017] According to some embodiments of the present invention, the method further includes performing harmonic distortion and abnormal sound detection on the relationship curve between the total harmonic energy and the frequency based on the preset total harmonic energy threshold, and then further includes:
[0018] According to the total harmonic energy threshold, a frequency range in which harmonic distortion and abnormal sound appear in the relationship curve between the total harmonic energy and the frequency is determined.
[0019] According to some embodiments of the present invention, the obtaining and determining the harmonic frequency range corresponding to each of the test frequencies according to the target harmonic order range of each of the test frequencies also includes:
[0020] The target harmonic order range is determined based on historical experience or analysis of the frequency spectrum signal, and the target harmonic order range is used to characterize a set of harmonic orders that contribute more to the abnormal sound.
[0021] According to some embodiments of the present invention, sending a sweep frequency signal including a plurality of test frequencies to a target speaker, and collecting an audio signal emitted by the target speaker to obtain a sound pressure signal includes:
[0022] In a closed test space, a sweep frequency signal including a plurality of test frequencies is continuously sent to a target speaker, and an audio signal emitted by the target speaker is collected to obtain a sound pressure signal.
[0023] In a second aspect, an embodiment of the present invention provides a speaker abnormal sound testing device, comprising:
[0024] A frequency sweep acquisition module, used to send frequency sweep signals of multiple test frequencies to a target speaker, and to acquire an audio signal emitted by the target speaker to obtain a sound pressure signal;
[0025] A signal conversion module, used for performing Fourier transformation on the sound pressure signal to obtain a frequency spectrum signal of sound pressure varying with frequency;
[0026] An acquisition module, used to acquire and determine the harmonic frequency range corresponding to each of the test frequencies according to the target harmonic order range of each of the test frequencies;
[0027] A first determination module is used to determine the total harmonic energy within the harmonic frequency range corresponding to each of the test frequencies according to the spectrum signal, and obtain a relationship curve between the total harmonic energy and the frequency;
[0028] The second determination module is used to perform harmonic distortion and abnormal sound detection on the relationship curve between the total harmonic energy and the frequency based on a preset total harmonic energy threshold.
[0029] In a third aspect, an embodiment of the present invention provides a testing device, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to implement the above-mentioned speaker abnormal sound testing method when running the computer program.
[0030] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program is executed, the speaker abnormal sound testing method as described above is implemented.
[0031] The embodiments of the present invention have at least the following beneficial effects:
[0032] By performing Fourier transform on the collected sound pressure signal, a spectrum signal of the sound pressure changing with frequency is obtained, and local analysis is performed according to the harmonic frequency range corresponding to each test frequency. The relationship curve between the total harmonic energy and the frequency is obtained by calculation. Then, based on the preset total harmonic energy threshold, the relationship curve between the total harmonic energy and the frequency is used to perform harmonic distortion abnormal sound detection, so as to detect whether there is abnormal sound caused by harmonic distortion in the target speaker.
[0033] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0035] Figure 1 A flowchart of the steps of a method for testing abnormal sound of a loudspeaker according to an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of the frequency axis of the fundamental wave and harmonic wave components of the frequency sweep signal according to an embodiment of the present invention;
[0037] Figure 3 for Figure 2 The middle circle shows a partial enlarged schematic diagram of position A;
[0038] Figure 4 is a relationship curve between the total harmonic energy and the frequency according to an embodiment of the present invention;
[0039] Figure 5 It is a principle block diagram of a speaker abnormal sound testing device according to an embodiment of the present invention;
[0040] Figure 6 The figure is a functional block diagram of a testing device according to an embodiment of the present invention.
[0041] Reference numerals:
[0042] The frequency sweep acquisition module 110 , the signal conversion module 120 , the acquisition module 130 , the first determination module 140 , the second determination module 150 , the processor 210 , and the memory 220 . DETAILED DESCRIPTION
[0043] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0044] In the description of the present invention, "several" means one or more, "multiple" means more than two, greater than, less than, and exceeding are understood as not including the number itself, and "above", "below", and "within" are understood as including the number itself. If there is a description of "first", "second", etc., it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0045] Please refer to Figure 1 This embodiment discloses a speaker abnormal sound test method, including steps S100 to S500. It should be noted that the steps in this embodiment are numbered only for the convenience of review and understanding, and do not limit the execution order of the steps. The contents of each step are described in detail below:
[0046] S100, sending a sweep frequency signal including a plurality of test frequencies to a target speaker, and collecting an audio signal emitted by the target speaker to obtain a sound pressure signal;
[0047] Exemplarily, the sweep signal usually adopts a pure tone signal, such as a sine wave signal, and the sweep signal is sent to the target speaker. The target speaker can play the corresponding sound, and then the sound emitted by the target speaker is recorded back by a microphone arranged on the adjacent side of the target speaker. The audio signal emitted by the target speaker can be collected to obtain a sound pressure signal. For example, step S100 specifically includes: in a closed test space, continuously sending a sweep signal containing multiple test frequencies to the target speaker, and collecting the audio signal emitted by the target speaker to obtain a sound pressure signal. Testing in a closed test space can reduce the interference of environmental noise on audio signal collection, which is conducive to reducing the noise component of the sound pressure signal and improving the accuracy of abnormal sound detection. Among them, continuously sending a sweep signal containing multiple test frequencies to the target speaker can detect the abnormal sound of the target speaker at different test frequencies at one time. Compared with the conventional method of sending to the target speaker one by one through different test frequencies, the continuous sending method is conducive to improving the detection efficiency.
[0048] S200, performing Fourier transform on the sound pressure signal to obtain a frequency spectrum signal of sound pressure varying with frequency;
[0049] Exemplarily, the sound pressure signal is a time domain signal of the sound pressure changing with time, with the horizontal axis being time and the vertical axis being the sound pressure value. The sound pressure signal obtained after collection may include a frequency sweep 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, in order to facilitate signal analysis, the sound pressure signal is converted from the time domain to the frequency domain by Fourier transform to obtain a spectrum signal of the sound pressure changing with frequency.
[0050] S300, obtaining and determining the harmonic frequency range corresponding to each test frequency according to the target harmonic order range of each test frequency;
[0051] For example, harmonic distortion refers to the distortion of the sound when the speaker reproduces the sound due to the resonance phenomenon during the operation of the speaker. Although only the fundamental frequency signal in the speaker is the original signal of the sound, due to the inevitable resonance phenomenon (generating secondary, tertiary or even multiple harmonics on the basis of the original sound wave), the sound signal is no longer only the fundamental frequency signal, but also includes harmonics and their multiple frequency components. These multiple frequency signals will cause distortion when the speaker plays the sound. Harmonic distortion is usually measured by total harmonic distortion (THD), and total harmonic distortion refers to the additional harmonic components of the output signal (harmonics and their multiple frequency components) compared to the input signal when the signal source is input, usually expressed as a percentage. However, total harmonic distortion can only reflect the degree of abnormal sound of the target speaker, but cannot analyze the frequency band corresponding to the abnormal sound. Based on the principle of harmonic distortion, it can be seen that the generation of abnormal sound is usually caused by harmonic signals. However, for ordinary speakers, certain harmonic signal components are allowed to exist, that is, not all harmonic signals will cause serious interference to the output of the original sound wave. Therefore, by focusing on analyzing some of the harmonic signals among all the harmonic signals, it is possible to detect whether there is abnormal sound caused by harmonic distortion in the target speaker, and further determine the frequency band where the abnormal sound is located.
[0052] In order to determine the harmonic signal that contributes most to the abnormal sound, before step S300, it also includes: determining a target harmonic order range based on historical experience or analysis of the spectrum signal, and the target harmonic order range is used to characterize the set of harmonic orders that contribute most to the abnormal sound. For example, for the same batch of speakers, the harmonic order corresponding to the harmonic component that contributes most to the abnormal sound in the defective speakers can be determined based on the comparative analysis between good and defective products. For example, please refer to Figure 2, after statistical analysis, when the sweep signal is 100Hz, the 11th to 15th harmonics of the sweep signal contribute more to the abnormal sound caused by harmonic distortion, that is, the signal component of the harmonic frequency of the sweep signal is 1100~1500Hz, which is easy to cause serious interference to the output of the original sound wave. In this way, the target harmonic order range can be determined at the 11th to 15th order, and the corresponding harmonic frequency range is 100*(11~15) Hz, that is, 1100~1500Hz. It should be remembered that the harmonic component is an integer multiple of the fundamental wave. Among them, the defective speakers mentioned above refer to speakers that have been determined to have abnormal sounds caused by harmonic distortion after detection. In this way, the target harmonic order range can be determined based on historical experience. Alternatively, based on manual, a rough signal analysis of the collected spectrum signal is performed to roughly determine the target harmonic order range.
[0053] S400, determining the total harmonic energy within the harmonic frequency range corresponding to each test frequency according to the spectrum signal, and obtaining a relationship curve between the total harmonic energy and the frequency;
[0054] Exemplarily, the frequency sweep signal includes multiple test frequencies, for example, the starting frequency is 100 Hz, and the frequency step interval is 100 Hz, that is, 100 Hz, 200 Hz, 300 Hz.... For a certain test frequency, for example, 100 Hz, assuming that the corresponding harmonic order range is the 11th to 15th order, then the harmonic frequency range is 1100 to 1500 Hz, and the total harmonic energy within the harmonic frequency range can be determined, that is, TE 100 Similarly, the total harmonic energy corresponding to 200Hz can be determined and recorded as TE 200 ; The total harmonic energy corresponding to 300Hz is recorded as TE 300 , and so on, the total harmonic energy TE within the harmonic frequency range corresponding to each test frequency can be obtained x , x Indicates the value of the test frequency. Each test frequency and its corresponding total harmonic energy TE x Can form a coordinate point, such as (100, TE 100 )、(200,TE 200 )、(300,TE 300 )...( x ,TE x ), connecting multiple coordinate points can form a relationship curve, and the relationship curve between the total harmonic energy and frequency (TE relationship curve for short) can be obtained.
[0055] Specifically, step S400 includes steps S410 and S420, wherein the details of step S410 and step S420 are as follows:
[0056] S410, according to the spectrum signal, determine the total harmonic energy within the harmonic frequency range corresponding to each test frequency by using a first relational expression, the first relational expression being: TE=20*lg(E1 2 +E2 2 +...+E n 2 ) 1 / 2 ) / P0, where TE is used to characterize the total harmonic energy within the harmonic frequency range corresponding to a single test frequency, E n It is used to characterize the sum of the harmonic components and noise energy between the previous harmonic and the next harmonic in the spectrum signal, n is used to characterize the difference between the previous harmonic order and the next harmonic order within the target harmonic order range, and P0 is the reference sound pressure value;
[0057] S420: Obtain a relationship curve between total harmonic energy and frequency according to a plurality of test frequencies and corresponding total harmonic energy.
[0058] For example, the above TE x It can be determined by the first relationship, where P0 is equal to 2*10 -5 Pa. It should be noted that, as mentioned above, the collected sound pressure signal may contain the swept frequency signal, the abnormal sound signal caused by harmonic distortion and other noise signals. Then the spectrum signal obtained by Fourier transform also contains the swept frequency 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 E in the first relationship n It includes both harmonic components and noise energy between adjacent harmonics, but the proportion of noise energy is usually small and has little impact on the analysis results. Figure 2 Taking a 100Hz sweep frequency signal as an example, assuming that the harmonic component that contributes most to the abnormal sound is in the 11th to 15th order, that is, the frequency range is 1100 to 1500Hz, then E1 represents the sum of the harmonic components and noise energy between the 11th and 12th harmonic components, E2 represents the sum of the harmonic components and noise energy between the 12th and 13th harmonic components, and so on.
[0059] Before step S410, the following step further includes: determining, according to the spectrum signal, the E in the harmonic frequency range corresponding to each test frequency by using the second relational expression. n Value, the second relationship is: En = (E n1 2 +E n2 2 +...+E ni 2 ) 1 / 2 , where E niIt is used to characterize the energy corresponding to each frequency point between the previous harmonic and the next harmonic in the spectrum signal, and i is used to characterize the sequence number of the frequency point between the previous harmonic and the next harmonic in the spectrum signal.
[0060] For example, the harmonic signal is usually an integer multiple of the base frequency signal, but in the frequency signal, there are still multiple frequency points between two adjacent harmonics (such as Figure 3 Each frequency point has a corresponding sound pressure value. The sound pressure value is used as the energy corresponding to the frequency point to determine the E of two adjacent harmonics. n For example, taking the 11th to 12th harmonic component E1 as an example, there are i frequency points between the 11th and 12th harmonic components, each frequency point has a corresponding sound pressure value, and the sound pressure value is used as the energy corresponding to the frequency point, and the E between the frequency point p1 and the frequency point p2 can be determined. 11 value, E between frequency point p2 and frequency point p3 12 Value, and so on, we can determine E 13 ....E 1i The value of E1 can be determined by substituting it into the second relation. n value, the multiple E n Substituting the value into the first relational equation can determine the corresponding TE value. In this way, the abnormal sound situation of a certain test frequency can be quantified.
[0061] S500: Based on a preset harmonic total energy threshold, perform harmonic distortion and abnormal sound detection on a relationship curve between harmonic total energy and frequency.
[0062] Exemplarily, through the relationship curve between total harmonic energy and frequency, the abnormal sound of the target speaker at each test frequency within a certain harmonic order range can be quantified, and by setting the total harmonic energy threshold, when the total harmonic energy corresponding to a certain test frequency in the relationship curve between total harmonic energy and frequency is greater than the preset total harmonic energy threshold, it means that the test frequency has abnormal sound caused by harmonic distortion within the currently set harmonic order range, which can facilitate subsequent analysis. In this way, using the target harmonic order range as an input variable, it is possible to detect whether there is abnormal sound caused by harmonic distortion in the target speaker, and further analyze which harmonic order range is prone to abnormal sound caused by harmonic distortion, and which test frequency within a certain harmonic order range is prone to abnormal sound caused by harmonic distortion, which is conducive to providing data basis for quality improvement of the target speaker.
[0063] By performing Fourier transform on the collected sound pressure signal, a spectrum signal of the sound pressure changing with frequency is obtained, and local analysis is performed according to the harmonic frequency range corresponding to each test frequency. The relationship curve between the total harmonic energy and the frequency is obtained by calculation. Then, based on the preset total harmonic energy threshold, the relationship curve between the total harmonic energy and the frequency is used to perform harmonic distortion abnormal sound detection, so as to detect whether there is abnormal sound caused by harmonic distortion in the target speaker.
[0064] In some application examples, the total harmonic energy threshold may be a single value, that is, the total harmonic energy thresholds corresponding to different test frequencies are the same. In other application examples, the total harmonic energy threshold is a total harmonic energy threshold curve that varies with frequency, and step S500 includes: based on a preset total harmonic energy threshold curve, performing harmonic distortion and abnormal sound detection on the relationship curve between total harmonic energy and frequency.
[0065] For example, for a test frequency in the range of 400-500 Hz, the total harmonic energy threshold can be set to TE m1 For test frequencies in the range of 501 to 800 Hz, the total harmonic energy threshold can be set to TE m2 For the test spectrum in the range of 801~1000Hz, the total harmonic energy threshold can be set to TE m3 , which can more flexibly and accurately detect whether the target speaker has abnormal sound caused by harmonic distortion at different test frequencies. For example, please refer to Figure 4 , the figure shows the TE relationship curve of a good speaker (as shown by the mark L1), the TE relationship curve of a defective speaker (as shown by the mark L2), and the total harmonic energy threshold curve (as shown by the mark L3). Among them, by comparing the TE relationship curves of the good speaker and the defective speaker, it can be seen that at the positions shown by the marks Z1 and Z2, the TE relationship curves of the defective speaker and the good speaker are obviously different, and the total harmonic energy of the TE relationship curve of the defective speaker obviously exceeds the total harmonic energy threshold curve. By setting the total harmonic energy threshold, it is possible to quickly and effectively detect whether the target speaker has abnormal sound caused by harmonic distortion.
[0066] After step S500, the method further includes: determining, according to the total harmonic energy threshold, a frequency range in which harmonic distortion and abnormal sound appear in the relationship curve between the total harmonic energy and the frequency.
[0067] Exemplarily, when the total energy of a certain harmonic in the relationship curve is greater than the corresponding total energy threshold of the harmonic, it means that the target speaker has abnormal sound caused by harmonic distortion at the corresponding test frequency. At this time, the corresponding test frequency can be determined. When the total energy of the harmonics exceeding the total energy threshold of the harmonic is large, the corresponding frequency range can be determined.
[0068] Please refer to Figure 5This embodiment also provides a speaker abnormal sound testing device, including a frequency sweep acquisition module 110, a signal conversion module 120, an acquisition module 130, a first determination module 140 and a second determination module 150.
[0069] The sweep frequency acquisition module 110 is used to send a sweep frequency signal of multiple test frequencies to the target speaker, and collect the audio signal emitted by the target speaker to obtain a sound pressure signal;
[0070] The signal conversion module 120 is used to perform Fourier transformation on the sound pressure signal to obtain a frequency spectrum signal of the sound pressure varying with frequency;
[0071] The acquisition module 130 is used to acquire and determine the harmonic frequency range corresponding to each test frequency according to the target harmonic order range of each test frequency;
[0072] The first determination module 140 is used to determine the total harmonic energy within the harmonic frequency range corresponding to each test frequency according to the spectrum signal, and obtain a relationship curve between the total harmonic energy and the frequency;
[0073] The second determination module 150 is used to perform harmonic distortion and abnormal sound detection on the relationship curve between the total harmonic energy and the frequency based on a preset total harmonic energy threshold.
[0074] The inventive concept of the embodiment of the speaker abnormal sound test device is the same as the above-mentioned speaker abnormal sound test method. The contents not involved in the embodiment of the speaker abnormal sound test device can be referred to the above-mentioned speaker abnormal sound test method embodiment, and will not be repeated here. The collected sound pressure signal is Fourier transformed to obtain a spectrum signal of sound pressure changing with frequency, and a local analysis is performed according to the harmonic frequency range corresponding to each test frequency. The relationship curve between the total harmonic energy and the frequency is obtained by calculation, and then based on the preset total harmonic energy threshold, the relationship curve between the total harmonic energy and the frequency is used to detect the abnormal sound of harmonic distortion, so as to detect whether there is abnormal sound caused by harmonic distortion in the target speaker.
[0075] Please refer to Figure 6, this embodiment provides a test device, including a processor 210 and a memory 220, wherein a computer program is stored in the memory 220, and the processor 210 is used to implement the above-mentioned speaker abnormal sound test method when running the computer program. The inventive concept of this test device embodiment is the same as the above-mentioned speaker abnormal sound test method. The contents not involved in this test device embodiment can refer to the above-mentioned speaker abnormal sound test method embodiment, and will not be repeated here. By performing Fourier transform on the collected sound pressure signal, a spectrum signal of sound pressure varying with frequency is obtained, and local analysis is performed according to the harmonic frequency range corresponding to each test frequency, and the relationship curve between the total harmonic energy and the frequency is obtained by calculation, and then based on the preset total harmonic energy threshold, the relationship curve between the total harmonic energy and the frequency is subjected to harmonic distortion abnormal sound detection, so as to detect whether there is abnormal sound caused by harmonic distortion in the target speaker.
[0076] The present embodiment also provides a storage medium, in which a computer program is stored, and when the computer program is executed, the above-mentioned speaker abnormal sound test method is implemented. The inventive concept of the present storage medium embodiment is the same as the above-mentioned speaker abnormal sound test method. The contents not involved in the present storage medium embodiment can refer to the above-mentioned speaker abnormal sound test method embodiment, and will not be repeated here. The collected sound pressure signal is subjected to Fourier transform to obtain a spectrum signal of sound pressure varying with frequency, and a local analysis is performed according to the harmonic frequency range corresponding to each test frequency. The relationship curve between the total harmonic energy and the frequency is obtained by calculation, and then based on the preset total harmonic energy threshold, the relationship curve between the total harmonic energy and the frequency is subjected to harmonic distortion abnormal sound detection, which can detect whether there is abnormal sound caused by harmonic distortion in the target speaker.
[0077] The embodiments of the present invention are described in detail above 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 scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A speaker abnormal sound testing method, characterized in that: include: Sending a sweep frequency signal including a plurality of test frequencies to a target speaker, and collecting an audio signal emitted by the target speaker to obtain a sound pressure signal; Performing Fourier transform on the sound pressure signal to obtain a frequency spectrum signal of sound pressure varying with frequency; Obtaining and determining the harmonic frequency range corresponding to each of the test frequencies according to the target harmonic order range of each of the test frequencies; According to the spectrum signal, the E in the harmonic frequency range corresponding to each test frequency is determined by the second relationship. n value, the second relation is: En=(E n1 2 +E n2 2 +...+E ni 2 ) 1 / 2 , where E ni is used to characterize the energy corresponding to each frequency point between the previous harmonic and the next harmonic in the spectrum signal, and i is used to characterize the sequence number of the frequency point between the previous harmonic and the next harmonic in the spectrum signal; According to the spectrum signal, the total harmonic energy within the harmonic frequency range corresponding to each test frequency is determined by a first relational expression, wherein the first relational expression is: TE=20*lg(E1 2 +E2 2 +...+E n 2 ) 1 / 2 ) / P0, where TE is used to characterize the total harmonic energy within the harmonic frequency range corresponding to a single test frequency, E n It is used to characterize the sum of the harmonic components and noise energy between the previous harmonic and the next harmonic in the spectrum signal, n is used to characterize the difference between the previous harmonic order and the next harmonic order within the target harmonic order range, and P0 is the reference sound pressure value; According to the plurality of test frequencies and the corresponding total harmonic energy, a relationship curve between total harmonic energy and frequency is obtained; Based on a preset harmonic total energy threshold, harmonic distortion and abnormal sound detection is performed on the relationship curve between the harmonic total energy and frequency.
2. The speaker abnormal sound testing method according to claim 1, characterized in that: The total harmonic energy threshold is a total harmonic energy threshold curve that varies with frequency. The detection of harmonic distortion and abnormal sound based on the relationship curve between the total harmonic energy and frequency based on the preset total harmonic energy threshold includes: Based on the preset harmonic total energy threshold curve, the relationship curve between the harmonic total energy and frequency is used to perform harmonic distortion and abnormal sound detection.
3. The speaker abnormal sound testing method according to claim 1 or 2, characterized in that: The method further comprises: performing harmonic distortion and abnormal sound detection on the relationship curve between the total harmonic energy and the frequency based on the preset total harmonic energy threshold; and then: According to the total harmonic energy threshold, a frequency range in which harmonic distortion and abnormal sound appear in the relationship curve between the total harmonic energy and the frequency is determined.
4. The speaker abnormal sound testing method according to claim 1, characterized in that: The obtaining and determining the harmonic frequency range corresponding to each of the test frequencies according to the target harmonic order range of each of the test frequencies also includes: The target harmonic order range is determined based on historical experience or analysis of the frequency spectrum signal, and the target harmonic order range is used to characterize a set of harmonic orders that contribute more to the abnormal sound.
5. The speaker abnormal sound testing method according to claim 1, characterized in that: The step of sending a frequency sweep signal including a plurality of test frequencies to a target speaker and collecting an audio signal emitted by the target speaker to obtain a sound pressure signal includes: In a closed test space, a sweep frequency signal including a plurality of test frequencies is continuously sent to a target speaker, and an audio signal emitted by the target speaker is collected to obtain a sound pressure signal.
6. A speaker abnormal sound testing device, characterized in that: include: A frequency sweep acquisition module, used to send frequency sweep signals of multiple test frequencies to a target speaker, and to acquire an audio signal emitted by the target speaker to obtain a sound pressure signal; A signal conversion module, used for performing Fourier transformation on the sound pressure signal to obtain a frequency spectrum signal of sound pressure varying with frequency; An acquisition module, used to acquire and determine the harmonic frequency range corresponding to each of the test frequencies according to the target harmonic order range of each of the test frequencies; The first determination module is used to determine the E in the harmonic frequency range corresponding to each test frequency according to the spectrum signal through a second relationship. n value, the second relation is: En=(E n1 2 +E n2 2 +...+E ni 2 ) 1 / 2 , where E ni is used to characterize the energy corresponding to each frequency point between the previous harmonic and the next harmonic in the spectrum signal, and i is used to characterize the serial number of the frequency point between the previous harmonic and the next harmonic in the spectrum signal; according to the spectrum signal, the total harmonic energy within the harmonic frequency range corresponding to each test frequency is determined by a first relational expression, and the first relational expression is: TE=20*lg(E1 2 +E2 2 +...+E n 2 ) 1 / 2 ) / P0, where TE is used to characterize the total harmonic energy within the harmonic frequency range corresponding to a single test frequency, E n It is used to characterize the sum of the harmonic components and noise energy between the previous harmonic and the next harmonic in the spectrum signal, n is used to characterize the difference between the previous harmonic order and the next harmonic order within the target harmonic order range, and P0 is the reference sound pressure value; according to the multiple test frequencies and the corresponding total harmonic energy, a relationship curve between the total harmonic energy and the frequency is obtained; The second determination module is used to perform harmonic distortion and abnormal sound detection on the relationship curve between the total harmonic energy and the frequency based on a preset total harmonic energy threshold.
7. A test device, comprising a processor and a memory, wherein a computer program is stored in the memory, characterized in that: When the processor runs the computer program, it is used to implement the speaker abnormal sound testing method as described in any one of claims 1 to 5.
8. A storage medium storing a computer program, characterized in that: When the computer program is executed, the speaker abnormal sound testing method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Loudspeaker abnormal sound test method
CN116684806A
Method, device and system for detecting maximum bearable pressure of electroacoustic performance
CN118118846A