Headphone testing methods, headphone testing systems, electronic devices and storage media

By directly collecting and analyzing ear canal audio data in the headphone device, the problem of low accuracy in active noise cancellation testing of headphones in existing technologies is solved, and efficient and accurate headphone performance evaluation is achieved.

CN115150731BActive Publication Date: 2026-03-10SHANGHAI WU QI MICROELECTRONICS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

Existing methods for testing the active noise cancellation performance of headphone devices rely on artificial ear simulation, resulting in low test accuracy and an inability to truly reflect the human ear's wearing environment, necessitating additional compensation processing.

Method used

Audio data is collected directly in the ear canal of the test subject using an earphone device, and then analyzed by an analysis device to directly obtain performance data, reduce interference from external devices, and improve test accuracy.

Benefits of technology

It enables efficient and accurate testing of headphone performance in a real ear canal environment, reducing reliance on external devices and the need for data compensation, and improving testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115150731B_ABST
    Figure CN115150731B_ABST
Patent Text Reader

Abstract

This application provides a headphone testing method, a headphone testing system, an electronic device, and a storage medium, relating to the field of headphone technology. The method is applied to both a headphone device and an analysis device. The method applied to the headphone device includes: configuring a target noise reduction mode according to a received configuration command; when the headphone device applies the target noise reduction mode, collecting corresponding audio data in the ear canal of the person being tested, wherein the audio data is used to detect the performance of the headphone device; and sending the audio data to the analysis device. The method applied to the analysis device includes: sending a configuration command to a connected headphone device; receiving audio data sent by the headphone device; and determining the performance data of the headphone device based on the audio data. This application can collect data from the actual ear canal in real time to test and analyze various headphone performance characteristics, enabling online testing of various headphone device performance characteristics, thus improving the accuracy and efficiency of the test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of headphone technology, and more specifically, to a headphone testing method, a headphone testing system, an electronic device, and a storage medium. Background Technology

[0002] Most headphones nowadays have active noise cancellation. When active noise cancellation is enabled, the headphones record external noise signals through a microphone, process them through an internal filter, and then play them back through the speaker. By properly designing the filter's frequency response, noise signals perceived by the human ear can be reduced, thus achieving the noise cancellation effect.

[0003] As users' demands for noise cancellation functionality in headphones increase, the noise cancellation effect of headphones is typically tested first. The test data is then used to evaluate and compare different noise cancellation solutions, thereby determining the headphone's performance. Currently, methods for testing the performance of active noise cancellation usually involve using an artificial ear instead of the human ear, requiring additional measuring equipment such as speakers and amplifiers. The listening experience during testing differs significantly from that of actual human ears, failing to simulate the real working environment of headphones. Additional methods are needed to compensate for the test data, resulting in relatively low accuracy in current headphone performance testing. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a headphone testing method, headphone testing system, electronic device and storage medium to improve the problem of low accuracy in testing the performance of headphone devices in the prior art.

[0005] To address the aforementioned problems, in a first aspect, embodiments of this application provide a headphone testing method applied to headphone devices, the method comprising:

[0006] Configure the target noise reduction mode according to the received configuration instructions;

[0007] When the headphone device applies the target noise reduction mode, it collects corresponding audio data in the ear canal of the person being tested, wherein the audio data is data used to detect the performance of the headphone device;

[0008] The audio data is sent to the analysis device.

[0009] In the above implementation process, the headphone device under test can operate according to the configured target noise reduction mode corresponding to the configuration command. During operation, it can collect real audio data in the ear canal of the person being tested, effectively improving the validity and real-time nature of the audio data without the need for compensation or correction processing. By sending the audio data used to test the headphone device's performance to the analysis device, the analysis device can analyze various performance aspects of the headphone device based on the audio data, effectively improving the efficiency of headphone testing. No additional measuring equipment is required during testing; audio data from multiple noise reduction modes of the headphone device can be collected and sent separately to test various performance aspects of the headphone device, improving the accuracy and efficiency of the testing.

[0010] Optionally, the step of collecting corresponding audio data in the ear canal of the person being tested includes:

[0011] Set the corresponding data acquisition mode;

[0012] According to the data acquisition mode, the corresponding type of audio data is collected in the ear canal of the person being tested.

[0013] In the above implementation process, the headphone device can set the corresponding data acquisition mode according to the transmission instructions sent by the analysis device, thereby determining the data type to be collected from the actual ear canal of the person being tested. This allows for the acquisition of audio data composed of one or more types of data required for the test, enabling the headphone device's performance to be evaluated based on the audio data. By limiting the data type in the audio data during acquisition, it is possible to obtain the corresponding audio data for different performance tests of the headphone device, reducing interference from other data during performance testing and further improving the accuracy of headphone performance testing.

[0014] Optionally, after collecting corresponding audio data in the ear canal of the person being tested, the method further includes:

[0015] The audio data is processed to obtain performance data;

[0016] The performance data is sent to the analysis device for display.

[0017] In the above implementation process, the headphone device can also be equipped with a corresponding data processing module, which can directly process the collected audio data within the headphone device to determine performance data. Performance data represents the performance of the test items corresponding to the audio data. This performance data can be directly sent to the analysis equipment for display, enabling staff to acquire and view the performance data. This effectively improves the processing efficiency of the analysis equipment and the testing efficiency of the headphone performance, and also enhances the visibility of the performance data.

[0018] Optionally, the method further includes:

[0019] Receive adjustment instructions sent by the analysis device;

[0020] The current audio parameters are adjusted based on the adjustment command to obtain the adjusted audio parameters;

[0021] When the headphone device applies the adjusted audio parameters, it collects corresponding adjusted audio data in the ear canal of the person being tested.

[0022] The adjusted audio data is sent to the analysis device.

[0023] In the aforementioned implementation process, during testing, the headphone device can also adjust the current audio parameters according to the received adjustment instructions. While the headphone device is working with the adjusted audio parameters, it can continue to collect corresponding types of adjusted audio data and send the new adjusted audio data to the analysis device. The analysis device can then continue to test various performance aspects of the headphone device after the adjustment based on the adjusted audio data. Real-time feedback can be provided during the testing process, and if the headphone performance test results are unsatisfactory, the headphone device's performance can be further optimized through multiple data collection and adjustments.

[0024] Secondly, embodiments of this application also provide a headphone testing method, applied to an analysis device, the method comprising:

[0025] Send configuration commands to the connected headset device;

[0026] Receive audio data sent by the headphone device, wherein the audio data is data used to detect the performance of the headphone device;

[0027] The performance data of the headphone device is determined based on the audio data.

[0028] In the above implementation process, the analysis device can determine the corresponding configuration instructions according to the test items to be tested, and send the instructions to the connected headphone device. After the headphone device is configured with the target noise reduction mode and collects and processes the data, it obtains the audio data sent by the headphone device for testing the headphone device's performance. By analyzing the audio data, the performance data corresponding to the current test item of the headphone device can be determined, thereby realizing the testing of multiple performance aspects of the headphone device without the need for audio data compensation and correction processing, effectively improving the efficiency of headphone testing. No additional measuring equipment is required during testing; data from multiple noise reduction modes of the headphone device can be collected and received separately to test multiple performance aspects, improving the accuracy and efficiency of testing.

[0029] Optionally, after determining the performance data of the headphone device based on the audio data, the method further includes:

[0030] Determine whether the performance data meets the performance indicators corresponding to the headphone device;

[0031] If the performance data does not meet the performance indicators, a corresponding adjustment instruction is generated based on the performance data.

[0032] The adjustment command is sent to the headphone device.

[0033] In the above implementation process, by comparing performance data with the corresponding performance indicators of the headphone device, it is possible to determine whether the performance data meets the usage requirements of the headphone device. If it does not meet the requirements, it indicates that the current performance of the headphone device is poor, and corresponding adjustment instructions can be generated and sent to notify and provide feedback on the judgment result and adjustment method. During the testing process, the next test can be performed based on the previous test results, effectively improving the accuracy and real-time performance of the analysis device in controlling the test.

[0034] Optionally, after receiving the audio data sent by the headset device, the method further includes:

[0035] Receive adjustment audio data sent by the headphone device;

[0036] Based on the adjusted audio data, the current adjustment performance data of the headphone device is determined until the adjustment performance data meets the performance index.

[0037] In the above implementation process, the analysis device can receive new adjusted audio data sent by the headphone device based on adjustment commands. It then continues to analyze and determine the performance data of various aspects of the headphone device after parameter adjustments based on this adjusted audio data. By repeatedly judging and adjusting the performance data, the headphone device can continuously adjust until the current performance data meets the performance indicators. If the performance data meets these indicators, it means the headphone device's current performance is optimal and no further adjustment is needed. This effectively optimizes various performance aspects of the headphone device after testing, improving the user experience.

[0038] Optionally, before sending the configuration command to the connected headphone device, the method further includes:

[0039] Determine the test items for the headphone device;

[0040] Based on the test items, the data acquisition mode of the headphone device is determined;

[0041] Generate a corresponding transmission command based on the data acquisition mode, and send the transmission command to the headphone device.

[0042] In the above implementation process, since headphone performance testing involves different test items for the headphone device, and the types of audio data analyzed for different test items are also different, by determining the test items for the headphone device testing, a data acquisition mode that limits the data type can be determined. Corresponding transmission instructions are then generated based on the data acquisition mode and sent to the headphone device, enabling the headphone device to set the appropriate data acquisition mode for data acquisition and transmission according to the received transmission instructions. This allows for the corresponding limitation of the data type during transmission based on different test items, making it applicable to various test items, thereby improving the relevance of the received audio data, reducing interference from other data during various performance tests, and further improving the accuracy of headphone performance testing.

[0043] Thirdly, this application also provides an earphone testing system, which includes an analysis device and an earphone device, wherein the analysis device is communicatively connected to the earphone device;

[0044] The analysis device is used to send configuration instructions to the headphone device;

[0045] The headphone device is configured to configure a target noise reduction mode according to the received configuration instruction; when the headphone device applies the target noise reduction mode, it collects corresponding audio data in the ear canal of the person being tested, wherein the audio data is data used to detect the performance of the headphone device; and sends the audio data to an analysis device.

[0046] The analysis device is also used to receive the audio data sent by the headphone device; and to determine the performance data of the headphone device based on the audio data.

[0047] In the above implementation process, the system can test various performance characteristics of the headphone device through the headphone device under test and the analysis device. Moreover, the test is conducted on the real ear canal, which will not affect the environment in the real ear canal. No additional testing equipment is required, nor is it necessary to compensate or calibrate the collected audio data, which effectively improves the accuracy and efficiency of testing various performance characteristics of the headphone.

[0048] Fourthly, embodiments of this application also provide an electronic device, which includes a memory and a processor. The memory stores program instructions, and when the processor reads and runs the program instructions, it executes the steps in any of the above-described implementations of the headphone testing method.

[0049] Fifthly, embodiments of this application also provide a computer-readable storage medium storing computer program instructions, which, when read and executed by a processor, perform the steps in any of the above-described implementations of the headphone testing method.

[0050] In summary, this application provides a headphone testing method, headphone testing system, electronic device, and storage medium, which can collect and process data from the actual ear canal to test and analyze various headphone performance characteristics, and can test the performance of various noise reduction modes, thereby improving the accuracy and efficiency of testing. Attached Figure Description

[0051] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0052] Figure 1 A block diagram illustrating an electronic device provided in an embodiment of this application;

[0053] Figure 2 This is a schematic diagram of the operating environment of an earphone testing system provided in an embodiment of this application;

[0054] Figure 3 A schematic flowchart illustrating a headphone testing method for headphone devices provided in this application embodiment;

[0055] Figure 4 A detailed flowchart of step S430 provided for an embodiment of this application;

[0056] Figure 5 A schematic flowchart illustrating another headphone testing method applied to headphone devices provided in this application embodiment;

[0057] Figure 6 A schematic flowchart illustrating another headphone testing method applied to headphone devices provided in this application embodiment;

[0058] Figure 7 A schematic flowchart illustrating a headphone testing method applied to an analysis device, provided in an embodiment of this application;

[0059] Figure 8 A flowchart illustrating another headphone testing method applied to an analysis device, provided in an embodiment of this application;

[0060] Figure 9 A schematic flowchart illustrating another headphone testing method applied to an analysis device, provided in an embodiment of this application;

[0061] Figure 10 This is a flowchart illustrating another headphone testing method applied to an analysis device, provided as an embodiment of this application.

[0062] Icons: 100 - Electronic device; 111 - Memory; 112 - Memory controller; 113 - Processor; 114 - Peripheral interface; 115 - Communication unit; 116 - Display unit; 200 - Analysis device; 300 - Headphone device. Detailed Implementation

[0063] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.

[0064] With the continuous development of industrialization, noise pollution has gradually become a significant issue affecting people's lives. Currently, noise reduction can be mainly divided into two categories: active noise cancellation and passive noise cancellation. Passive noise cancellation is less effective at handling low-frequency noise, while active noise cancellation, by employing destructive interference, can effectively suppress low-frequency noise. As the theoretical and technical solutions to various problems become increasingly complex, the trend in active noise cancellation is towards more extensive algorithms to suppress complex noise patterns.

[0065] To improve the noise cancellation effect and user experience of headphones, current headphone devices, such as TWS (True Wireless Stereo) headphones, generally have active noise cancellation (ANC) function. ANC records external noise signals through a microphone, processes them through an internal filter, and then plays them out through the speaker. By properly designing the frequency response of the filter, the noise signal heard by the human ear can be reduced, thus achieving the effect of noise reduction.

[0066] To ensure optimal performance of headphones, their noise cancellation effectiveness must first be evaluated. This evaluation involves comparing different noise cancellation schemes and modes, such as measuring the ambient audio spectrum received by the headphones or measuring the headphone's secondary channels, thus comprehensively assessing the noise cancellation performance across various aspects of the headphone device.

[0067] In existing technologies, testing the active noise cancellation performance of headphone devices typically requires the use of external measuring equipment, such as speakers, artificial ears, and amplifiers. The testing process can be as follows: a specific audio signal is sent from an external speaker; an artificial ear is used to simulate the human ear; the headphone to be tested is placed on the artificial ear, which has a cylindrical cavity that mimics the acoustic characteristics of the human ear canal; a sound-collecting microphone is located at the position corresponding to the eardrum; and measurements and analysis are performed with the active noise cancellation function turned off and on to obtain the noise cancellation performance.

[0068] However, current testing methods require the cooperation of multiple external devices, resulting in high testing costs. Furthermore, since the ear canal information of artificial ears generally differs significantly from that of real human ears, additional methods are needed for compensation, leading to low accuracy in testing the performance of current headphone devices.

[0069] This application provides a headphone testing method applicable to electronic devices, such as headphone devices, servers, personal computers (PCs), tablet computers, smartphones, and personal digital assistants (PDAs) with logic computing functions. This method can accurately test various performance characteristics of headphone devices.

[0070] Optionally, please refer to Figure 1 , Figure 1 This is a block diagram illustrating an electronic device according to an embodiment of this application. The electronic device 100 may include a memory 111, a memory controller 112, a processor 113, a peripheral interface 114, a communication unit 115, and a display unit 116. Those skilled in the art will understand that... Figure 1The structure shown is for illustrative purposes only and does not limit the structure of the electronic device 100. For example, the electronic device 100 may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0071] The aforementioned memory 111, memory controller 112, processor 113, peripheral interface 114, communication unit 115, and display unit 116 are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines. The aforementioned processor 113 is used to execute executable modules stored in the memory.

[0072] The memory 111 can be, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), etc. The memory 111 stores programs. After receiving execution instructions, the processor 113 executes the programs. The methods executed by the electronic device 100 as defined in any embodiment of this application can be applied to the processor 113, or implemented by the processor 113.

[0073] The aforementioned processor 113 may be an integrated circuit chip with signal processing capabilities. The processor 113 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a digital signal processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor.

[0074] The peripheral interface 114 described above couples various input / output devices to the processor 113 and the memory 111. In some embodiments, the peripheral interface 114, the processor 113, and the memory controller 112 can be implemented on a single chip. In other instances, they can be implemented on separate chips.

[0075] The aforementioned communication unit 115 is used to provide communication connections with other devices, which can be via wired or wireless networks, or via Bluetooth. The communication unit 115 can be, but is not limited to, various types of communication chips, etc.

[0076] The aforementioned display unit 116 provides an interactive interface (e.g., a user interface) between the electronic device 100 and the user, or displays image data for the user's reference. In this embodiment, the display unit can be a liquid crystal display (LCD) or a touch display. If it is a touch display, it can be a capacitive touchscreen or a resistive touchscreen that supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations generated simultaneously from one or more locations on the touch display and pass the sensed touch operations to the processor for calculation and processing. In this embodiment, the display unit 116 can display performance data of the headphone device obtained during testing, etc.

[0077] Please see Figure 2 , Figure 2 This is a schematic diagram of the operating environment of an earphone testing system provided in an embodiment of this application, including the following interactive devices: an analysis device 200 and an earphone device 300. The analysis device 200 and the earphone device 300 are connected via a wired network, a wireless network, or Bluetooth for data transmission and interaction.

[0078] Optionally, an analysis device 200 can also be connected to multiple headphone devices 300, thereby simultaneously testing various performance characteristics of the multiple headphone devices 300.

[0079] It is worth noting that when the analysis device 200 communicates with the headset device 300, a wired or wireless connection can be established via a connecting device, such as a Bluetooth adapter. This device can simultaneously connect to both the analysis device 200 and the headset device 300 under test, thereby enabling data transmission. The connecting device can support bidirectional or unidirectional transmission. For example, the connecting device can be a standalone device or a component integrated into the analysis device 200.

[0080] Optionally, the analysis device 200 can be an electronic device with logic computing capabilities, such as an audio analyzer, server, personal computer, tablet computer, smartphone, or personal digital assistant, and can realize Bluetooth adapter connection and online testing software operation functions. It can send configuration commands to the headphone device 300 and receive audio data sent by the headphone device 300, thereby determining the performance data of the headphone device 300 based on the audio data, and thus accurately testing various performance aspects of the headphone device 300.

[0081] For example, when the analysis device 200 is conducting tests, its online testing functions may include: parsing the data stream sent by the headphone device under test 300, configuring the active noise cancellation scheme and parameters of the headphone device 300, calculating the frequency response of the audio data in real time, calculating the noise cancellation performance of the headphone device 300 in real time, and calculating the secondary channel response of the headphone device 300, etc. These multiple functions can run independently as part of multiple software programs on the analysis device 200, or they can run simultaneously within the same software.

[0082] Optionally, the headphone device 300 can configure a target noise reduction mode according to the received configuration instructions, and then operate in the target noise reduction mode. During operation, it collects corresponding audio data in the ear canal of the person being tested and sends the audio data used to test the performance of the headphone device to the analysis device 200. The headphone device 300 under test can directly collect and transmit data in the actual ear canal without the need for external measurement equipment or compensation and correction processing of the collected data, effectively improving the accuracy of the test data and thus enhancing the accuracy of headphone performance testing.

[0083] For example, the headphone device 300 is a noise-canceling headphone of various types, with structures such as an external ear microphone, an internal ear microphone, and an internal ear speaker. It can receive commands sent from the connected device and configure the noise-canceling mode according to the instructions. It can also transmit the audio signals from the external ear microphone (and / or) and the internal ear microphone (and / or) and the speaker to the analysis device 200 through an adapter, and can also transmit the data calculated inside the headphone chip to the analysis device 200 through an adapter.

[0084] Please see Figure 3 , Figure 3 This is a flowchart illustrating a headphone testing method for headphone devices provided in an embodiment of this application. The method may include steps S410-S440.

[0085] Step S410: Configure the target noise reduction mode according to the received configuration instructions.

[0086] Since headphones employ different noise cancellation schemes and corresponding noise cancellation modes when active noise cancellation is enabled, the headphone device can be configured with the appropriate noise cancellation scheme based on configuration commands sent by the analysis device to determine the target noise cancellation mode for testing.

[0087] In step S420, when the headphone device applies the target noise cancellation mode, it collects the corresponding audio data in the ear canal of the person being tested.

[0088] During testing, the headphone device should be worn snugly by the test subject according to normal usage habits, allowing the device to be positioned in the subject's ear and collect audio data from the subject's actual ear canal. The audio data is the sound data collected after the headphone device plays the target noise reduction mode in the test subject's ear canal.

[0089] Optionally, since different test items exist when testing the performance of headphone devices, and the data types required for analyzing different test items are also different, the audio data collected by the headphone device can be data collected according to the data types required for the test items, in order to test the performance of the headphone device. For example, the noise cancellation performance of the headphone device can be tested based on the audio data. In some application scenarios, after configuring the noise cancellation mode, other performance characteristics of the headphone device can also be tested based on the audio data, such as the attenuation of the played audio. Different performance characteristics of the headphone device can be tested according to the actual scenario and needs.

[0090] For example, different test items may include: tuning the active noise cancellation mode, testing the secondary channel of active noise cancellation, testing the headphone leakage frequency response, and analyzing and measuring the audio frequency response.

[0091] For example, it is possible to measure the noise reduction performance curve of headphone devices based on audio data, measure the audio spectrum received by different microphones of the headphones, measure the frequency response of the secondary channel in the ear canal, and measure the noise reduction performance of the headphones in various aspects such as wearing leakage.

[0092] Optionally, when the target noise cancellation mode is applied in headphone mode, all types of data can be collected. During transmission, the types of data collected can be filtered according to the data collection mode to use one or more types of data that meet the data collection mode as audio data for testing the performance of the headphone device.

[0093] Step S430: Send the audio data to the analysis device.

[0094] The headphone device can send the collected audio data to the analysis device via a communication connection, so that the analysis device can analyze various performance aspects of the headphone device based on the audio data. This eliminates the need for audio data compensation and correction processing, effectively improving the efficiency of headphone testing.

[0095] exist Figure 3 In the embodiments shown, when testing various performance characteristics of the headphone device, the influence of external devices on the measurement environment can be effectively reduced, the difference between the measurement and the actual use scenario can be eliminated, and data from various noise reduction modes of the headphone device can be collected and sent separately to test various performance characteristics, thereby improving the accuracy and efficiency of the test.

[0096] Optionally, please refer to Figure 4 , Figure 4 The following is a detailed flowchart of step S430 provided in an embodiment of this application. Step S420 may also include steps S421-S422.

[0097] Step S421: Set the corresponding data acquisition mode.

[0098] In order to send corresponding types of data for the test items, the headphone device can set the corresponding data acquisition mode to limit the data types collected.

[0099] Optionally, the headphone device can determine the test items during the test based on the transmission instructions sent from the analysis device, and thus set the corresponding data acquisition mode.

[0100] For example, when the test item is to debug the active noise cancellation mode, the data acquisition mode set in the headphone device can be to collect and transmit the sound data from the external ear microphone and the internal ear microphone in the audio data. When the test item is to test the secondary channel of active noise cancellation, the data acquisition mode set in the headphone device can be to collect and transmit the sound data from the internal ear microphone and the speaker in the audio data. When the test item is to test headphone leakage, the data acquisition mode set in the headphone device can be to collect and transmit the sound data from the external ear microphone and the speaker in the audio data. When the test item is to analyze and measure the audio frequency response, the data acquisition mode set in the headphone device can be to collect and transmit the sound data from a specified microphone or the speaker in the audio data.

[0101] Step S422: Collect the corresponding type of audio data in the ear canal of the person being tested according to the data acquisition mode.

[0102] Since the data acquisition mode set in the headphone device limits the data type during acquisition, one or more types of data of the corresponding type can be acquired according to the data acquisition mode to obtain audio data composed of one or more types of data of the data acquisition mode.

[0103] For example, when the headphone device's data acquisition mode is to acquire and transmit sound data from both the external and internal ear microphones in the audio data, the audio data consists of the sound data from both the external and internal ear microphones. When the headphone device's data acquisition mode is to acquire and transmit sound data from both the internal and external ear microphones in the audio data, the audio data consists of the sound data from both the internal and external ear microphones. When the headphone device's data acquisition mode is to acquire and transmit sound data from either a specific microphone or a specific speaker in the audio data, the audio data consists of the sound data from either the specific microphone or the specific speaker.

[0104] exist Figure 4 In this embodiment, by limiting the data type in the audio data, it is possible to obtain the audio data corresponding to the performance testing of different test items of the headphone device, reduce the interference of other data on various performance tests, and further improve the accuracy of headphone performance testing.

[0105] Optionally, please refer to Figure 5 , Figure 5 This is a flowchart illustrating another headphone testing method for headphone devices provided in an embodiment of this application. After step S420, the method may further include steps S440-S450.

[0106] Step S440: Process the audio data to obtain performance data.

[0107] The headphone device can also be equipped with a corresponding data processing module, which can directly process audio data within the headphone device to determine performance data. The performance data can represent the performance of the test items corresponding to the audio data.

[0108] Alternatively, the performance data obtained may vary depending on the specific test items.

[0109] For example, when the test item is to debug the active noise cancellation mode, the process can be as follows: In the first test, calculate the frequency response difference between the sound data from the in-ear microphone and the sound data from the out-of-ear microphone as the passive noise cancellation performance. In subsequent tests, calculate the frequency response difference between the sound data from the in-ear microphone and the sound data from the out-of-ear microphone as the total noise cancellation performance. The value obtained by subtracting the passive noise cancellation performance from the total noise cancellation performance is the active noise cancellation performance data. When the test item is to test the secondary channel of active noise cancellation, the process can be as follows: Calculate the frequency response difference between the sound data from the in-ear microphone and the sound data from the speaker to obtain the secondary channel response as performance data. When the test item is to test headphone leakage, the process can be as follows: Calculate the frequency response difference between the sound data from the out-of-ear microphone and the sound data from the speaker to obtain the leakage frequency response as performance data. When the test item is to analyze and measure the audio frequency response, the process can be as follows: Perform spectrum analysis based on the sound data from the specified microphone and the sound data from the speaker to obtain the audio spectrum as performance data.

[0110] Step S450: The performance data is sent to the analysis device for display.

[0111] After processing the performance data, the headphone device can send the performance data to the analysis device, so that the display unit on the analysis device can display various types of performance data, enabling staff to acquire and view the performance data.

[0112] exist Figure 5 In the illustrated embodiment, the processing efficiency of the analysis device and the testing efficiency of the headphone performance are effectively improved, as well as the visibility of the performance data.

[0113] Optionally, please refer to Figure 6 , Figure 6 This is a flowchart illustrating another headphone testing method for headphone devices provided in an embodiment of this application. The method may further include steps S461-S464.

[0114] Step S461: Receive adjustment instructions sent by the analysis device.

[0115] In addition, after the headphone device or analysis device determines the performance data of the headphone device, in order to ensure that the various performance characteristics of the headphone device meet the user's needs, the analysis device can also send corresponding adjustment commands to the headphone device based on the actual situation of the performance data analysis. This allows the noise reduction function of the headphone device to be adjusted in real time when the performance of the headphone device is poor.

[0116] Step S462: Adjust the current audio parameters based on the adjustment command to obtain the adjusted audio parameters.

[0117] The headphone device can respond to adjustment commands and adjust the audio parameters within the headphones to obtain the adjusted audio parameters.

[0118] Step S463: When the headphone device adjusts the audio parameters, it collects the corresponding adjusted audio data in the ear canal of the person being tested.

[0119] After adjusting the noise reduction parameters, the headphone device can continue to work using the adjusted audio parameters, and can also continue to collect the corresponding type of adjusted audio data in the ear canal of the test subject according to the data acquisition mode.

[0120] Step S464: The adjusted audio data is sent to the analysis device.

[0121] The headphone device can send adjusted audio data to the analysis device via a communication connection, so that the analysis device can analyze various performance aspects of the headphone device based on the adjusted audio data.

[0122] It is worth noting that headphone devices can also directly process the adjusted audio data to obtain the corresponding adjustment performance data, and send the adjustment performance data to the analysis device for display. The processing method of the adjusted audio data is similar to that of the audio data processing method mentioned above, and will not be described in detail here.

[0123] exist Figure 6 In the illustrated embodiment, feedback can be provided in real time during the testing process. If the test results of the headphone performance are not good, multiple data collection and adjustments can be made to further optimize various performance aspects of the headphone device.

[0124] Please see Figure 7 , Figure 7 This is a flowchart illustrating a headphone testing method for an analysis device provided in an embodiment of this application. The method may include steps S510-S530.

[0125] Step S510: Send the configuration command to the connected headphone device.

[0126] The analysis device can determine the corresponding configuration instructions based on the test items to be tested, and send the instructions to the connected headphone device.

[0127] Optionally, when testing and debugging the active noise cancellation solution, the configuration command can be to set the headphone device to a noise cancellation mode off during the first test. In subsequent tests, the command can be to set the headphone device to a preset noise cancellation mode with specified parameters. When measuring the secondary channel or headphone leakage, the configuration command can be to disable the headphone device's feedback noise cancellation and play specific audio. This specific audio can also be sent to the headphone device; the specific audio can be a sweep tone, noise, or other full-band noise. When analyzing and measuring the headphone device's audio frequency response, the configuration command can be to set the headphone device to any noise cancellation mode.

[0128] Step S520: Receive audio data sent by the headphone device.

[0129] The headphone device can collect and process audio data by configuring the corresponding target noise reduction mode according to the configuration instructions, and the analysis device can receive the audio data obtained from the headphone device for detecting the performance of the headphone device through the communication connection.

[0130] Step S530: Determine the performance data of the headphone device based on the audio data.

[0131] The analysis device can directly analyze various performance aspects of the headphone device based on the received audio data, thereby obtaining performance data corresponding to the current test item of the headphone device.

[0132] It is worth noting that the analysis device processes audio data in a way that is different from... Figure 5 In the embodiments described above, the headphone device processes audio data in the same way, and will not be described again.

[0133] exist Figure 7 In the illustrated embodiment, audio data can be analyzed directly without compensation and correction processing, effectively improving the efficiency and accuracy of headphone testing.

[0134] Optionally, please refer to Figure 8 , Figure 8 This is a flowchart illustrating another headphone testing method for an analysis device provided in an embodiment of this application. After step S530, the method may further include steps S541-S543.

[0135] Step S541: Determine whether the performance data meets the performance indicators corresponding to the headphone device.

[0136] The analysis device can also determine whether the current performance of the headphone device meets the user's needs based on the performance data. The determination method can be to compare the performance data with the corresponding performance indicators of the headphone device. The performance indicators can be determined based on the headphone device model and the user's actual needs.

[0137] Step S542: If the performance data does not meet the performance indicators, generate corresponding adjustment instructions based on the performance data.

[0138] When the performance data of the headphone device does not meet the corresponding performance indicators, the analysis device can generate corresponding adjustment instructions to notify the headphone device to adjust the parameters during noise cancellation.

[0139] Step S543: Send the adjustment command to the headphone device.

[0140] The analysis device can send the generated adjustment instructions to the headphone device via a communication connection for subsequent data acquisition and testing.

[0141] exist Figure 8 In the illustrated embodiment, the next test can be performed based on the results of the previous test during the testing process, which effectively improves the accuracy and real-time performance of the analysis device in controlling the test process.

[0142] Optionally, please refer to Figure 9 , Figure 9 This is a flowchart illustrating another headphone testing method applied to an analysis device provided in an embodiment of this application. After step S520, the method may further include steps S551-S552.

[0143] Step S551: Receive the adjusted audio data sent by the headphone device.

[0144] The headphone device can adjust the audio parameters during noise reduction after receiving the adjustment command, and re-collect and send the audio data. The analysis device can receive the adjusted audio data sent by the headphone device after reprocessing through the communication connection.

[0145] Step S552: Based on the adjusted audio data, determine the current adjustment performance data of the headphone device until the adjustment performance data meets the performance indicators.

[0146] The analysis device can continue to analyze various performance aspects of the headphone device based on the adjusted audio data, thereby determining the current adjusted performance data and judging whether the adjusted performance data meets the performance indicators. If it does not meet the performance indicators, the process of repeatedly sending adjustment instructions, receiving adjusted audio data, determining the adjusted performance data, and judging whether the adjusted performance data meets the performance indicators is repeated until the adjusted performance data obtained from the current test meets the performance indicators. This indicates that the current performance of the headphone device is good and no further adjustment is needed, thus completing the test.

[0147] exist Figure 9 In the illustrated embodiment, through multiple judgment and adjustment steps, the headphone device can be continuously adjusted. This effectively optimizes various performance aspects of the headphone device after testing, improving the user experience.

[0148] Optionally, please refer to Figure 10 , Figure 10 This is a flowchart illustrating another headphone testing method for an analysis device provided in an embodiment of this application. Before step S510, the method may further include steps S561-S563.

[0149] Step S561: Determine the test items for the headphone device.

[0150] Before testing, the analysis equipment can first determine the test items to be tested on the headphone device. The test items may include: adjusting the active noise cancellation mode, testing the secondary channel of active noise cancellation, testing the headphone leakage frequency response, and analyzing and measuring the audio frequency response.

[0151] Step S562: Based on the test items, determine the data acquisition mode of the headphone device.

[0152] Different test items require different data types. Therefore, the data acquisition mode for transmitting the required data types can be determined according to the test item.

[0153] For example, the data acquisition mode for debugging the active noise cancellation mode is to transmit the sound data from the external ear microphone and the internal ear microphone in the audio data; the data acquisition mode for testing the secondary channel of active noise cancellation is to transmit the sound data from the internal ear microphone and the speaker in the audio data; the data acquisition mode for testing the headphone leakage frequency response is to transmit the sound data from the external ear microphone and the speaker in the audio data; and the data acquisition mode for analyzing and measuring the audio frequency response is to transmit the sound data from a specified microphone or the speaker in the audio data.

[0154] Step S563: Generate a corresponding transmission command based on the data acquisition mode, and send the transmission command to the headphone device.

[0155] Specifically, a corresponding transmission command can be generated based on the determined data acquisition mode, and the transmission command can be sent to the headphone device so that the headphone device can set the corresponding data acquisition mode according to the received transmission command. When transmitting data, it can filter according to the type of data being acquired, so that the analysis device can receive the corresponding audio data.

[0156] exist Figure 10 In the illustrated embodiment, the data type transmitted can be appropriately limited according to different test items, making it applicable to a variety of different test items. This improves the relevance of the received audio data, reduces interference from other data during headphone performance testing, and further enhances the accuracy of headphone performance testing.

[0157] This application also provides a computer-readable storage medium storing computer program instructions. When the computer program instructions are read and executed by a processor, they perform the steps of any of the headphone testing methods provided in this embodiment.

[0158] In summary, the embodiments of this application provide a headphone testing method, headphone testing system, electronic device, and storage medium, which can collect and process data from the actual ear canal to test and analyze various headphone performance characteristics, and can test the performance of various noise reduction modes, thereby improving the accuracy and efficiency of testing.

[0159] In the several embodiments provided in this application, it should be understood that the disclosed device can also be implemented in other ways. The device embodiments described above are merely illustrative; for example, the block diagrams in the accompanying drawings illustrate the possible architecture, functions, and operations of the device according to various embodiments of this application. In this regard, each block in the block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than those marked in the drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagram, and combinations of block diagrams, can be implemented using a dedicated hardware-based system that performs the specified function or action, or using a combination of dedicated hardware and computer instructions.

[0160] In addition, the functional modules in the various embodiments of this application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0161] If the aforementioned functions are implemented as software functional modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0162] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0163] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application.

[0164] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A headphone test method applied to a headphone device, characterized in that, The method comprises: configuring a target noise reduction mode according to the received configuration instruction; applying the target noise reduction mode by the earphone device to collect corresponding audio data in the ear canal of the testee, wherein the audio data is data for detecting the performance of the earphone device; the collecting of the corresponding audio data in the ear canal of the testee comprises: setting a corresponding data collection mode; collecting and transmitting the audio data of the corresponding type in the ear canal of the testee according to the data collection mode; wherein, when the test item is to debug the active noise reduction mode, the data collection mode comprises: collecting and transmitting the sound data of the external microphone and the sound data of the internal microphone; when the test item is to test the secondary channel of the active noise reduction, the data collection mode comprises: collecting and transmitting the sound data of the internal microphone and the sound data of the loudspeaker; when the test item is to test the earphone leakage, the data collection mode comprises: collecting and transmitting the sound data of the external microphone and the sound data of the loudspeaker; when the test item is to analyze and measure the audio frequency response, the data collection mode comprises: collecting and transmitting the sound data of the specified microphone or the sound data of the loudspeaker; after the collecting of the corresponding audio data in the ear canal of the testee, the method further comprises: processing the audio data to obtain performance data; sending the performance data to the analysis device for the analysis device to display the performance data; wherein, when the test item is to debug the active noise reduction mode, in the first test, the first frequency response difference value between the sound data of the internal microphone and the sound data of the external microphone is calculated as the passive noise reduction performance, and in the subsequent test, the second frequency response difference value between the sound data of the internal microphone and the sound data of the external microphone is calculated as the total noise reduction performance, and the value of the total noise reduction performance minus the passive noise reduction performance is the performance data of the active noise reduction; when the test item is to test the secondary channel of the active noise reduction, the frequency response difference between the sound data of the internal microphone and the sound data of the loudspeaker is calculated to obtain the response of the secondary channel as the performance data; when the test item is to test the earphone leakage, the frequency response difference between the sound data of the external microphone and the sound data of the loudspeaker is calculated to obtain the leakage frequency response as the performance data; when the test item is to analyze and measure the audio frequency response, the frequency spectrum analysis is performed based on the sound data of the specified microphone or the sound data of the loudspeaker to obtain the audio frequency spectrum as the performance data.

2. The method of claim 1, wherein, The method further comprises: receiving the adjustment instruction sent by the analysis device; adjusting the current audio parameter based on the adjustment instruction to obtain an adjusted audio parameter; applying the adjusted audio parameter by the earphone device to collect corresponding adjusted audio data in the ear canal of the testee; sending the adjusted audio data to the analysis device.

3. A headphone test method applied to an analysis device, characterized by, The method comprises: sending a configuration instruction to a connected earphone device; receiving audio data sent by the earphone device, wherein the audio data is data for detecting performance of the earphone device, and the audio data is data collected in an ear canal of a testee when the earphone device applies a target noise reduction mode; determining performance data of the earphone device based on the audio data; Before the configuration instruction is sent to the connected earphone device, the method further comprises: determining a test item of the earphone device; determining a data collection mode of the earphone device based on the test item; generating a corresponding transmission instruction according to the data collection mode, and sending the transmission instruction to the earphone device; wherein when the test item is debugging of an active noise reduction mode, the data collection mode comprises collecting and transmitting sound data of an external microphone and sound data of an internal microphone; when the test item is testing of a secondary channel of the active noise reduction, the data collection mode comprises collecting and transmitting sound data of the internal microphone and sound data of a loudspeaker; when the test item is testing of earphone leakage, the data collection mode comprises collecting and transmitting sound data of the external microphone and sound data of the loudspeaker; and when the test item is analysis and measurement of audio frequency response, the data collection mode comprises collecting and transmitting sound data of a specified microphone or sound data of the loudspeaker; The performance data of the earphone device is determined based on the audio data, comprising: when the test item is debugging of the active noise reduction mode, a first frequency response difference value between the sound data of the internal microphone and the sound data of the external microphone is calculated as passive noise reduction performance in the first test, and a second frequency response difference value between the sound data of the internal microphone and the sound data of the external microphone is calculated as total noise reduction performance in the subsequent test, and the performance data of the active noise reduction is obtained by subtracting the passive noise reduction performance from the total noise reduction performance; when the test item is testing of the secondary channel of the active noise reduction, a frequency response difference between the sound data of the internal microphone and the sound data of the loudspeaker is calculated to obtain a response of the secondary channel as the performance data; when the test item is testing of earphone leakage, a frequency response difference between the sound data of the external microphone and the sound data of the loudspeaker is calculated to obtain a leakage frequency response as the performance data; and when the test item is analysis and measurement of audio frequency response, frequency spectrum analysis is performed based on the sound data of the specified microphone or the sound data of the loudspeaker to obtain an audio frequency spectrum as the performance data.

4. The method of claim 3, wherein, After the performance data of the earphone device is determined based on the audio data, the method further comprises: determining whether the performance data meets a corresponding performance indicator of the earphone device; generating a corresponding adjustment instruction according to the performance data if the performance data does not meet the performance indicator; sending the adjustment instruction to the earphone device.

5. The method of claim 4, wherein, After receiving the audio data sent by the earphone device, the method further comprises: receiving adjustment audio data sent by the earphone device; based on the adjustment audio data, determining the current adjustment performance data of the earphone device until the adjustment performance data meets the performance index.

6. An earphone test system, characterized by, The system comprises an analysis device and an earphone device, and the analysis device is in communication connection with the earphone device; The analysis device is configured to determine a test item of the earphone device, and determine a data acquisition mode of the earphone device based on the test item; According to the data acquisition mode, a corresponding transmission instruction is generated and sent to the earphone device; The analysis device is configured to send a configuration instruction to the earphone device; The earphone device is configured to configure a target noise reduction mode according to the received configuration instruction; When the earphone device applies the target noise reduction mode, corresponding audio data is collected in the ear canal of the testee, including: setting a corresponding data acquisition mode; collecting the audio data of the corresponding type in the ear canal of the testee according to the data acquisition mode; wherein the audio data is data for detecting the performance of the earphone device; sending the audio data to the analysis device, or processing the audio data to obtain performance data; and sending the performance data to the analysis device for the analysis device to display the performance data; The analysis device is further configured to receive the audio data sent by the earphone device; and determine the performance data of the earphone device based on the audio data; When the test item is to debug the active noise reduction mode, the data acquisition mode comprises collecting and transmitting the sound data of the external microphone and the sound data of the internal microphone; when the test item is to test the secondary channel of the active noise reduction, the data acquisition mode comprises collecting and transmitting the sound data of the internal microphone and the sound data of the loudspeaker; when the test item is to test the earphone leakage, the data acquisition mode comprises collecting and transmitting the sound data of the external microphone and the sound data of the loudspeaker; when the test item is to analyze and measure the audio frequency response, the data acquisition mode comprises collecting and transmitting the sound data of the specified microphone or the sound data of the loudspeaker. The earphone device or the analysis device determines the performance data based on the audio data in the following manner: when the test item is debugging the active noise reduction mode, a first frequency response difference between the sound data of the in-ear microphone and the sound data of the out-ear microphone is calculated as the passive noise reduction performance in the first test, a second frequency response difference between the sound data of the in-ear microphone and the sound data of the out-ear microphone is calculated as the total noise reduction performance in the subsequent test, and the performance data of the active noise reduction is the value obtained by subtracting the passive noise reduction performance from the total noise reduction performance; when the test item is testing the secondary channel of the active noise reduction, a frequency response difference between the sound data of the in-ear microphone and the sound data of the loudspeaker is calculated to obtain the response of the secondary channel as the performance data; when the test item is testing the earphone leakage, a frequency response difference between the sound data of the out-ear microphone and the sound data of the loudspeaker is calculated to obtain the leakage frequency response as the performance data; and when the test item is analyzing and measuring the audio frequency response, a spectrum analysis is performed based on the sound data of the specified microphone or the sound data of the loudspeaker to obtain the audio spectrum as the performance data.

7. An electronic device, comprising: The electronic device comprises a memory and a processor, the memory stores program instructions, and the processor executes the program instructions to perform the steps in the method of any one of claims 1-5.

8. A computer readable storage medium, characterized in that, The readable storage medium stores computer program instructions, and the computer program instructions are executed by a processor to perform the steps in the method of any one of claims 1-5.

Citation Information

Patent Citations

  • Method and system for automatically correcting filter coefficient, test terminal and storage medium

    CN112929807A

  • System and method for testing noise reduction performance of noise reduction earphone

    CN114501288A