CN111613242A - 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
CN111613242A
CN111613242A CN201910139091.XA CN201910139091A CN111613242A CN 111613242 A CN111613242 A CN 111613242A CN 201910139091 A CN201910139091 A CN 201910139091A CN 111613242 A CN111613242 A CN 111613242A
Authority
CN
China
Prior art keywords
audio
similarity
audio data
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.)
Granted
Application number
CN201910139091.XA
Other languages
Chinese (zh)
Other versions
CN111613242B (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 TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; 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 TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Quality & Reliability (AREA)
  • Measurement Of Mechanical Vibrations Or Ultrasonic Waves (AREA)

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 method is widely used in factory testing because the threshold is low because only the training of testing personnel is needed to correctly use the testing equipment to carry out the 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/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 extraction 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 a test result of the audio line of the electronic device based on the similarity includes:
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 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 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 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.
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, 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 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 extraction 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 recovery 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 extraction audio data and the test 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 determination 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 between 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, 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, 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 steps of the method for testing an audio line of a device described above are implemented.
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 description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings 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 in 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 in the method for testing the audio line of the device according to the 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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present 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 conveniently carry out audio loop 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. 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 extraction 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 step S101, it is reasonable that the electronic device may acquire 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 particularly 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 extraction 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 extraction audio data.
Then, the electronic device may determine the similarity between the extraction audio data and the test audio data, and the higher the similarity between the extraction audio data and the test audio data is, the more similar the spectral distribution and waveform of the extraction 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 extraction 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 results of the mining audio data and the test audio data obtained by the cross-correlation algorithm represent the similarity of the frequency spectrum distribution and the waveform of the mining audio data and the test audio data, and the results 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 extraction 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 visually 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, and further determine a target confidence 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 similarity and the confidence level is preset such that the confidence level is 2/2 of the similarity between the extraction audio data and the test audio data. If the similarity between the extraction 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 coefficient reaches a preset confidence coefficient; if the preset confidence level is reached, executing step S202; if the preset confidence 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.
It can be seen that, in this embodiment, the electronic device may determine, according to a preset correspondence between the similarity and the confidence, a target confidence corresponding to the similarity between the retrieved audio data and the test audio data, 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 with respect to the 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 steps S301 and S302 first, execute the steps S302 and S301 first, and execute the steps S301 and S302 simultaneously.
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 the 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, the energy value of the test audio data is 800 joules, the audio output parameter is 80%, and the standard energy value is 800 × 80% — 640 joules.
Accordingly, 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 sampling audio data, the standard energy value and the similarity.
After determining the standard energy value and the energy value of the extraction audio data, the electronic device may determine whether the loudness of the audio line of the electronic device in the aspect of the audio data meets the use requirement according to the relationship between the energy value of the extraction audio data and the standard energy value.
According to the similarity, the electronic equipment can determine whether the audio line of the electronic equipment meets the use requirement in terms of spectral 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 between the energy value of the mining 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 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.
Because the standard energy value is an ideal energy value received by the audio input device when the audio output parameter of the electronic device is the audio output parameter and the audio circuit does not have loss in the process of transmitting the audio data, if the difference value between the energy value of the mining audio data and the standard energy value is within the preset range, the difference value between the energy value of the mining audio data and the ideal energy value is not large, the performance of an audio circuit of the electronic device in the aspect of loudness of the audio data is good, and the use requirement can be met.
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 use 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 mining audio data and the standard energy value is within the preset range, and the similarity reaches the preset similarity, the loudness of the audio line of the electronic equipment in the audio data, the frequency spectrum distribution and the waveform are both in accordance with the use requirements, and then the test result of the audio line of the electronic equipment can be determined to be qualified.
S403, determining that the test result of the audio line 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 audio line meets the use requirement in the aspects of spectrum distribution and waveform can be tested, and whether the audio line meets the use requirement in the aspect of loudness 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, before the determining of the test result of the audio line of the electronic device based on the similarity degree, a target confidence level corresponding to the similarity degree between the extraction audio data and the test audio data according to a preset correspondence relationship between the similarity degree and the confidence level;
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 determination 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 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, 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, 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 may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
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 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 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 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, 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.
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 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 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 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, 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.
It should be noted that, for the above-mentioned apparatus, electronic device and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
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 phrase "comprising an … …" does not exclude the presence of other identical 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 the differences from the 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 (14)

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;
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.
2. The method of claim 1, wherein the step of determining the similarity of the mining audio data and the test audio data comprises:
and calculating the similarity of the extraction audio data and the test audio data by using a cross-correlation algorithm.
3. 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 similarity, the method further comprises:
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 includes:
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.
4. 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 similarity, the method further comprises:
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 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.
5. The method of claim 4, wherein 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 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.
6. The method of any one of claims 1-5, wherein the audio output device is an audio cable outlet, the audio input device is an audio cable inlet, and the audio cable outlet and the audio cable inlet are connected by 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, 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.
7. 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 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.
8. The apparatus of claim 7, wherein the similarity determination module comprises:
and the similarity determining submodule is used for calculating the similarity between the recovery audio data and the test audio data by utilizing a cross-correlation algorithm.
9. The apparatus of claim 7, wherein 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.
10. The apparatus of claim 7, wherein 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 extraction audio data and the test 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 determination 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.
11. The apparatus of claim 10, wherein the third test result determination submodule comprises:
the judging unit is used for judging whether the difference value between 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.
12. The apparatus of any of claims 7-11, wherein the audio output device is an audio cable outlet, the audio input device is an audio cable inlet, and the audio cable outlet and the audio cable inlet are connected by 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, 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.
13. An electronic device 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 of claims 1-6 when executing a program stored in the memory.
14. 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 claims 1 to 6.
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 true CN111613242A (en) 2020-09-01
CN111613242B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114679676A (en) * 2022-04-12 2022-06-28 重庆紫光华山智安科技有限公司 Audio device testing method and system, electronic device and readable storage medium
CN114827867A (en) * 2022-03-29 2022-07-29 深圳市有方科技股份有限公司 Interface test method, device, electronic equipment and medium
WO2024109048A1 (en) * 2022-11-24 2024-05-30 青岛海尔空调器有限总公司 Method and apparatus for testing performance of acoustic device, and electronic device

Citations (11)

* 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 广州视源电子科技股份有限公司 Audio detection method, device, equipment and storage medium
CN108366160A (en) * 2018-01-26 2018-08-03 努比亚技术有限公司 Audio testing method, mobile terminal and computer readable storage medium
US20180261237A1 (en) * 2017-03-01 2018-09-13 Soltare Inc. Systems and methods for detection of a target sound
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

Patent Citations (11)

* 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
US20180261237A1 (en) * 2017-03-01 2018-09-13 Soltare Inc. Systems and methods for detection of a target sound
CN108538296A (en) * 2017-03-01 2018-09-14 广东神马搜索科技有限公司 Speech recognition test method and test terminal
CN107346665A (en) * 2017-06-29 2017-11-14 广州视源电子科技股份有限公司 Audio detection method, device, equipment and storage medium
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李晶皎: "《嵌入式语音技术及凌阳单片机应用》", 30 November 2003 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114827867A (en) * 2022-03-29 2022-07-29 深圳市有方科技股份有限公司 Interface test method, device, electronic equipment and medium
CN114679676A (en) * 2022-04-12 2022-06-28 重庆紫光华山智安科技有限公司 Audio device testing method and system, electronic device and readable storage medium
CN114679676B (en) * 2022-04-12 2023-05-26 重庆紫光华山智安科技有限公司 Audio device testing method, system, electronic device and readable storage medium
WO2024109048A1 (en) * 2022-11-24 2024-05-30 青岛海尔空调器有限总公司 Method and apparatus for testing performance of acoustic device, and electronic device

Also Published As

Publication number Publication date
CN111613242B (en) 2023-03-07

Similar Documents

Publication Publication Date Title
CN111613242B (en) Method and device for testing audio line of equipment and electronic equipment
CN109831733B (en) Method, device and equipment for testing audio playing performance and storage medium
CN111866690A (en) Microphone testing method and device
CN111798852A (en) Voice wake-up recognition performance test method, device and system and terminal equipment
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN111060874B (en) Sound source positioning method and device, storage medium and terminal equipment
CN105979462A (en) Test processing method and device based on microphone
US20210306782A1 (en) Method and system of audio device performance testing
CN111613248A (en) Pickup testing method, device and system
CN103581819A (en) Microphone detection method
CN108040315A (en) A kind of test machine of computer-readable recording medium and the application medium
Cabrera et al. Increasing robustness in the calculation of the speech transmission index from impulse responses
CN112798102B (en) Sound quality evaluation method, device, system and medium
CN112135235B (en) Quality detection method, system and computer readable storage 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
CN107219491B (en) Eight-channel calibration module and calibration method
CN112927705B (en) Frequency response calibration method and related product
CN112702687B (en) Method for quickly confirming loudspeaker or complete machine distortion
CN112291696B (en) Audio chip testing method, storage medium and computer equipment
CN114222234A (en) Microphone array consistency detection method, electronic device and storage medium
WO2018072458A1 (en) Microwave converter input isolation testing method and system
CN114501286A (en) Bluetooth connection testing method and device
US8712018B2 (en) Testing apparatus and testing method for telephone apparatus
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