CN114071343A - Testing method and testing device for audio equipment and computer equipment - Google Patents

Testing method and testing device for audio equipment and computer equipment Download PDF

Info

Publication number
CN114071343A
CN114071343A CN202111349601.XA CN202111349601A CN114071343A CN 114071343 A CN114071343 A CN 114071343A CN 202111349601 A CN202111349601 A CN 202111349601A CN 114071343 A CN114071343 A CN 114071343A
Authority
CN
China
Prior art keywords
signal
audio
data
determining
testing
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.)
Pending
Application number
CN202111349601.XA
Other languages
Chinese (zh)
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.)
Suzhou HYC Technology Co Ltd
Original Assignee
Suzhou HYC 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 Suzhou HYC Technology Co Ltd filed Critical Suzhou HYC Technology Co Ltd
Priority to CN202111349601.XA priority Critical patent/CN114071343A/en
Publication of CN114071343A publication Critical patent/CN114071343A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The application relates to the technical field of audio, and particularly discloses a testing method and a testing device for audio equipment and computer equipment. The method comprises generating an audio test signal, the audio test signal comprising a flag signal provided at a front end; controlling the audio equipment to output an audio test signal; acquiring an output signal of audio equipment to generate audio acquisition data; determining effective data in the audio acquisition data according to the mark signal in the audio acquisition data; based on the valid data, a test result of the audio device is determined. According to the testing method of the audio equipment, the position of the effective data in the audio acquisition data can be determined according to the position of the mark signal, the effective data can be further obtained, and finally the audio equipment is tested based on the effective data, so that the effective data can be accurately obtained, and the problem of low testing accuracy caused by mixing of external signals such as noise of a delay part and the like is avoided.

Description

Testing method and testing device for audio equipment and computer equipment
Technical Field
The present invention relates to the field of audio technology, and in particular, to a method and an apparatus for testing audio equipment, and a computer device.
Background
In the field of audio technology, it is often necessary to test the output performance of an audio device, and generally, a sweep frequency signal may be played by the audio device, and then received, and the received sweep frequency data may be analyzed and processed, so as to determine the output performance of the audio device.
However, due to factors such as a computer system and a distance factor in a physical environment, a delay phenomenon may occur when the sweep frequency signal is sent out, which may cause that a start point position of a real effective data portion in the received sweep frequency data is difficult to determine, and further, an external signal such as noise of a delay portion is mistakenly tested as a part of the sweep frequency signal, thereby reducing the test accuracy of the audio device.
Disclosure of Invention
In view of the above, it is necessary to provide a testing method of an audio device, a testing apparatus, a computer device, and a computer-readable storage medium.
A method of testing an audio device, comprising:
generating an audio test signal, wherein the audio test signal comprises a mark signal arranged at the front end;
controlling the audio device to output the audio test signal;
acquiring an output signal of the audio equipment to generate audio acquisition data;
determining valid data in the audio acquisition data according to the mark signal in the audio acquisition data;
and determining the test result of the audio equipment based on the valid data.
In one embodiment, the step of generating an audio test signal comprises:
generating a mark signal and a sweep frequency signal according to preset parameters;
and combining the mark signal and the sweep frequency signal, and setting the mark signal at the front end of the sweep frequency signal to generate the audio test signal.
In one embodiment, the step of determining valid data in the audio capture data according to the flag signal in the audio capture data comprises:
determining the initial position of the mark signal in the audio acquisition data by combining preset parameters;
determining the initial position of effective data in the audio acquisition data according to the initial position of the mark signal and the length of the mark signal;
and acquiring the effective data according to the initial position of the effective data.
In one embodiment, the flag signal comprises a sine wave signal; the step of determining the start position of the marker signal in the audio acquisition data in combination with preset parameters comprises:
determining a preliminary range according to the sampling frequency and the time of searching the mark signal;
determining a target value according to the maximum value in the preliminary range, wherein the target value is smaller than the maximum value;
determining the first position reaching the target value in the preliminary range and a data range corresponding to a preset data length in the audio acquisition data by taking the position as an initial position;
and determining the starting position of the mark signal according to the maximum value in the data range and the periodic characteristic of the sine wave signal.
In one embodiment, the target value is greater than or equal to half of the maximum value in the preliminary range.
In one embodiment, the step of determining the start position of the flag signal according to the maximum value in the data range and the periodic characteristic of the sine wave signal includes:
and taking the position corresponding to the maximum value in the data range and the position obtained after advancing 1/4 sine wave signal periods as the starting position of the mark signal.
In one embodiment, the flag signal includes a sine wave signal and a wait signal, and the wait signal is configured between the sine wave signal and the sweep signal.
A test apparatus for an audio device, comprising:
the test signal generating module is used for generating an audio test signal, and the audio test signal comprises a mark signal arranged at the front end;
the output module is used for controlling the audio equipment to output the audio test signal;
the acquisition module is used for acquiring the output signal of the audio equipment and generating audio acquisition data;
the first determining module is used for determining effective data in the audio acquisition data according to the mark signal in the audio acquisition data;
and the second determination module is used for determining the test result of the audio equipment based on the effective data.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method for testing an audio device as described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method for testing an audio device as described above.
According to the testing method of the audio equipment, when the audio testing signal is generated, the mark signal is set at the front end in advance, when the audio acquisition data is analyzed and processed, the position of the mark signal can be determined firstly, the position between the mark signal and the effective signal is fixed, so that the position of the effective data in the audio acquisition data can be determined according to the position of the mark signal, the effective data can be further acquired, finally, the audio equipment is tested based on the effective data, the effective data can be accurately acquired, and the problem of low testing accuracy caused by mixing of external signals such as noise of a delay part and the like is solved.
Drawings
FIG. 1 is a diagram of a test scenario for an audio device;
FIG. 2 is a diagram illustrating a received frequency sweep signal in a conventional technique;
fig. 3 is a flowchart of a testing method of an audio device according to an embodiment of the present application;
fig. 4 is a flowchart of a testing method of an audio device according to an embodiment of the present application;
fig. 5 is a flowchart of a testing method of an audio device according to an embodiment of the present application;
fig. 6 is a flowchart of a testing method of an audio device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an audio test signal played in one embodiment of the present application;
FIG. 8 is an enlarged view of the junction of the marker signal and the sweep signal of FIG. 7;
fig. 9 is a schematic diagram of audio acquisition data acquired in a specific example of the present application;
FIG. 10 is an enlarged view of the junction of the marker signal and the swept frequency signal of FIG. 9;
FIG. 11 is a schematic diagram of the determined start position of the valid data in FIG. 10;
fig. 12 is a schematic structural diagram of a testing apparatus of an audio device according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; they may be directly connected or indirectly connected through intervening media, or they may be connected internally or in any other suitable relationship, unless expressly stated otherwise. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Fig. 1 is a test scene diagram of an audio device, where a computer controls a microphone and an audio device to be tested through a sound card (sound card), and the audio device to be tested may be a speaker or the like. After the equipment is pre-calibrated, a microphone is started, a sweep frequency signal is played through the audio equipment to be tested, the microphone collects the sweep frequency signal played by the audio equipment to be tested and is defined as sweep frequency data, and a computer analyzes and processes the sweep frequency data to obtain a Total Harmonic Distortion (THD) curve and a Frequency Response (FR) curve so as to judge the output performance of the audio equipment to be tested.
In the above testing process, since the time delay may occur in playing the sweep frequency signal, the received sweep frequency data contains external signals such as noise of the time delay part, and the start position of the truly effective data part cannot be accurately determined, so that the external signals such as noise are mistakenly analyzed as a part of the sweep frequency signal, and the testing precision is reduced. Fig. 2 is an exemplary graph of the received sweep data, the beginning portion of which is composed of noise and sweep signal connections, and the framed area in the graph is an unknown delay portion, about 950 data points, which would seriously affect the test result if these data were not processed and analyzed together as a sweep signal.
In view of the above problems, the present application provides a testing method of an audio device, a testing apparatus, a computer device, and a computer-readable storage medium.
In one embodiment, a testing method of an audio device is provided for testing the output performance of the audio device, wherein the audio device may comprise a loudspeaker and the like.
Referring to fig. 3, the method for testing an audio device provided in this embodiment includes the following steps:
step S100, generating an audio test signal, wherein the audio test signal comprises a mark signal arranged at the front end.
Firstly, an audio test signal is generated, specifically, related parameters may be configured first, and then a required audio test signal may be generated according to the configured parameters. The audio test signal includes a flag signal disposed at the front end, that is, the audio test signal may include a flag signal and a frequency sweep signal, the flag signal is located before the frequency sweep signal, and the flag signal may be set according to actual requirements, and may be a continuous sine wave signal or other types of signals, which is not limited herein. The flag signal is set to provide a reference for subsequent determination of the position of the swept frequency signal, and therefore, the flag signal and the swept frequency signal are generally set to different waveforms for distinction.
And step S200, controlling the audio equipment to output an audio test signal.
After the audio test signal is prepared, the audio device can be controlled to play the audio test signal. Before that, the audio device may be configured in relation to, for example, a sampling frequency of the audio device.
And step S300, acquiring an output signal of the audio equipment, and generating audio acquisition data.
In this embodiment, an audio acquisition device, such as a microphone, may be provided, and the output signal of the audio acquisition device is acquired through the audio acquisition device, so as to obtain audio acquisition data. Generally, if the output performance of the audio device is normal, the audio acquisition data is consistent with the audio test signal provided to the audio device, or the error is small, and if the output performance of the audio device is abnormal, the difference between the audio acquisition data and the audio test signal provided to the audio device is large.
Before the output signal is acquired, the audio acquisition device may be configured accordingly, for example, the sampling frequency of the audio acquisition device is configured.
And step S400, determining effective data in the audio acquisition data according to the mark signal in the audio acquisition data.
In this embodiment, valid data refers to a sweep signal useful for testing. In the embodiment, the position of the valid data is determined by the position of the marker signal in the audio acquisition data, and the marker signal is located in front of the valid data and has a known length, so that the embodiment can determine the starting position of the marker signal first, and then determine the ending position of the marker signal by combining the length of the marker signal, namely the starting position of the valid data, so as to accurately acquire the valid data.
And step S500, determining the test result of the audio equipment based on the valid data.
When the effective data is obtained, the effective data can be analyzed and calculated, and then the test result of the audio equipment is determined. Specifically, a Total Harmonic Distortion (THD) curve and a Frequency Response (FR) curve can be calculated from the valid data to determine the output performance of the audio device.
According to the testing method of the audio equipment, when the audio testing signal is generated, the mark signal is set at the front end in advance, when the audio acquisition data is analyzed and processed, the position of the mark signal can be determined firstly, the position between the mark signal and the effective signal is fixed, so that the position of the effective data in the audio acquisition data can be determined according to the position of the mark signal, the effective data can be further acquired, finally, the audio equipment is tested based on the effective data, the effective data can be accurately acquired, and the problem of low testing accuracy caused by mixing of external signals such as noise of a delay part and the like is solved.
Referring to fig. 4, in one embodiment, the step S100 of generating the audio test signal includes:
and step S110, generating a mark signal and a sweep frequency signal according to preset parameters.
In this embodiment, the preset parameters may include a frequency sweep range, a frequency sweep rule, a minimum number of single-frequency cycles, a minimum time of single-frequency, a frequency of a mark signal, a number of mark signal cycles, a mark signal ending wait time, a mark signal searching time, a mark signal amplitude, and the like.
For example, the sampling frequency may be set to 44100 Hz; the sweep frequency range can be set to be 20Hz-20 KHz; the sweep rule may be set to R40; the minimum number of cycles of the tone may be set to 12 cycles; the single frequency minimum time may be set to 15 ms; the value of the flag signal frequency may be less than the sampling frequency/20, for example 1000 Hz; the number of the periods of the mark signal can be more than or equal to 10, but is not easy to be too large for improving the test efficiency, such as 10; the value of the mark signal ending waiting time can be greater than or equal to 0.05s and less than or equal to 2s, and the mark signal ending waiting time is used for returning the signal to zero before the sweep frequency signal is played, and eliminating the interference of the mark signal to the sweep frequency signal, such as 0.1 s; the value of the time for searching the mark signal can be larger than the duration of the mark signal, but is not suitable to be too large, for example, 1 s; the flag signal amplitude may be set to 0.8.
Specifically, the frequency sweep signal may be generated according to a frequency sweep range, a frequency sweep rule, a single-frequency minimum cycle number, a single-frequency minimum time, and the like, and the flag signal may be generated according to a flag signal frequency, a flag signal cycle number, a flag signal end waiting time, a flag signal searching time, a flag signal amplitude, and the like.
For example, an audio test signal may be formed by generating a sine wave signal having a cycle number of 10, a frequency of 1000Hz, and an amplitude of 0.8, adding a 0 signal indicating the end waiting time of the flag signal by 1s as the flag signal, and adding a set sweep signal to the rear of the flag signal.
Of course, the selection of the parameters may be determined according to actual requirements, and the above list is only some optional parameters, and is not limited specifically.
And step S120, combining the mark signal and the sweep frequency signal, and setting the mark signal at the front end of the sweep frequency signal to generate an audio test signal.
After the mark signal and the sweep frequency signal are generated, the mark signal and the sweep frequency signal can be merged, and particularly, the mark signal can be arranged at the front end of the sweep frequency signal, namely, the position of the mark signal is used as a reference for determining the initial position of the sweep frequency signal, so that the generated audio test signal can be more beneficial to the subsequent identification of the effective data position.
Referring to fig. 5, in one embodiment, the step S400 of determining valid data in the audio capture data according to the flag signal in the audio capture data includes:
and step S410, determining the initial position of the mark signal in the audio acquisition data by combining preset parameters.
The preset parameter is a parameter used in the previous generation of the mark signal, and the preset parameter can be directly called. The start position of the marker signal in the audio acquisition data may be first determined in combination with the preset parameters.
Step S420, determining the start position of the valid data in the audio data according to the start position of the flag signal and the length of the flag signal.
The length of the mark signal can also be determined according to preset parameters, so that the end position of the mark signal can be determined according to the start position of the mark signal and the length of the mark signal, and the end position of the mark signal is the sweep frequency signal, i.e. the start position of the valid data, because the mark signal and the sweep frequency signal are in close position relation.
The mark signal may include a sine wave signal and a wait signal, the wait signal is disposed between the sine wave signal and the sweep signal, and the end position of the mark signal is the end position of the wait signal. The duration of the waiting signal can be set according to actual requirements, such as 0.1s, 0.2s, 0.3s and the like. The setting of the waiting signal can separate the mark signal from the sweep frequency signal, so that the interference of the mark signal to the sweep frequency signal is effectively avoided, and the reliability and the accuracy of the test are ensured.
And step S430, acquiring the effective data according to the initial position of the effective data.
When the start position of the valid data is determined, the data subsequent to the start position can be used as the valid data.
Referring to FIG. 6, in one embodiment, the flag signal comprises a sine wave signal. Step S410, determining the start position of the marker signal in the audio acquisition data by combining the preset parameters includes:
step S411, determining a preliminary range according to the sampling frequency and the time for searching the mark signal;
step S412, determining a target value according to the maximum value in the preliminary range, wherein the target value is smaller than the maximum value;
step S413, determining a first position within the preliminary range that reaches the target value, and a data range corresponding to a preset data length in the audio acquisition data, the preset data length taking the position as an initial position;
and step S414, determining the initial position of the mark signal according to the maximum value in the data range and the periodic characteristic of the sine wave signal.
The preliminary range is an approximate range in which the starting position of the mark signal determined according to the actual situation may fall, so as to improve the efficiency of searching the starting position of the mark signal. In this embodiment, the preliminary range may be determined according to the sampling frequency and the time of finding the flag signal, and specifically, the preliminary range may be [0, time of finding the flag signal × sampling frequency ].
After the preliminary range is determined, the maximum value in the preliminary range is determined, and a target value smaller than the maximum value is determined according to the maximum value, wherein preferably, the target value is greater than or equal to 50% of the maximum value, may be 50% of the target value, may be 70% of the target value, or 80% of the target value.
According to the characteristics of the sine wave, the sine wave signals of a plurality of periods in the sign signal comprise a plurality of peak values, each peak value can be consistent or inconsistent, and the maximum value in the preliminary range is determined, namely the maximum peak value in the sine wave signals close to the front end of the sign signal is determined. What needs to be determined in the present application is the start position of the mark signal, and the start position of the first sine wave signal, that is, the start position of the mark signal, can be determined by determining the peak value of the first sine wave signal in the mark signal. Considering that the peak values of the sine wave signals in each period may be inconsistent, therefore, the maximum value of the preliminary range is not necessarily the peak value of the first sine wave signal, and cannot be used as a reference standard for searching for the first sine wave signal period, so that a first position reaching the target value is searched for in the preliminary range by using the target value smaller than the maximum value as a reference value, the position is determined to fall into the first sine wave signal period, the position is used as a starting position, the maximum value in a data range of the preset data length from the beginning is determined, the position corresponding to the maximum value is the peak value position in the first sine wave signal period, and the starting position of the sign signal can be determined by combining the period characteristics of the sine wave signal.
The process for determining the initial position of the marker signal fully combines the periodic characteristics and waveform characteristics of the sine wave signal, is convenient for simply, conveniently and accurately determining the initial position of the marker signal, and effectively improves the analysis efficiency and precision.
If the target value is set too small, the noise signal may be filtered in step S413, and further the subsequent process is greatly interfered, so the target value is not easily set too small, and in this embodiment, the target value is set to be at least greater than or equal to half of the maximum value in the preliminary range.
In step S413, the preset data length may be determined according to the sampling frequency and the flag signal frequency, and may be the sampling frequency/the flag signal frequency, or may be the sampling frequency/2 × the flag signal frequency.
In one embodiment, the step S414 of determining the start position of the mark signal according to the maximum value in the data range and the periodic characteristic of the sine wave signal includes: the position corresponding to the maximum value in the data range is advanced by 1/4 sine wave signal periods to obtain the position as the start position of the mark signal.
Since the peak value in the period of the sine wave signal is 1/4 periods from the origin, the position corresponding to the maximum value in the data range, i.e., the position obtained by shifting the peak value position forward by 1/4 periods of the sine wave signal can be used as the origin of the first sine wave signal, i.e., the start position of the mark signal.
In one embodiment, the step S500 of determining the test result of the audio device based on the valid data includes: and cutting the effective data to obtain an array consisting of a plurality of single-frequency data, calculating each single-frequency data in the array to obtain a total harmonic distortion curve and a frequency response curve, and further determining a test result.
This embodiment snatchs the home position of valid data through adding identification signal, and it can not influence the product characteristic, and the flexibility is strong, and stability is high, can effectively avoid the sweep frequency signal valid data home position that the delay problem that computer system and physical environment lead to caused and snatch inaccurate problem, ensures the accuracy and the efficiency of test.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
The following describes a method for testing an audio device provided by the present application with a specific example:
1. calibrating the microphone and the loudspeaker;
2. setting parameters and generating an audio test signal according to the set parameters;
sampling frequency FS: 48000Hz
Frequency sweep range: 20Hz to 20000Hz
Frequency sweep rule: r40
Minimum time of single frequency: 15ms
Minimum number of cycles of tone: 12 period
Flag signal frequency FlagFre: 1000Hz
Flag signal period number flag n: 10
Flag signal end latency FlagWait: 0.1
Find flag signal time FlagSearch: 1
Flag signal amplitude flag amplitude: 0.5
3. Playing an audio test signal, fig. 7 is a waveform diagram corresponding to the played audio test signal, a small part of the area at the front end is a sign signal, and the rest is a sweep signal, and fig. 8 is an amplification schematic diagram of a junction of the sign signal and the sweep signal, where the sign signal includes a plurality of periods of sine wave signals and a waiting signal.
4. Obtaining the audio acquisition data, fig. 9 is a waveform diagram corresponding to the audio acquisition data, and fig. 10 is an enlarged schematic diagram of a boundary between the marker signal and the sweep signal in fig. 9.
5. The method for determining the start position of valid data according to this embodiment determines the start position of valid data to be the (X, Y) position shown in fig. 11, and further determines valid data;
6. and carrying out segmentation single frequency on the effective data and calculating to obtain a total harmonic distortion curve and a frequency response curve, thereby determining a test result.
Based on the same inventive concept, the embodiment of the application also provides a testing device of the audio equipment. The implementation scheme for solving the problem provided by the testing apparatus of the audio device is similar to the implementation scheme described in the above method, so specific limitations in the following embodiments of the testing apparatus of one or more audio devices may refer to the limitations in the foregoing testing method of the audio device, and details are not described here.
Referring to fig. 12, the testing apparatus for an audio device provided in this embodiment includes a test signal generating module 100, an output module 200, a collecting module 300, a first determining module 400, and a second determining module 500. Wherein:
the test signal generating module 100 is configured to generate an audio test signal, where the audio test signal includes a flag signal disposed at a front end;
the output module 200 is used for controlling the audio device to output an audio test signal;
the acquisition module 300 is configured to acquire an output signal of an audio device and generate audio acquisition data;
the first determining module 400 is configured to determine valid data in the audio acquisition data according to the flag signal in the audio acquisition data;
the second determination module 500 is configured to determine a test result of the audio device based on the valid data.
According to the testing device of the audio equipment, when the audio testing signal is generated, the mark signal is set at the front end in advance, when the audio acquisition data is analyzed and processed, the position of the mark signal can be determined firstly, the position between the mark signal and the effective signal is fixed, so that the position of the effective data in the audio acquisition data can be determined according to the position of the mark signal, the effective data can be obtained, finally, the audio equipment is tested based on the effective data, the effective data can be accurately obtained, and the problem that the testing accuracy is low due to the fact that external signals such as noise of a delay part are mixed is avoided.
In one embodiment, the test signal generating module 100 is configured to generate a flag signal and a frequency sweep signal according to preset parameters; and combining the mark signal and the sweep frequency signal, and setting the mark signal at the front end of the sweep frequency signal to generate an audio test signal.
In one embodiment, the first determining module 400 is configured to determine a starting position of a flag signal in the audio acquisition data in combination with preset parameters; determining the initial position of effective data in the audio acquisition data according to the initial position of the mark signal and the length of the mark signal; and obtaining the effective data according to the initial position of the effective data.
In one embodiment, the flag signal comprises a sine wave signal; the first determining module 400 is configured to determine a preliminary range according to the sampling frequency and the time for finding the flag signal; determining a target value according to the maximum value in the preliminary range, wherein the target value is smaller than the maximum value; determining a first position reaching a target value in the preliminary range and a data range corresponding to a preset data length with the position as an initial position in the audio acquisition data; the start position of the flag signal is determined based on the maximum value in the data range and the periodic characteristics of the sine wave signal.
In one embodiment, the target value is greater than or equal to half of the maximum value in the preliminary range.
In one embodiment, the first determining module 400 is configured to forward the position corresponding to the maximum value in the data range by 1/4 sine wave signal periods as the start position of the flag signal.
In one embodiment, the flag signal includes a sine wave signal and a wait signal, and the wait signal is configured between the sine wave signal and the sweep signal.
The various modules in the testing device of the audio device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 13 is a schematic structural diagram of a computer device according to an embodiment of the present application, where the computer device may be a server, and an internal structural diagram of the computer device may be as shown in fig. 13. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing various data related to the testing method of the audio equipment. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of testing an audio device.
Those skilled in the art will appreciate that the architecture shown in fig. 13 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A method for testing an audio device, comprising:
generating an audio test signal, wherein the audio test signal comprises a mark signal arranged at the front end;
controlling the audio device to output the audio test signal;
acquiring an output signal of the audio equipment to generate audio acquisition data;
determining valid data in the audio acquisition data according to the mark signal in the audio acquisition data;
and determining the test result of the audio equipment based on the valid data.
2. The method for testing an audio device of claim 1, wherein the step of generating an audio test signal comprises:
generating a mark signal and a sweep frequency signal according to preset parameters;
and combining the mark signal and the sweep frequency signal, and setting the mark signal at the front end of the sweep frequency signal to generate the audio test signal.
3. The method for testing an audio device according to claim 1, wherein the step of determining valid data in the audio capture data according to the flag signal in the audio capture data comprises:
determining the initial position of the mark signal in the audio acquisition data by combining preset parameters;
determining the initial position of effective data in the audio acquisition data according to the initial position of the mark signal and the length of the mark signal;
and acquiring the effective data according to the initial position of the effective data.
4. The method for testing an audio device according to claim 3, wherein the flag signal includes a sine wave signal; the step of determining the start position of the marker signal in the audio acquisition data in combination with preset parameters comprises:
determining a preliminary range according to the sampling frequency and the time of searching the mark signal;
determining a target value according to the maximum value in the preliminary range, wherein the target value is smaller than the maximum value;
determining the first position reaching the target value in the preliminary range and a data range corresponding to a preset data length in the audio acquisition data by taking the position as an initial position;
and determining the starting position of the mark signal according to the maximum value in the data range and the periodic characteristic of the sine wave signal.
5. The method of testing an audio device according to claim 4, wherein the target value is greater than or equal to half of a maximum value in the preliminary range.
6. The method for testing an audio device according to claim 4, wherein the step of determining the start position of the flag signal based on the maximum value in the data range and the periodic characteristic of the sine wave signal comprises:
and taking the position corresponding to the maximum value in the data range and the position obtained after advancing 1/4 sine wave signal periods as the starting position of the mark signal.
7. The method for testing an audio device according to claim 2, wherein the flag signal includes a sine wave signal and a wait signal, and the wait signal is arranged between the sine wave signal and the sweep signal.
8. An apparatus for testing an audio device, comprising:
the test signal generating module is used for generating an audio test signal, and the audio test signal comprises a mark signal arranged at the front end;
the output module is used for controlling the audio equipment to output the audio test signal;
the acquisition module is used for acquiring the output signal of the audio equipment and generating audio acquisition data;
the first determining module is used for determining effective data in the audio acquisition data according to the mark signal in the audio acquisition data;
and the second determination module is used for determining the test result of the audio equipment based on the effective data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of testing an audio device of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of testing an audio device of any one of claims 1 to 7.
CN202111349601.XA 2021-11-15 2021-11-15 Testing method and testing device for audio equipment and computer equipment Pending CN114071343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111349601.XA CN114071343A (en) 2021-11-15 2021-11-15 Testing method and testing device for audio equipment and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111349601.XA CN114071343A (en) 2021-11-15 2021-11-15 Testing method and testing device for audio equipment and computer equipment

Publications (1)

Publication Number Publication Date
CN114071343A true CN114071343A (en) 2022-02-18

Family

ID=80272077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111349601.XA Pending CN114071343A (en) 2021-11-15 2021-11-15 Testing method and testing device for audio equipment and computer equipment

Country Status (1)

Country Link
CN (1) CN114071343A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004166106A (en) * 2002-11-15 2004-06-10 Sony Corp Distance measurement correction system, distance measurement apparatus, and distance measurement correction apparatus
CN104243723A (en) * 2014-09-28 2014-12-24 辽宁省建设科学研究院 Nonlinear distortion detection method for audio signals of visitor talkback system
US20150023509A1 (en) * 2013-07-18 2015-01-22 Harman International Industries, Inc. Apparatus and method for performing an audio measurement sweep
CN105657632A (en) * 2016-01-08 2016-06-08 深圳市金立通信设备有限公司 Audio test method and system and terminal
CN109257688A (en) * 2018-07-23 2019-01-22 东软集团股份有限公司 Audio distinguishes method, apparatus, storage medium and electronic equipment
CN110365555A (en) * 2019-08-08 2019-10-22 广州虎牙科技有限公司 Audio delay test method, device, electronic equipment and readable storage medium storing program for executing
CN111182435A (en) * 2020-01-13 2020-05-19 北京松果电子有限公司 Testing method and device of voice equipment
CN111988722A (en) * 2019-05-22 2020-11-24 和硕联合科技股份有限公司 Test audio generation method and analysis method
CN112017693A (en) * 2019-05-30 2020-12-01 腾讯科技(深圳)有限公司 Audio quality evaluation method and device
CN112702687A (en) * 2020-12-18 2021-04-23 厦门亿联网络技术股份有限公司 Method for quickly confirming loudspeaker or complete machine distortion

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004166106A (en) * 2002-11-15 2004-06-10 Sony Corp Distance measurement correction system, distance measurement apparatus, and distance measurement correction apparatus
US20150023509A1 (en) * 2013-07-18 2015-01-22 Harman International Industries, Inc. Apparatus and method for performing an audio measurement sweep
CN104243723A (en) * 2014-09-28 2014-12-24 辽宁省建设科学研究院 Nonlinear distortion detection method for audio signals of visitor talkback system
CN105657632A (en) * 2016-01-08 2016-06-08 深圳市金立通信设备有限公司 Audio test method and system and terminal
CN109257688A (en) * 2018-07-23 2019-01-22 东软集团股份有限公司 Audio distinguishes method, apparatus, storage medium and electronic equipment
CN111988722A (en) * 2019-05-22 2020-11-24 和硕联合科技股份有限公司 Test audio generation method and analysis method
CN112017693A (en) * 2019-05-30 2020-12-01 腾讯科技(深圳)有限公司 Audio quality evaluation method and device
CN110365555A (en) * 2019-08-08 2019-10-22 广州虎牙科技有限公司 Audio delay test method, device, electronic equipment and readable storage medium storing program for executing
CN111182435A (en) * 2020-01-13 2020-05-19 北京松果电子有限公司 Testing method and device of voice equipment
CN112702687A (en) * 2020-12-18 2021-04-23 厦门亿联网络技术股份有限公司 Method for quickly confirming loudspeaker or complete machine distortion

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
SHUAI CAO等: "Effective Audio Signal Arrival Time Detection Algorithm for Realization of Robust Acoustic Indoor Positioning", IEEE TRANSACTIONS ON INSTRUMENTATION AND MEASUREMENT, 19 March 2020 (2020-03-19) *
唐建东;: "基于LABVIEW的音频功放特性测试系统", 微计算机信息, no. 22, 5 August 2010 (2010-08-05) *

Similar Documents

Publication Publication Date Title
CN110265064B (en) Audio frequency crackle detection method, device and storage medium
US8853516B2 (en) Audio analysis apparatus
CN111724782A (en) Response time testing system, method and equipment of vehicle-mounted voice interaction system
CN111383646B (en) Voice signal transformation method, device, equipment and storage medium
CN111031463B (en) Microphone array performance evaluation method, device, equipment and medium
CN111182435B (en) Testing method and device of voice equipment
US11164551B2 (en) Amplifier matching in a digital amplifier modeling system
CN108571997B (en) Method and device for detecting stable contact of probe with measured point
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN108711415B (en) Method, apparatus and storage medium for correcting time delay between accompaniment and dry sound
CN114071343A (en) Testing method and testing device for audio equipment and computer equipment
CN109979487B (en) Voice signal detection method and device
CN109121068A (en) Sound effect control method, apparatus and electronic equipment
CN111654781B (en) Low-frequency drive compensation method and system based on loudspeaker
CN111148005B (en) Method and device for detecting mic sequence
CN112911483B (en) Interception method, device and storage medium for effective data starting point of feedback signal
CN111885474A (en) Microphone testing method and device
CN112420077B (en) Sound positioning method and device, testing method and system, equipment and storage medium
WO2021135235A1 (en) Automatic debugging method and system for loudspeaker
CN116297883B (en) Structure identification method, device and system based on knocking sound and terminal equipment
CN110646655B (en) RMS value-based triggering method and digital oscilloscope
CN110609769B (en) Method and related device for measuring signal acquisition delay
CN117354701A (en) Method, device, equipment and medium for testing vehicle audio system
CN113571033A (en) Detection method and equipment for back stepping of accompaniment and computer readable storage medium
CN117560613A (en) Delay test method, delay test device, electronic equipment, storage medium and delay test system

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