CN114513736A - Acoustic testing method, device, terminal and storage medium for earphone - Google Patents

Acoustic testing method, device, terminal and storage medium for earphone Download PDF

Info

Publication number
CN114513736A
CN114513736A CN202011164471.8A CN202011164471A CN114513736A CN 114513736 A CN114513736 A CN 114513736A CN 202011164471 A CN202011164471 A CN 202011164471A CN 114513736 A CN114513736 A CN 114513736A
Authority
CN
China
Prior art keywords
earphone
test system
name
application program
tested
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.)
Granted
Application number
CN202011164471.8A
Other languages
Chinese (zh)
Other versions
CN114513736B (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.)
Shenzhen Horn Audio Co Ltd
Original Assignee
Shenzhen Horn Audio 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 Shenzhen Horn Audio Co Ltd filed Critical Shenzhen Horn Audio Co Ltd
Priority to CN202011164471.8A priority Critical patent/CN114513736B/en
Publication of CN114513736A publication Critical patent/CN114513736A/en
Application granted granted Critical
Publication of CN114513736B publication Critical patent/CN114513736B/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

Abstract

The application is applicable to the technical field of equipment testing, and provides an acoustic testing method, equipment, a terminal and a storage medium for an earphone, wherein the method comprises the following steps: obtaining calling operation of a secondary development application program interface of the test system; acquiring the name of the earphone obtained after the operating system in the terminal identifies the newly inserted earphone to be tested according to the calling operation; writing the earphone name into a configuration file of the test system; and controlling the test system to acquire the earphone name of the earphone to be tested from the configuration file, and carrying out acoustic test on the target earphone to be tested based on the earphone name. According to the scheme, the audio test system can be ensured to carry out acoustic test by matching the effective equipment ID through the equipment name when production line test is carried out, and the test efficiency and the test intelligence are improved.

Description

Acoustic testing method, device, terminal and storage medium for earphone
Technical Field
The application belongs to the technical field of equipment testing, and particularly relates to an acoustic testing method, equipment, a terminal and a storage medium for an earphone.
Background
The existing earphone equipment needs to be subjected to performance test for ensuring the sound effect and improving the product quality.
In the prior art, in a performance testing system developed by a laboratory virtual instrument engineering platform (Labview), when earphone equipment is identified, the earphone equipment to be identified needs to be firstly connected to a testing computer host, an operating system installed in a computer identifies the earphone equipment, after enumeration of sound card equipment in the earphone to be tested is realized, the performance testing system is started, and a configuration process of the name and identification number of the sound card equipment in the latest earphone at present is realized in the starting of the performance testing system.
In the process, the name of the equipment can be changed in the process that the computer operating system enumerates the sound card equipment of the earphone, and the changes can not be synchronized to the configuration of the performance testing system in real time, so that the audio testing system can not carry out acoustic testing by matching the name of the equipment with the ID of the effective equipment when the audio testing system is used for production line testing.
Disclosure of Invention
The embodiment of the application provides an acoustic testing method, equipment, a terminal and a storage medium of an earphone, and aims to solve the problem that in the prior art, in the enumeration process of a computer operating system on sound card equipment of the earphone, the equipment name can be changed, and the changes can not be synchronized to the configuration of a performance testing system in real time, so that an audio testing system can not perform acoustic testing by matching an effective equipment ID through the equipment name during production line testing.
A first aspect of an embodiment of the present application provides an acoustic testing method for an earphone, including:
obtaining calling operation of a secondary development application program interface of the test system;
acquiring an earphone name obtained after an operating system in the terminal identifies a newly-accessed earphone to be tested according to the calling operation;
writing the earphone name into a configuration file of the test system;
and controlling the test system to acquire the earphone name of the earphone to be tested from the configuration file, and carrying out acoustic test on the target earphone to be tested based on the earphone name.
A second aspect of an embodiment of the present application provides an acoustic testing apparatus for testing a device, including:
the first acquisition module is used for acquiring calling operation of a secondary development application program interface of the test system;
the second acquisition module is used for acquiring the name of the earphone obtained after the operating system in the terminal identifies the newly-accessed earphone to be tested according to the calling operation;
the storage module is used for writing the earphone name into a configuration file of the test system;
and the testing module is used for controlling the testing system to acquire the name of the earphone to be tested from the configuration file and carrying out acoustic testing on the target earphone to be tested based on the name of the earphone.
A third aspect of embodiments of the present application provides a terminal, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method according to the first aspect when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, performs the steps of the method according to the first aspect.
A fifth aspect of the present application provides a computer program product, which, when run on a terminal, causes the terminal to perform the steps of the method of the first aspect described above.
As can be seen from the above, in the embodiment of the present application, by obtaining a call operation on a secondary development application program interface of a test system, obtaining an earphone name obtained after an operating system in a terminal identifies a newly-accessed earphone to be tested according to the call operation, writing the earphone name into a configuration file of the test system, controlling the test system to obtain the earphone name of the earphone to be tested from the configuration file, and performing an acoustic test on a target earphone to be tested based on the earphone name, implementing content refreshing of the configuration file by calling the secondary development application program interface, writing a new equipment name into the configuration file, so that the test system can directly call the configuration file to implement obtaining the new equipment name without obtaining the new equipment name from the operating system, and timely synchronizing the equipment name generated in an enumeration process of a sound card equipment into configuration of a performance test system, the audio test system can be ensured to carry out acoustic test by matching the effective equipment ID through the equipment name when the production line is tested, and the test efficiency and the test intelligence are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a first flowchart of an acoustic testing method for an earphone according to an embodiment of the present disclosure;
fig. 2 is a second flowchart of an acoustic testing method for an earphone according to an embodiment of the present disclosure;
fig. 3 is a structural diagram of an acoustic testing apparatus for earphones according to an embodiment of the present disclosure;
fig. 4 is a structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch screen display and/or touchpad).
In the discussion that follows, a terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
It should be understood that, the sequence numbers of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process should be determined by the function and the inherent logic of the process, and should not constitute any limitation to the implementation process of the embodiment of the present application.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a first flowchart of an acoustic testing method for an earphone according to an embodiment of the present application. As shown in fig. 1, an acoustic testing method of a headphone includes the steps of:
step 101, obtaining a calling operation of a secondary development application program interface of a test system.
In the second development, simply speaking, the existing software is customized and modified, the functions are extended, and then the functions desired by the user are achieved, and generally, the kernel of the original system is not changed. Specifically, an Application Programming Interface (API) is obtained by encapsulating an original API in the test system. The secondary development API is two different APIs from the original API of the test system.
In the step, the calling operation of the secondary development API is obtained, so that when the calling of the secondary development API is detected, the starting process of the test software is simulated by the called API, so as to realize subsequent updating of the information of the new device currently identified by the operating system in the terminal in the configuration file, and further save repeated and frequent restarting operation of the test system.
Specifically, as an optional implementation manner, before the obtaining the call operation on the secondary development application program interface of the test system, the method further includes:
generating a call instruction of a secondary development application program interface of the test system;
and calling a secondary development application program interface of the test system according to the calling instruction.
In this process, the calling operation of the secondary development API of the test system may actually be that the execution terminal itself of the acoustic test method generates a calling instruction, and the calling instruction triggers execution.
The method and the device realize that the execution terminal automatically and actively calls the secondary development API of the test system at a required time point or under a required condition, and can determine to acquire the calling operation of the secondary development API of the test system when the calling of the secondary development API of the test system is executed. Alternatively, a call instruction for the secondary development API of the test system may be generated based on the response to the user operation behavior, and execution of the call operation may be triggered based on the call instruction.
As an optional embodiment, the generating a call instruction to a secondary development application program interface of the test system includes: when the set time interval is reached, generating a call instruction of a secondary development application program interface of the test system; or when detecting that the earphone to be tested is newly accessed into the terminal, generating a call instruction of a secondary development application program interface of the test system; or receiving user input operation, and generating a call instruction for a secondary development application program interface of the test system according to the user input operation.
The set time interval is, for example, 1 second. That is, a call instruction to the secondary development API of the test system is generated in accordance with the frequency acquired once per second.
Or when detecting that a new earphone to be tested is accessed in the terminal, automatically generating a call instruction of the secondary development API of the test system.
Or generating a call instruction of the secondary development API of the test system based on the input operation of the user. The input operation of the user may be a click operation, a touch operation, or the like on a preset key on an operation interface in the test system.
102, acquiring the name of the earphone obtained after the operating system in the terminal identifies the newly accessed earphone to be tested according to the calling operation;
when the calling operation of the secondary development API of the test software is detected, the test system is considered to be triggered to start and information initialization is carried out, at the moment, the name of the newly accessed earphone identified by the operating system in the terminal is obtained, and therefore test information configuration of the currently newly accessed equipment to be tested is achieved.
After the operating system identifies the newly-accessed earphones to be tested, the names of the earphones are obtained by naming the currently-accessed earphones according to a certain naming rule when the earphones to be tested are enumerated, and the names can be named according to the identified sequence. The names of earphones given thereto are, for example, the earphone device 1, the earphone device 2, and the earphone device 3.
When the name of the newly-accessed earphone to be tested is obtained, the unique identification code of the sound card in the earphone corresponding to different earphone names can be obtained at the same time, so that the sound card test operation can be implemented by using the unique identification code when the earphone is tested subsequently.
Step 103, writing the earphone name into a configuration file of the test system.
The writing of the content in the configuration file may be triggered by the original API calling the test software or by the secondary development API calling the test software.
When the original API is called, along with the starting and initialization of the test software, the state of the test software is converted from the non-starting state to the starting state. When the secondary development API is called, the test software cannot be started along with the calling, and the running state of the test software is not changed.
When the earphone name is written into a configuration file of the test system, the unique identification code of the sound card in the earphone corresponding to the earphone name can be written into the configuration file, and the information of the device to be tested is configured and updated. After updating, the latest earphone name is stored in a configuration file of a local disk in a character mode for calling by a test system.
And 104, controlling the test system to acquire the name of the earphone to be tested from the configuration file, and performing acoustic test on the target earphone to be tested based on the name of the earphone.
After the earphone name is obtained, equipment ID matching can be carried out based on the earphone name, and then acoustic testing of the earphone to be tested is achieved.
The data in the configuration file of the test system is updated in time in the previous step, and the test system can directly call the configuration file to acquire the name of the new equipment by using the updated configuration file without acquiring the name of the new equipment from an operating system, so that repeated and frequent starting of the test system is avoided, and the earphone test task can be continuously and smoothly executed.
More specifically, as an optional implementation, the acoustic testing of the target headset to be tested based on the headset name includes:
and the control test system matches the earphone names of the earphones to be tested to obtain a target earphone name which is consistent with the keyword based on the keyword corresponding to the current test scene, and performs acoustic test on the target earphones to be tested corresponding to the target earphone name.
Further, to ensure accurate and orderly implementation of the earphone test, the test system needs to screen the acquired new access earphones, specifically, to screen based on the keywords corresponding to the current test scenario.
For example, in the current test scenario, when the plug-in earphone is subjected to a sound card test, the earphone devices meeting the requirements need to be screened from the newly-connected earphones.
And selecting the key word corresponding to the current test scene as USB, and matching the key word to obtain a target earphone name which is consistent with the key word from the earphone names of the earphones to be tested.
For example: the name of the headset is:
USB Audio Device-1;
USB Audio Device-2;
USB Audio Device-3;
bluetooth Audio Device-1;
bluetooth Audio Device-2;
bluetooth Audio Device-3.
Then, according to the keyword USB, three target earphone names of USB Audio Device-1, USB Audio Device-2 and USB Audio Device-3 are obtained from the earphone names in a matching mode, and the target earphone to be tested corresponding to the target earphone name is subjected to acoustic testing.
In the embodiment of the application, by obtaining the calling operation of a secondary development application program interface of a test system, obtaining the name of an earphone obtained after an operating system in a terminal identifies a newly-accessed earphone to be tested according to the calling operation, writing the name of the earphone into a configuration file of the test system, controlling the test system to obtain the name of the earphone to be tested from the configuration file, and carrying out acoustic test on a target earphone to be tested based on the name of the earphone, realizing the content refreshing of the configuration file by calling the secondary development application program interface, writing the new equipment name into the configuration file, enabling the test system to directly call the configuration file to realize the obtaining of the name of the new equipment without obtaining from the operating system, and synchronizing the equipment name generated in the enumeration process of the sound card equipment into the configuration of the performance test system in time, the audio test system can be ensured to carry out acoustic test by matching the effective equipment ID through the equipment name when the production line is tested, and the test efficiency and the test intelligence are improved.
The embodiment of the application also provides different implementation modes of the acoustic testing method of the earphone.
Referring to fig. 2, fig. 2 is a second flowchart of an acoustic testing method for an earphone according to an embodiment of the present application. As shown in fig. 2, an acoustic testing method of a headphone includes the steps of:
step 201, obtaining a call operation to an original application program interface of a test system.
The calling operation of the original API is realized by the terminal based on the triggering operation of the user. When a tester is ready to perform a performance testing task, the calling operation of the original API of the testing system can be triggered by clicking the shortcut icon of the testing system.
Step 202, according to the calling operation, starting the test system, and initializing the configuration file to obtain the initialized configuration file.
The initialized configuration file stores the names of the earphones which are obtained after the terminal identifies the connected earphones to be tested.
The initializing of the configuration file is specifically to configure information of the currently acquired to-be-tested earphone in a starting process of a test system, wherein the test information includes an identification code of a sound card in the to-be-tested earphone, an earphone name and the like.
After the test system is triggered to start and enter the running state, the test system can be started by calling the secondary development API simulation, and the latest earphone equipment name in the terminal can be obtained in real time on the premise of not closing and restarting the test system, so that the continuity test of the newly accessed earphone is realized.
Step 203, obtaining the calling operation of the secondary development application program interface of the test system.
The implementation process of this step is the same as that of step 101 in the foregoing embodiment, and is not described here again.
Wherein, the secondary development API is obtained based on the original API package. The calling of the secondary development API can be triggered by a CMD command, and the CMD command is used for calling the secondary development API to simulate and restart the test system so as to update the function of the configuration information.
And step 204, acquiring the name of the earphone obtained after the operating system in the terminal identifies the newly-accessed earphone to be tested according to the calling operation.
The implementation process of this step is the same as that of step 102 in the foregoing embodiment, and is not described here again.
Step 205, writing the earphone name into the configuration file of the test system.
The implementation process of this step is the same as the implementation process of step 103 in the foregoing embodiment, and is not described here again.
And step 206, controlling the test system to acquire the name of the earphone to be tested from the configuration file, and performing acoustic test on the target earphone to be tested based on the name of the earphone.
The implementation process of this step is the same as that of step 104 in the foregoing embodiment, and is not described here again.
In the embodiment of the application, a calling operation on an original API of a testing system is obtained, the testing system is started according to the calling operation, a configuration file is initialized, a calling operation on a secondary development API of the testing system is obtained, an earphone name obtained after an operating system in a terminal identifies a newly-accessed earphone to be tested is obtained according to the calling operation, the earphone name is written into the configuration file of the testing system, the testing system is controlled to obtain the earphone name of the earphone to be tested from the configuration file, and acoustic testing is conducted on a target earphone to be tested based on the earphone name. According to the process, the secondary development API is called, the refreshing of the content of the configuration file is achieved, the new equipment name is written into the configuration file, the testing system can directly call the configuration file to achieve the obtaining of the new equipment name, the new equipment name does not need to be obtained from an operating system, the equipment name generated in the enumeration process of the sound card equipment is timely synchronized to the configuration of the performance testing system, the audio testing system is guaranteed to be capable of conducting acoustic testing by matching the effective equipment ID through the equipment name when a production line is tested, the repeated and frequent starting of the testing system is avoided, and the testing efficiency and the testing intelligence are improved.
Referring to fig. 3, fig. 3 is a structural diagram of an acoustic testing apparatus for earphones according to an embodiment of the present application, and for convenience of description, only a portion related to the embodiment of the present application is shown.
The acoustic testing apparatus 300 of the earphone includes:
a first obtaining module 301, configured to obtain a call operation on a secondary development application program interface of a test system;
a second obtaining module 302, configured to obtain, according to the calling operation, an earphone name obtained after an operating system in the terminal identifies a newly-accessed earphone to be tested;
a storage module 303, configured to write the name of the headset into a configuration file of the test system;
the testing module 304 is configured to control the testing system to obtain the name of the earphone to be tested from the configuration file, and perform an acoustic test on the target earphone to be tested based on the name of the earphone.
Wherein, the device still includes:
the calling module is used for generating a calling instruction of a secondary development application program interface of the test system; and executing the calling operation of the secondary development application program interface of the test system according to the calling instruction.
The calling module is specifically configured to:
when the set time interval is reached, generating a call instruction of a secondary development application program interface of the test system; or, when detecting that the earphone to be tested is newly accessed in the terminal, generating a call instruction of a secondary development application program interface of the test system; or receiving user input operation, and generating a call instruction of a secondary development application program interface of the test system according to the user input operation.
The test module 304 is specifically configured to:
and controlling the test system to match a target earphone name which is in accordance with the keyword from the earphone names of the earphones to be tested based on the keyword corresponding to the current test scene, and carrying out acoustic test on the target earphones to be tested corresponding to the target earphone name.
Wherein, the device still includes:
the third acquisition module is used for acquiring the calling operation of the original application program interface of the test system;
the initialization module is used for starting the test system according to the calling operation and initializing the configuration file to obtain the initialized configuration file;
the initialized configuration file stores the names of the earphones, which are obtained after the terminal identifies the connected earphones to be tested.
And the secondary development application program interface is obtained by packaging based on the original application program interface.
The acoustic testing device for the earphone provided by the embodiment of the application can realize each process of the embodiment of the acoustic testing method for the earphone, can achieve the same technical effect, and is not repeated here for avoiding repetition.
Fig. 4 is a structural diagram of a terminal according to an embodiment of the present application. As shown in the figure, the terminal 4 of this embodiment includes: at least one processor 40 (only one shown in fig. 4), a memory 41, and a computer program 42 stored in the memory 41 and executable on the at least one processor 40, the steps of any of the various method embodiments described above being implemented when the computer program 42 is executed by the processor 40.
The terminal 4 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal 4 may include, but is not limited to, a processor 40, a memory 41. Those skilled in the art will appreciate that fig. 4 is only an example of a terminal 4 and does not constitute a limitation of terminal 4 and may include more or less components than those shown, or some components in combination, or different components, for example, the terminal may also include input output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal 4. The memory 41 is used for storing the computer program and other programs and data required by the terminal. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer-readable medium may contain suitable additions or subtractions depending on the requirements of legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer-readable media may not include electrical carrier signals or telecommunication signals in accordance with legislation and patent practice.
The present application realizes all or part of the processes in the method of the above embodiments, and may also be implemented by a computer program product, when the computer program product runs on a terminal, the steps in the above method embodiments may be implemented when the terminal executes the computer program product.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for acoustic testing of headphones, comprising:
obtaining calling operation of a secondary development application program interface of the test system;
acquiring an earphone name obtained after an operating system in the terminal identifies a newly-accessed earphone to be tested according to the calling operation;
writing the earphone name into a configuration file of the test system;
and controlling the test system to acquire the earphone name of the earphone to be tested from the configuration file, and carrying out acoustic test on the target earphone to be tested based on the earphone name.
2. The acoustic testing method of claim 1, wherein prior to obtaining the call operation to the secondary development application program interface of the test system, further comprising:
generating a calling instruction of a secondary development application program interface of the test system;
and calling a secondary development application program interface of the test system according to the calling instruction.
3. The acoustic testing method of claim 2, wherein the generating a call instruction to a secondary development application program interface of the test system comprises:
when the set time interval is reached, generating a call instruction of a secondary development application program interface of the test system; alternatively, the first and second electrodes may be,
when detecting that the earphone to be tested is newly accessed into the terminal, generating a call instruction of a secondary development application program interface of the test system; alternatively, the first and second electrodes may be,
and receiving user input operation, and generating a call instruction of a secondary development application program interface of the test system according to the user input operation.
4. The acoustic testing method of claim 1, wherein the acoustic testing of the target headset to be tested based on the headset name comprises:
and controlling the test system to match a target earphone name which is in accordance with the keyword from the earphone names of the earphones to be tested based on the keyword corresponding to the current test scene, and carrying out acoustic test on the target earphones to be tested corresponding to the target earphone name.
5. The acoustic testing method of claim 1, wherein prior to obtaining the call operation to the secondary development application program interface of the test system, further comprising:
obtaining a calling operation of an original application program interface of the test system;
starting the test system according to the calling operation, and initializing the configuration file to obtain the initialized configuration file;
the initialized configuration file stores the names of the earphones, which are obtained after the terminal identifies the connected earphones to be tested.
6. The acoustic testing method of claim 5, wherein the secondary development application program interface is encapsulated based on the primary application program interface.
7. An acoustic testing apparatus for testing a device, comprising:
the first acquisition module is used for acquiring calling operation of a secondary development application program interface of the test system;
the second acquisition module is used for acquiring the name of the earphone obtained after the operating system in the terminal identifies the newly-accessed earphone to be tested according to the calling operation;
the storage module is used for writing the earphone name into a configuration file of the test system;
and the testing module is used for controlling the testing system to acquire the name of the earphone to be tested from the configuration file and carrying out acoustic testing on the target earphone to be tested based on the name of the earphone.
8. The acoustic testing apparatus of claim 7, further comprising:
the calling module is used for generating a calling instruction of a secondary development application program interface of the test system; and executing the calling operation of the secondary development application program interface of the test system according to the calling instruction.
9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
CN202011164471.8A 2020-10-27 2020-10-27 Acoustic testing method, equipment, terminal and storage medium for earphone Active CN114513736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011164471.8A CN114513736B (en) 2020-10-27 2020-10-27 Acoustic testing method, equipment, terminal and storage medium for earphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011164471.8A CN114513736B (en) 2020-10-27 2020-10-27 Acoustic testing method, equipment, terminal and storage medium for earphone

Publications (2)

Publication Number Publication Date
CN114513736A true CN114513736A (en) 2022-05-17
CN114513736B CN114513736B (en) 2024-03-29

Family

ID=81547052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011164471.8A Active CN114513736B (en) 2020-10-27 2020-10-27 Acoustic testing method, equipment, terminal and storage medium for earphone

Country Status (1)

Country Link
CN (1) CN114513736B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003330753A (en) * 2003-06-20 2003-11-21 Fujitsu Ltd Automatic test program generation system
CN102665093A (en) * 2012-03-13 2012-09-12 深圳市九洲电器有限公司 Test method for set top box and test system thereof
US20140330777A1 (en) * 2013-05-03 2014-11-06 Samsung Electronics Co., Ltd. Apparatus and method for synchronizing data
CN106776320A (en) * 2016-12-16 2017-05-31 四川长虹电器股份有限公司 Android intelligent terminal automatization test system and method
CN107231446A (en) * 2016-03-23 2017-10-03 北京京东尚科信息技术有限公司 Synchronous IP collocation methods and device
WO2018066932A1 (en) * 2016-10-06 2018-04-12 세종대학교 산학협력단 M2m application test device and method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003330753A (en) * 2003-06-20 2003-11-21 Fujitsu Ltd Automatic test program generation system
CN102665093A (en) * 2012-03-13 2012-09-12 深圳市九洲电器有限公司 Test method for set top box and test system thereof
US20140330777A1 (en) * 2013-05-03 2014-11-06 Samsung Electronics Co., Ltd. Apparatus and method for synchronizing data
CN107231446A (en) * 2016-03-23 2017-10-03 北京京东尚科信息技术有限公司 Synchronous IP collocation methods and device
WO2018066932A1 (en) * 2016-10-06 2018-04-12 세종대학교 산학협력단 M2m application test device and method
CN106776320A (en) * 2016-12-16 2017-05-31 四川长虹电器股份有限公司 Android intelligent terminal automatization test system and method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
XIAOSHAN SU ET AL.: "A General Automatic Test System for Instruments in IC Equipment", 《IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT 》, vol. 61, no. 9, XP011455802, DOI: 10.1109/TIM.2012.2188659 *
杨航: "电声测量系统中的若干后处理算法及其实现方法研究", 《中国优秀硕士学位论文全文数据库信息科技》, no. 4 *
袁莉: "耳机电声测试系统的研制", 《中国学位论文全文数据库》 *

Also Published As

Publication number Publication date
CN114513736B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN107636613B (en) Digital assistant extensibility to third party applications
CN110489101B (en) Interface simulation method, system, medium and electronic equipment
US20120071155A1 (en) Method and Apparatus for Binding Mobile Device Functionality to an Application Definition
US20130219338A1 (en) Automatic Magnification and Selection Confirmation
CN109471626B (en) Page logic structure, page generation method, page data processing method and device
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
CN108038112B (en) File processing method, mobile terminal and computer readable storage medium
CN106649084A (en) Function call information obtaining method and apparatus, and test device
SG184864A1 (en) Cross-platform application framework
CN107451244B (en) Folder naming method, mobile terminal and computer readable storage medium
AU2014251190A1 (en) Multiple displays for displaying workspaces
US9268782B2 (en) Re-use of binaries for multiple user accounts
CN113468112B (en) File management method and device, storage medium and computer equipment
CN107133169B (en) Application test packet generation method and generation device
CN110780913B (en) Cross-machine type differential upgrading method and system, storage medium and electronic equipment
US20140250251A1 (en) Automatically and transparently preserving testing state across sessions
CN111385661B (en) Method, device, terminal and storage medium for voice control of full screen playing
CN114513736B (en) Acoustic testing method, equipment, terminal and storage medium for earphone
CN111158820A (en) Control click event processing method and device, electronic equipment and storage medium
CN111273967A (en) Remote hook setting method and device suitable for Android system and electronic equipment
CN110750408B (en) Method, device and apparatus for controlling USB debug mode switch, and storage medium
CN113110846A (en) Method and device for acquiring environment variable
CN112015459A (en) Method and device for upgrading image file, terminal and readable storage medium
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN110874143A (en) Sensor data acquisition method, intelligent terminal, storage medium and electronic device

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