CN114071343B - Audio equipment testing method, testing device and computer equipment - Google Patents

Audio equipment testing method, testing device and computer equipment Download PDF

Info

Publication number
CN114071343B
CN114071343B CN202111349601.XA CN202111349601A CN114071343B CN 114071343 B CN114071343 B CN 114071343B CN 202111349601 A CN202111349601 A CN 202111349601A CN 114071343 B CN114071343 B CN 114071343B
Authority
CN
China
Prior art keywords
signal
audio
data
determining
sine wave
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
CN202111349601.XA
Other languages
Chinese (zh)
Other versions
CN114071343A (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.)
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/CN114071343B/en
Publication of CN114071343A publication Critical patent/CN114071343A/en
Application granted granted Critical
Publication of CN114071343B publication Critical patent/CN114071343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

Abstract

The application relates to the technical field of audio, and particularly discloses a testing method and device for audio equipment and computer equipment. The method comprises the steps of generating an audio test signal, wherein the audio test signal comprises a mark signal arranged at the front end; controlling the audio equipment to output an audio test signal; acquiring an output signal of audio equipment and generating audio acquisition data; determining effective data in the audio acquisition data according to the mark signals in the audio acquisition data; based on the valid data, a test result of the audio device is determined. According to the method for testing the audio equipment, the position of the effective data in the audio acquisition data can be determined according to the position of the marking signal, the effective data are 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 external signals such as noise of a delay part and the like is avoided.

Description

Audio equipment testing method, testing device and computer equipment
Technical Field
The present invention relates to the field of audio technologies, and in particular, to a method and apparatus for testing an audio device, and a computer device.
Background
In the field of audio technology, it is often necessary to test the output performance of an audio device, generally, a frequency sweep signal may be played through the audio device, then received, and the received frequency sweep data is analyzed and processed, so as to determine the output performance of the audio device.
However, due to factors such as computer system reasons and distance factors in physical environment, a delay phenomenon may occur when a frequency sweep signal is sent out, which causes that the starting point position of a truly effective data part in the received frequency sweep data is difficult to determine, and further, external signals such as noise of the delay part and the like are tested as part of the frequency sweep signal by mistake, so that the testing precision of the audio equipment is reduced.
Disclosure of Invention
Based on this, it is necessary to provide a test method of an audio device, a test apparatus, a computer device, and a computer-readable storage medium, in view of the above-described problems.
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 equipment to output the audio test signal;
acquiring an output signal of the audio equipment to generate audio acquisition data;
Determining effective data in the audio acquisition data according to the sign signals in the audio acquisition data;
And determining a test result of the audio equipment based on the effective data.
In one embodiment, the step of generating the audio test signal comprises:
generating a sign 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 collection data according to the flag signal in the audio collection data includes:
determining the initial position of the sign signal in the audio acquisition data by combining preset parameters;
determining the starting position of effective data in the audio acquisition data according to the starting position of the marking signal and the length of the marking signal;
And acquiring the effective data according to the starting position of the effective data.
In one embodiment, the flag signal comprises a sine wave signal; the step of determining the starting position of the sign signal in the audio acquisition data by combining with a preset parameter comprises the following steps:
Determining a preliminary range according to the sampling frequency and the time for searching for 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 a position which reaches the target value first in the preliminary range, and determining a data range corresponding to a preset data length taking the position as a starting position in the audio acquisition data;
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 taking the position obtained after shifting forward by 1/4 sine wave signal period as the initial position of the mark signal.
In one embodiment, the marker signal includes a sine wave signal and a wait signal, the wait signal being disposed between the sine wave signal and the sweep signal.
A test apparatus for an audio device, comprising:
the test signal generation module is used for generating an audio test signal, wherein 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 sign signals in the audio acquisition data;
And the second determining 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 above-described method of testing an audio device when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method of testing an audio device described above.
According to the method for testing the audio equipment, when the audio test signal is generated, the marking signal is arranged at the front end in advance, when the audio acquisition data is analyzed and processed, the position of the marking signal can be determined firstly, and as the position between the marking signal and the effective signal is fixed, the position of the effective data in the audio acquisition data can be determined according to the position of the marking 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.
Drawings
FIG. 1 is a test scenario diagram of an audio device;
FIG. 2 is a diagram of a received swept frequency signal according to the prior art;
FIG. 3 is a flowchart of a method for testing an audio device according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for testing an audio device according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for testing an audio device according to an embodiment of the present application;
FIG. 6 is a flowchart of a method for testing an audio device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of an audio test signal played in a specific example of the present application;
FIG. 8 is an enlarged view of the connection between the marker signal and the sweep signal in FIG. 7;
FIG. 9 is a schematic diagram of audio acquisition data obtained in a specific example of the present application;
FIG. 10 is an enlarged view of the junction of the marker signal and the sweep signal of FIG. 9;
FIG. 11 is a schematic diagram of the determined starting position of the valid data of FIG. 10;
Fig. 12 is a schematic structural diagram of a testing apparatus for 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
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. The drawings illustrate preferred embodiments of the invention. 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 explicitly specified and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly, through intermediaries, or both, may be in communication with each other or in interaction with each other, unless expressly defined otherwise. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
The terms "first," "second," and the like, 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 defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined 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 herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Fig. 1 is a diagram of a test scenario of an audio device, where a computer controls a capture microphone and the audio device to be tested, which may be a speaker or the like, through a sound card (sound card). After the equipment is pre-calibrated, a microphone is started, a frequency sweep signal is played through the audio equipment to be tested, the microphone collects the frequency sweep signal played by the audio equipment to be tested and is defined as frequency sweep data, and a computer analyzes and processes the frequency sweep data to obtain a Total Harmonic Distortion (THD) curve and a Frequency Response (FR) curve, so that the output performance of the audio equipment to be tested is judged.
In the test process, delay may occur in playing the sweep frequency signal, so that the received sweep frequency data contains external signals such as noise of a delay part, and the initial position of a real effective data part cannot be accurately determined, thus the external signals such as noise are also used as a part of the sweep frequency signal for analysis, and the test precision is reduced. Fig. 2 is an exemplary plot of received swept data, the beginning of which is composed of noise and swept signal connections, the framed area of the plot being the unknown delay portion, about 950 data points, which would severely impact the test results if analyzed together as a swept signal without processing the data.
In view of the foregoing, the present application provides a method for testing an audio device, a testing apparatus, a computer device, and a computer-readable storage medium.
In one embodiment, a method for testing an audio device is provided for testing output performance of the audio device, wherein the audio device may include a speaker or 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.
The audio test signal is first generated, specifically, the relevant parameters may be configured first, and then the 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 sweep frequency signal, where the flag signal is located before the sweep frequency signal, and the flag signal may be set according to an actual requirement, may be a continuous sine wave signal, or may be another type of signal, and is not limited herein specifically. The flag signal is set to provide a reference for the subsequent determination of the position of the swept frequency signal, and therefore, the flag signal is typically set to a different waveform signal from the swept frequency signal for discrimination.
Step 200, controlling the audio device to output an audio test signal.
After the audio test signal is ready, the audio device can be controlled to play the audio test signal. Prior to this, the audio device may be configured in relation, for example, the sampling frequency of the audio device.
Step S300, obtaining an output signal of the audio equipment and generating audio acquisition data.
In this embodiment, an audio collection device, such as a microphone, may be provided, and the output signal of the audio device is collected by the audio collection device, so as to obtain audio collection data. Generally, if the output performance of the audio device is normal, the audio collection 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 collection data and the audio test signal provided to the audio device is large.
The audio acquisition device may be configured in relation to, for example, the sampling frequency of the audio acquisition device, prior to the acquisition of the output signal.
Step S400, according to the sign signals in the audio acquisition data, determining effective data in the audio acquisition data.
In this embodiment, the valid data refers to a swept frequency signal that is useful for testing. In the embodiment, the position of the effective data is determined by the position of the flag signal in the audio acquisition data, and the flag signal is located in front of the effective data and has a known length, so that the embodiment can determine the start position of the flag signal first, then determine the end position of the flag signal, that is, the start position of the effective data by combining the length of the flag signal, and further accurately acquire the effective data.
And S500, determining a test result of the audio equipment based on the effective 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 may be calculated from the effective data to determine the output performance of the audio device.
According to the method for testing the audio equipment, when the audio test signal is generated, the marking signal is arranged at the front end in advance, when the audio acquisition data is analyzed and processed, the position of the marking signal can be determined firstly, and as the position between the marking signal and the effective signal is fixed, the position of the effective data in the audio acquisition data can be determined according to the position of the marking 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.
Referring to fig. 4, in one embodiment, step S100, the step of generating an audio test signal, includes:
step S110, generating a sign 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 cycle number of a single frequency, a minimum time of a single frequency, a frequency of a flag signal, a number of cycles of the flag signal, a waiting time for ending the flag signal, a time for searching the flag signal, an amplitude of the flag signal, and the like.
For example, the sampling frequency may be set to 44100Hz; the sweep frequency range can be set to be 20Hz-20KHz; the sweep rule may be set to R40; the single frequency minimum cycle number may be set to 12 cycles; the single frequency minimum time may be set to 15ms; the sign signal frequency may be less than the sampling frequency/20, e.g., 1000Hz; the number of the mark signal periods can be more than or equal to 10, but is not easy to be excessively large, such as 10, in order to improve the test efficiency; the value of the end waiting time of the sign signal can be larger than or equal to 0.05s and smaller than or equal to 2s, and the sign signal is used for zeroing the signal before playing the sweep signal, so that the interference of the sign signal on the sweep signal is eliminated, for example, 0.1s; the value of the time for searching the sign signal can be larger than the duration of the sign signal, but is not excessively large, for example, 1s; the flag signal amplitude may be set to 0.8.
Specifically, the sweep signal may be generated according to a sweep range, a 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 search time, a flag signal amplitude, and the like.
For example, a sine wave signal with the period number of 10, the frequency of 1000Hz and the amplitude of 0.8 can be generated, and a 0 signal of the end waiting time of a 1s mark signal is added at the same time, so that the sine wave signal is taken as the mark signal, and a set sweep frequency signal is added behind the mark signal, so that an audio test signal is formed.
Of course, the parameters may be selected according to the actual requirements, and the above list of some optional parameters is not limited in particular.
Step S120, combining the sign signal and the sweep frequency signal, and setting the sign signal at the front end of the sweep frequency signal to generate an audio test signal.
After the sign signal and the sweep frequency signal are generated, the sign signal and the sweep frequency signal can be combined, and the sign signal can be arranged at the front end of the sweep frequency signal, namely, the position of the sign 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, step S400, that is, the step of determining valid data in the audio collection data according to the flag signal in the audio collection data, includes:
Step S410, determining the initial position of the sign signal in the audio acquisition data by combining with the preset parameters.
The preset parameters are parameters adopted when the sign signal is generated before, and the parameters are directly called. The starting position of the sign signal in the audio acquisition data can be determined firstly by combining preset parameters.
Step S420, determining the starting position of the effective data in the audio acquisition data according to the starting position of the sign signal and the length of the sign signal.
The length of the mark signal can also be determined according to the 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 start position of the frequency sweep signal, namely the effective data, because the mark signal and the frequency sweep signal are in a close positional relationship.
The sign signal may include a sine wave signal and a waiting signal, where the waiting signal is disposed between the sine wave signal and the sweep frequency signal, and the end position of the sign signal is the end position of the waiting signal. The duration of waiting for the signal can be set according to the actual requirement, for example, 0.1s or 0.2s or 0.3s, etc. The setting of waiting signal can separate sign signal and sweep frequency signal, and then effectively avoids sign signal to cause the interference to the sweep frequency signal, guarantees reliability and the accuracy of test.
Step S430, obtaining the effective data according to the initial position of the effective data.
When the starting position of the effective data is determined, the data after the starting position can be used as the effective data.
Referring to fig. 6, in one embodiment, the flag signal comprises a sine wave signal. Step S410, namely, the step of determining the starting position of the flag signal in the audio acquisition data in combination with the preset parameters includes:
Step S411, determining a preliminary range according to the sampling frequency and the time for searching for 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 position reaching a target value for the first time in the preliminary range, and a data range corresponding to a preset data length taking the position as a starting position in the audio acquisition data;
Step S414, determining the starting position of the sign signal according to the maximum value in the data range and the periodic characteristic of the sine wave signal.
The preliminary range is a rough range within which the start position of the sign signal may fall, which is determined according to practical situations, so as to improve efficiency of searching the start position of the sign signal. In this embodiment, the preliminary range may be determined according to the sampling frequency and the time for searching for the flag signal, and specifically, the preliminary range may be [0 ], the time for searching for the flag signal is the sampling frequency ].
After the preliminary range is determined, a maximum value in the preliminary range may be determined, and a target value smaller than the maximum value is determined according to the maximum value, where preferably, the target value is greater than or equal to 50% of the maximum value, which may be target value=50% of the maximum value, or may be target value=70% of the maximum value, or target value=80% of the maximum value.
According to the characteristics of the sine wave, the sine wave signals of a plurality of periods in the mark 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, which are close to the front end, of the mark signal is determined. The application needs to determine the starting position of the sign signal, and the starting position of the first sine wave signal, namely the starting position of the sign signal, can be determined by determining the peak value of the first sine wave signal in the sign signal. Considering that the peak values of the sine wave signals in each period may be inconsistent, 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 the period of the first sine wave signal, therefore, the target value smaller than the maximum value is used as a reference value, the position which reaches the target value first is searched in the preliminary range, the position which falls into the period of the first sine wave signal is determined, the position is used as the initial position, the maximum value in the data range of the preset data length is determined, the position corresponding to the maximum value is the peak value position in the period of the first sine wave signal, and the initial position of the mark signal can be determined by combining the period characteristics of the sine wave signals.
The process for determining the initial position of the sign signal fully combines the periodic characteristics and the waveform characteristics of the sine wave signal, is convenient for simply and accurately determining the initial position of the sign signal, and effectively improves the analysis efficiency and the analysis precision.
If the target value is set too small, in step S413, the noise signal may be filtered in, and thus a larger disturbance is caused to the subsequent process, so the target value is not easy to be 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, which may be the sampling frequency/the flag signal frequency or the sampling frequency/2×the flag signal frequency.
In one embodiment, step S414, that is, 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 taking the position obtained after shifting forward by 1/4 sine wave signal period as the initial position of the sign signal.
Since the peak value in the period of the sine wave signal is 1/4 of the period 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 of the period of the sine wave signal can be used as the origin of the first sine wave signal, i.e., the start position of the flag signal.
In one embodiment, step S500, i.e. the step of determining the test result of the audio device based on the valid data, comprises: cutting the effective data to obtain an array composed 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.
According to the embodiment, the starting position of the effective data is grabbed by adding the identification signal, the product characteristics are not affected, the flexibility is high, the stability is high, the problem that the starting position of the effective data of the sweep frequency signal is grabbed inaccurately due to the delay problem caused by a computer system and a physical environment can be effectively avoided, and the accuracy and the efficiency of testing are ensured.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
The following describes a test method of 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
Sweep frequency range: 20Hz to 20000Hz
Sweep frequency rule: r40
Single frequency minimum time: 15ms of
Single frequency minimum cycle number: 12 cycles
Flag signal frequency FlagFre:1000Hz
Number of flag signal cycles FlagN:10
Flag signal end latency FlagWait:0.1
Seek flag signal time FLAGSEARCH:1
Sign signal amplitude FlagAmplitude:0.5
3. Fig. 7 is a waveform diagram corresponding to the played audio test signal, a small part of the area at the forefront is a sign signal, the rest is a sweep frequency signal, fig. 8 is an enlarged schematic diagram of the junction of the sign signal and the sweep frequency signal, wherein the sign signal comprises sine wave signals with a plurality of periods and a waiting signal.
4. Fig. 9 is a waveform diagram corresponding to the audio acquisition data, and fig. 10 is an enlarged schematic diagram of the junction between the marker signal and the sweep signal in fig. 9.
5. The determination method of the valid data start position according to the present embodiment determines that the valid data start position is the (X, Y) position shown in fig. 11, thereby determining valid data;
6. and dividing the effective data into single frequency 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 of the solution provided by the testing apparatus of the audio device is similar to the implementation scheme described in the above method, so the specific limitation in the embodiments of the testing apparatus of one or more audio devices provided below may refer to the limitation of the testing method of the audio device hereinabove, and will not be repeated herein.
Referring to fig. 12, the test apparatus for an audio device provided in this embodiment includes a test signal generating module 100, an output module 200, an acquisition 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 used for acquiring an output signal of the audio equipment and generating audio acquisition data;
The first determining module 400 is configured to determine valid data in the audio collection data according to the flag signal in the audio collection data;
the second determining 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 test signal is generated, the marking signal is arranged at the front end in advance, when the audio acquisition data is analyzed and processed, the position of the marking signal can be determined firstly, and as the position between the marking signal and the effective signal is fixed, the position of the effective data in the audio acquisition data can be determined according to the position of the marking 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.
In one embodiment, the test signal generating module 100 is configured to generate a sign signal and a 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 start position of a flag signal in the audio acquisition data in combination with a preset parameter; determining the starting position of effective data in the audio acquisition data according to the starting position of the sign signal and the length of the sign signal; and acquiring the effective data according to the starting 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 searching for 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 position reaching a target value for the first time in the preliminary range, and determining a data range corresponding to a preset data length taking the position as a starting position in audio acquisition data; 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 first determining module 400 is configured to use a position corresponding to a maximum value in the data range, and the position obtained after shifting forward by 1/4 period of the sine wave signal as a starting position of the flag signal.
In one embodiment, the flag signal includes a sine wave signal and a wait signal, the wait signal being disposed between the sine wave signal and the sweep signal.
The respective modules in the test apparatus of the audio device described above may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above 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 structure 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 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing various data related to the testing method of the audio device. 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.
It will be appreciated by those skilled in the art that the structure shown in FIG. 13 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the 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 method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the patent. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of 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 equipment to output the audio test signal;
acquiring an output signal of the audio equipment to generate audio acquisition data;
determining effective data in the audio acquisition data according to the sign signals in the audio acquisition data; the step of determining valid data in the audio collection data according to the flag signal in the audio collection data comprises the following steps:
determining the initial position of the sign signal in the audio acquisition data by combining preset parameters;
Determining the starting position of effective data in the audio acquisition data according to the starting position of the marking signal and the length of the marking signal; the marker signal includes a sine wave signal; the step of determining the starting position of the sign signal in the audio acquisition data by combining with a preset parameter comprises the following steps:
Determining a preliminary range according to the sampling frequency and the time for searching for 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 a position which reaches the target value first in the preliminary range, and determining a data range corresponding to a preset data length taking the position as a starting position in the audio acquisition data;
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;
Acquiring the effective data according to the initial position of the effective data;
And determining a test result of the audio equipment based on the effective data.
2. The method of testing an audio device of claim 1, wherein the step of generating an audio test signal comprises:
generating a sign 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 target value is greater than or equal to half of a maximum value in the preliminary range.
4. The method of testing an audio device according to claim 1, 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 taking the position obtained after shifting forward by 1/4 sine wave signal period as the initial position of the mark signal.
5. The method according to claim 2, wherein the flag signal includes a sine wave signal and a wait signal, and the wait signal is disposed between the sine wave signal and the sweep signal.
6. A test apparatus for an audio device, comprising:
the test signal generation module is used for generating an audio test signal, wherein 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 sign signals in the audio acquisition data; the first determining module is further used for determining the starting position of the marking signal in the audio acquisition data by combining with preset parameters; determining the starting position of effective data in the audio acquisition data according to the starting position of the sign signal and the length of the sign signal; acquiring effective data according to the initial position of the effective data;
The marker signal includes a sine wave signal; the first determining module is further used for determining a preliminary range according to the sampling frequency and the time for 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 a position reaching a target value for the first time in the preliminary range, and determining a data range corresponding to a preset data length taking the position as a starting position in audio acquisition data; 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;
And the second determining module is used for determining the test result of the audio equipment based on the effective data.
7. The apparatus of claim 6, wherein the test signal generation module is configured to generate a flag signal and a 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.
8. The apparatus of claim 6, wherein the first determining module is configured to use a position corresponding to a maximum value in the data range, and the position obtained after advancing by 1/4 cycle of the sine wave signal as a start position of the flag signal.
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, carries out the steps of the method of testing an audio device according to any one of claims 1 to 5.
10. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of testing an audio device according to any one of claims 1 to 5.
CN202111349601.XA 2021-11-15 2021-11-15 Audio equipment testing method, testing device and computer equipment Active CN114071343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111349601.XA CN114071343B (en) 2021-11-15 2021-11-15 Audio equipment testing method, testing device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111349601.XA CN114071343B (en) 2021-11-15 2021-11-15 Audio equipment testing method, testing device and computer equipment

Publications (2)

Publication Number Publication Date
CN114071343A CN114071343A (en) 2022-02-18
CN114071343B true CN114071343B (en) 2024-06-07

Family

ID=80272077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111349601.XA Active CN114071343B (en) 2021-11-15 2021-11-15 Audio equipment testing method, testing device and computer equipment

Country Status (1)

Country Link
CN (1) CN114071343B (en)

Citations (13)

* 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
CN101740079A (en) * 2009-11-27 2010-06-16 深圳市同洲电子股份有限公司 Method for automatically testing audio output function based on interval tolerance method
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
CN109362016A (en) * 2018-09-18 2019-02-19 北京小鸟听听科技有限公司 Audio-frequence player device and its test method and test device
CN109831733A (en) * 2019-02-26 2019-05-31 北京百度网讯科技有限公司 Test method, device, equipment and the storage medium of audio broadcast performance
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
CN112420077A (en) * 2020-11-19 2021-02-26 展讯通信(上海)有限公司 Sound positioning method and device, testing method and system, equipment and storage medium
CN112702687A (en) * 2020-12-18 2021-04-23 厦门亿联网络技术股份有限公司 Method for quickly confirming loudspeaker or complete machine distortion

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9596553B2 (en) * 2013-07-18 2017-03-14 Harman International Industries, Inc. Apparatus and method for performing an audio measurement sweep

Patent Citations (13)

* 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
CN101740079A (en) * 2009-11-27 2010-06-16 深圳市同洲电子股份有限公司 Method for automatically testing audio output function based on interval tolerance method
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
CN109362016A (en) * 2018-09-18 2019-02-19 北京小鸟听听科技有限公司 Audio-frequence player device and its test method and test device
CN109831733A (en) * 2019-02-26 2019-05-31 北京百度网讯科技有限公司 Test method, device, equipment and the storage medium of audio broadcast performance
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
CN112420077A (en) * 2020-11-19 2021-02-26 展讯通信(上海)有限公司 Sound positioning method and device, testing method and system, equipment and storage medium
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
Effective Audio Signal Arrival Time Detection Algorithm for Realization of Robust Acoustic Indoor Positioning;Shuai Cao等;IEEE Transactions on Instrumentation and Measurement;20200319;全文 *
基于LABVIEW的音频功放特性测试系统;唐建东;;微计算机信息;20100805(第22期);全文 *

Also Published As

Publication number Publication date
CN114071343A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
CN107516510B (en) Automatic voice testing method and device for intelligent equipment
CN108009303B (en) Search method and device based on voice recognition, electronic equipment and storage medium
CN113986187B (en) Audio region amplitude acquisition method and device, electronic equipment and storage medium
CN111724782A (en) Response time testing system, method and equipment of vehicle-mounted voice interaction system
CN106469555B (en) Voice recognition method and terminal
CN108571997B (en) Method and device for detecting stable contact of probe with measured point
CN108711415B (en) Method, apparatus and storage medium for correcting time delay between accompaniment and dry sound
CN111383646A (en) Voice signal transformation method, device, equipment and storage medium
CN113470618A (en) Wake-up test method and device, electronic equipment and readable storage medium
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN114071343B (en) Audio equipment testing method, testing device and computer equipment
CN112230212B (en) Radar ranging signal processing method and device
CN111065036B (en) Frequency response testing method and device of microphone array
CN110996244B (en) Microphone array performance test method, device and system
CN111507254B (en) Method, apparatus, terminal and non-transitory computer readable storage medium for producing word-by-word lyrics
CN111210817B (en) Data processing method and device
CN112420077B (en) Sound positioning method and device, testing method and system, equipment and storage medium
CN108419199A (en) Fault detection method, device and the equipment of acoustic signals, readable medium
CN104835500A (en) Method and device for acquiring audio information
JP2019032242A (en) Attenuation time analytic method, device, and program
CN114093392A (en) Audio labeling method, device, equipment and storage medium
CN111782868A (en) Audio processing method, device, equipment and medium
CN110913211A (en) Method for detecting MIC of set top box, computer readable storage medium and set top box
CN116297883B (en) Structure identification method, device and system based on knocking sound and terminal equipment
CN111654781B (en) Low-frequency drive compensation method and system based on loudspeaker

Legal Events

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