CN110221944B - Method and system for self-testing by using audio equipment to be tested - Google Patents

Method and system for self-testing by using audio equipment to be tested Download PDF

Info

Publication number
CN110221944B
CN110221944B CN201910501623.XA CN201910501623A CN110221944B CN 110221944 B CN110221944 B CN 110221944B CN 201910501623 A CN201910501623 A CN 201910501623A CN 110221944 B CN110221944 B CN 110221944B
Authority
CN
China
Prior art keywords
audio
test
tested
recorded
microphones
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
CN201910501623.XA
Other languages
Chinese (zh)
Other versions
CN110221944A (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.)
Sipic Technology Co Ltd
Original Assignee
Sipic 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 Sipic Technology Co Ltd filed Critical Sipic Technology Co Ltd
Priority to CN201910501623.XA priority Critical patent/CN110221944B/en
Publication of CN110221944A publication Critical patent/CN110221944A/en
Application granted granted Critical
Publication of CN110221944B publication Critical patent/CN110221944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

The application discloses a method and a system for self-testing by using audio equipment to be tested, wherein the method comprises the following steps: configuring an automatic test program in audio equipment to be tested in advance; the audio equipment to be tested is switched to a test mode to run an automatic test program to realize the following test steps: playing a test audio through a playing device of the audio equipment to be tested; recording through a recording device of the audio equipment to be tested to obtain recorded audio; and the audio equipment to be tested analyzes the recorded audio according to the automatic test program so as to test the audio equipment to be tested. According to the embodiment of the application, the operation performance and the hardware configuration of the device to be tested are fully utilized, the device to be tested plays the test sound source, the audio is recorded, the test software is executed to realize analysis and test, and the dependence of the test on external equipment is greatly reduced. Only software is needed as a test fixture, the cost is saved obviously, and a large batch of synchronous tests can be realized.

Description

Method and system for self-testing by using audio equipment to be tested
Technical Field
The present application relates to the field of audio device testing technologies, and in particular, to a method and a system for self-testing by using an audio device to be tested.
Background
An audio test system in the prior art comprises a test host, a sound amplification device, a sound recording device and an earphone automatic plugging module. The test host is connected to the tablet computer and comprises a mode switching port and a signal transmission port. The test host controls the tablet computer to switch between the master mode and the slave mode through the mode switching port mode control port, and controls the operation of a plurality of audio devices of the tablet computer through the signal transmission port. The public address set is connected with the test host and is arranged corresponding to the microphone. The recording device is connected to the test host and is placed corresponding to the loudspeaker. The automatic plugging module of the earphone is connected with the test host and can be automatically plugged into the earphone connecting port. The testing host can control the tablet computer to switch between a master mode and a slave mode, and respectively and automatically test the digital audio signals under the two modes.
Multiple professional precision devices are needed for signal playing and processing, a harsh test experiment environment is needed, and the method is not suitable for actual production line production. The related production and measurement technology needs expensive production and measurement equipment, so that the equipment cost and labor cost of the product are increased; the current production testing technology generally can only test one device to be tested by one set of equipment at the same time; the production and measurement data are dispersed, and only manual or manual processing can be carried out, so that the requirements of future digital intelligent production and manufacturing cannot be met.
In a conventional test scheme, external test equipment is required to provide a standard test audio signal, and then, external test analysis equipment is required to analyze data acquired by the device to be tested. Resulting in a high reliance on specialized test equipment and harsh requirements for the test environment.
Disclosure of Invention
The embodiment of the present application provides a method and a system for self-testing by using an audio device to be tested, which are used to solve at least one of the above technical problems.
In a first aspect, an embodiment of the present application provides a method for performing self-test by using an audio device to be tested, including:
configuring an automatic test program in the audio equipment to be tested in advance;
the audio equipment to be tested is switched to a test mode so as to run the automatic test program to realize the following test steps:
playing a test audio through a playing device of the audio equipment to be tested;
recording through a recording device of the audio equipment to be tested to obtain recorded audio;
and the audio equipment to be tested analyzes the recorded audio according to the automatic test program so as to test the audio equipment to be tested.
In a second aspect, an embodiment of the present application provides a system for performing self-test by using an audio device to be tested, including:
A working mode switching program module configured to switch the audio device to be tested to a test mode;
the broadcast control program module is configured to execute a control instruction to start a playing device of the audio equipment to be tested to play test audio;
the recording control program module is configured to drive the recording device of the audio equipment to be tested to record when the playing device of the audio equipment to be tested is started to play the test audio so as to obtain a recorded audio;
and the analysis program module is configured to analyze the recorded audio so as to test the audio equipment to be tested.
In a third aspect, embodiments of the present application provide a storage medium, where one or more programs including execution instructions are stored, where the execution instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to perform any one of the above methods for performing a self-test by using an audio device under test itself.
In a fourth aspect, an electronic device is provided, comprising: the audio device under test comprises at least one processor and a memory which is in communication connection with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any one of the methods for self-testing by the audio device under test itself.
In a fifth aspect, the present application further provides a computer program product, where the computer program product includes a computer program stored on a storage medium, and the computer program includes program instructions, where the program instructions, when executed by a computer, cause the computer to perform any one of the above methods for performing a self-test by using an audio device under test itself.
According to the embodiment of the application, the operation performance and the hardware configuration of the device to be tested are fully utilized, the device to be tested plays the test sound source, the audio is recorded, the test software is executed to realize analysis and test, and the dependence of the test on external equipment is greatly reduced. Only software is needed as a test fixture, the cost is saved obviously, and a large batch of synchronous tests can be realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of an embodiment of a method for self-testing by an audio device under test itself according to the present application;
FIG. 2 is a flowchart of another embodiment of the self-test method using the audio device under test itself according to the present application;
FIG. 3 is a flowchart of another embodiment of the self-test method using the audio device under test itself according to the present application;
FIG. 4 is a diagram of the amplitude distribution at 4800Hz frequency point in the present application;
FIG. 5 is a schematic diagram of waveforms recorded in channels of a 4MIC linear array recording apparatus according to the present application;
FIG. 6 is a flowchart of another embodiment of the method for self-testing by the audio device under test itself according to the present application;
FIG. 7 is a schematic block diagram of an embodiment of a system for self-testing by an audio device under test itself according to the present application;
fig. 8 is a schematic structural diagram of an embodiment of an electronic device of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this application, "module," "device," "system," and the like refer to the relevant entity, either hardware, a combination of hardware and software, or software in execution, that applies to a computer. In particular, for example, an element may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. Also, an application or script running on a server, or a server, may be an element. One or more elements may be in a process and/or thread of execution and an element may be localized on one computer and/or distributed between two or more computers and may be operated by various computer-readable media. The elements may also communicate by way of local and/or remote processes based on a signal having one or more data packets, e.g., from a data packet interacting with another element in a local system, distributed system, and/or across a network in the internet with other systems by way of the signal.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The application provides a method and a system for self-testing by using audio equipment to be tested, and the method and/or the system can be embodied as a section of program code which is embedded in the audio equipment and can realize a testing function. The program code is executable by the audio device to perform a test of the audio device.
The audio device in the embodiment of the present application may be a smart sound box, or a smart terminal with a voice interaction function, including but not limited to a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart television, and the like, which is not specifically limited in this application.
As shown in fig. 1, an embodiment of the present application provides a method for performing self-test by using an audio device under test itself, where the method is applied to the audio device under test, and the method includes:
s100, configuring an automatic test program in the audio equipment to be tested in advance.
Illustratively, the audio device under test executes the automatic test program to test the audio device under test while the test is being performed.
S200, the audio device to be tested is switched to a test mode (for example, the audio device to be tested in this embodiment is a device before a manufacturer leaves a factory, so that the test mode in which the audio device to be tested is located may be a default mode before the manufacturer leaves the factory, so as to facilitate testing), so as to run the automatic test program to implement the following test steps:
s210, playing the test audio through the playing device of the audio equipment to be tested.
For example, when the audio device under test is switched to the test mode on the audio device production line, the playing device (e.g., a speaker) of the audio device under test may be automatically activated to play the pre-configured test audio according to the configuration of the automatic test program.
And S220, recording through the recording device of the audio equipment to be tested to obtain recorded audio.
For example, while the test audio is being played, the recording device (e.g., microphone array) of the audio device under test may be started synchronously with the configuration of the automatic test program. Illustratively, the automatic test program may be an integrated driver layer sub-program unit for determining a microphone array for sound pickup, recording and storage.
And S230, analyzing the recorded audio by the audio equipment to be tested according to the automatic test program so as to test the audio equipment to be tested.
According to the embodiment of the application, the operation performance and the hardware configuration of the device to be tested are fully utilized, the device to be tested plays the test sound source, the audio is recorded, the test software is executed to realize analysis and test, and the dependence of the test on external equipment is greatly reduced. Only software is needed as a test fixture, the cost is saved obviously, and each device to be tested can independently test by itself without depending on external test equipment, so that large-batch synchronous tests can be realized.
As shown in fig. 2, in some embodiments, the sound recording apparatus includes a microphone array formed by a plurality of microphones; the recorded audio comprises multi-path sub-recorded audio recorded by the plurality of microphones;
The audio equipment to be tested analyzes the recorded audio according to the automatic test program, so that the test on the audio equipment to be tested comprises the following steps:
s231, analyzing the sub-recorded audio of each path respectively to realize the test of each microphone;
and S232, carrying out comparative analysis on the multi-channel sub-recorded audio to realize the test of a microphone array formed by the plurality of microphones.
In this embodiment, each sub-recorded audio is referred to as "each channel data", and is referred to as audio data recorded by each MIC; this embodiment is particularly directed to intelligent audio devices with microphone arrays, which have at least one and two microphones, each of which records data called a Channel (Channel), e.g., a four MIC array, and which, when recorded, can obtain data for 4 channels.
The recorded audio data is automatically recorded after the driver layer calls the MIC array of the device to be tested and executes the recording command through the test program in the embodiment of the application, and is stored in the designated path directory.
According to the embodiment of the application, by acquiring the data of each channel, on one hand, the function of each MIC channel can be ensured to be normal through testing; on the other hand, the test needs to be evaluated to ensure that the performance difference of each MIC meets the requirement. For audio equipment with an MIC array, in use, an important function is to determine a sound source by calculating a difference between data of each MIC channel (for example, when an intelligent sound device is used, the intelligent sound device can calculate in which direction a user speaks), so that the equipment to be tested needs to ensure that the performance of each MIC channel is consistent.
As shown in fig. 3, in some embodiments, the performing a comparative analysis on the multi-channel sub-recorded audio to perform a test on a microphone array formed by the plurality of microphones includes:
s2321, respectively calculating a plurality of amplitudes of each path of sub-recorded audio on a plurality of frequency points.
Illustratively, the recorded audio data of each channel is stored in digital binary, taking the case of 16-bit data as an example: converting the 16-bit data into 10-system data, and dividing the data by 215 to obtain a ratio which is used as the audio amplitude of the whole sampling point; and selecting a corresponding section, as shown in fig. 4, one frequency point, and counting all amplitudes of the frequency points in the time domain, wherein the maximum absolute value between two 0 points is the amplitude of the frequency band.
The amplitude value in table 1 below is calculated for each frequency point of each channel:
TABLE 1
Frequency point/channel CH1 CH2 CHn
200Hz 0.5 0.5 0.5
300Hz 0.6 0.6 0.6
5000Hz 0.7 0.7 0.7
8KHz 0.8 0.8 0.8
For example, separately determining whether the microphone corresponding to each channel is abnormal according to the measured amplitudes of different frequency points may be: in a group of test data, the amplitudes calculated by the CH1 at 200 Hz-8 KHz are all about 0.1 (much smaller than the amplitude range of other channels of 0.5-0.8), and the state of the CH1 channel is judged to be abnormal.
As shown in table 1 above, the data of the same frequency point of each channel are compared transversely to make a difference, and the fluctuation range difference does not exceed ± 1.5 dB.
S2322, comparing and analyzing amplitudes of the sub-recorded audio in each frequency point in the multiple frequency points to obtain multiple amplitude difference value sets, wherein each amplitude difference value set corresponds to two paths of the multiple paths of recorded audio and comprises multiple amplitude difference values;
s2323, comparing the amplitude difference value groups with a preset threshold value to determine whether the microphones are abnormal.
For example, when a 4MIC linear array recording device is tested, waveforms recorded in each channel are as shown in fig. 5, and are respectively 1 to 4 channels from top to bottom, and the amplitude of the 2 nd channel is found to be smaller by calculating the recording amplitude of each channel corresponding to the test frequency point as shown in table 2 below and comparing the calculated values. If the threshold value is exceeded, the channel MIC equipment can be judged to be abnormal, and the condition that the assembly deviation causes the blocking of the sound receiving hole or the foreign matter exists in the sound receiving hole can be further confirmed.
TABLE 2
Channel 1 Channel 2 Channel 3 Channel 4
Frequency point 1 0.08 0.05 0.09 0.08
Frequency point 2 0.09 0.06 0.08 0.09
Frequency point n 0.08 0.05 0.09 0.09
And uploading the test data to the cloud end through the equipment to be tested, accumulating a large amount of production test data, continuously optimizing an intelligent test algorithm for follow-up, and accumulating original data for intelligent production and manufacturing.
In some embodiments, the comparing according to the plurality of sets of amplitude differences with a preset threshold to determine whether there is an anomaly in the plurality of microphones comprises:
respectively comparing the amplitude difference values in each amplitude difference value group with a preset threshold value;
and when a plurality of amplitude difference values larger than the preset threshold value exist in a certain amplitude difference value group, determining that the two microphones corresponding to the certain amplitude difference value group have abnormity.
The preset threshold value in the embodiment of the application is determined according to the maximum value of the amplitude difference value of the audio data recorded by the two microphones on the same frequency point under the normal condition.
In this embodiment, only when there are a plurality of (rather than only one) amplitude differences in the current amplitude difference set that are greater than the preset threshold, it is determined that there is an abnormality in the two microphones corresponding to the current amplitude difference set. Therefore, the occurrence of misjudgment caused by the accidental phenomenon of spike pulse caused by signal interference or other unstable factors possibly existing in the actual test is avoided.
Spikes caused by such signal interference or other instability factors are short and occasional and are almost impossible to occur simultaneously at multiple different frequency points of the data collected by the same microphone. Therefore, the accuracy and reliability of the analysis and judgment result of the method of the embodiment of the application are ensured.
In some embodiments, said comparing the plurality of sets of amplitude differences to a preset threshold to determine whether an anomaly exists in the plurality of microphones comprises:
summing the amplitude differences in each amplitude difference group to obtain a plurality of difference sums corresponding to each amplitude difference group;
respectively comparing the difference values with the preset threshold value;
and judging that the difference value larger than the preset threshold value and the two corresponding microphones have abnormity.
The preset threshold value in the embodiment of the application is determined according to at least twice of the maximum value of the amplitude difference value of the audio data recorded by the two microphones on the same frequency point under the normal condition. To achieve the same effect as in the previous embodiment: misjudgment caused by contingency is avoided, and the accuracy and reliability of the analysis judgment result of the method of the embodiment of the application are ensured.
Fig. 6 is a flowchart illustrating another embodiment of the self-test method using the audio device under test itself according to the present application. The test is started by clicking, the device to be tested starts to play a special audio signal, and simultaneously the device to be tested starts to record audio to obtain original audio data (namely, recorded audio data), wherein the original audio data comprises multi-path recorded audio data collected by a plurality of microphones. The intelligent test software calls the original audio data, calculates key parameters such as amplitude values and the like for the recorded audio data of each channel (each path), calculates the difference of the amplitude values among the channels, and judges whether the MIC function is normal or not. The results of each part are directly displayed on the screen, so that the positioning problem of workers is conveniently, timely and quickly helped.
In addition, the difference result data of the amplitudes of the channels are uploaded to the cloud for optimizing the intelligent algorithm. Illustratively, the parameter fluctuation thresholds S1 are set according to design targets. And introducing S1 as a standard fluctuation threshold value into a production line production test, testing n products D1-Dn to be tested to obtain n groups of test data, summarizing abnormal states of the products, and associating the abnormal states with the test data. When the production line has similar test data sets again, the test system pushes recommended troubleshooting steps and solutions to production line staff, and production efficiency is improved.
The test method of the embodiment of the application only needs to use existing functional equipment of the equipment to be tested, does not need to additionally increase a test device, is closer to the actual use scene of the equipment compared with a traditional test method, enables the test result to be more accurate, reduces the dependence of the test on high-end external equipment, can greatly reduce the production test cost, and improves the production test efficiency.
According to the test method, all judgment on results completely depends on an intelligent algorithm provided by the method, clear test results are automatically given, the subjective judgment of workers is not depended on, the operators do not need to have professional skills, and the applicability, accuracy and reliability of production test are greatly improved; the production cost can be obviously reduced.
According to the test method, the analysis result of the intelligent algorithm is uploaded to the server through the wireless function of the equipment, all production test data are stored corresponding to the unique hardware identification code of the equipment to be tested, all test data can be digitally backtracked, the most powerful basic data can be provided for the optimization of the life cycle of the whole product through a large amount of accumulated production test data in the future, the iterative upgrade of the product is provided, data support is provided, the closed loop is realized from the design to the production, and the upgrade and the optimization of the future product to the intelligent manufacturing direction can be well met.
It is noted that while for simplicity of explanation, the foregoing method embodiments have been described as a series of acts or combination of acts, it will be appreciated by those skilled in the art that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application. In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
As shown in fig. 7, an embodiment of the present application further provides a system 700 for performing self-test by using an audio device under test itself, including:
a working mode switching program module 710 configured to switch the audio device to be tested to a test mode;
a broadcast control program module 720 configured to execute a control instruction to start the playing device of the audio device to be tested to play the test audio;
the recording control program module 730 is configured to drive the recording device of the audio device to be tested to record when the playing device of the audio device to be tested is started to play the test audio, so as to obtain a recorded audio;
and the analysis program module 740 is configured to analyze the recorded audio to implement the test of the audio device to be tested.
According to the embodiment of the application, the operation performance and the hardware configuration of the device to be tested are fully utilized, the device to be tested plays the test sound source, the audio is recorded, the test software is executed to realize analysis and test, and the dependence of the test on external equipment is greatly reduced. Only software is needed as a test fixture, the cost is saved obviously, and each device to be tested can independently test by itself without depending on external test equipment, so that large-batch synchronous tests can be realized.
In some embodiments, the sound recording apparatus includes a microphone array formed of a plurality of microphones;
the recorded audio comprises multi-path sub-recorded audio recorded by the plurality of microphones;
the analyzing the recorded audio to realize the test of the audio equipment to be tested comprises the following steps: analyzing each path of sub-recorded audio respectively to realize the test of each microphone;
and carrying out comparative analysis on the multi-path sub-recorded audio so as to realize the test of a microphone array formed by the plurality of microphones.
In some embodiments, the present application provides a non-transitory computer-readable storage medium, in which one or more programs including executable instructions are stored, where the executable instructions can be read and executed by an electronic device (including but not limited to a computer, a server, or a network device, etc.) to perform any one of the above methods for performing a self-test by using an audio device under test itself.
In some embodiments, the present application further provides a computer program product comprising a computer program stored on a non-volatile computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the above-mentioned methods for self-test with an audio device under test itself.
In some embodiments, the present application further provides an electronic device, which includes: the audio device under test comprises at least one processor and a memory communicatively connected with the at least one processor, wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute a method for self-test by the audio device under test itself.
In some embodiments, the present application further provides a storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement a method for self-testing by using an audio device under test itself.
The system for self-testing by using the audio device to be tested itself according to the embodiment of the present application can be used for executing the method for self-testing by using the audio device to be tested itself according to the embodiment of the present application, and accordingly achieves the technical effect achieved by the method for self-testing by using the audio device to be tested itself according to the embodiment of the present application, which is not described herein again. In the embodiment of the present application, the relevant functional module may be implemented by a hardware processor (hardware processor).
Fig. 8 is a schematic hardware structure diagram of an electronic device for performing a method for self-testing by using an audio device under test itself according to another embodiment of the present application, where as shown in fig. 8, the electronic device includes:
one or more processors 810 and a memory 820, with one processor 810 being an example in FIG. 8.
The apparatus for performing the method of self-testing using the audio device under test itself may further include: an input device 830 and an output device 840.
The processor 810, the memory 820, the input device 830, and the output device 840 may be connected by a bus or other means, such as the bus connection in fig. 8.
The memory 820 is a non-volatile computer-readable storage medium and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for performing self-test by using the audio device under test itself in the embodiment of the present application. The processor 810 executes various functional applications and data processing of the server by executing the nonvolatile software program, instructions and modules stored in the memory 820, that is, the method for performing self-test by using the audio device under test itself in the above method embodiment is realized.
The memory 820 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of a device that performs self-test using the audio equipment under test itself, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 820 may optionally include memory located remotely from processor 810, which may be connected over a network to a device that performs self-testing with the audio device under test itself. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 830 may receive input numeric or character information and generate signals related to user settings and function control of the device for self-test with the audio device under test itself. The output device 840 may include a display device such as a display screen.
The one or more modules are stored in the memory 820 and, when executed by the one or more processors 810, perform a method of self-testing with the audio device under test itself in any of the method embodiments described above.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
The above-described embodiments of the apparatus are merely illustrative, and 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 place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit 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; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (7)

1. A method of self-testing by the audio device under test itself, comprising:
configuring an automatic test program in the audio equipment to be tested in advance;
the audio equipment to be tested is switched to a test mode so as to run the automatic test program to realize the following test steps:
playing a test audio through a playing device of the audio equipment to be tested;
recording through a recording device of the audio equipment to be tested to obtain recorded audio, wherein the recording device comprises a microphone array formed by a plurality of microphones, and the recorded audio comprises multi-path sub-recorded audio recorded by the plurality of microphones;
And the audio equipment to be tested analyzes the recorded audio according to the automatic test program, wherein the analysis comprises analyzing the recorded audio of each path respectively so as to test the audio equipment to be tested, and the audio equipment to be tested comprises a microphone array formed by the microphones.
2. The method of claim 1, wherein the performing a comparative analysis of the multi-path sub-recorded audio to enable testing of a microphone array formed by the plurality of microphones comprises:
respectively calculating a plurality of amplitudes of each path of sub-recorded audio on a plurality of frequency points;
comparing and analyzing amplitudes of the sub-recorded audio in each path on each frequency point in the plurality of frequency points to obtain a plurality of amplitude difference value sets, wherein each amplitude difference value set corresponds to two paths of the sub-recorded audio in the plurality of paths, and each amplitude difference value set comprises a plurality of amplitude difference values;
and comparing the plurality of amplitude difference value groups with a preset threshold value to determine whether the plurality of microphones are abnormal or not.
3. The method of claim 2, wherein said comparing said plurality of sets of amplitude differences to a preset threshold to determine if an anomaly exists in said plurality of microphones comprises:
Respectively comparing the amplitude difference values in each amplitude difference value group with a preset threshold value;
and when a plurality of amplitude difference values larger than the preset threshold value exist in a certain amplitude difference value group, determining that the two microphones corresponding to the certain amplitude difference value group have abnormity.
4. The method of claim 2, wherein said comparing said plurality of sets of amplitude differences to a preset threshold to determine if an anomaly exists in said plurality of microphones comprises:
summing the amplitude differences in each amplitude difference set to obtain a plurality of difference sums corresponding to each amplitude difference set;
respectively comparing the difference values with the preset threshold value;
and judging that the difference value larger than the preset threshold value and the two corresponding microphones have abnormity.
5. A system for self-testing by the audio device under test itself, comprising:
a working mode switching program module configured to switch the audio device to be tested to a test mode;
the broadcast control program module is configured to execute a control instruction to start a playing device of the audio equipment to be tested to play test audio;
the recording control program module is configured to drive the recording device of the audio equipment to be tested to record when the playing device of the audio equipment to be tested is started to play a test audio, so as to obtain a recorded audio, wherein the recording device comprises a microphone array formed by a plurality of microphones, and the recorded audio comprises a plurality of paths of sub-recorded audio recorded by the plurality of microphones;
And the analysis program module is configured to analyze the recorded audio, wherein the analysis comprises respectively analyzing each path of sub-recorded audio to realize the test of the audio equipment to be tested, and the audio equipment to be tested comprises a microphone array formed by a plurality of microphones.
6. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the method of any one of claims 1-4.
7. A 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.
CN201910501623.XA 2019-06-11 2019-06-11 Method and system for self-testing by using audio equipment to be tested Active CN110221944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910501623.XA CN110221944B (en) 2019-06-11 2019-06-11 Method and system for self-testing by using audio equipment to be tested

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910501623.XA CN110221944B (en) 2019-06-11 2019-06-11 Method and system for self-testing by using audio equipment to be tested

Publications (2)

Publication Number Publication Date
CN110221944A CN110221944A (en) 2019-09-10
CN110221944B true CN110221944B (en) 2022-07-29

Family

ID=67816515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910501623.XA Active CN110221944B (en) 2019-06-11 2019-06-11 Method and system for self-testing by using audio equipment to be tested

Country Status (1)

Country Link
CN (1) CN110221944B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995914A (en) * 2019-12-02 2020-04-10 上海创功通讯技术有限公司 Double-microphone testing method and device
CN111312274B (en) * 2020-02-21 2022-06-28 思必驰科技股份有限公司 Voice signal processing method, device, system, electronic device and storage medium
CN112104969B (en) * 2020-10-23 2022-02-22 思必驰科技股份有限公司 Detection method and device for Bluetooth headset
CN112729772A (en) * 2020-12-11 2021-04-30 联宝(合肥)电子科技有限公司 Test equipment, method and device for notebook computer
CN117198373A (en) * 2023-09-26 2023-12-08 深圳市爱普泰科电子有限公司 Method for evaluating and calculating automatic performance of audio IC playing and recording channel

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050169483A1 (en) * 2004-02-04 2005-08-04 Microsoft Corporation Analog preamplifier measurement for a microphone array
CN108347686A (en) * 2018-02-07 2018-07-31 广州视源电子科技股份有限公司 Audio testing method and device, intelligent equipment and storage medium
CN109195090A (en) * 2018-09-05 2019-01-11 苏州思必驰信息科技有限公司 Test method and system for microphone electro mechanical parameter in product

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050169483A1 (en) * 2004-02-04 2005-08-04 Microsoft Corporation Analog preamplifier measurement for a microphone array
CN108347686A (en) * 2018-02-07 2018-07-31 广州视源电子科技股份有限公司 Audio testing method and device, intelligent equipment and storage medium
CN109195090A (en) * 2018-09-05 2019-01-11 苏州思必驰信息科技有限公司 Test method and system for microphone electro mechanical parameter in product

Also Published As

Publication number Publication date
CN110221944A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
CN110221944B (en) Method and system for self-testing by using audio equipment to be tested
CN108511000B (en) Method and system for testing identification rate of awakening words of intelligent sound box
US11157231B2 (en) Method and apparatus for controlling sound signal output
TWI619395B (en) System and method for changing a channel configuration of a set of audio output devices
CN110308888B (en) Volume control method, electronic equipment and computer readable storage medium
CN103873988B (en) Based on external equipment identify circuit, the methods, devices and systems of earphone socket
CN109195090B (en) Method and system for testing electroacoustic parameters of microphone in product
US20190281403A1 (en) Dynamic multi-speaker optimization
CN104185132A (en) Audio track configuration method, intelligent terminal and corresponding system
CN110691314B (en) Linear microphone array performance test method and clamp
CN106024035B (en) A kind of method and terminal of audio processing
CN106302997A (en) A kind of output control method, electronic equipment and system
CN104954853A (en) Playing information saving method and system, play terminal and control terminal
CN110636432A (en) Microphone testing method and related equipment
CN104991755A (en) Information processing method and electronic device
CN103577145A (en) Sound volume processing device and method for electronic equipment, and electronic system
CN112367602A (en) Bluetooth headset testing method, system, testing terminal and computer readable storage medium
CN108260065B (en) Television loudspeaker playing function online detection method and device
CN110109644B (en) Method, device and system for determining and processing equalization parameters of electronic equipment
CN105261384A (en) Recording apparatus
US20140350705A1 (en) Music playing system and method
CN103929691A (en) Information processing method and electronic equipment
CN105049982A (en) Intelligent sound box and music play method based on intelligent sound box
US8885623B2 (en) Audio communications system and methods using personal wireless communication devices
CN114676043A (en) Testing method and device of intelligent voice module, 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
CB02 Change of applicant information

Address after: 215123 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant after: Sipic Technology Co.,Ltd.

Address before: 215123 building 14, Tengfei Innovation Park, 388 Xinping street, Suzhou Industrial Park, Suzhou City, Jiangsu Province

Applicant before: AI SPEECH Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant