Universal audio detection method and device for products under test
By integrating radio and microphone detection and using Fourier transform to process the audio spectrum, the problem of unstable detection results in the prior art is solved, and the consistency and efficiency of detection results are improved.
Patent Information
- Application Number
- CN202210729536.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2042-06-24
AI Technical Summary
In the prior art, the radio and microphone detection of the product are easily affected by on-site noise, resulting in unstable judgment results and high labor costs.
The detection of the radio and microphone is integrated into a general audio detection method. The audio spectrum is processed through Fourier transform, and the similarity comparison is used to ensure the consistency and stability of the detection results. The vertical settings of the microphone and the player are used to connect to the upper computer, and the audio information is processed by Fourier transform to determine the test results.
It improves the stability and efficiency of the test results, reduces labor costs, and ensures the consistency of the test.
Smart Images

Figure CN115103288B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a universal audio detection method and device for a product to be tested. Background Art
[0002] Currently, factories test the product's radio and microphone functions separately. The radio function test process involves a worker connecting the product to the power cord, waiting for the product to power on and successfully communicate with the host computer. The worker then holds the product close to a player to receive 1kHz audio. The host computer's algorithm then determines whether the audio can be heard. This method produces unstable results and is easily affected by other noise on site. Furthermore, prolonged operation can damage workers' hearing.
[0003] The current factory product microphone testing process is as follows: a worker connects the power cord to the product, waits for the product to power on and successfully communicate with the host computer, and then manually presses the reset button on the back of the product. The worker then determines whether the product is qualified based on the sound emitted by the product's built-in microphone. The judgment result is unstable and easily affected by other noises on site.
[0004] In summary, the above-mentioned detection process of the radio and microphone is easily affected by other noises on the scene, the judgment results are unstable, and the labor cost is high. Summary of the Invention
[0005] In view of this, the purpose of the present invention is to provide a universal audio detection method and device for the product to be tested, which integrates the detection of sound reception and microphone, ensures the consistency and stability of the detection results, and improves the detection efficiency.
[0006] In a first aspect, an embodiment of the present invention provides a general audio detection method for a product under test, which is applied to a host computer connected to the product under test, wherein the product under test includes a microphone and a player, wherein the microphone is arranged above the product under test, and the player is arranged below the product under test; the method includes:
[0007] When the product to be tested is placed on the fixture in the shielding box, first control instruction information is sent to the player, so that the player plays first audio information according to the first control instruction information;
[0008] Collecting first audio information within a preset time period, and performing Fourier transform on the first audio information to obtain a first audio spectrum;
[0009] determining an audio test result of the player according to the first audio spectrum;
[0010] Sending second control instruction information to the player, so that the player plays second audio information according to the second control instruction information;
[0011] Acquire third audio information received by the microphone according to the second audio information;
[0012] Performing Fourier transform on the third audio information to obtain a second audio spectrum;
[0013] A test result of the product to be tested is determined according to the second audio spectrum.
[0014] Furthermore, determining an audio test result of the player according to the first audio spectrum includes:
[0015] Filtering a number of first audio frames that meet a first preset frequency from the first audio spectrum;
[0016] If the number of the first audio frames exceeds a preset number, comparing the first audio spectrum with a normal spectrum;
[0017] If the similarity between the first audio spectrum and the normal spectrum is greater than a preset value, the audio test is passed;
[0018] If the similarity between the first audio spectrum and the normal spectrum is less than a preset value, the audio test fails.
[0019] Furthermore, determining a test result of the product to be tested according to the second audio spectrum includes:
[0020] Filtering out a number of second audio frames that meet a second preset frequency from the second audio spectrum;
[0021] If the number of the second audio frames exceeds a preset number, comparing the second audio spectrum with a normal spectrum;
[0022] If the similarity between the second audio spectrum and the normal spectrum is greater than a preset value, the product under test passes the test;
[0023] If the similarity between the second audio spectrum and the normal spectrum is less than a preset value, the product to be tested fails the test.
[0024] Furthermore, the method further comprises:
[0025] Identifying the product to be tested and reading production product information of the product to be tested;
[0026] The production product information is bound to the test result of the product to be tested.
[0027] Furthermore, when the product to be tested is in a testing state, the microphone, the product to be tested and the player are in the same vertical position, and the microphone and the player are connected to the host computer via a USB cable.
[0028] In a second aspect, an embodiment of the present invention provides a universal audio detection device for a product under test, which is applied to a host computer connected to the product under test, wherein the product under test includes a microphone and a player, wherein the microphone is arranged above the product under test, and the player is arranged below the product under test; the device includes:
[0029] a first control instruction information sending unit, configured to send first control instruction information to the player when the product to be tested is placed on the fixture in the shielding box, so that the player plays first audio information according to the first control instruction information;
[0030] a first audio information collecting unit, configured to collect first audio information within a preset time period, and perform Fourier transform on the first audio information to obtain a first audio spectrum;
[0031] a first determining unit, configured to determine an audio test result of the player according to the first audio spectrum;
[0032] a second control instruction information sending unit, configured to send second control instruction information to the player, so that the player plays second audio information according to the second control instruction information;
[0033] an acquiring unit, configured to acquire third audio information received by the microphone according to the second audio information;
[0034] a transform unit, configured to perform Fourier transform on the third audio information to obtain a second audio spectrum;
[0035] The second determining unit is configured to determine a test result of the product to be tested according to the second audio spectrum.
[0036] Furthermore, the first determining unit is specifically configured to:
[0037] Filtering a number of first audio frames that meet a first preset frequency from the first audio spectrum;
[0038] If the number of the first audio frames exceeds a preset number, comparing the first audio spectrum with a normal spectrum;
[0039] If the similarity between the first audio spectrum and the normal spectrum is greater than a preset value, the audio test is passed;
[0040] If the similarity between the first audio spectrum and the normal spectrum is less than a preset value, the audio test fails.
[0041] Furthermore, the second determining unit is specifically configured to:
[0042] Filtering out a number of second audio frames that meet a second preset frequency from the second audio spectrum;
[0043] If the number of the second audio frames exceeds a preset number, comparing the second audio spectrum with a normal spectrum;
[0044] If the similarity between the second audio spectrum and the normal spectrum is greater than a preset value, the product under test passes the test;
[0045] If the similarity between the second audio spectrum and the normal spectrum is less than a preset value, the product to be tested fails the test.
[0046] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the above-mentioned method when executing the computer program.
[0047] In a fourth aspect, an embodiment of the present invention provides a computer-readable medium having a non-volatile program code executable by a processor, wherein the program code enables the processor to execute the method as described above.
[0048] An embodiment of the present invention provides a general audio detection method and device for a product to be tested, which is applied to a host computer connected to the product to be tested, wherein the product to be tested includes a microphone and a player, the microphone is arranged above the product to be tested, and the player is arranged below the product to be tested; the method and device include: when the product to be tested is placed on a fixture in a shielding box, sending first control instruction information to the player, so that the player plays first audio information according to the first control instruction information; collecting first audio information within a preset time period, performing Fourier transform on the first audio information to obtain a first audio spectrum; determining an audio test result of the player based on the first audio spectrum; sending second control instruction information to the player, so that the player plays second audio information according to the second control instruction information; obtaining third audio information received by the microphone based on the second audio information; performing Fourier transform on the third audio information to obtain a second audio spectrum; determining a test result of the product to be tested based on the second audio spectrum; integrating the detection of the sound reception and the microphone to ensure the consistency and stability of the detection results and improve the detection efficiency.
[0049] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or understood by practicing the present invention. The purposes and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0050] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0052] Figure 1 Flowchart of the general audio detection method for the product to be tested provided in Example 1 of the present invention;
[0053] Figure 2 This is a flowchart of step S103 in the universal audio detection method for the product to be tested provided in Example 1 of the present invention;
[0054] Figure 3 This is a flowchart of step S107 in the universal audio detection method for the product to be tested provided in Example 1 of the present invention;
[0055] Figure 4 Schematic diagram of a universal audio detection device for a product to be tested provided in Embodiment 2 of the present invention.
[0056] icon:
[0057] 1-first control instruction information sending unit; 2-first audio information collecting unit; 3-first determining unit; 4-second control instruction information sending unit; 5-acquisition unit; 6-conversion unit; 7-second determining unit. DETAILED DESCRIPTION
[0058] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0059] To facilitate understanding of this embodiment, the embodiment of the present invention is described in detail below.
[0060] Example 1:
[0061] Figure 1 This is a flow chart of a general audio detection method for a product under test provided in Example 1 of the present invention.
[0062] Reference Figure 1, applied to a host computer connected to a product to be tested, the product to be tested includes a microphone and a player, the microphone is arranged above the product to be tested, and the player is arranged below the product to be tested; the method comprises the following steps:
[0063] Step S101: When the product to be tested is placed on a fixture in a shielding box, a first control instruction message is sent to a player, so that the player plays a first audio message according to the first control instruction message; wherein the player can play the first audio message at 1 kHz;
[0064] Step S102: collecting first audio information within a preset time period, performing Fourier transform on the first audio information, and obtaining a first audio spectrum; wherein the preset time period may be 5 seconds;
[0065] Step S103, determining an audio test result of the player according to the first audio spectrum;
[0066] Step S104, sending second control instruction information to the player, so that the player plays the second audio information according to the second control instruction information;
[0067] Step S105, obtaining third audio information received by the microphone according to the second audio information;
[0068] Step S106, performing Fourier transform on the third audio information to obtain a second audio spectrum;
[0069] Step S107: determining a test result of the product to be tested according to the second audio spectrum.
[0070] Specifically, this application is applicable to the smart home field. The product under test can be a camera. In addition to its shooting function, the camera also has a calling function. By connecting to Wi-Fi (wireless fidelity), remote video communication can be achieved through a dedicated app (Application). During the production inspection stage of the product under test, it is necessary to test the reception and playback functions of the product under test.
[0071] To ensure that the product is not disturbed by external noise during testing, all testing mechanisms are installed in a shielded box lined with soundproofing cotton to eliminate external interference. The microphone is mounted above the product under test, with an external soundproof cover that can be adjusted in height via a micro-slide to accommodate different product models. The player is installed below the product under test and connected to the baseplate.
[0072] When the DUT is in the testing state, the microphone, DUT, and player are aligned vertically. The microphone and player are connected to the host computer via USB (Universal Serial Bus) for power and signal transmission. During testing, the DUT is placed directly into the fixture with the data cable attached, and then connected to the host computer via the data cable for power and signal transmission.
[0073] During operation, the door is opened first. The door can be suspended at any angle through the torque hinge. The door is connected to the fixture through a connecting rod. When the door is opened to the maximum angle, the connecting rod brings the fixture out to the loading and unloading position. The position is equipped with a limit device. After the door is closed, the fixture is pushed back to the detection position by the connecting rod.
[0074] A worker places the product to be tested, pre-installed with a memory card and power supply, onto the test fixture and closes the door. Simultaneously, a connecting rod pushes the fixture back to the testing position. Once the door is closed, the worker begins testing on the host computer.
[0075] When the product to be tested is placed on the fixture in the shielding box, a first control instruction message is sent to the player so that the player plays the first audio information according to the first control instruction message; the first audio information within a preset time period is collected, and the first audio information is Fourier transformed to obtain a first audio spectrum; the audio test result of the player is determined based on the first audio spectrum; a second control instruction message is sent to the player so that the player plays the second audio information according to the second control instruction message; the third audio information received by the microphone is obtained based on the second audio information; the third audio information is Fourier transformed to obtain a second audio spectrum; the test result of the product to be tested is determined based on the second audio spectrum; the detection of the reception and the microphone is integrated to ensure the consistency and stability of the test results and improve the detection efficiency.
[0076] Further, refer to Figure 2 Step S103 includes the following steps:
[0077] Step S201, screening out a number of first audio frames that meet a first preset frequency from a first audio spectrum;
[0078] Step S202: if the number of first audio frames exceeds a preset number, comparing the first audio spectrum with a normal spectrum;
[0079] Step S203: If the similarity between the first audio spectrum and the normal spectrum is greater than a preset value, the audio test is qualified;
[0080] Step S204: If the similarity between the first audio spectrum and the normal spectrum is less than a preset value, the audio test fails.
[0081] Specifically, when performing a radio function test, the host computer will establish a P2P connection with the product under test. The player plays the first audio information according to the first control instruction information; the host computer collects the first audio information within a preset time period, performs Fourier transform on the first audio information, and obtains the first audio spectrum; the first audio frames that meet the first preset frequency are screened out from the first audio spectrum; wherein, the first preset frequency can be 1 kHz; if the number of first audio frames exceeds the preset number, it means that the host computer has successfully received the first audio information of the camera, and at this time, the first audio spectrum is compared with the normal spectrum; if the similarity between the first audio spectrum and the normal spectrum is greater than the preset value, the audio test is qualified; if the similarity between the first audio spectrum and the normal spectrum is less than the preset value, the audio test is unqualified. wherein, the preset number is 10 frames.
[0082] Further, refer to Figure 3 , step S107 includes the following steps:
[0083] Step S301, screening out a number of second audio frames that meet a second preset frequency from a second audio spectrum;
[0084] Step S302 : if the number of the second audio frames exceeds a preset number, comparing the second audio spectrum with a normal spectrum;
[0085] Step S303: If the similarity between the second audio spectrum and the normal spectrum is greater than a preset value, the product under test passes the test;
[0086] Step S304: If the similarity between the second audio spectrum and the normal spectrum is less than a preset value, the product under test fails the test.
[0087] Specifically, the host computer sends a second control instruction information to the player through the serial port, so that the player plays the second audio information according to the second control instruction information; after the second control instruction information is successfully sent, the host computer obtains the third audio information received by the microphone according to the second audio information; the third audio information is Fourier transformed to obtain a second audio spectrum; the number of second audio frames that meet the second preset frequency is screened out from the second audio spectrum; wherein the second preset frequency is 2khz; if the number of second audio frames exceeds the preset number, it means that the product to be tested is playing normally; at this time, the second audio spectrum is compared with the normal spectrum. If the similarity between the second audio spectrum and the normal spectrum is greater than the preset value, the product to be tested passes the test; if the similarity between the second audio spectrum and the normal spectrum is less than the preset value, the product to be tested fails the test.
[0088] Furthermore, the method further comprises the following steps:
[0089] Step S401, identifying the product to be tested and reading the production product information of the product to be tested;
[0090] Step S402: Bind the production product information with the test results of the product to be tested.
[0091] Here, the production product information includes MAC addresses and aging test results. After binding the production product information with the test results of the product to be tested, the binding information can be uploaded to the cloud server, which serves as a basis for controlling product quality.
[0092] In addition, all test results, test duration, and the operating status of the product under test are uploaded to the cloud server via the host computer, allowing managers to monitor on-site production status in real time. Data collected on the cloud server facilitates subsequent product traceability and prevents defective products from being released due to worker errors.
[0093] Furthermore, when the product to be tested is in a testing state, the microphone, the product to be tested and the player are in the same vertical position, and the microphone and the player are connected to the host computer via a USB cable.
[0094] An embodiment of the present invention provides a universal audio detection method for a product to be tested, which is applied to a host computer connected to the product to be tested, wherein the product to be tested includes a microphone and a player, the microphone is arranged above the product to be tested, and the player is arranged below the product to be tested; the method includes: when the product to be tested is placed on a fixture in a shielding box, sending first control instruction information to the player, so that the player plays first audio information according to the first control instruction information; collecting first audio information within a preset time period, performing Fourier transform on the first audio information, and obtaining a first audio spectrum; determining an audio test result of the player based on the first audio spectrum; sending second control instruction information to the player, so that the player plays second audio information according to the second control instruction information; obtaining third audio information received by the microphone based on the second audio information; performing Fourier transform on the third audio information to obtain a second audio spectrum; determining a test result of the product to be tested based on the second audio spectrum; integrating the detection of the sound reception and the microphone to ensure the consistency and stability of the detection results and improve the detection efficiency.
[0095] Example 2:
[0096] Figure 4 Schematic diagram of a universal audio detection device for a product to be tested provided in Embodiment 2 of the present invention.
[0097] Reference Figure 4 , applied to a host computer connected to a product under test, the product under test including a microphone and a player, the microphone being arranged above the product under test, and the player being arranged below the product under test; the device includes:
[0098] A first control instruction information sending unit 1 is used to send first control instruction information to the player when the product to be tested is placed on the fixture in the shielding box, so that the player plays the first audio information according to the first control instruction information;
[0099] A first audio information collecting unit 2 is configured to collect first audio information within a preset time period and perform Fourier transform on the first audio information to obtain a first audio spectrum;
[0100] A first determining unit 3, configured to determine an audio test result of the player according to the first audio spectrum;
[0101] The second control instruction information sending unit 4 is used to send the second control instruction information to the player, so that the player plays the second audio information according to the second control instruction information;
[0102] an acquiring unit 5, configured to acquire third audio information received by the microphone according to the second audio information;
[0103] a transform unit 6, configured to perform Fourier transform on the third audio information to obtain a second audio spectrum;
[0104] The second determining unit 7 is configured to determine a test result of the product to be tested according to the second audio spectrum.
[0105] Furthermore, the first determining unit 3 is specifically configured to:
[0106] Filtering a number of first audio frames that meet a first preset frequency from the first audio spectrum;
[0107] If the number of the first audio frames exceeds a preset number, comparing the first audio spectrum with a normal spectrum;
[0108] If the similarity between the first audio spectrum and the normal spectrum is greater than a preset value, the audio test passes;
[0109] If the similarity between the first audio spectrum and the normal spectrum is less than a preset value, the audio test fails.
[0110] Furthermore, the second determining unit 7 is specifically configured to:
[0111] Filtering out a number of second audio frames that meet a second preset frequency from the second audio spectrum;
[0112] If the number of the second audio frames exceeds a preset number, comparing the second audio spectrum with a normal spectrum;
[0113] If the similarity between the second audio spectrum and the normal spectrum is greater than a preset value, the product under test passes the test;
[0114] If the similarity between the second audio spectrum and the normal spectrum is less than a preset value, the product under test fails the test.
[0115] An embodiment of the present invention provides a universal audio detection device for a product to be tested, which is applied to a host computer connected to the product to be tested, wherein the product to be tested includes a microphone and a player, the microphone is arranged above the product to be tested, and the player is arranged below the product to be tested; the device includes: when the product to be tested is placed on a fixture in a shielding box, sending first control instruction information to the player, so that the player plays first audio information according to the first control instruction information; collecting first audio information within a preset time period, performing Fourier transform on the first audio information, and obtaining a first audio spectrum; determining an audio test result of the player based on the first audio spectrum; sending second control instruction information to the player, so that the player plays second audio information according to the second control instruction information; obtaining third audio information received by the microphone based on the second audio information; performing Fourier transform on the third audio information, and obtaining a second audio spectrum; determining a test result of the product to be tested based on the second audio spectrum; integrating the detection of the sound reception and the microphone to ensure the consistency and stability of the detection results and improve the detection efficiency.
[0116] An embodiment of the present invention further provides an electronic device comprising 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 steps of the general audio detection method for the product to be tested provided in the above embodiment are implemented.
[0117] An embodiment of the present invention further provides a computer-readable medium having non-volatile program code executable by a processor, wherein a computer program is stored on the computer-readable medium. When the computer program is executed by the processor, the steps of the general audio detection method for the product to be tested of the above embodiment are executed.
[0118] The computer program product provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. For specific implementation, please refer to the method embodiments and will not be repeated here.
[0119] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0120] In addition, in the description of the embodiments of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; they may refer to mechanical connections or electrical connections; they may refer to direct connections or indirect connections through an intermediate medium; and they may refer to internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.
[0121] If the functions are implemented in the form of software functional units 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 the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0122] In the description of the present invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation, and therefore should not be construed as limitations on the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0123] Finally, it should be noted that the above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed by the present invention, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A universal audio detection method for a product to be tested, characterized in that: The method is applied to a host computer connected to a product to be tested, wherein the product to be tested includes a microphone and a player, wherein the microphone is arranged above the product to be tested and the player is arranged below the product to be tested; the method includes: When the product to be tested is placed on the fixture in the shielding box, first control instruction information is sent to the player, so that the player plays first audio information according to the first control instruction information; Collecting first audio information within a preset time period, and performing Fourier transform on the first audio information to obtain a first audio spectrum; determining an audio test result of the player according to the first audio spectrum; Sending second control instruction information to the player, so that the player plays second audio information according to the second control instruction information; Acquire third audio information received by the microphone according to the second audio information; Performing Fourier transform on the third audio information to obtain a second audio spectrum; determining a test result of the product to be tested according to the second audio spectrum; Determining an audio test result of the player according to the first audio spectrum includes: Filtering a number of first audio frames that meet a first preset frequency from the first audio spectrum; If the number of the first audio frames exceeds a preset number, comparing the first audio spectrum with a normal spectrum; If the similarity between the first audio spectrum and the normal spectrum is greater than a preset value, the audio test is passed; If the similarity between the first audio spectrum and the normal spectrum is less than a preset value, the audio test fails.
2. The universal audio detection method for the product to be tested according to claim 1, characterized in that: Determining a test result of the product to be tested according to the second audio spectrum includes: Filtering out a number of second audio frames that meet a second preset frequency from the second audio spectrum; If the number of the second audio frames exceeds a preset number, comparing the second audio spectrum with a normal spectrum; If the similarity between the second audio spectrum and the normal spectrum is greater than a preset value, the product under test passes the test; If the similarity between the second audio spectrum and the normal spectrum is less than a preset value, the product to be tested fails the test.
3. The universal audio detection method for the product to be tested according to claim 1, characterized in that: The method further comprises: Identifying the product to be tested and reading production product information of the product to be tested; The production product information is bound to the test result of the product to be tested.
4. The universal audio detection method for the product to be tested according to claim 1, characterized in that: When the product to be tested is in a testing state, the microphone, the product to be tested and the player are in the same vertical position, and the microphone and the player are connected to the host computer via a USB cable.
5. A universal audio detection device for a product to be tested, characterized in that: The device is applied to a host computer connected to a product to be tested, wherein the product to be tested includes a microphone and a player, wherein the microphone is arranged above the product to be tested and the player is arranged below the product to be tested; the device includes: a first control instruction information sending unit, configured to send first control instruction information to the player when the product to be tested is placed on the fixture in the shielding box, so that the player plays first audio information according to the first control instruction information; a first audio information collecting unit, configured to collect first audio information within a preset time period, and perform Fourier transform on the first audio information to obtain a first audio spectrum; a first determining unit, configured to determine an audio test result of the player according to the first audio spectrum; a second control instruction information sending unit, configured to send second control instruction information to the player, so that the player plays second audio information according to the second control instruction information; an acquiring unit, configured to acquire third audio information received by the microphone according to the second audio information; a transform unit, configured to perform Fourier transform on the third audio information to obtain a second audio spectrum; a second determining unit, configured to determine a test result of the product to be tested according to the second audio spectrum; The first determining unit is specifically configured to: Filtering a number of first audio frames that meet a first preset frequency from the first audio spectrum; If the number of the first audio frames exceeds a preset number, comparing the first audio spectrum with a normal spectrum; If the similarity between the first audio spectrum and the normal spectrum is greater than a preset value, the audio test is passed; If the similarity between the first audio spectrum and the normal spectrum is less than a preset value, the audio test fails.
6. The universal audio detection device for the product to be tested according to claim 5, characterized in that: The second determining unit is specifically configured to: Filtering out a number of second audio frames that meet a second preset frequency from the second audio spectrum; If the number of the second audio frames exceeds a preset number, comparing the second audio spectrum with a normal spectrum; If the similarity between the second audio spectrum and the normal spectrum is greater than a preset value, the product under test passes the test; If the similarity between the second audio spectrum and the normal spectrum is less than a preset value, the product to be tested fails the test.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.
8. A computer-readable medium having a non-volatile program code executable by a processor, characterized in that The program code causes the processor to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method and device for testing audio equipment, test fixture, equipment and storage medium
CN112019988A
Microphone and loudspeaker collaborative test method and system, medium and electronic terminal
CN113709648A