CN112019988B - Method and device for testing audio equipment, test fixture, equipment and storage medium - Google Patents

Method and device for testing audio equipment, test fixture, equipment and storage medium Download PDF

Info

Publication number
CN112019988B
CN112019988B CN202010735177.1A CN202010735177A CN112019988B CN 112019988 B CN112019988 B CN 112019988B CN 202010735177 A CN202010735177 A CN 202010735177A CN 112019988 B CN112019988 B CN 112019988B
Authority
CN
China
Prior art keywords
audio
test
tested
equipment
picking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010735177.1A
Other languages
Chinese (zh)
Other versions
CN112019988A (en
Inventor
邹国源
林辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yamei Holdings Group Co ltd
Original Assignee
Guangzhou Yameizhi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Yameizhi Technology Co ltd filed Critical Guangzhou Yameizhi Technology Co ltd
Priority to CN202010735177.1A priority Critical patent/CN112019988B/en
Publication of CN112019988A publication Critical patent/CN112019988A/en
Application granted granted Critical
Publication of CN112019988B publication Critical patent/CN112019988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/004Monitoring arrangements; Testing arrangements for microphones

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application relates to the technical field of audio test, and provides a method, a device, a test fixture, equipment and a medium for testing audio equipment. The audio equipment testing method and device can improve testing efficiency of the audio equipment. The method comprises the following steps: receiving a first audio test instruction sent by the audio equipment to be tested, responding to the first audio test instruction, triggering the standard audio playing end to play a first test audio to the audio picking end to be tested of the audio equipment to be tested, picking up a second test audio played by the audio playing end to be tested of the audio equipment to be tested through the standard audio picking end, wherein the second test audio is the audio played by the audio equipment to be tested through the audio playing end to be tested, and finally obtaining an audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio.

Description

Method and device for testing audio equipment, test fixture, equipment and storage medium
Technical Field
The present application relates to the field of audio testing technologies, and in particular, to a method and an apparatus for testing an audio device, a testing fixture, a computer device, and a storage medium.
Background
With the wide popularization and application of electronic devices, more and more electronic devices including an audio pickup end and an audio playing end are provided, and the electronic devices can meet the use requirements of users on audio. For example, when a user uses such an electronic device, a microphone on the electronic device may perform voice interaction, or music may also be played through a speaker on the electronic device, so that the operational stability of an audio pickup end, such as a microphone, and an audio playing end, such as a speaker, equipped with the electronic device is important.
The method for testing the audio equipment provided by the traditional technology mainly comprises two methods, wherein one method is to judge in a manual mode, namely, a person speaks to an audio pickup end of the audio equipment, and then play the audio by an audio playing end of the audio equipment to judge whether sound is played from the audio playing end; and the other method is to separately test the audio pickup end and the audio playing end of the audio equipment by adopting a professional vocal instrument. However, these methods are prone to errors due to complicated operation steps during the testing process, resulting in low testing efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a method, an apparatus, a testing fixture, a computer device and a storage medium for testing an audio device.
A method of testing an audio device, the method comprising:
receiving a first audio test instruction sent by audio equipment to be tested;
responding to the first audio test instruction, triggering a standard audio playing end to play a first test audio to a to-be-tested audio picking end of the to-be-tested audio device;
picking up a second test audio played by an audio playing end to be tested, which is provided by the audio device to be tested, through a standard audio picking end; the second test audio is the audio played by the audio equipment to be tested through the audio playing end by the first test audio picked by the audio picking end to be tested;
and obtaining an audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio.
An apparatus for testing an audio device, comprising:
the instruction receiving module is used for receiving a first audio test instruction sent by the audio equipment to be tested;
the audio playing module is used for responding to the first audio test instruction and triggering the standard audio playing end to play a first test audio to the audio picking end to be tested, which is provided by the audio device to be tested;
the audio receiving module is used for picking up a second test audio played by the audio playing end to be tested, which is provided by the audio device to be tested, through the standard audio picking-up end; the second test audio is the audio played by the audio equipment to be tested through the audio playing end by the first test audio picked by the audio picking end to be tested;
and the result obtaining module is used for obtaining the audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio.
A test fixture for audio equipment, comprising: the testing device comprises a processor of the testing jig, and a standard audio playing end and a standard audio picking end which are connected with the processor; the processor performs instruction interaction with the audio equipment to be tested in a wired mode, and tests the audio equipment to be tested according to the method.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving a first audio test instruction sent by audio equipment to be tested; responding to the first audio test instruction, triggering a standard audio playing end to play a first test audio to a to-be-tested audio picking end of the to-be-tested audio device; picking up a second test audio played by an audio playing end to be tested, which is provided by the audio device to be tested, through a standard audio picking end; the second test audio is the audio played by the audio equipment to be tested through the audio playing end by the first test audio picked by the audio picking end to be tested; and obtaining an audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
receiving a first audio test instruction sent by audio equipment to be tested; responding to the first audio test instruction, triggering a standard audio playing end to play a first test audio to a to-be-tested audio picking end of the to-be-tested audio device; picking up a second test audio played by an audio playing end to be tested, which is provided by the audio device to be tested, through a standard audio picking end; the second test audio is the audio played by the audio equipment to be tested through the audio playing end by the first test audio picked by the audio picking end to be tested; and obtaining an audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio.
The method, the device, the test fixture, the computer device and the storage medium for testing the audio equipment receive a first audio test instruction sent by the audio equipment to be tested, respond to the first audio test instruction, trigger the standard audio playing end to play a first test audio to the audio picking end to be tested of the audio equipment to be tested, then pick up a second test audio played by the audio playing end to be tested of the audio equipment to be tested through the standard audio picking end, wherein the second test audio is the audio played by the audio equipment to be tested through the audio playing end to be tested by the first test audio picked up by the audio picking end to be tested, and finally obtain the audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio. The scheme can enable the audio frequency picked up by the audio frequency picking end to be tested to be rebroadcast by the audio frequency playing end to be tested by the audio frequency equipment to be tested, so that the audio frequency test result of the audio frequency equipment to be tested can be obtained by comparing the consistency of the rebroadcast audio frequency and the test audio frequency sent to the audio frequency equipment to be tested, and the test efficiency of the audio frequency equipment is improved.
Drawings
FIG. 1 is a diagram of an application environment of a method of testing an audio device in one embodiment;
FIG. 2 is a flow diagram illustrating a method for testing an audio device in one embodiment;
FIG. 3 is a schematic flow chart of a method of testing an audio device in another embodiment;
FIG. 4 is a diagram illustrating an exemplary embodiment of a test fixture for an audio device;
FIG. 5 is a schematic flow chart of a method of testing an audio device in yet another embodiment;
FIG. 6 is a block diagram showing the structure of an apparatus for testing an audio device according to an embodiment;
FIG. 7 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for testing the audio equipment can be applied to the application environment shown in fig. 1. The application environment can comprise a test fixture and audio equipment to be tested; the testing jig can be used for testing the audio equipment to be tested, the audio equipment to be tested can be electronic equipment comprising an audio pickup end to be tested and an audio playing end to be tested, and the testing jig can be specifically but not limited to electronic equipment such as various personal computers, notebook computers, smart phones, tablet computers and portable wearable equipment. The test fixture can be provided with a standard audio playing end and a standard audio picking end, wherein the standard audio playing end is an audio playing end which is corrected and can work normally, and the standard audio picking end is an audio picking end which is corrected and can work normally. For example, the standard audio playing end may be a standard speaker equipped with the test fixture, the standard audio picking end may be a standard microphone equipped with the test fixture, and correspondingly, the audio picking end to be tested and the audio playing end to be tested of the audio device to be tested may be a microphone to be tested and a speaker to be tested, respectively.
The method for testing the audio equipment can be applied to testing the audio pickup end to be tested and the audio playing end to be tested of the audio equipment to be tested in the test fixture, and can be applied to automatic testing of a microphone and a loudspeaker of the audio equipment to be tested in a factory mode. The audio device to be tested can comprise a main controller, and an audio picking end to be tested and an audio playing end to be tested which are connected with the main controller; the test fixture can perform instruction interaction with the audio equipment to be tested in a wired mode.
Specifically, the method for testing the audio device provided by the present application may be executed by a processor of the audio device to be tested, and the specific steps may include: the processor of the test fixture receives a first audio test instruction sent by the main controller of the audio equipment to be tested, and responds to the first audio test instruction, the standard audio playing end is triggered to play a first test audio to the audio picking end to be tested of the audio equipment to be tested, the main controller of the audio equipment to be tested can play the audio picked by the audio picking end to be tested through the audio playing end to be tested, so that the processor of the test fixture can pick a second test audio played by the audio playing end to be tested of the audio equipment to be tested through the standard audio picking end, and the second test audio is the audio played by the first test audio picked by the audio picking end to be tested through the audio playing end to be tested by the audio equipment to be tested. Then the processor of the test fixture can obtain an audio test result of the audio equipment to be tested according to the consistency of the first test audio and the second test audio, and the audio test result can be fed back to the main controller of the audio equipment to be tested by the processor of the test fixture so that the audio equipment to be tested can obtain the audio test result.
The method for testing an audio device provided by the present application is further described below with reference to the following embodiments and accompanying drawings.
In one embodiment, as shown in fig. 2, a method for testing an audio device is provided, which is described by taking the method as an example for being applied to the test fixture in fig. 1, and includes the following steps:
step S201, receiving a first audio test instruction sent by audio equipment to be tested;
in this step, the test fixture can be in wired connection with the audio equipment to be tested in a serial port mode, so that external factors such as a server and a switching port can be separated on the basis, and the audio equipment to be tested can be directly tested locally. Specifically, the test fixture can receive a first audio test instruction sent by the audio device to be tested through the serial port, and the first audio test instruction can be sent to the test fixture after the audio device to be tested enters a test state for the audio pickup end to be tested and the audio playing end to be tested, so that the test fixture determines that the audio device to be tested is in a testable state, and the test efficiency and accuracy are improved.
In some embodiments, before testing the audio device to be tested, the testing fixture may scan the device identification code of the audio device to be tested, determine whether the device identification code is correct, and then test the audio device to be tested.
Specifically, the test fixture can scan a first device identification code of the audio device to be tested before testing the audio device to be tested, then compare the first device identification code with a second device identification code of the audio device to be tested, which is pre-stored locally by the test fixture, if the first device identification code obtained by scanning the test fixture from the audio device to be tested is consistent with the second device identification code pre-stored locally by the test fixture, the test fixture can send a fifth audio test instruction to the audio device to be tested to indicate that the audio device to be tested enters a test state of the audio pickup end to be tested and the audio playing end to be tested, and feeds back the first audio test instruction after entering the test state. For example, the first device identification code and the second device identification code may be an IMEI number (International Mobile Equipment Identity) of the audio device to be tested.
According to the scheme of the embodiment, before the audio equipment to be tested is tested by the testing jig, whether the audio equipment to be tested, which is accurately tested, is the audio equipment to be tested corresponding to the pre-stored equipment identification code is determined firstly, so that the problem that the wrong audio equipment to be tested is tested and the correct audio equipment to be tested needs to be searched again for repeated testing is solved, and the testing efficiency is improved.
Step S202, in response to a first audio test instruction, triggering a standard audio playing end to play a first test audio to an audio picking end to be tested, which is provided with an audio device to be tested;
in this step, after receiving the first audio test instruction, the test fixture responds to the first audio test instruction, and drives the standard audio playing end equipped with the test fixture to play the first test audio to the audio pickup end to be tested that the audio device to be tested has. In a specific implementation, in order to improve the testing accuracy, the standard audio playing end equipped by the testing fixture may be aligned with the audio picking end to be tested equipped by the audio device to be tested to form a first testing audio channel, and the first testing audio channel is an audio transmission channel through which the first testing audio is transmitted from the standard audio playing end to the audio picking end to be tested. After the first test audio is played from the standard audio playing end, the first test audio is transmitted to the audio pickup end to be tested through the air medium on the first test audio channel, and the audio equipment to be tested can pick up the first test audio through the audio pickup end to be tested.
Step S203, a second test audio played by the audio playing end to be tested, which is provided by the audio device to be tested, is picked up through the standard audio pick-up end.
In this step, after the test fixture plays the first test audio through the standard audio playing end equipped with the test fixture, the second test audio played by the audio playing end to be tested, which is equipped with the audio device to be tested, can be picked up through the standard audio picking end equipped with the test fixture. The second test audio is the audio played by the audio equipment to be tested through the audio playing end to be tested, wherein the first test audio is picked up by the audio equipment to be tested through the audio picking end to be tested. That is, the audio device to be tested rebroadcasts the first test audio picked up by the audio pickup end to be tested through the audio playing end to be tested, the audio replayed by the audio playing end to be tested is the second test audio, and the second test audio can be picked up by the test fixture through the standard audio pickup end equipped on the test fixture.
In a specific implementation, in order to improve the testing accuracy, the standard audio pickup end equipped by the testing fixture may be aligned with the audio playback end to be tested equipped by the audio device to be tested to form a second testing audio channel, and the second testing audio channel is an audio transmission channel through which the second testing audio is transmitted from the audio playback end to be tested to the standard audio pickup end. After the second test audio is played from the audio playing end to be tested, the second test audio is transmitted to the standard audio picking end through the air medium on the second test audio channel, and the test fixture can pick up the second test audio through the standard audio picking end.
In some embodiments, in order to prevent audio crosstalk and further improve the accuracy of testing the audio device under test, a sound insulation arrangement may be employed between the first test audio path and the second test audio path. In a specific implementation, the first test audio channel and the second test audio channel may be respectively configured with sound insulation to prevent audio crosstalk between the two audio channels.
And step S204, obtaining an audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio.
In this step, after the standard audio pick-up end of the test fixture picks up the second test audio, consistency comparison can be performed on the first test audio and the second test audio, if the consistency is high enough, it is determined that the audio pick-up end to be tested and the audio playing end to be tested of the audio device to be tested pass the test, otherwise, it can be determined that the audio device to be tested does not pass the test.
Specifically, the test fixture may compare the consistency of the first test audio and the second test audio with a preset consistency threshold, if the consistency of the first test audio and the second test audio is greater than or equal to the preset consistency threshold, the test fixture obtains an audio test result of the audio device to be tested, that is, the audio pickup end to be tested and the audio playing end to be tested pass the test, and if not, obtains an audio test result of the audio device to be tested, that is, the audio pickup end to be tested and the audio playing end to be tested do not pass the test.
According to the method for testing the audio equipment, the test fixture can receive a first audio test instruction sent by the audio equipment to be tested, and in response to the first audio test instruction, the standard audio playing end is triggered to play a first test audio to the audio picking end to be tested of the audio equipment to be tested, then the test fixture can pick a second test audio played by the audio playing end to be tested of the audio equipment to be tested through the standard audio picking end, and finally the test fixture can obtain an audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio. The scheme can enable the audio frequency picked up by the audio frequency picking end to be tested to be rebroadcast by the audio frequency playing end to be tested by the audio frequency equipment to be tested, so that the test fixture can transmit the test audio frequency to the audio frequency equipment to be tested according to the rebroadcast audio frequency to carry out consistency comparison, and the audio frequency test result of the audio frequency equipment to be tested can be obtained, and the test efficiency of the audio frequency equipment is improved.
In an embodiment, a method for testing an audio device is further provided, as shown in fig. 3, the method specifically includes the following steps:
step S301, receiving a first audio test instruction sent by audio equipment to be tested;
in this step, the test fixture can receive a first audio test instruction sent by the audio equipment to be tested through the serial port; the first audio test instruction may be a first audio test instruction sent to the test fixture after the audio device to be tested enters a test state for the audio pickup end to be tested and the audio playing end to be tested.
Step S302, responding to a first audio test instruction, triggering a standard audio playing end to play a first test audio to a to-be-tested audio picking end of the to-be-tested audio device, and sending a second audio test instruction to the to-be-tested audio device so as to instruct the to-be-tested audio device to switch the to-be-tested audio picking end which is in a closed state before receiving the second audio test instruction into an open state, and picking up the first test audio through the to-be-tested audio picking end;
in this step, the test fixture may respond to the first audio test instruction after receiving the first audio test instruction, on one hand, send a second audio test instruction to the audio device to be tested, and on the other hand, trigger the standard audio playing end to play the first test audio to the audio pickup end to be tested that the audio device to be tested has; the second audio test instruction is sent to the audio equipment to be tested before the standard audio playing end is triggered to play the first test audio, and the second audio test instruction is mainly used for indicating the audio equipment to be tested to switch the audio picking end to be tested in the closed state to the open state before the second audio test instruction is received.
Step S303, after the first test audio is played, switching the standard audio pickup end which is in a closed state before the first test audio is played to an open state, and sending a third audio test instruction to the audio equipment to be tested to instruct the audio equipment to be tested to play a second test audio through the audio playing end to be tested;
in this step, after the first test audio is played, the openable standard audio pickup end picks up the second test audio played by the audio device to be tested through the audio playing end to be tested. Specifically, the standard audio pickup end of the test fixture can be in a closed state before the first test audio is played, after the first test audio is played, the test fixture can switch the standard audio pickup end into an open state, and send a third audio test instruction to the audio device to be tested through the serial port, so that the audio device to be tested plays a second test audio through the audio playback end to be tested, wherein the third audio test instruction can enable the audio device to be tested to determine that the standard audio pickup end of the test fixture is ready, receive the second test audio, and then the audio device to be tested plays the second test audio to the standard audio pickup end through the audio playback end to be tested.
Step S304, picking up a second test audio played by a to-be-tested audio playing end of the to-be-tested audio equipment through the standard audio picking end;
step S305, in response to a fourth audio test instruction sent by the audio device to be tested after the second test audio is played, obtaining an audio test result of the audio device to be tested based on the consistency between the first test audio and the second test audio.
Specifically, the test fixture continuously picks up a second test audio played by a to-be-tested audio playing end of the to-be-tested audio device through the standard audio picking end, and meanwhile, the test fixture can receive a fourth audio test instruction sent by the to-be-tested audio device after the second test audio is played; after the audio device to be tested receives the fourth audio test instruction, the audio device to be tested can be determined to finish playing the second test audio, and therefore the test fixture can compare the consistency of the received second test audio and the first test audio. In some embodiments, if the consistency between the first test audio and the second test audio is greater than or equal to the preset consistency threshold, the test fixture obtains an audio test result of the audio device to be tested, that is, the audio pickup end to be tested and the audio playing end to be tested pass the test, and if not, the test fixture obtains an audio test result of the audio device to be tested, that is, the audio pickup end to be tested and the audio playing end to be tested do not pass the test.
According to the technical scheme provided by the embodiment, the corresponding audio test instruction can be generated at each test node for testing audio playing, so that the test fixture and the audio equipment to be tested can determine each current test node according to the corresponding audio test instruction, the corresponding audio pickup end and the corresponding audio playing end are accurately controlled to be in the open state, and the test efficiency and the test accuracy are improved.
In some embodiments, the audio pickup end to be tested may have a plurality of audio pickup channels, and in order to further improve the testing efficiency and accuracy of the audio device to be tested and avoid mutual interference between the audio pickup channels, the standard audio playing end may be triggered to simultaneously play a plurality of first test audios with different audio frequencies to the audio pickup channels, respectively.
Specifically, when audio frequency pickup end that awaits measuring has a plurality of audio frequency pickup channels, test fixture can trigger standard audio playback end and simultaneously respectively to each audio frequency pickup channel broadcast a plurality of first test audio frequencies that have different audio frequency, thereby once only accomplish the audio test task to each audio frequency pickup channel, and the test audio frequency of each audio frequency pickup channel is all inequality, can prevent the mutual interference between the passageway, improve efficiency of software testing and accuracy, exemplary, test audio frequency can include but not limited to be: 0.8KHz, 1KHz, 1.2KHz, 1.4KHz, and the like.
In one embodiment, as shown in fig. 4, a test fixture for an audio device is provided, which may include: the processor of the test fixture and a standard audio playing end and a standard audio picking end which are connected with the processor; the processor performs instruction interaction with the audio device to be tested in a wired manner, and tests the audio device to be tested according to the method described in the above embodiment.
Specifically, the power supply end can be divided into at least two paths of voltages through the voltage reduction module, one path of voltage is used for supplying power to the test fixture, and the other path of voltage can be used for supplying power to the audio equipment to be tested. The standard audio frequency picking end of the test fixture aligns at the audio frequency playing end to be tested of the audio frequency equipment to be tested, the standard audio frequency playing end of the test fixture aligns at the audio frequency picking end to be tested of the audio frequency equipment to be tested, and the standard audio frequency playing end of the test fixture can be respectively subjected to sound insulation treatment structurally to prevent audio frequency crosstalk. The test fixture can perform instruction interaction with the audio equipment to be tested through the serial port and is used for operating the audio pick-up end to be tested and the audio playing end to be tested of the audio equipment to be tested.
For convenience of description, the standard audio pickup end and the audio pickup end to be tested are specifically microphones, and the standard audio playing end and the audio playing end to be tested are specifically loudspeakers. The method specifically comprises the following steps:
step S501, starting testing;
in this step, when the test fixture is connected with external power, the test fixture and the audio equipment to be tested are normally powered and work independently; the testing jig can scan the IMEI number of the audio equipment to be tested, and after the IMEI number of the audio equipment to be tested is compared with the IMEI number of the audio equipment to be tested prestored in the testing jig in a consistent manner, the audio equipment to be tested is triggered to enter a testing interface.
Step S502, the audio equipment to be tested automatically enters a microphone horn test item;
the audio equipment to be tested automatically enters microphone and loudspeaker test items;
step S503, the audio equipment to be tested sends a microphone test instruction to the test fixture through the serial port.
Step S504, the audio equipment to be tested opens a microphone to record test audio;
the audio equipment to be tested sends a microphone test instruction to the test fixture through the serial port, and after the audio equipment to be tested sends the microphone test instruction, the microphone can be opened to prepare to record test audio played by the test fixture; the microphone of the audio equipment to be tested can be automatically opened after the audio equipment to be tested sends a microphone test instruction, and can also be triggered to be opened by the test fixture sending a relevant instruction.
Step S505, the test fixture plays audio, sends an audio playing completion instruction to the audio equipment to be tested through the serial port, and opens the microphone to prepare for recording the audio;
step S506, the audio equipment to be tested plays the recorded audio through a loudspeaker;
specifically, after receiving a microphone test instruction, the test fixture can drive a loudspeaker of the test fixture to send test audio to a microphone of the audio equipment to be tested through the discharge circuit, send a related instruction through a serial port to enable the audio equipment to be tested to open the microphone for recording, and relay the audio recorded by the microphone out of a horn port of the audio equipment.
Step S507, the audio equipment to be tested sends a loudspeaker test instruction to the test fixture;
after the recorded audio is rebroadcast, the audio equipment to be tested can send a loudspeaker test instruction to the test fixture through the serial port, so that the test fixture determines that the rebroadcast of the audio equipment to be tested on the test audio is completed.
Step S508, the test fixture returns the audio test result to the audio equipment to be tested;
the microphone of the test fixture collects the audio frequency retransmitted by the audio equipment to be tested through the loudspeaker of the test fixture, the audio frequency is sent to the processor for analysis through the amplifying circuit, the processor analyzes the consistency of the retransmitted audio frequency and the test audio frequency, and if the consistency is high enough, the microphone and the loudspeaker of the audio equipment to be tested are judged to pass the test. In order to avoid mutual interference between each channel, the test audio frequencies of the channels are different, and the reference test audio frequency selection frequency can include 0.8KHz, 1KHz, 1.2KHz, 1.4KHz and the like.
In step S509, the test ends.
In this step, the test fixture can feed back the test result to the audio device to be tested, and the audio device to be tested can display the test result that the test including the microphone and the loudspeaker passes or the test result that the test including the microphone and the loudspeaker fails on the interface.
The technical scheme that above-mentioned embodiment provided has realized only needing to increase test fixture and just can accomplish the test of microphone and loudspeaker, has broken away from artifical and professional instrument, and accomplishes the test fast with the wired mode of serial ports, can directly realize microphone and loudspeaker fast test, has reduced test time, and does not receive space limitation, can remove the test with test fixture, also can reduce the manual operation error of burning the in-process, obviously improves the efficiency of testing audio equipment in the production line.
It should be understood that, although the steps in the flowcharts of fig. 2 to 5 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2 to 5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 6, there is provided an apparatus for testing an audio device, the apparatus 600 may include:
the instruction receiving module 601 is configured to receive a first audio test instruction sent by an audio device to be tested;
an audio playing module 602, configured to trigger a standard audio playing end to play a first test audio to a to-be-tested audio pickup end of the to-be-tested audio device in response to the first audio test instruction;
the audio receiving module 603 is configured to pick up, through the standard audio pick-up end, a second test audio played by the audio playing end to be tested that is provided in the audio device to be tested; the second test audio is the audio played by the audio equipment to be tested through the audio playing end by the first test audio picked by the audio picking end to be tested;
a result obtaining module 604, configured to obtain an audio test result of the audio device to be tested based on consistency between the first test audio and the second test audio.
In one embodiment, the apparatus 600 may further include: the second instruction sending unit is used for sending a second audio test instruction to the audio equipment to be tested so as to instruct the audio equipment to be tested to switch the audio pickup end to be tested which is in the closed state before the second audio test instruction is received into the open state, and then pick up the first test audio through the audio pickup end to be tested; the third instruction sending unit is used for switching the standard audio pickup end which is in the closed state before the first test audio is played into the open state after the first test audio is played, and sending a third audio test instruction to the audio equipment to be tested; the third audio test instruction is used for instructing the audio equipment to be tested to play the second test audio through the audio playing end to be tested;
a result obtaining module 604, configured to further respond to a fourth audio test instruction sent by the audio device to be tested after the second test audio is played, and obtain an audio test result of the audio device to be tested based on consistency between the first test audio and the second test audio;
in an embodiment, the result obtaining module 604 is further configured to, if the consistency between the first test audio and the second test audio is greater than or equal to a preset consistency threshold, obtain the audio test result of the audio device to be tested as that the audio pickup end to be tested and the audio playback end to be tested pass the test.
In one embodiment, the apparatus 600 may further include: and the fifth instruction sending unit is used for sending a fifth audio test instruction to the audio equipment to be tested if the first equipment identification code obtained by scanning the audio equipment to be tested is consistent with the locally pre-stored second equipment identification code so as to indicate the audio equipment to be tested to enter a test state and then feed back the first audio test instruction.
In one embodiment, the audio pickup end to be tested is provided with a plurality of audio pickup channels; the standard audio playing end is triggered to simultaneously play a plurality of first test audios with different audio frequencies to each audio pickup channel respectively.
In one embodiment, a first test audio channel is formed between the standard audio playing end and the audio picking end to be tested which are arranged in an aligned manner; a second test audio channel is formed between the standard audio pickup end and the audio playing end to be tested which are aligned; an acoustic isolation arrangement is provided between the first test audio channel and the second test audio channel.
For specific limitations of the apparatus for testing an audio device, reference may be made to the above limitations of the method for testing an audio device, which are not described herein again. The various modules in the apparatus for testing audio devices described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 7. The computer device includes a processor, a memory, and a communication interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with external devices, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a method of testing an audio device.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for testing audio equipment is characterized in that the method is applied to a test fixture for testing audio equipment to be tested, the test fixture is provided with a standard audio playing end and a standard audio picking end which are corrected, and the method comprises the following steps:
if the first equipment identification code obtained by scanning the audio equipment to be tested is consistent with the second equipment identification code pre-stored locally, sending a fifth audio test instruction to the audio equipment to be tested so as to indicate the audio equipment to be tested to enter a test state of the audio picking end to be tested and the audio playing end to be tested and then feeding back the first audio test instruction;
receiving a first audio test instruction sent by audio equipment to be tested;
responding to the first audio test instruction, triggering a standard audio playing end to play a first test audio to a to-be-tested audio picking end of the to-be-tested audio device, and sending a second audio test instruction to the to-be-tested audio device so as to indicate the to-be-tested audio device to switch the to-be-tested audio picking end which is in a closed state before the second audio test instruction is received into an open state, and picking up the first test audio through the to-be-tested audio picking end;
after the first test audio is played, switching the standard audio pickup end which is in a closed state before the first test audio is played into an open state, and sending a third audio test instruction to the audio equipment to be tested; the third audio test instruction is used for instructing the audio equipment to be tested to play a second test audio through the audio playing end to be tested;
picking up a second test audio played by an audio playing end to be tested, which is provided by the audio device to be tested, through a standard audio picking end; the second test audio is the audio played by the audio equipment to be tested through the audio playing end by the first test audio picked by the audio picking end to be tested;
responding to a fourth audio test instruction sent by the audio equipment to be tested after the second test audio is played, and obtaining an audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio; and feeding back the audio test result to the audio equipment to be tested so that the audio equipment to be tested can display the audio test result on an interface.
2. The method of claim 1, wherein obtaining the audio test result of the audio device under test based on the consistency of the first test audio and the second test audio comprises:
and if the consistency of the first test audio and the second test audio is greater than or equal to a preset consistency threshold value, obtaining an audio test result of the audio equipment to be tested as that the audio picking end and the audio playing end to be tested pass the test.
3. The method of claim 1, wherein the audio pickup end under test has a plurality of audio pickup channels; the standard audio playing end is triggered to simultaneously play a plurality of first test audios with different audio frequencies to each audio pickup channel respectively.
4. The method according to claim 1, wherein a first test audio path is formed between the standard audio playing terminal and the audio picking terminal to be tested; a second test audio channel is formed between the standard audio pickup end and the audio playing end to be tested which are aligned; an acoustic isolation arrangement is provided between the first test audio channel and the second test audio channel.
5. The utility model provides a device for testing audio equipment which characterized in that is applied to the test fixture that tests audio equipment to be tested, test fixture has standard audio playback end and standard audio pick-up end that has already rectified, includes:
the fifth instruction sending unit is used for sending a fifth audio test instruction to the audio equipment to be tested if the first equipment identification code obtained by scanning the audio equipment to be tested is consistent with the locally pre-stored second equipment identification code so as to indicate the audio equipment to be tested to enter a test state of the audio picking end to be tested and the audio playing end to be tested and then feed back the first audio test instruction;
the instruction receiving module is used for receiving a first audio test instruction sent by the audio equipment to be tested;
the audio playing module is used for responding to the first audio testing instruction, triggering a standard audio playing end to play a first testing audio to a to-be-tested audio picking end of the to-be-tested audio device, and sending a second audio testing instruction to the to-be-tested audio device so as to indicate the to-be-tested audio device to switch the to-be-tested audio picking end which is in a closed state before the second audio testing instruction is received into an open state, and then picking up the first testing audio through the to-be-tested audio picking end;
the third instruction sending unit is used for switching the standard audio pickup end which is in the closed state before the first test audio is played into the open state after the first test audio is played, and sending a third audio test instruction to the audio equipment to be tested; the third audio test instruction is used for instructing the audio equipment to be tested to play a second test audio through the audio playing end to be tested;
the audio receiving module is used for picking up a second test audio played by the audio playing end to be tested, which is provided by the audio device to be tested, through the standard audio picking-up end; the second test audio is the audio played by the audio equipment to be tested through the audio playing end by the first test audio picked by the audio picking end to be tested;
the result obtaining module is used for responding to a fourth audio test instruction sent by the audio equipment to be tested after the second test audio is played, and obtaining an audio test result of the audio equipment to be tested based on the consistency of the first test audio and the second test audio; and feeding back the audio test result to the audio equipment to be tested so that the audio equipment to be tested can display the audio test result on an interface.
6. The apparatus of claim 5, wherein the result obtaining module is further configured to obtain the audio test result of the audio device to be tested as that the audio pickup end to be tested and the audio playback end to be tested pass the test if the consistency between the first test audio and the second test audio is greater than or equal to a preset consistency threshold.
7. The apparatus of claim 5, wherein the audio pickup end under test has a plurality of audio pickup channels; the standard audio playing end is triggered to simultaneously play a plurality of first test audios with different audio frequencies to each audio pickup channel respectively.
8. The utility model provides an audio equipment's test fixture which characterized in that includes: the testing device comprises a processor of the testing jig, and a standard audio playing end and a standard audio picking end which are connected with the processor; the processor performs instruction interaction with an audio device to be tested in a wired manner, and the audio device to be tested is tested according to the method of any one of claims 1 to 4.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202010735177.1A 2020-07-28 2020-07-28 Method and device for testing audio equipment, test fixture, equipment and storage medium Active CN112019988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010735177.1A CN112019988B (en) 2020-07-28 2020-07-28 Method and device for testing audio equipment, test fixture, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010735177.1A CN112019988B (en) 2020-07-28 2020-07-28 Method and device for testing audio equipment, test fixture, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112019988A CN112019988A (en) 2020-12-01
CN112019988B true CN112019988B (en) 2022-06-14

Family

ID=73498920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010735177.1A Active CN112019988B (en) 2020-07-28 2020-07-28 Method and device for testing audio equipment, test fixture, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112019988B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115103290B (en) * 2022-07-15 2022-11-22 龙旗电子(惠州)有限公司 Earphone testing method and device, electronic equipment and storage medium
CN116705069B (en) * 2023-07-31 2023-11-10 北京芯驰半导体科技有限公司 Audio detection method, chip, component on traffic equipment and traffic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN208434113U (en) * 2018-07-18 2019-01-25 厦门盈趣科技股份有限公司 Microphone test device and system
CN110475196A (en) * 2019-08-20 2019-11-19 上海闻泰电子科技有限公司 Test fixture, acoustical device test macro and method

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5361305A (en) * 1993-11-12 1994-11-01 Delco Electronics Corporation Automated system and method for automotive audio test
CN101592693B (en) * 2008-05-30 2013-11-06 鸿富锦精密工业(深圳)有限公司 System and method for audio tests
CN101714380B (en) * 2008-10-06 2011-09-28 鸿富锦精密工业(深圳)有限公司 Testing device and testing method of audio file formats supported by audio player
CN102510417A (en) * 2011-09-29 2012-06-20 太仓市同维电子有限公司 Hand-free tone quality testing system of IP (internet protocol) phone terminal device and method thereof
CN103167391B (en) * 2011-12-12 2016-04-13 英业达股份有限公司 The audio testing method of audio test system and test system
US9992592B1 (en) * 2014-01-03 2018-06-05 Amazon Technologies, Inc. Vacuum testing of audio devices
CN104618846A (en) * 2015-02-12 2015-05-13 歌尔声学股份有限公司 Electronic product loudspeaker and microphone testing system and testing method
CN107631750B (en) * 2017-08-04 2021-05-18 宇龙计算机通信科技(深圳)有限公司 Method, device, terminal and storage medium for testing terminal to be tested
CN108347686A (en) * 2018-02-07 2018-07-31 广州视源电子科技股份有限公司 Audio testing method, device, smart machine and storage medium
CN109618151B (en) * 2019-01-04 2021-01-26 苏州乐轩科技有限公司 Automatic testing method for television image
CN110401899A (en) * 2019-07-25 2019-11-01 厦门盈趣科技股份有限公司 Audio testing method and relevant apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN208434113U (en) * 2018-07-18 2019-01-25 厦门盈趣科技股份有限公司 Microphone test device and system
CN110475196A (en) * 2019-08-20 2019-11-19 上海闻泰电子科技有限公司 Test fixture, acoustical device test macro and method

Also Published As

Publication number Publication date
CN112019988A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN112019988B (en) Method and device for testing audio equipment, test fixture, equipment and storage medium
CN104185132B (en) Channel configuration method, intelligent terminal and corresponding system
US9439010B2 (en) System for tuning audio processing features and method thereof
EP2487931B1 (en) Audio accessory type detection and connector pin signal assignment
US20180293982A1 (en) Voice assistant extension device and working method therefor
CN101459717B (en) Wireless terminal and method for implementing multi-channel multiplexing
US9378723B2 (en) Apparatus and method for acquiring configuration data
US20190237074A1 (en) Speech processing method, device and computer readable storage medium
US8494185B2 (en) Electro-acoustic transducer tuning and data storage
CN106790940B (en) Recording method, recording playing method, device and terminal
US8494184B2 (en) Digital data transfer via audio signal conductors
CN110221944B (en) Method and system for self-testing by using audio equipment to be tested
CN109498030B (en) Free sound field hearing test system and method
CN108307284A (en) A kind of method, device and mobile terminal of automatic detection loud speaker
JP2019505944A (en) Audio file re-recording method, apparatus and storage medium
CN111182116A (en) Multi-channel audio testing device and testing method
CN107040850A (en) Intelligent sound box, sound system and its automatic method that sound channel is set
CN108259653B (en) Voice test method, device and system
WO2013187688A1 (en) Method for processing audio signal and audio signal processing apparatus adopting the same
CN102638756A (en) Mobile terminal voice frequency test method, test device and mobile terminal
CN105812904A (en) Bluetooth module control method for playing devices and audio-video playing system
EP2642770B1 (en) Audio reproduction device and method of controlling thereof
CN102325283A (en) Earphone, user equipment and audio data output method
CN106201420A (en) Audio-frequency processing method and device
CN104869538A (en) Positioning method and positioning apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240205

Address after: Room 601, 6th Floor, Building 2, No. 89 Liangcun Avenue, Yongning District, Nanning City, Guangxi Zhuang Autonomous Region, 530299

Patentee after: Yamei Holdings Group Co.,Ltd.

Country or region after: China

Address before: Room 201, No.1 Hanjing Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: Guangzhou Yameizhi Technology Co.,Ltd.

Country or region before: China