Headphone quality assessment method and system
By acquiring headphone data packets at standard and critical distances, performing bit error rate and packet loss rate evaluation, and combining frequency band division and active noise reduction coefficient, the evaluation of wireless headphones under interference conditions in traditional headphone quality evaluation methods is solved. Comprehensive issues achieve a comprehensive and accurate assessment of the quality of the headphones.
Patent Information
- Application Number
- CN202411179297.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2044-08-27
AI Technical Summary
The traditional headphone quality evaluation method does not fully consider the data reception quality of wireless headphones under signal interference and noise interference conditions, and does not divide the spectrum according to low frequency, medium frequency and high frequency, and lacks a comprehensive investigation of the sound quality and active noise reduction capabilities of headphones.
By obtaining the received data packets of the headphones at the standard and critical distances, calculating the bit error rate and packet loss rate, and performing an evaluation; digitizing the demodulation audio analog signal and band division, and calculating the frequency band center of gravity deviation and flux deviation, Perform secondary evaluation; combine stereo coefficients and active noise reduction coefficients, and use the index weighted evaluation model for the final quality evaluation.
It realizes a full investigation of the signal reception quality of headphones under interference conditions, accurately evaluates the sound quality fidelity, screens out headphones with unqualified quality, reduces the calculation complexity and evaluation time, and reflects the difference between high-quality headphones and ordinary headphones.
Smart Images

Figure CN118714488B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic digital data processing, and in particular to a headphone quality evaluation method and system. Background Art
[0002] In recent years, with the high popularity of smart phones, earphones, as an important accessory of smart phones, have been increasingly used. Among them, wireless earphones have the characteristics of high portability, rich intelligent functions and wide compatibility, and their market share is increasing. At the same time, thanks to the continuous development and innovation of Bluetooth technology, audio processing technology and ergonomic technology, the overall quality of wireless earphones is also constantly improving. At the same time, in order to cope with the increasingly fierce market competition, wireless earphone manufacturers have transferred the technology that was originally exclusive to high-end earphones to the lower-end market, and technologies such as high anti-interference, lossless sound quality and stereo surround sound have gradually become standard features of ordinary earphones.
[0003] At present, a Chinese invention patent with application number CN202211697149.0 discloses a method for evaluating the quality of headphones based on psychoacoustics. The application scheme specifically includes: S1: first, a sinusoidal wave excitation signal with a fixed frequency and amplitude is given and input into the headphone to obtain a test signal; S2: by taking the reference (stimulus) signal and the obtained test (response) signal as input, inputting the PEAQ model to obtain the MOV variable; S3: by first inputting the move variable into a two-layer neural network for training; S4: repeating steps S1 and S2, and then inputting the MOV into the trained neural network; S5: finally obtaining the PDI value of the tested headphone. By selecting a stepped swept sine wave signal, a more realistic hearing range of the human ear can be reflected, thereby enabling the quality evaluation of the headphone to obtain more realistic measurement data. In this invention, the audio signal is preprocessed to reduce the impact of external factors on the headphone quality evaluation, and finally the quality of the measured headphone is judged according to the PDI value. However, the neural network training set used in this invention only consists of sinusoidal wave excitation signals of fixed frequency and amplitude, and does not take into account the high complexity of the audio received by the headphones in actual application scenarios, including low-frequency, medium-frequency and high-frequency data. In actual use, signal interference and noise interference of wireless headphones are important reasons that affect the listening quality. This invention does not examine the anti-interference ability of the headphone receiving signal. At the same time, this invention does not take into account the difference between the left and right channels of the headphones caused by stereo rendering technology, and lacks differentiated evaluation of the left and right headphones. Summary of the invention
[0004] The technical problem solved by the present invention is that the traditional headphone quality evaluation method does not fully consider the data reception quality and sound quality level of wireless headphones under signal interference and noise interference conditions, and does not divide the spectrum according to low frequency, medium frequency and high frequency when analyzing the output analog signal of the wireless headphones, but performs overall spectrum analysis, which lacks accuracy. At the same time, there is a lack of comprehensive investigation of the headphone sound quality and the active noise reduction capability of the headphone.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] Step S1, pairing the earphone with the signal source end, transmitting a test audio signal to the earphone through the signal source end, placing the earphone at a standard distance from the signal source end, turning on a signal interference source, obtaining first received data packets of the left earphone and the right earphone respectively, turning off the signal interference source, obtaining demodulated audio analog signals output by the left earphone and the right earphone respectively, turning on a noise interference source, and obtaining active noise reduction analog signals output by the left earphone and the right earphone respectively;
[0007] The earphones are placed at a critical distance from the signal source, and second received data packets of the left earphone and the right earphone are obtained respectively;
[0008] Step S2, calculating a test bit error rate and a test packet loss rate based on the first received data packet and the second received data packet, evaluating the quality of the headset once by using the expected bit error rate and the expected packet loss rate, and if the evaluation result is that the quality is unqualified, stopping the evaluation and outputting the final evaluation result as unqualified quality;
[0009] Step S3, digitally processing the demodulated audio analog signal, obtaining a frequency band data set by frequency band division and calculating the frequency band center of gravity deviation and frequency band flux deviation, and performing a secondary evaluation on the earphone quality. If the secondary evaluation result is that the quality is unqualified, the evaluation is stopped and the final evaluation result is output as unqualified quality;
[0010] Step S4, calculating the stereo coefficient by demodulating the audio analog signal and the high-frequency band data, calculating the active noise reduction coefficient by the active noise reduction analog signal, and calculating the final evaluation result of the headphone quality by the indicator weighted evaluation model.
[0011] As a preferred solution of the headphone quality evaluation method described in the present invention, the headphone is paired with a signal source end, a preset test audio signal is transmitted to the headphone through the signal source end, a signal interference source is turned on, and an interference signal of 2.4 khz frequency band is output through a radio frequency signal generator, and the left headphone and the right headphone are respectively obtained at a standard distance. The first received data packet and the critical distance The second received data packet at.
[0012] As a preferred solution of the headphone quality evaluation method described in the present invention, wherein: an evaluation is performed based on the headphone signal reception quality, a first test packet loss rate and a first test bit error rate, a second test packet loss rate and a second test bit error rate are calculated through the first received data packet and the second received data packet of the left headphone and the right headphone, and a first expected bit error rate and a second expected bit error rate are calculated through the expected bit error rate model;
[0013] The evaluation result is obtained by threshold screening through the expected bit error rate and the expected packet loss rate. The evaluation result is determined to be of qualified quality only when the first test packet loss rate is less than the first expected packet loss rate, the second test packet loss rate is less than the second expected packet loss rate, the first test bit error rate is less than the first expected bit error rate, and the second test bit error rate is less than the second expected bit error rate. Otherwise, the evaluation result is determined to be of unqualified quality. The calculation expression of the expected bit error rate is:
[0014] ;
[0015] in, represents the expected bit error rate, represents the signal-to-noise ratio, c represents the distance coefficient, e represents the natural constant, t represents the order, T represents the maximum order, represents the t-order modified Bessel function, represents the 0th order modified Bessel function, m represents the modulation sum coefficient, and n represents the modulation difference coefficient.
[0016] As a preferred solution of the headphone quality evaluation method described in the present invention, the headphone is arranged at a standard distance from the signal source. At, respectively obtaining demodulated audio analog signals output by the left earphone and the right earphone, and digitally processing the demodulated audio analog signals of the left earphone and the right earphone to obtain spectrum data of the left earphone and the right earphone;
[0017] The digital processing of analog signals specifically includes: pre-emphasis, framing with a frame length of 20ms and a frame shift of 10ms, and then converting the demodulated audio analog signal from a time domain signal into a spectrum signal by adding a Hamming window and fast Fourier decomposition. This is conducive to fully retaining the audio features while ensuring the calculation speed.
[0018] Based on the frequency value, the spectrum data of the left earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ;
[0019] Based on the frequency value, the spectrum data of the right earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ;
[0020] Frequency band dataset obtained by dividing the spectrum data of left and right earphones The corresponding frequency band centroid and frequency band flux are calculated respectively, and the calculation expressions are as follows:
[0021] ;
[0022] ;
[0023] Among them, i represents the serial number of the left earphone and the right earphone, j represents the serial number of the frequency band, Indicates the frequency band centroid of the jth frequency band corresponding to the i-numbered earphone, represents the frequency band flux of the jth frequency band corresponding to the headphone with serial number i, N represents the frame length, represents the frequency index, n represents the frame index, represents the spectrum amplitude, Represents the spectral component with frequency k in the nth frame.
[0024] Among them, the deviation standards of frequency band center of gravity and frequency band flux at low frequency, medium frequency and high frequency are not the same. Frequency band division is helpful to more accurately reflect the impact of frequency band center of gravity deviation and frequency band flux deviation on sound quality retention.
[0025] As a preferred solution of the headphone quality assessment method described in the present invention, wherein: a secondary assessment is performed based on the headphone audio fidelity quality, the frequency band center of gravity and the reference frequency band center of gravity are differentially weighted averaged to obtain the frequency band center of gravity deviation of the left headphone and the right headphone, and the frequency band flux and the reference frequency band flux are differentially weighted averaged to obtain the frequency band center of gravity deviation of the left headphone and the right headphone;
[0026] The secondary evaluation result is obtained by threshold screening the frequency band center of gravity deviation and the frequency band flux deviation of the left earphone and the right earphone. The secondary evaluation result is judged to be of qualified quality if and only if the frequency band center of gravity deviation belongs to the first center of gravity deviation threshold interval and the frequency band flux deviation belongs to the second threshold interval; otherwise, the secondary evaluation result is judged to be of unqualified quality.
[0027] Among them, after receiving the test audio signal, the earphone is demodulated, rendered, mixed and other processes are performed by the internal chip of the earphone, and then the demodulated audio analog signal is output. The demodulated audio analog signal is then amplifier-actuated to obtain the sound wave heard by the human ear. Considering that the frequency spectrum parameters of the test audio signal will undergo reasonable changes after demodulation, rendering and mixing, the calculation of the frequency band center of gravity deviation and the frequency band flux deviation is selected as reference quantities, which is conducive to fully measuring the sound quality fidelity.
[0028] As a preferred solution of the headphone quality evaluation method described in the present invention, the headphone stereo effect is evaluated, the inter-aural loudness difference is obtained by performing time domain spectrum calculation on the demodulated audio analog signals of the left and right ears, and the high-frequency band data obtained by dividing the spectrum data of the left headphone is obtained. The high-frequency band data obtained by dividing the spectrum data of the right earphone The frequency domain product calculation is performed to obtain the spectral cross-correlation function, the interaural time difference is calculated based on the maximum time delay of the cross-correlation function and the spectral sampling frequency, and the stereo coefficient is calculated through the interaural loudness difference and the interaural time.
[0029] As a preferred scheme of the headphone quality evaluation method described in the present invention, the active noise reduction quality of the headphone is evaluated, the active noise reduction analog signal is digitized to obtain the active noise reduction spectrum data of the left headphone and the right headphone, the spectrum probability density function is calculated based on the active noise reduction spectrum data, the short-time spectrum entropy is calculated by the spectrum probability density function, the anti-phase noise is extracted by the short-time spectrum entropy, the anti-phase noise is superimposed with the test environment noise to obtain the anechoic noise, and the active noise reduction coefficient is calculated by the average energy density of the sound field of the anechoic noise.
[0030] As a preferred solution of the headphone quality evaluation method described in the present invention, the calculated packet loss rate, bit error rate, frequency band center of gravity deviation, frequency band flux deviation, stereo coefficient and active noise reduction coefficient are input into the index weighted evaluation model to calculate the final evaluation result of the headphone quality, and the calculation expression is:
[0031] ;
[0032] Among them, Q represents the final evaluation result, v represents the distance index, represents the packet loss rate weight, Indicates the average packet loss rate of the left and right earphones. represents the expected packet loss rate, represents the bit error rate weight, Indicates the average bit error rate of the left and right earphones. represents the expected bit error rate, represents the frequency band centroid deviation weight, represents the absolute value of the band center of gravity deviation, g represents the center of gravity deviation parameter, represents the frequency band flux deviation weight, represents the absolute value of the frequency band flux deviation, h represents the flux deviation parameter, represents the stereo weight, represents the stereo coefficient, represents the active noise reduction weight, Represents the active noise reduction coefficient.
[0033] A headset quality evaluation system, specifically comprising: an interference module, a test module, a data processing module and a terminal module;
[0034] The interference module is used to output interference signals and interference noise;
[0035] The test module is used to transmit test sound source data to the earphone and adjust the distance between the earphone and the signal source end, and obtain the data packet received by the earphone, the demodulated analog signal output by the earphone and the active noise reduction analog signal;
[0036] The data processing module is used to calculate the test bit error rate and the test packet loss rate of the first received data packet and the second received data packet, and evaluate the quality of the headset once according to the expected bit error rate and the expected packet loss rate. If the evaluation result is that the quality is unqualified, the evaluation is stopped and the final evaluation result is output as unqualified quality;
[0037] The demodulated audio analog signal is digitized, a frequency band data set is obtained by frequency band division, and the frequency band centroid deviation and frequency band flux deviation are calculated, and the quality of the earphone is re-evaluated. If the result of the re-evaluation is that the quality is unqualified, the evaluation is stopped, and the final evaluation result is output as unqualified quality;
[0038] The stereo coefficient is calculated by demodulating the audio analog signal and the high-frequency band data, the active noise reduction coefficient is calculated by the active noise reduction analog signal, and the final evaluation result of the headphone quality is calculated by the indicator weighted evaluation model;
[0039] Based on the frequency value, the spectrum data of the left earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ;
[0040] Based on the frequency value, the spectrum data of the right earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ;
[0041] Frequency band dataset obtained by dividing the spectrum data of left and right earphones The corresponding frequency band centroid and frequency band flux are calculated respectively, and the calculation expressions are as follows:
[0042] ;
[0043] ;
[0044] Among them, i represents the serial number of the left earphone and the right earphone, j represents the serial number of the frequency band, Indicates the frequency band centroid of the jth frequency band corresponding to the i-numbered earphone, represents the frequency band flux of the jth frequency band corresponding to the headphone with serial number i, N represents the frame length, represents the frequency index, n represents the frame index, represents the spectrum amplitude, Indicates the spectral component with frequency k in the nth frame;
[0045] The calculated packet loss rate, bit error rate, frequency band center of gravity deviation, frequency band flux deviation, stereo coefficient and active noise reduction coefficient are input into the index weighted evaluation model to calculate the final evaluation result of the headphone quality. The calculation expression is:
[0046] ;
[0047] Among them, Q represents the final evaluation result, v represents the distance index, represents the packet loss rate weight, Indicates the average packet loss rate of the left and right earphones. represents the expected packet loss rate, represents the bit error rate weight, Indicates the average bit error rate of the left and right earphones. represents the expected bit error rate, represents the frequency band centroid deviation weight, represents the absolute value of the band center of gravity deviation, g represents the center of gravity deviation parameter, represents the frequency band flux deviation weight, represents the absolute value of the frequency band flux deviation, h represents the flux deviation parameter, represents the stereo weight, represents the stereo coefficient, represents the active noise reduction weight, represents the active noise reduction coefficient;
[0048] The terminal module is used to input execution commands and display system status and feedback in real time.
[0049] The beneficial effects of the present invention are as follows: the signal interference source is used to fully examine the signal reception quality of the headset under interference conditions; the frequency band division is used to accurately examine the sound quality fidelity level of the headset; the headsets with unqualified quality are screened out through the primary quality evaluation and the secondary quality evaluation and further evaluation is stopped, which is conducive to reducing the calculation complexity and evaluation time. The stereo coefficient and active noise reduction coefficient are used as bonus items for the headset through the index weighted evaluation model, which fully reflects the difference between high-quality headsets and ordinary headsets, and is conducive to comprehensive and comprehensive evaluation of the quality of the headset. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic diagram of a basic flow chart of a method for evaluating headphone quality according to an embodiment of the present invention;
[0051] Figure 2 A schematic diagram of a headphone quality assessment system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings. It is obvious that the described embodiments are only part of the embodiments of the present invention, but not all of the embodiments.
[0053] Example 1, reference Figure 1 , is an embodiment of the present invention, and provides a method for evaluating headphone quality, which specifically includes:
[0054] The technical problem solved by the present invention is that the traditional headphone quality evaluation method does not fully consider the data reception quality and sound quality level of wireless headphones under signal interference and noise interference conditions, and does not divide the spectrum according to low frequency, medium frequency and high frequency when analyzing the output analog signal of the wireless headphones, but performs overall spectrum analysis, which lacks accuracy. At the same time, there is a lack of comprehensive investigation of the headphone sound quality and the active noise reduction capability of the headphone.
[0055] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0056] Step S1, pairing the earphone with the signal source end, transmitting a test audio signal to the earphone through the signal source end, placing the earphone at a standard distance from the signal source end, turning on a signal interference source, obtaining first received data packets of the left earphone and the right earphone respectively, turning off the signal interference source, obtaining demodulated audio analog signals output by the left earphone and the right earphone respectively, turning on a noise interference source, and obtaining active noise reduction analog signals output by the left earphone and the right earphone respectively;
[0057] The signal interference source is a radio frequency signal generator, which is used to output interference signals in the 2.4 GHz frequency band, and the modulation mode is Gaussian frequency shift keying.
[0058] The earphones are placed at a critical distance from the signal source, and second received data packets of the left earphone and the right earphone are obtained respectively;
[0059] Step S2, calculating a test bit error rate and a test packet loss rate based on the first received data packet and the second received data packet, evaluating the quality of the headset once by using the expected bit error rate and the expected packet loss rate, and if the evaluation result is that the quality is unqualified, stopping the evaluation and outputting a final evaluation result that the quality is unqualified;
[0060] Step S3, digitally processing the demodulated audio analog signal, obtaining a frequency band data set by frequency band division and calculating the frequency band center of gravity deviation and frequency band flux deviation, and performing a secondary evaluation on the earphone quality. If the secondary evaluation result is that the quality is unqualified, the evaluation is stopped and the final evaluation result is output as unqualified quality;
[0061] Step S4, calculating the stereo coefficient by demodulating the audio analog signal and the high-frequency band data, calculating the active noise reduction coefficient by the active noise reduction analog signal, and calculating the final evaluation result of the headphone quality by the indicator weighted evaluation model.
[0062] In this embodiment, the earphone is paired with the signal source end, a preset test audio signal is transmitted to the earphone through the signal source end, the signal interference source is turned on, and an interference signal of the 2.4khz frequency band is output through the RF signal generator to obtain the left earphone and the right earphone at the standard distance. The first received data packet and the critical distance The second received data packet at.
[0063] In this embodiment, an evaluation is performed based on the headphone signal reception quality, and a first test packet loss rate and a first test bit error rate, a second test packet loss rate, and a second test bit error rate are calculated through the first received data packet and the second received data packet of the left headphone and the right headphone, and a first expected bit error rate and a second expected bit error rate are calculated through the expected bit error rate model;
[0064] The evaluation result is obtained by threshold screening through the expected bit error rate and the expected packet loss rate. The evaluation result is determined to be of qualified quality only when the first test packet loss rate is less than the first expected packet loss rate, the second test packet loss rate is less than the second expected packet loss rate, the first test bit error rate is less than the first expected bit error rate, and the second test bit error rate is less than the second expected bit error rate. Otherwise, the evaluation result is determined to be of unqualified quality. The calculation expression of the expected bit error rate is:
[0065] ;
[0066] in, represents the expected bit error rate, represents the signal-to-noise ratio, c represents the distance coefficient, e represents the natural constant, t represents the order, T represents the maximum order, represents the t-order modified Bessel function, represents the 0th order modified Bessel function, m represents the modulation sum coefficient, and n represents the modulation difference coefficient.
[0067] In this embodiment, the earphone is placed at a standard distance from the signal source. At, respectively obtaining demodulated audio analog signals output by the left earphone and the right earphone, and digitally processing the demodulated audio analog signals of the left earphone and the right earphone to obtain spectrum data of the left earphone and the right earphone;
[0068] The digital processing of analog signals specifically includes: pre-emphasis, framing with a frame length of 20ms and a frame shift of 10ms, and then converting the demodulated audio analog signal from a time domain signal into a spectrum signal by adding a Hamming window and fast Fourier decomposition. This is conducive to fully retaining the audio features while ensuring the calculation speed.
[0069] Based on the frequency value, the spectrum data of the left earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ;
[0070] Based on the frequency value, the spectrum data of the right earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ;
[0071] Frequency band dataset obtained by dividing the spectrum data of left and right earphones The corresponding frequency band centroid and frequency band flux are calculated respectively, and the calculation expressions are as follows:
[0072] ;
[0073] ;
[0074] Among them, i represents the serial number of the left earphone and the right earphone, j represents the serial number of the frequency band, Indicates the frequency band centroid of the jth frequency band corresponding to the i-numbered earphone, represents the frequency band flux of the jth frequency band corresponding to the headphone with serial number i, N represents the frame length, represents the frequency index, n represents the frame index, represents the spectrum amplitude, Represents the spectral component with frequency k in the nth frame.
[0075] Among them, the deviation standards of frequency band center of gravity and frequency band flux at low frequency, medium frequency and high frequency are not the same. Frequency band division is helpful to more accurately reflect the impact of frequency band center of gravity deviation and frequency band flux deviation on sound quality retention.
[0076] In this embodiment, a secondary evaluation is performed based on the audio fidelity quality of the earphone, and the frequency band center of gravity deviation of the left earphone and the right earphone is obtained by performing a differential weighted average calculation on the frequency band center of gravity and the reference frequency band center of gravity, and the frequency band flux is calculated by performing a differential weighted average calculation on the frequency band flux and the reference frequency band flux to obtain the frequency band center of gravity deviation of the left earphone and the right earphone;
[0077] The secondary evaluation result is obtained by threshold screening the frequency band center of gravity deviation and the frequency band flux deviation of the left earphone and the right earphone. The secondary evaluation result is judged to be of qualified quality if and only if the frequency band center of gravity deviation belongs to the first center of gravity deviation threshold interval and the frequency band flux deviation belongs to the second threshold interval; otherwise, the secondary evaluation result is judged to be of unqualified quality.
[0078] Among them, after receiving the test audio signal, the earphone is demodulated, rendered, mixed and other processes are performed by the internal chip of the earphone, and then the demodulated audio analog signal is output. The demodulated audio analog signal is then amplifier-actuated to obtain the sound wave heard by the human ear. Considering that the frequency spectrum parameters of the test audio signal will undergo reasonable changes after demodulation, rendering and mixing, the calculation of the frequency band center of gravity deviation and the frequency band flux deviation is selected as reference quantities, which is conducive to fully measuring the sound quality fidelity.
[0079] In this embodiment, the quality of the stereo effect of the headphone is evaluated. The inter-aural loudness difference is obtained by performing time domain spectrum calculation on the demodulated audio analog signals of the left and right ears, and the high-frequency band data obtained by dividing the spectrum data of the left headphone is obtained. The high-frequency band data obtained by dividing the spectrum data of the right earphone The frequency domain product calculation is performed to obtain the spectral cross-correlation function, the interaural time difference is calculated based on the maximum time delay of the cross-correlation function and the spectral sampling frequency, and the stereo coefficient is calculated through the interaural loudness difference and the interaural time.
[0080] In this embodiment, among other things: the active noise reduction quality of the earphones is evaluated, the active noise reduction analog signal is digitized to obtain active noise reduction spectrum data of the left earphone and the right earphone, a spectral probability density function is calculated based on the active noise reduction spectrum data, a short-time spectrum entropy is calculated by the spectral probability density function, an inverted noise is extracted by the short-time spectrum entropy, the inverted noise is superimposed with the test environment noise to obtain the anechoic noise, and the active noise reduction coefficient is calculated by the average energy density of the sound field of the anechoic noise.
[0081] In this embodiment, the calculated packet loss rate, bit error rate, frequency band center of gravity deviation, frequency band flux deviation, stereo coefficient and active noise reduction coefficient are input into the index weighted evaluation model to calculate the final evaluation result of the headphone quality, and the calculation expression is:
[0082] ;
[0083] Among them, Q represents the final evaluation result, v represents the distance index, represents the packet loss rate weight, Indicates the average packet loss rate of the left and right earphones. represents the expected packet loss rate, represents the bit error rate weight, Indicates the average bit error rate of the left and right earphones. represents the expected bit error rate, represents the frequency band centroid deviation weight, represents the absolute value of the band center of gravity deviation, g represents the center of gravity deviation parameter, represents the frequency band flux deviation weight, represents the absolute value of the frequency band flux deviation, h represents the flux deviation parameter, represents the stereo weight, represents the stereo coefficient, represents the active noise reduction weight, Represents the active noise reduction coefficient.
[0084] Among them, the packet loss rate and bit error rate reflect the quality of the headphone receiving signal, and the frequency band center of gravity deviation and frequency band flux deviation reflect the fidelity of the headphone sound quality. The two are the basic core of the headphone quality. Through the primary quality evaluation and the secondary quality evaluation, the headphones with unqualified quality in the two are screened out and further evaluation is stopped, which is conducive to reducing the calculation complexity and evaluation time. The indicator weighted evaluation model uses the stereo coefficient and active noise reduction coefficient as the bonus items of the headphone, which is conducive to fully reflecting the difference between high-quality headphones and ordinary headphones.
[0085] Example 2, reference Figure 2 , as an embodiment of the present invention, provides a headphone quality evaluation system, specifically comprising: an interference module, a test module, a data processing module and a terminal module;
[0086] The interference module is used to output interference signals and interference noise;
[0087] The test module is used to transmit test sound source data to the earphone and adjust the distance between the earphone and the signal source end, and obtain the data packet received by the earphone, the demodulated analog signal output by the earphone and the active noise reduction analog signal;
[0088] The data processing module is used to calculate the test bit error rate and the test packet loss rate of the first received data packet and the second received data packet, and evaluate the quality of the headset once according to the expected bit error rate and the expected packet loss rate. If the evaluation result is that the quality is unqualified, the evaluation is stopped and the final evaluation result is output as unqualified quality;
[0089] The demodulated audio analog signal is digitized, a frequency band data set is obtained by frequency band division, and the frequency band centroid deviation and frequency band flux deviation are calculated, and the quality of the earphone is re-evaluated. If the result of the re-evaluation is that the quality is unqualified, the evaluation is stopped, and the final evaluation result is output as unqualified quality;
[0090] The stereo coefficient is calculated by demodulating the audio analog signal and the high-frequency band data, the active noise reduction coefficient is calculated by the active noise reduction analog signal, and the final evaluation result of the headphone quality is calculated by the indicator weighted evaluation model;
[0091] Based on the frequency value, the spectrum data of the left earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ;
[0092] Based on the frequency value, the spectrum data of the right earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ;
[0093] Frequency band dataset obtained by dividing the spectrum data of left and right earphones The corresponding frequency band centroid and frequency band flux are calculated respectively, and the calculation expressions are as follows:
[0094] ;
[0095] ;
[0096] Among them, i represents the serial number of the left earphone and the right earphone, j represents the serial number of the frequency band, Indicates the frequency band centroid of the jth frequency band corresponding to the i-numbered earphone, represents the frequency band flux of the jth frequency band corresponding to the headphone with serial number i, N represents the frame length, represents the frequency index, n represents the frame index, represents the spectrum amplitude, Indicates the spectral component with frequency k in the nth frame;
[0097] The calculated packet loss rate, bit error rate, frequency band center of gravity deviation, frequency band flux deviation, stereo coefficient and active noise reduction coefficient are input into the index weighted evaluation model to calculate the final evaluation result of the headphone quality. The calculation expression is:
[0098] ;
[0099] Among them, Q represents the final evaluation result, v represents the distance index, represents the packet loss rate weight, Indicates the average packet loss rate of the left and right earphones. represents the expected packet loss rate, represents the bit error rate weight, Indicates the average bit error rate of the left and right earphones. represents the expected bit error rate, represents the frequency band centroid deviation weight, represents the absolute value of the band center of gravity deviation, g represents the center of gravity deviation parameter, represents the frequency band flux deviation weight, represents the absolute value of the frequency band flux deviation, h represents the flux deviation parameter, represents the stereo weight, represents the stereo coefficient, represents the active noise reduction weight, represents the active noise reduction coefficient;
[0100] The terminal module is used to input execution commands and display system status and feedback in real time.
[0101] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the earphone quality evaluation system described in Example 2 is executed.
[0102] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0103] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A method for evaluating headphone quality, It is characterized in that The steps include: Step S1, pairing the earphone with the signal source end, transmitting a test audio signal to the earphone through the signal source end, placing the earphone at a standard distance from the signal source end, turning on a signal interference source, obtaining first received data packets of the left earphone and the right earphone respectively, turning off the signal interference source, obtaining demodulated audio analog signals output by the left earphone and the right earphone respectively, turning on a noise interference source, and obtaining active noise reduction analog signals output by the left earphone and the right earphone respectively; The earphones are placed at a critical distance from the signal source, and second received data packets of the left earphone and the right earphone are obtained respectively; Step S2, calculating a test bit error rate and a test packet loss rate based on the first received data packet and the second received data packet, evaluating the quality of the headset once by using the expected bit error rate and the expected packet loss rate, and if the evaluation result is that the quality is unqualified, stopping the evaluation and outputting the final evaluation result as unqualified quality; Step S3, digitally processing the demodulated audio analog signal, obtaining a frequency band data set by frequency band division and calculating the frequency band center of gravity deviation and frequency band flux deviation, and performing a secondary evaluation on the earphone quality. If the secondary evaluation result is that the quality is unqualified, the evaluation is stopped and the final evaluation result is output as unqualified quality; Step S4, calculating a stereo coefficient by demodulating the audio analog signal and the high-frequency band data, calculating an active noise reduction coefficient by using the active noise reduction analog signal, and calculating a final evaluation result of the headphone quality by using an indicator weighted evaluation model; Place the headset at a standard distance from the signal source. At, respectively obtaining demodulated audio analog signals output by the left earphone and the right earphone, and digitally processing the demodulated audio analog signals of the left earphone and the right earphone to obtain spectrum data of the left earphone and the right earphone; Based on the frequency value, the spectrum data of the left earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ; Based on the frequency value, the spectrum data of the right earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ; Frequency band dataset obtained by dividing the spectrum data of left and right earphones The corresponding frequency band centroid and frequency band flux are calculated respectively, and the calculation expressions are as follows: ; ; Among them, i represents the serial number of the left earphone and the right earphone, j represents the serial number of the frequency band, Indicates the frequency band centroid of the jth frequency band corresponding to the i-numbered earphone, represents the frequency band flux of the jth frequency band corresponding to the headphone with serial number i, N represents the frame length, represents the frequency index, n represents the frame index, represents the spectrum amplitude, Indicates the spectral component with frequency k in the nth frame; The calculated packet loss rate, bit error rate, frequency band center of gravity deviation, frequency band flux deviation, stereo coefficient and active noise reduction coefficient are input into the index weighted evaluation model to calculate the final evaluation result of the headphone quality. The calculation expression is: ; Among them, Q represents the final evaluation result, v represents the distance index, represents the packet loss rate weight, Indicates the average packet loss rate of the left and right earphones. represents the expected packet loss rate, represents the bit error rate weight, Indicates the average bit error rate of the left and right earphones. represents the expected bit error rate, represents the frequency band centroid deviation weight, represents the absolute value of the band center of gravity deviation, g represents the center of gravity deviation parameter, represents the band flux deviation weight, represents the absolute value of the frequency band flux deviation, h represents the flux deviation parameter, represents the stereo weight, represents the stereo coefficient, represents the active noise reduction weight, Represents the active noise reduction coefficient.
2. A method for evaluating earphone quality as claimed in claim 1, Features: Pair the earphone with the signal source, transmit the preset test audio signal to the earphone through the signal source, turn on the signal interference source, output the interference signal of 2.4khz frequency band through the RF signal generator, and obtain the left earphone and right earphone at the standard distance respectively. The first received data packet and the critical distance The second received data packet at.
3. A method for evaluating earphone quality as claimed in claim 2, Features: An evaluation is performed based on the headphone signal reception quality, a first test packet loss rate and a first test bit error rate, a second test packet loss rate and a second test bit error rate are calculated through the first received data packet and the second received data packet of the left headphone and the right headphone, and a first expected bit error rate and a second expected bit error rate are calculated through the expected bit error rate model; The evaluation result is obtained by threshold screening through the expected bit error rate and the expected packet loss rate. The evaluation result is determined to be of qualified quality only when the first test packet loss rate is less than the first expected packet loss rate, the second test packet loss rate is less than the second expected packet loss rate, the first test bit error rate is less than the first expected bit error rate, and the second test bit error rate is less than the second expected bit error rate. Otherwise, the evaluation result is determined to be of unqualified quality. The calculation expression of the expected bit error rate is: ; in, represents the expected bit error rate, represents the signal-to-noise ratio, c represents the distance coefficient, e represents the natural constant, t represents the order, T represents the maximum order, represents the t-order modified Bessel function, represents the 0th order modified Bessel function, m represents the modulation sum coefficient, and n represents the modulation difference coefficient.
4. A method for evaluating earphone quality as claimed in claim 1, Features: A secondary evaluation is performed based on the audio fidelity quality of the earphones, and a differential weighted average calculation is performed on the frequency band center of gravity and the reference frequency band center of gravity to obtain the frequency band center of gravity deviation of the left earphone and the right earphone, and a differential weighted average calculation is performed on the frequency band flux and the reference frequency band flux to obtain the frequency band center of gravity deviation of the left earphone and the right earphone; The secondary evaluation result is obtained by threshold screening the frequency band center of gravity deviation and the frequency band flux deviation of the left earphone and the right earphone. The secondary evaluation result is judged to be of qualified quality if and only if the frequency band center of gravity deviation belongs to the first center of gravity deviation threshold interval and the frequency band flux deviation belongs to the second threshold interval; otherwise, the secondary evaluation result is judged to be of unqualified quality.
5. The headphone quality assessment method according to claim 1, Features: The quality of the stereo effect of the headphones is evaluated by calculating the time domain spectrum of the demodulated audio analog signals of the left and right ears to obtain the inter-aural loudness difference, and the high-frequency band data is obtained by dividing the spectrum data of the left headphone The high-frequency band data obtained by dividing the spectrum data of the right earphone The frequency domain product calculation is performed to obtain the spectral cross-correlation function, the interaural time difference is calculated based on the maximum time delay of the cross-correlation function and the spectral sampling frequency, and the stereo coefficient is calculated through the interaural loudness difference and the interaural time.
6. A method for evaluating earphone quality as claimed in claim 1, Features: The active noise reduction quality of the earphones is evaluated, the active noise reduction analog signal is digitized to obtain the active noise reduction spectrum data of the left earphone and the right earphone, the spectrum probability density function is calculated based on the active noise reduction spectrum data, the short-time spectrum entropy is calculated by the spectrum probability density function, the anti-phase noise is extracted by the short-time spectrum entropy, the anti-phase noise is superimposed with the test environment noise to obtain the anechoic noise, and the active noise reduction coefficient is calculated by the average energy density of the sound field of the anechoic noise.
7. A headphone quality assessment system, include: Interference module, test module, data processing module and terminal module; The interference module is used to output interference signals and interference noise; The test module is used to transmit test sound source data to the earphone and adjust the distance between the earphone and the signal source end, and obtain the data packet received by the earphone, the demodulated analog signal output by the earphone and the active noise reduction analog signal; The data processing module is used to calculate the test bit error rate and the test packet loss rate of the first received data packet and the second received data packet, and evaluate the quality of the headset once according to the expected bit error rate and the expected packet loss rate. If the evaluation result is that the quality is unqualified, the evaluation is stopped and the final evaluation result is output as unqualified quality; The demodulated audio analog signal is digitized, a frequency band data set is obtained by frequency band division, and the frequency band centroid deviation and frequency band flux deviation are calculated, and the quality of the earphone is re-evaluated. If the result of the re-evaluation is that the quality is unqualified, the evaluation is stopped, and the final evaluation result is output as unqualified quality; The stereo coefficient is calculated by demodulating the audio analog signal and the high-frequency band data, the active noise reduction coefficient is calculated by the active noise reduction analog signal, and the final evaluation result of the headphone quality is calculated by the indicator weighted evaluation model; Based on the frequency value, the spectrum data of the left earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ; Based on the frequency value, the spectrum data of the right earphone is divided into low frequency, medium frequency and high frequency to obtain three frequency band data , and ; Frequency band dataset obtained by dividing the spectrum data of left and right earphones The corresponding frequency band centroid and frequency band flux are calculated respectively, and the calculation expressions are as follows: ; ; Among them, i represents the serial number of the left earphone and the right earphone, j represents the serial number of the frequency band, Indicates the frequency band centroid of the jth frequency band corresponding to the i-numbered earphone, represents the frequency band flux of the jth frequency band corresponding to the headphone with serial number i, N represents the frame length, represents the frequency index, n represents the frame index, represents the spectrum amplitude, Indicates the spectral component with frequency k in the nth frame; The calculated packet loss rate, bit error rate, frequency band center of gravity deviation, frequency band flux deviation, stereo coefficient and active noise reduction coefficient are input into the index weighted evaluation model to calculate the final evaluation result of the headphone quality. The calculation expression is: ; Among them, Q represents the final evaluation result, v represents the distance index, represents the packet loss rate weight, Indicates the average packet loss rate of the left and right earphones. represents the expected packet loss rate, represents the bit error rate weight, Indicates the average bit error rate of the left and right earphones. represents the expected bit error rate, represents the frequency band centroid deviation weight, represents the absolute value of the band center of gravity deviation, g represents the center of gravity deviation parameter, represents the band flux deviation weight, represents the absolute value of the frequency band flux deviation, h represents the flux deviation parameter, represents the stereo weight, represents the stereo coefficient, represents the active noise reduction weight, represents the active noise reduction coefficient; The terminal module is used to input execution commands and display system status and feedback in real time.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the headphone quality assessment method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Earphone quality assessment method based on psychoacoustics
CN116055975A
Audio noise reduction method for Bluetooth earphone and Bluetooth earphone
CN117412214A
System, device and method for assessing a fit quality of an earpiece
WO2019000089A1
