CN111613242B - Method and device for testing audio line of equipment and electronic equipment - Google Patents

Method and device for testing audio line of equipment and electronic equipment Download PDF

Info

Publication number
CN111613242B
CN111613242B CN201910139091.XA CN201910139091A CN111613242B CN 111613242 B CN111613242 B CN 111613242B CN 201910139091 A CN201910139091 A CN 201910139091A CN 111613242 B CN111613242 B CN 111613242B
Authority
CN
China
Prior art keywords
audio
audio data
similarity
determining
test
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
CN201910139091.XA
Other languages
Chinese (zh)
Other versions
CN111613242A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910139091.XA priority Critical patent/CN111613242B/en
Publication of CN111613242A publication Critical patent/CN111613242A/en
Application granted granted Critical
Publication of CN111613242B publication Critical patent/CN111613242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • G10L25/60Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination for measuring the quality of voice signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/004Monitoring arrangements; Testing arrangements for microphones

Abstract

The embodiment of the invention provides a method and a device for testing an equipment audio circuit and electronic equipment, wherein the method is applied to the electronic equipment, the electronic equipment is provided with an audio output device and an audio input device, the audio output device and the audio input device form a loop in a preset mode, and the method comprises the following steps: acquiring test audio data; outputting the test audio data through the audio output device; acquiring audio data received by the audio input device through the loop as stopover audio data; determining the similarity of the stoped audio data and the test audio data; and determining a test result of the audio circuit of the electronic equipment based on the similarity. Because the audio circuit is not required to be tested manually, the testing efficiency is greatly improved, the influence of manual factors is eliminated, and the testing accuracy is also greatly improved.

Description

Method and device for testing audio line of equipment and electronic equipment
Technical Field
The present invention relates to the field of device performance testing technologies, and in particular, to a method and an apparatus for testing an audio line of a device, and an electronic device.
Background
For an electronic device with audio output and input functions, before the electronic device is put into use or when an audio line or the device fails during use, an audio line test is generally required to determine whether the audio line is qualified or not and whether the audio line can meet the requirements of normal use or not.
Currently, the most commonly used way to test the audio line is to manually test each audio input/output. The threshold is low because only the training of testers is needed to correctly use the testing equipment for testing, and the method is widely used in factory testing. The general process is as follows: the tester receives the test audio data to the audio input end, plays the input audio data through the audio output end after the input is finished, and judges whether the audio circuit is qualified or not by listening to the played sound.
However, the audio input and output channels need to be tested one by one manually, so that the testing efficiency is low. In addition, the accuracy of the test result is difficult to guarantee because the personal factors of the tester, the abilities of different testers and the like can influence the test result.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for testing an audio circuit of equipment and electronic equipment, so as to improve the efficiency and accuracy of audio circuit testing. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for testing an audio line of an apparatus, which is applied to an electronic apparatus, where the electronic apparatus has an audio output device and an audio input device, and the audio output device and the audio input device form a loop in a preset manner, and the method includes:
acquiring test audio data;
outputting the test audio data through the audio output device;
acquiring audio data received by the audio input device through the loop as stopover audio data;
determining the similarity of the stoped audio data and the test audio data;
and determining a test result of the audio circuit of the electronic equipment based on the similarity.
Optionally, the step of determining the similarity between the extraction audio data and the test audio data includes:
and calculating the similarity of the stoped audio data and the test audio data by using a cross-correlation algorithm.
Optionally, before the step of determining the test result of the audio line of the electronic device based on the similarity, the method further includes:
determining a target confidence corresponding to the similarity of the extraction audio data and the test audio data according to a preset corresponding relation between the similarity and the confidence;
the step of determining the test result of the audio line of the electronic equipment based on the similarity comprises the following steps:
judging whether the target confidence coefficient reaches a preset confidence coefficient;
if the preset confidence level is reached, determining that the test result of the audio circuit of the electronic equipment is qualified;
and if the preset confidence coefficient is not reached, determining that the test result of the audio circuit of the electronic equipment is unqualified.
Optionally, before the step of determining the test result of the audio line of the electronic device based on the similarity, the method further includes:
acquiring audio output parameters of the electronic equipment;
calculating the energy values of the stoped audio data and the test audio data;
determining a standard energy value according to the energy value of the test audio data and the audio output parameter;
the step of determining a test result of the audio line of the electronic device based on the similarity includes:
and determining a test result of the audio circuit of the electronic equipment according to the energy value of the sampling audio data, the standard energy value and the similarity.
Optionally, the step of determining a test result of the audio line of the electronic device according to the energy value of the mining audio data, the standard energy value, and the similarity includes:
judging whether the difference value of the energy value of the back-collected audio data and the standard energy value is within a preset range or not, and judging whether the similarity reaches a preset similarity or not;
if the difference value is within the preset range and the similarity reaches the preset similarity, determining that the test result of the audio circuit of the electronic equipment is qualified;
and if the difference is not within the preset range and/or the similarity does not reach the preset similarity, determining that the test result of the audio line of the electronic equipment is unqualified.
Optionally, the audio output device is an audio cable output port, the audio input device is an audio cable input port, and the audio cable output port and the audio cable input port are connected through an audio cable to form a loop;
or the like, or, alternatively,
the audio output device is a loudspeaker, the audio input device is a microphone, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or a combination thereof,
the audio output device is an audio cable output port, the audio input device is a microphone, the audio cable output port is connected with a loudspeaker through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or a combination thereof,
the audio output device is a loudspeaker, the audio input device is an audio cable input port, the audio cable input port is connected with the microphone through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation.
In a second aspect, an embodiment of the present invention provides a device for testing an audio line of an apparatus, which is applied to an electronic apparatus, where the electronic apparatus has an audio output device and an audio input device, and the audio output device and the audio input device form a loop in a preset manner, and the device includes:
the audio data acquisition module is used for acquiring test audio data;
the audio data output module is used for outputting the test audio data through the audio output device;
the audio data receiving module is used for acquiring the audio data received by the audio input device through the loop as the back-sampling audio data;
the similarity determining module is used for determining the similarity between the extraction audio data and the test audio data;
and the test result determining module is used for determining the test result of the audio circuit of the electronic equipment based on the similarity.
Optionally, the similarity determining module includes:
and the similarity determining submodule is used for calculating the similarity between the stoping audio data and the test audio data by utilizing a cross-correlation algorithm.
Optionally, the apparatus further comprises:
a confidence level determining module, configured to determine, according to a preset correspondence between similarity degrees and confidence levels, a target confidence level corresponding to the similarity degree between the mining audio data and the test audio data before determining a test result of the audio line of the electronic device based on the similarity degree;
the test result determination module includes:
the confidence coefficient judgment submodule is used for judging whether the target confidence coefficient reaches the preset confidence coefficient;
the first test result determining submodule is used for determining that the test result of the audio circuit of the electronic equipment is qualified if the preset confidence level is reached;
and the second test result determining submodule is used for determining that the test result of the audio circuit of the electronic equipment is unqualified if the preset confidence coefficient is not reached.
Optionally, the apparatus further comprises:
an audio parameter obtaining module, configured to obtain an audio output parameter of the electronic device before the test result of the audio line of the electronic device is determined based on the similarity;
the first energy value determining module is used for calculating the energy values of the back-sampling audio data and the testing audio data;
the second energy value determining module is used for determining a standard energy value according to the energy value of the test audio data and the audio output parameter;
the test result determining module includes:
and the third test result determining submodule is used for determining a test result of the audio circuit of the electronic equipment according to the energy value of the back-collected audio data, the standard energy value and the similarity.
Optionally, the third test result determining sub-module includes:
the judging unit is used for judging whether the difference value of the energy value of the back-collected audio data and the standard energy value is within a preset range or not and judging whether the similarity reaches a preset similarity or not;
a first test result determining unit, configured to determine that a test result of the audio line of the electronic device is qualified if the difference is within the preset range and the similarity reaches the preset similarity;
and the second test result determining unit is used for determining that the test result of the audio circuit of the electronic equipment is unqualified if the difference value is not within the preset range and/or the similarity does not reach the preset similarity.
Optionally, the audio output device is an audio cable output port, the audio input device is an audio cable input port, and the audio cable output port and the audio cable input port are connected through an audio cable to form a loop;
or the like, or a combination thereof,
the audio output device is a loudspeaker, the audio input device is a microphone, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or, alternatively,
the audio output device is an audio cable output port, the audio input device is a microphone, the audio cable output port is connected with a loudspeaker through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or, alternatively,
the audio output device is a loudspeaker, the audio input device is an audio cable input port, the audio cable input port is connected with the microphone through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, a communication bus, an audio output device, and an audio input device, where the processor, the communication interface, and the memory complete mutual communication through the communication bus; the audio output device and the audio input device form a loop in a preset mode;
a memory for storing a computer program;
and the processor is used for realizing the steps of the testing method of the audio circuit of the equipment when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the method for testing an audio line of a device described above.
In the scheme provided by the embodiment of the invention, the electronic equipment is provided with the audio output device and the audio input device, and the audio output device and the audio input device form a loop in a preset mode. The electronic equipment acquires test audio data, outputs the test audio data through the audio output device, acquires audio data received by the audio input device as the extraction audio data, determines the similarity between the extraction audio data and the test audio data, and finally determines the test result of the audio circuit of the electronic equipment based on the similarity. Because the audio circuit is not required to be tested manually, the testing efficiency is greatly improved, the influence of manual factors is eliminated, and the testing accuracy is also greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for testing an audio line of a device according to an embodiment of the present invention;
FIG. 2 is a detailed flowchart of step S105 in the embodiment shown in FIG. 1;
FIG. 3 is a flow chart of one manner of determining an energy value based on the embodiment shown in FIG. 1;
FIG. 4 is a flow chart of one manner of determining the results of testing based on the embodiment shown in FIG. 1;
FIG. 5 is a schematic diagram of a first loop in a method for testing an audio line of a device according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating a second loop of the method for testing the audio line of the device according to the embodiment of the present invention;
FIG. 7 is a diagram illustrating a third loop in the method for testing the audio line of the device according to the embodiment of the present invention;
FIG. 8 is a diagram illustrating a fourth loop of the method for testing an audio line of a device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a device for testing an audio line of an apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In order to improve efficiency and accuracy of testing an audio line of an electronic device, embodiments of the present invention provide a method and an apparatus for testing an audio line of a device, an electronic device, and a computer-readable storage medium.
First, a method for testing an audio line of a device according to an embodiment of the present invention is described below.
The method for testing the audio circuit of the equipment provided by the embodiment of the invention can be applied to electronic equipment with an audio output and input function, the electronic equipment can be provided with an audio output device and an audio input device, and the audio output device and the audio input device form a loop in a preset mode so as to facilitate audio loop back test.
The test mode of audio circuit for electronic equipment with audio input and output functions is generally audio loop test, that is, an audio output device and an audio input device of the electronic equipment are communicated to form a loop in a certain mode. Among them, the loop is divided into two types: one is a cable loop and the other is an airborne sound wave propagation loop. The method for testing the audio line of the equipment provided by the embodiment of the invention can be applied to the test of the audio line of any loop electronic equipment.
As shown in fig. 1, a method for testing an audio line of a device is applied to an electronic device, and the method includes:
s101, obtaining test audio data;
s102, outputting the test audio data through the audio output device;
s103, acquiring audio data received by the audio input device through the loop as stopover audio data;
s104, determining the similarity between the stoped audio data and the test audio data;
and S105, determining a test result of the audio line of the electronic equipment based on the similarity.
Therefore, in the scheme provided by the embodiment of the invention, the electronic equipment is provided with the audio output device and the audio input device, and the audio output device and the audio input device form a loop in a preset mode. The electronic equipment acquires test audio data, outputs the test audio data through the audio output device, acquires audio data received by the audio input device as the extraction audio data, determines the similarity between the extraction audio data and the test audio data, and finally determines the test result of the audio circuit of the electronic equipment based on the similarity. Because the audio circuit is not required to be tested manually, the testing efficiency is greatly improved, the influence of manual factors is eliminated, and the testing accuracy is also greatly improved.
In the step S101, it is reasonable that the electronic device may acquire the test audio data, where the test audio data may be audio data stored in a memory of the electronic device in advance, or audio data acquired by the electronic device from other electronic devices.
As an embodiment, the test audio data may be audio data having specific spectral characteristics, for example, audio data having constant energy values in several specific frequency ranges and no energy values in other frequency ranges. The selection of the test audio data may be determined according to actual test requirements, and is not limited herein.
After obtaining the test audio data, the electronic device may output the test audio data through the audio output device, that is, play the test audio data through the audio output device, that is, execute the step S102. Furthermore, the electronic device may perform the step S103, namely, obtain the audio data received by the audio input device through the loop, and use the audio data as the back-collected audio data.
After the audio output device plays the test audio data, the audio input device can receive the audio data through the loop, and the electronic equipment can obtain the audio data. Due to the influence of the audio circuit, the audio data received by the audio input device through the loop cannot be completely the same as the test audio data, and the electronic equipment can take the audio data received by the audio input device through the loop as the recovery audio data.
Then, the electronic device can determine the similarity between the mining audio data and the test audio data, and the higher the similarity between the mining audio data and the test audio data is, the more similar the spectral distribution and the waveform of the mining audio data and the test audio data are; the lower the similarity between the extracted audio data and the test audio data, the less similar the spectral distribution and waveform of the extracted audio data and the test audio data, so in step S105, the electronic device may determine the test result of the audio line of the electronic device based on the similarity.
As an embodiment, the electronic device may preset a threshold, where the threshold may be determined according to a similarity between the output audio data and the input audio data of the qualified audio line, and is not specifically limited herein. Furthermore, when the similarity between the extraction audio data and the test audio data reaches the threshold, it is indicated that the frequency spectrum distribution and the waveform of the extraction audio data and the test audio data are relatively similar, the performance of the audio line is relatively good, and the requirement of actual use can be met, so that the test result of the audio line of the electronic equipment can be determined to be qualified.
On the contrary, when the similarity between the extraction audio data and the test audio data does not reach the threshold, it indicates that the frequency spectrum distribution and the waveform of the extraction audio data and the test audio data are relatively dissimilar, the performance of the audio line is poor, and the requirement of actual use cannot be met, so that the test result of the audio line of the electronic equipment can be determined to be unqualified.
As an implementation manner of the embodiment of the present invention, the step of determining the similarity between the extraction audio data and the test audio data may include:
and calculating the similarity of the stoped audio data and the test audio data by using a cross-correlation algorithm.
The meaning of the cross-correlation of the two functions is: infinite integrals are made by respectively conjugating the complex numbers and translating them in opposite directions and multiplying them. Physically, the result of the cross-correlation operation reflects a measure of similarity, i.e., the degree of similarity, between the two signals. Therefore, the electronic device may calculate the similarity of the retrieved audio data and the trial audio data using a cross-correlation algorithm. Moreover, the similarity of the extraction audio data and the test audio data is calculated by utilizing a cross-correlation algorithm and is not influenced by the loudness of the extraction audio data and the test audio data.
The result of the mining audio data and the test audio data obtained by the calculation of the cross-correlation algorithm represents the similarity of the frequency spectrum distribution and the waveform of the mining audio data and the test audio data, and the result can be used as the similarity of the mining audio data and the test audio data. The larger the value of the result is, the higher the similarity degree of the spectral distribution and the waveform of the back-collected audio data and the test audio data is proved; the smaller the value of the result, the lower the degree of similarity of the spectral distribution and waveform of the extraction audio data and the test audio data is demonstrated.
Therefore, in this embodiment, the electronic device may calculate the similarity between the retrieved audio data and the test audio data by using a cross-correlation algorithm to obtain an accurate similarity, so that the test result of subsequently determining the audio line of the electronic device is more accurate.
As an implementation manner of the embodiment of the present invention, before the step of determining a test result of the audio line of the electronic device based on the similarity, the method may further include:
and determining a target confidence corresponding to the similarity between the extraction audio data and the test audio data according to a preset corresponding relation between the similarity and the confidence.
For different electronic devices, the range of the similarity between the determined extraction audio data and the test audio data may be variable, so that in order to intuitively represent the similarity between the extraction audio data and the test audio data, the electronic device may preset a correspondence between the similarity and the confidence level, and further determine a target confidence level corresponding to the similarity between the extraction audio data and the test audio data according to the correspondence.
In one embodiment, the confidence level may range from 0 to 100 to meet the scoring criteria in general concepts. For example, if the similarity between the extraction audio data and the test audio data ranges from 0 to 200 and the confidence level ranges from 0 to 100, the correspondence relationship between the preset similarity and the confidence level may be that the confidence level = similarity between the extraction audio data and the test audio data/2. If the similarity between the mining audio data and the test audio data is 187, the target confidence level is 187/2=93.5.
Accordingly, as shown in fig. 2, the step of determining the test result of the audio line of the electronic device based on the similarity may include:
s201, judging whether the target confidence reaches a preset confidence; if the preset confidence level is reached, executing step S202; if the preset confidence coefficient is not reached, executing step S203;
after determining the target confidence corresponding to the similarity between the retrieved audio data and the test audio data, the electronic device may determine whether the target confidence reaches a preset confidence. The preset confidence level can be determined according to an empirical value of the confidence level corresponding to the similarity between the sampling audio data corresponding to the qualified audio line and the test audio data.
For example, when the confidence corresponding to the similarity between the mining audio data and the test audio data is 60, the audio line may meet the use requirement, and then the preset confidence may be determined to be 60.
Then, when the electronic device determines that the target confidence reaches the preset confidence, which indicates that the audio line of the electronic device can meet the usage requirement and the performance is better, step S202 may be executed, that is, the test result of the audio line of the electronic device is determined to be qualified.
If the electronic device determines that the target confidence level does not reach the preset confidence level, which indicates that the audio line of the electronic device may not meet the usage requirement yet, and the performance is poor, step S203 may be executed, that is, it is determined that the test result of the audio line of the electronic device is not qualified.
S202, determining that the test result of the audio circuit of the electronic equipment is qualified;
s203, determining that the test result of the audio line of the electronic equipment is unqualified.
Therefore, in this embodiment, the electronic device may determine a target confidence corresponding to the similarity between the extracted audio data and the tested audio data according to a preset correspondence between the similarity and the confidence, and further determine whether the audio line is qualified by determining whether the target confidence reaches a preset confidence, where the confidence may be used to more intuitively represent the performance of the tested audio line.
As an implementation manner of the embodiment of the present invention, before the step of determining the test result of the audio line of the electronic device based on the similarity, as shown in fig. 3, the method may further include:
s301, acquiring audio output parameters of the electronic equipment;
to test whether the audio line meets the usage requirements in terms of loudness of the audio data, the electronic device may first obtain audio output parameters of the electronic device. The loudness of the audio data is the volume of the audio data.
Since there is a specific correspondence between the loudness of the input audio data and the loudness of the output audio data, i.e., the audio output parameters, for different electronic devices having audio output and input functions. For example, the loudness of the input audio data is 80% of the loudness of the output audio data, and the like, and is not particularly limited herein.
After the electronic device obtains the audio output parameters of the electronic device, the corresponding relationship between the loudness of the input audio data and the loudness of the output audio data, that is, the corresponding relationship between the loudness of the test audio data and the loudness of the extraction audio data, can be determined.
S302, calculating energy values of the extraction audio data and the test audio data;
the loudness of audio data may be represented by its energy value, with the greater the energy value, the greater the audio loudness, and the smaller the energy value, the lesser the audio loudness. Therefore, the electronic device can calculate the energy values of the sampling audio data and the testing audio data.
The method for calculating the energy values of the extraction audio data and the test audio data may be any energy value calculation method in the field of audio processing, for example, the energy values may be calculated by integrating the time domain amplitude squares of analog signals, summing the time domain amplitude squares of digital signals, summing the frequency domain amplitude squares of digital signals, and the like, and is not limited specifically herein.
The execution sequence of the steps S301 and S302 is not particularly limited, and it is reasonable to execute the step S301 and then execute the step S302, execute the step S302 and then execute the step S301, and execute the step S301 and the step S302 at the same time.
And S303, determining a standard energy value according to the energy value of the test audio data and the audio output parameter.
After the energy value of the test audio data and the audio output parameter are obtained through calculation, the standard energy value can be determined. When the audio output parameter of the electronic device is the audio output parameter, and the audio circuit transmits audio data without loss, the standard energy value is an ideal energy value received by the audio input device.
As an embodiment, the standard energy value may be a product of an energy value of the test audio data and the audio output parameter. For example, if the energy value of the test audio data is 800 joules and the audio output parameter is 80%, the standard energy value is 800 × 80% =640 joules.
Correspondingly, the step of determining the test result of the audio line of the electronic device based on the similarity may include:
and determining a test result of the audio circuit of the electronic equipment according to the energy value of the back-collected audio data, the standard energy value and the similarity.
After determining the standard energy value and the energy value of the mining audio data, the electronic device may determine whether the loudness of the audio line of the electronic device meets the use requirement in terms of the loudness of the audio data according to the relationship between the energy value of the mining audio data and the standard energy value.
According to the similarity, the electronic equipment can determine whether the audio circuit of the electronic equipment meets the use requirement in terms of spectrum distribution and waveform. Specifically, whether the audio line of the electronic device meets the use requirement in terms of spectrum distribution and waveform may be determined by using the above confidence level, which is not described herein again.
It can be seen that, in this embodiment, the electronic device may calculate the energy values of the extraction audio data and the test audio data based on the audio output parameter, and further, may determine whether the audio line of the electronic device satisfies the use requirement in terms of loudness according to the energy value of the extraction audio data and the standard energy value.
As an implementation manner of the embodiment of the present invention, as shown in fig. 4, the step of determining a test result of an audio line of the electronic device according to the energy value of the mining audio data, the standard energy value, and the similarity may include:
s401, judging whether the difference value of the energy value of the back-collected audio data and the standard energy value is within a preset range, and judging whether the similarity reaches a preset similarity; if the difference value is within the preset range and the similarity reaches the preset similarity, executing step S402; if the difference value is not within the preset range and/or the similarity does not reach the preset similarity, executing step S403;
in order to determine whether the loudness of the audio data of the audio line of the electronic device meets the usage requirement, the electronic device may determine whether the difference between the energy value of the retrieved audio data and the standard energy value is within a preset range.
When the standard energy value is the audio output parameter of the electronic device, and the audio circuit does not have an ideal energy value received by the audio input device when the audio output parameter is lost during audio data transmission, the difference value between the energy value of the collected audio data and the standard energy value is within a preset range, which indicates that the difference value between the energy value of the collected audio data and the ideal energy value is not large, and thus indicates that the audio circuit of the electronic device has good performance in the loudness aspect of the audio data, and can meet the use requirement.
On the contrary, if the difference between the energy value of the mining audio data and the standard energy value is not within the preset range, it indicates that the difference between the energy value of the mining audio data and the ideal energy value is large, and it indicates that the performance of the audio line of the electronic device in terms of the loudness of the audio data is poor, and the usage requirement cannot be met.
The preset range may be determined according to actual usage requirements of the audio line of the electronic device, and if the requirement on the loudness of the audio line data is high, the preset range may be set to be narrow, and if the requirement on the loudness of the audio line data is low, the preset range may be set to be wide, which is not specifically limited herein.
S402, determining that the test result of the audio circuit of the electronic equipment is qualified;
if the difference value between the energy value of the collected audio data and the standard energy value is within the preset range and the similarity reaches the preset similarity, it indicates that the loudness of the audio line of the electronic device in terms of audio data, spectral distribution and waveform are both in accordance with the use requirements, and then the test result of the audio line of the electronic device can be determined to be qualified.
And S403, determining that the test result of the audio circuit of the electronic equipment is unqualified.
If the difference value between the energy value of the back-picked audio data and the standard energy value is not within the preset range, and/or the similarity does not reach the preset similarity, the loudness of the audio line of the electronic equipment in the audio data is indicated, and/or the audio line of the electronic equipment is not qualified in terms of both the spectral distribution and the waveform, or both the spectral distribution and the waveform, the test result of the audio line of the electronic equipment can be determined to be unqualified.
Therefore, in the embodiment, whether the frequency spectrum distribution and the waveform of the audio line meet the use requirements or not can be tested, and whether the loudness of the audio line meets the use requirements or not can also be tested, so that the test result is more comprehensive, and the accuracy is higher.
As an implementation manner of the embodiment of the present invention, a manner in which the audio output device and the audio input device form a loop may include various manners.
In the first embodiment, as shown in fig. 5, the audio output device is an audio cable output port 510, the audio input device is an audio cable input port 520, and the audio cable output port 510 and the audio cable input port 520 are connected by an audio cable 530 to form a cable loop.
In the second embodiment, as shown in fig. 6, the audio output device is a speaker 610, the audio input device is a microphone 620, and the speaker 610 and the microphone 620 form a loop through air sound wave propagation.
In the third embodiment, as shown in fig. 7, the audio output device is an audio cable outlet 710, the audio input device is a microphone 720, the audio cable outlet 710 is connected to a speaker 740 through an audio cable 730, and the speaker 740 and the microphone 720 form a loop through air sound wave propagation.
In the fourth embodiment, as shown in fig. 8, the audio output device is a speaker 810, the audio input device is an audio cable input port 820, the audio cable input port 820 is connected to a microphone 840 through an audio cable 830, and the speaker 810 and the microphone 840 form a loop through air sound wave propagation.
The audio cable may be an audio cable with Interface types such as RCA (Radio Corporation of American, lotus receptacle), HDMI (High Definition Multimedia Interface), and optical fiber, and is not limited herein.
Therefore, the method for testing the audio line of the equipment provided by the embodiment of the invention can be used for testing the audio line with a loop formed in any one of the above modes, and an accurate test result can be obtained no matter what mode is used for forming the loop by the audio output device and the audio input device, so that the application range is wide.
Corresponding to the testing method of the equipment audio circuit, the embodiment of the invention also provides a testing device of the equipment audio circuit.
The following describes a device for testing an audio line of a device according to an embodiment of the present invention.
A testing device of an audio line of equipment is applied to electronic equipment, the electronic equipment is provided with an audio output device and an audio input device, the audio output device and the audio input device form a loop in a preset mode, as shown in figure 9, the device comprises:
an audio data obtaining module 910, configured to obtain test audio data;
an audio data output module 920, configured to output the test audio data through the audio output device;
an audio data receiving module 930, configured to obtain audio data received by the audio input device through the loop as extraction audio data;
a similarity determining module 940 for determining similarity between the extraction audio data and the test audio data;
a test result determining module 950, configured to determine a test result of the audio line of the electronic device based on the similarity.
Therefore, in the scheme provided by the embodiment of the invention, the electronic equipment is provided with the audio output device and the audio input device, and the audio output device and the audio input device form a loop in a preset mode. The electronic equipment acquires test audio data, outputs the test audio data through the audio output device, acquires audio data received by the audio input device as the extraction audio data, determines the similarity between the extraction audio data and the test audio data, and finally determines the test result of the audio circuit of the electronic equipment based on the similarity. Because the audio circuit is not required to be tested manually, the testing efficiency is greatly improved, the influence of manual factors is eliminated, and the testing accuracy is also greatly improved.
As an implementation manner of the embodiment of the present invention, the similarity determining module 940 may include:
a similarity determination submodule (not shown in fig. 9) for calculating a similarity of the mining audio data and the test audio data using a cross-correlation algorithm.
As an implementation manner of the embodiment of the present invention, the apparatus may further include:
a confidence level determining module (not shown in fig. 9) configured to determine, according to a preset correspondence between similarity degrees and confidence levels, a target confidence level corresponding to the similarity degrees of the mining audio data and the test audio data before the determination of the test result of the audio circuit of the electronic device based on the similarity degrees;
the test result determining module 950 may include:
a confidence level judging submodule (not shown in fig. 9) for judging whether the target confidence level reaches a preset confidence level;
a first test result determining submodule (not shown in fig. 9) configured to determine that the test result of the audio line of the electronic device is qualified if the preset confidence level is reached;
and a second test result determining sub-module (not shown in fig. 9) configured to determine that the test result of the audio line of the electronic device is not qualified if the preset confidence level is not reached.
As an implementation manner of the embodiment of the present invention, the apparatus may further include:
an audio parameter obtaining module (not shown in fig. 9) configured to obtain an audio output parameter of the electronic device before the determining of the test result of the audio line of the electronic device based on the similarity;
a first energy value determination module (not shown in fig. 9) for calculating energy values of the extraction audio data and the test audio data;
a second energy value determining module (not shown in fig. 9) for determining a standard energy value according to the energy value of the test audio data and the audio output parameter;
the test result determining module 950 may include:
and a third test result determining submodule (not shown in fig. 9) for determining a test result of the audio line of the electronic device according to the energy value of the sampling audio data, the standard energy value, and the similarity.
As an implementation manner of the embodiment of the present invention, the third test result determining sub-module may include:
a judging unit (not shown in fig. 9) configured to judge whether a difference between the energy value of the mining audio data and the standard energy value is within a preset range, and judge whether the similarity reaches a preset similarity;
a first test result determining unit (not shown in fig. 9) configured to determine that a test result of the audio line of the electronic device is qualified if the difference is within the preset range and the similarity reaches the preset similarity;
a second test result determining unit (not shown in fig. 9) configured to determine that the test result of the audio line of the electronic device is not qualified if the difference is not within the preset range and/or the similarity does not reach the preset similarity.
As an implementation manner of the embodiment of the present invention, the audio output device is an audio cable output port, the audio input device is an audio cable input port, and the audio cable output port and the audio cable input port are connected by an audio cable to form a loop;
or the like, or a combination thereof,
the audio output device is a loudspeaker, the audio input device is a microphone, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or a combination thereof,
the audio output device is an audio cable output port, the audio input device is a microphone, the audio cable output port is connected with a loudspeaker through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or, alternatively,
the audio output device is a loudspeaker, the audio input device is an audio cable input port, the audio cable input port is connected with the microphone through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation.
As shown in fig. 10, the electronic device may include a processor 1001, a communication interface 1002, a memory 1003, a communication bus 1004, an audio output device, and an audio input device, where the processor 1001, the communication interface 1002, and the memory 1003 complete mutual communication through the communication bus 1004, and the audio output device and the audio input device form a loop in a preset manner;
a memory 1003 for storing a computer program;
the processor 1001 is configured to implement the following steps when executing the program stored in the memory 1003:
acquiring test audio data;
outputting the test audio data through the audio output device;
acquiring audio data received by the audio input device through the loop as stopover audio data;
determining the similarity of the stoped audio data and the test audio data;
and determining a test result of the audio circuit of the electronic equipment based on the similarity.
Therefore, in the scheme provided by the embodiment of the invention, the electronic equipment is provided with the audio output device and the audio input device, and the audio output device and the audio input device form a loop in a preset mode. The electronic equipment acquires test audio data, outputs the test audio data through the audio output device, acquires audio data received by the audio input device as the extraction audio data, determines the similarity between the extraction audio data and the test audio data, and finally determines the test result of the audio circuit of the electronic equipment based on the similarity. Because the audio circuit is not required to be tested manually, the testing efficiency is greatly improved, the influence of manual factors is eliminated, and the testing accuracy is also greatly improved.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
The step of determining the similarity between the mining audio data and the test audio data may include:
and calculating the similarity of the stoped audio data and the test audio data by using a cross-correlation algorithm.
Before the step of determining the test result of the audio line of the electronic device based on the similarity, the method may further include:
determining a target confidence corresponding to the similarity of the extraction audio data and the test audio data according to a preset corresponding relation between the similarity and the confidence;
the step of determining a test result of the audio line of the electronic device based on the similarity may include:
judging whether the target confidence coefficient reaches a preset confidence coefficient;
if the preset confidence level is reached, determining that the test result of the audio circuit of the electronic equipment is qualified;
and if the preset confidence coefficient is not reached, determining that the test result of the audio circuit of the electronic equipment is unqualified.
Before the step of determining the test result of the audio line of the electronic device based on the similarity, the method may further include:
acquiring audio output parameters of the electronic equipment;
calculating the energy values of the stoped audio data and the test audio data;
determining a standard energy value according to the energy value of the test audio data and the audio output parameter;
the step of determining a test result of the audio line of the electronic device based on the similarity may include:
and determining a test result of the audio circuit of the electronic equipment according to the energy value of the back-collected audio data, the standard energy value and the similarity.
The step of determining the test result of the audio line of the electronic device according to the energy value of the mining audio data, the standard energy value and the similarity may include:
judging whether the difference value of the energy value of the back-collected audio data and the standard energy value is within a preset range or not, and judging whether the similarity reaches a preset similarity or not;
if the difference value is within the preset range and the similarity reaches the preset similarity, determining that the test result of the audio circuit of the electronic equipment is qualified;
and if the difference is not within the preset range and/or the similarity does not reach the preset similarity, determining that the test result of the audio line of the electronic equipment is unqualified.
The audio output device is an audio cable output port, the audio input device is an audio cable input port, and the audio cable output port and the audio cable input port are connected through an audio cable to form a loop;
or the like, or, alternatively,
the audio output device is a loudspeaker, the audio input device is a microphone, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or a combination thereof,
the audio output device is an audio cable output port, the audio input device is a microphone, the audio cable output port is connected with a loudspeaker through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or, alternatively,
the audio output device is a loudspeaker, the audio input device is an audio cable input port, the audio cable input port is connected with the microphone through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation.
An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when executed by a processor, the computer program implements the following steps:
acquiring test audio data;
outputting the test audio data through an audio output device;
acquiring audio data received by an audio input device through the loop as the extraction audio data;
determining the similarity of the stoped audio data and the test audio data;
and determining a test result of the audio circuit of the electronic equipment based on the similarity.
It can be seen that in the solution provided in the embodiment of the present invention, when the computer program is executed by the processor, the test audio data is obtained, then the test audio data is output through the audio output device, then the audio data received by the audio input device is obtained as the extraction audio data, the similarity between the extraction audio data and the test audio data is determined, and finally the test result of the audio line of the electronic device is determined based on the similarity. Because the audio circuit is not required to be tested manually, the testing efficiency is greatly improved, the influence of manual factors is eliminated, and the testing accuracy is also greatly improved.
The step of determining the similarity between the extraction audio data and the test audio data may include:
and calculating the similarity of the extraction audio data and the test audio data by using a cross-correlation algorithm.
Before the step of determining the test result of the audio line of the electronic device based on the similarity, the method may further include:
determining a target confidence coefficient corresponding to the similarity of the stoped audio data and the test audio data according to a preset corresponding relation between the similarity and the confidence coefficient;
the step of determining the test result of the audio line of the electronic device based on the similarity may include:
judging whether the target confidence coefficient reaches a preset confidence coefficient;
if the preset confidence level is reached, determining that the test result of the audio circuit of the electronic equipment is qualified;
and if the preset confidence coefficient is not reached, determining that the test result of the audio circuit of the electronic equipment is unqualified.
Before the step of determining the test result of the audio line of the electronic device based on the similarity, the method may further include:
acquiring an audio output parameter of the electronic equipment;
calculating energy values of the stoped audio data and the test audio data;
determining a standard energy value according to the energy value of the test audio data and the audio output parameter;
the step of determining a test result of the audio line of the electronic device based on the similarity may include:
and determining a test result of the audio circuit of the electronic equipment according to the energy value of the sampling audio data, the standard energy value and the similarity.
The step of determining the test result of the audio line of the electronic device according to the energy value of the mining audio data, the standard energy value and the similarity may include:
judging whether the difference value between the energy value of the mining audio data and the standard energy value is within a preset range or not, and judging whether the similarity reaches a preset similarity or not;
if the difference value is within the preset range and the similarity reaches the preset similarity, determining that the test result of the audio circuit of the electronic equipment is qualified;
and if the difference value is not within the preset range and/or the similarity does not reach the preset similarity, determining that the test result of the audio circuit of the electronic equipment is unqualified.
The audio output device is an audio cable output port, the audio input device is an audio cable input port, and the audio cable output port and the audio cable input port are connected through an audio cable to form a loop;
or the like, or, alternatively,
the audio output device is a loudspeaker, the audio input device is a microphone, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or, alternatively,
the audio output device is an audio cable output port, the audio input device is a microphone, the audio cable output port is connected with a loudspeaker through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation;
or the like, or a combination thereof,
the audio output device is a loudspeaker, the audio input device is an audio cable input port, the audio cable input port is connected with the microphone through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation.
It should be noted that, for the embodiments of the apparatus, the electronic device, and the computer-readable storage medium, since they are substantially similar to the embodiments of the method, the description is relatively simple, and for relevant points, reference may be made to the partial description of the embodiments of the method.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (8)

1. A method for testing an audio line of equipment is applied to electronic equipment, the electronic equipment is provided with an audio output device and an audio input device, the audio output device and the audio input device form a loop in a preset mode, and the method comprises the following steps:
acquiring test audio data;
outputting the test audio data through the audio output device;
acquiring audio data received by the audio input device through the loop as stopover audio data;
calculating the similarity of the stoped audio data and the test audio data by using a cross-correlation algorithm, wherein the similarity is used for representing the similarity of the spectrum distribution and the waveform of the stoped audio data and the test audio data;
acquiring audio output parameters of the electronic equipment, wherein the audio output parameters are used for representing the corresponding relation between the loudness of audio data input by the electronic equipment and the loudness of output audio data;
calculating energy values of the stoped audio data and the test audio data, wherein the energy values are used for representing loudness of the audio data;
determining a standard energy value according to the energy value of the test audio data and the audio output parameter;
determining a test result of an audio circuit of the electronic equipment according to the energy value of the back-collected audio data, the standard energy value and the similarity;
the audio output device is an audio cable output port, the audio input device is an audio cable input port, and the audio cable output port and the audio cable input port are connected through an audio cable to form a loop; or, the audio output device is a loudspeaker, the audio input device is a microphone, and the loudspeaker and the microphone form a loop through air sound wave propagation; or, the audio output device is an audio cable output port, the audio input device is a microphone, the audio cable output port is connected with a loudspeaker through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation; or, the audio output device is a loudspeaker, the audio input device is an audio cable input port, the audio cable input port is connected with the microphone through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation.
2. The method of claim 1, wherein prior to the step of determining a test result for an audio line of the electronic device based on the energy value of the mining audio data, the standard energy value, and the similarity, the method further comprises:
determining a target confidence coefficient corresponding to the similarity of the stoped audio data and the test audio data according to a preset corresponding relation between the similarity and the confidence coefficient;
the step of determining the test result of the audio circuit of the electronic equipment according to the energy value of the back-collected audio data, the standard energy value and the similarity comprises the following steps:
judging whether the target confidence coefficient reaches a preset confidence coefficient;
if the preset confidence level is reached, determining that the test result of the audio line of the electronic equipment in the aspects of frequency spectrum distribution and waveform is qualified;
and if the preset confidence coefficient is not reached, determining that the test result of the audio line of the electronic equipment in the aspects of the frequency spectrum distribution and the waveform is unqualified.
3. The method of claim 1, wherein the step of determining the test result of the audio line of the electronic device according to the energy value of the back-collected audio data, the standard energy value and the similarity comprises:
judging whether the difference value between the energy value of the mining audio data and the standard energy value is within a preset range or not, and judging whether the similarity reaches a preset similarity or not;
if the difference value is within the preset range and the similarity reaches the preset similarity, determining that the test result of the audio circuit of the electronic equipment is qualified;
and if the difference is not within the preset range and/or the similarity does not reach the preset similarity, determining that the test result of the audio line of the electronic equipment is unqualified.
4. The utility model provides a testing arrangement of equipment audio circuit which characterized in that is applied to electronic equipment, electronic equipment has audio output device and audio input device, audio output device and audio input device form the loop through predetermineeing the mode, the device includes:
the audio data acquisition module is used for acquiring test audio data;
the audio data output module is used for outputting the test audio data through the audio output device;
the audio data receiving module is used for acquiring the audio data received by the audio input device through the loop as the extraction audio data;
the similarity determining module is used for calculating the similarity of the stoped audio data and the test audio data by utilizing a cross-correlation algorithm, and the similarity is used for representing the similarity of the spectral distribution and the waveform of the stoped audio data and the test audio data;
the audio parameter acquisition module is used for acquiring audio output parameters of the electronic equipment, and the audio output parameters are used for representing the corresponding relation between the loudness of the audio data input by the electronic equipment and the loudness of the output audio data;
the first energy value determining module is used for calculating the energy values of the back-sampling audio data and the testing audio data;
the second energy value determining module is used for determining a standard energy value according to the energy value of the test audio data and the audio output parameter;
the test result determining module is used for determining a test result of an audio circuit of the electronic equipment according to the energy value of the back-collected audio data, the standard energy value and the similarity;
the audio output device is an audio cable output port, the audio input device is an audio cable input port, and the audio cable output port and the audio cable input port are connected through an audio cable to form a loop; or, the audio output device is a loudspeaker, the audio input device is a microphone, and the loudspeaker and the microphone form a loop through air sound wave propagation; or, the audio output device is an audio cable output port, the audio input device is a microphone, the audio cable output port is connected with a loudspeaker through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation; or, the audio output device is a loudspeaker, the audio input device is an audio cable input port, the audio cable input port is connected with the microphone through an audio cable, and the loudspeaker and the microphone form a loop through air sound wave propagation.
5. The apparatus of claim 4, wherein the apparatus further comprises:
a confidence level determining module, configured to determine, according to a preset correspondence between a similarity degree and a confidence level, a target confidence level corresponding to the similarity degree between the mining audio data and the test audio data before determining a test result of an audio line of the electronic device according to the energy value, the standard energy value, and the similarity degree of the mining audio data;
the test result determination module includes:
the confidence coefficient judging submodule is used for judging whether the target confidence coefficient reaches a preset confidence coefficient or not;
the first test result determining submodule is used for determining that the test result of the audio circuit of the electronic equipment in the aspects of frequency spectrum distribution and waveform is qualified if the preset confidence level is reached;
and the second test result determining submodule is used for determining that the test result of the audio circuit of the electronic equipment in the aspects of frequency spectrum distribution and waveform is unqualified if the preset confidence coefficient is not reached.
6. The apparatus of claim 4, wherein the test result determination module comprises:
the judging unit is used for judging whether the difference value of the energy value of the back-collected audio data and the standard energy value is within a preset range or not and judging whether the similarity reaches a preset similarity or not;
a first test result determining unit, configured to determine that a test result of the audio line of the electronic device is qualified if the difference is within the preset range and the similarity reaches the preset similarity;
and the second test result determining unit is used for determining that the test result of the audio circuit of the electronic equipment is unqualified if the difference value is not within the preset range and/or the similarity does not reach the preset similarity.
7. The electronic equipment is characterized by comprising a processor, a communication interface, a memory, a communication bus, an audio output device and an audio input device, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus; the audio output device and the audio input device form a loop in a preset mode;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 3 when executing a program stored in the memory.
8. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-3.
CN201910139091.XA 2019-02-25 2019-02-25 Method and device for testing audio line of equipment and electronic equipment Active CN111613242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910139091.XA CN111613242B (en) 2019-02-25 2019-02-25 Method and device for testing audio line of equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910139091.XA CN111613242B (en) 2019-02-25 2019-02-25 Method and device for testing audio line of equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN111613242A CN111613242A (en) 2020-09-01
CN111613242B true CN111613242B (en) 2023-03-07

Family

ID=72195796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910139091.XA Active CN111613242B (en) 2019-02-25 2019-02-25 Method and device for testing audio line of equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN111613242B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679676B (en) * 2022-04-12 2023-05-26 重庆紫光华山智安科技有限公司 Audio device testing method, system, electronic device and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179240A (en) * 2011-12-20 2013-06-26 比亚迪股份有限公司 Audio test method and system for mobile terminal
CN103413558A (en) * 2013-08-08 2013-11-27 南京邮电大学 Method for testing audio devices
US9076450B1 (en) * 2012-09-21 2015-07-07 Amazon Technologies, Inc. Directed audio for speech recognition
CN105259459A (en) * 2015-11-12 2016-01-20 东软集团股份有限公司 Automatic quality inspection method, apparatus and device for electronic equipment
CN106161705A (en) * 2015-04-22 2016-11-23 小米科技有限责任公司 Audio frequency apparatus method of testing and device
CN106791825A (en) * 2016-12-23 2017-05-31 深圳创维数字技术有限公司 A kind of audio automated testing method and terminal
CN107346665A (en) * 2017-06-29 2017-11-14 广州视源电子科技股份有限公司 Method, apparatus, equipment and the storage medium of audio detection
CN108366160A (en) * 2018-01-26 2018-08-03 努比亚技术有限公司 Audio testing method, mobile terminal and computer readable storage medium
CN108538296A (en) * 2017-03-01 2018-09-14 广东神马搜索科技有限公司 Speech recognition test method and test terminal
CN109348363A (en) * 2018-08-31 2019-02-15 西安中兴新软件有限责任公司 A kind of audio-frequency detection and device, storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110431434A (en) * 2017-03-01 2019-11-08 索尔塔雷有限公司 System and method for detecting target sound

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103179240A (en) * 2011-12-20 2013-06-26 比亚迪股份有限公司 Audio test method and system for mobile terminal
US9076450B1 (en) * 2012-09-21 2015-07-07 Amazon Technologies, Inc. Directed audio for speech recognition
CN103413558A (en) * 2013-08-08 2013-11-27 南京邮电大学 Method for testing audio devices
CN106161705A (en) * 2015-04-22 2016-11-23 小米科技有限责任公司 Audio frequency apparatus method of testing and device
CN105259459A (en) * 2015-11-12 2016-01-20 东软集团股份有限公司 Automatic quality inspection method, apparatus and device for electronic equipment
CN106791825A (en) * 2016-12-23 2017-05-31 深圳创维数字技术有限公司 A kind of audio automated testing method and terminal
CN108538296A (en) * 2017-03-01 2018-09-14 广东神马搜索科技有限公司 Speech recognition test method and test terminal
CN107346665A (en) * 2017-06-29 2017-11-14 广州视源电子科技股份有限公司 Method, apparatus, equipment and the storage medium of audio detection
CN108366160A (en) * 2018-01-26 2018-08-03 努比亚技术有限公司 Audio testing method, mobile terminal and computer readable storage medium
CN109348363A (en) * 2018-08-31 2019-02-15 西安中兴新软件有限责任公司 A kind of audio-frequency detection and device, storage medium

Also Published As

Publication number Publication date
CN111613242A (en) 2020-09-01

Similar Documents

Publication Publication Date Title
CN109831733B (en) Method, device and equipment for testing audio playing performance and storage medium
CN106331371A (en) Volume adjustment method and mobile terminal
US10932073B2 (en) Method and system for measuring total sound pressure level of noise, and computer readable storage medium
CN111866690A (en) Microphone testing method and device
US10629222B2 (en) Sound signal procession method and device
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN104807540A (en) Noise inspection method and system
CN105979462A (en) Test processing method and device based on microphone
CN109493883A (en) A kind of audio time-delay calculation method and apparatus of smart machine and its smart machine
US20210306782A1 (en) Method and system of audio device performance testing
CN111613242B (en) Method and device for testing audio line of equipment and electronic equipment
CN111613248A (en) Pickup testing method, device and system
Cabrera et al. Increasing robustness in the calculation of the speech transmission index from impulse responses
CN112798102A (en) Sound quality evaluation method, device, system and medium
CN108040315A (en) A kind of test machine of computer-readable recording medium and the application medium
CN111354335A (en) Voice recognition testing method and device, storage medium and terminal equipment
WO2020103491A1 (en) Optical module testing method, apparatus and device, and storage medium
CN108965562B (en) Voice data generation method and related device
CN110099350A (en) The test method of power amplifier
CN114222234A (en) Microphone array consistency detection method, electronic device and storage medium
US10591522B2 (en) Measurement apparatus
WO2019029105A1 (en) Mixed-model signal integrity simulation method
CN209561002U (en) A kind of tone testing equipment
CN112291696A (en) Audio chip testing method, storage device and computer equipment
CN117176265B (en) Scene channel simulation playback method, system and equipment

Legal Events

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