Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide an automatic testing and calibrating method and device for audio telephony products, which can automatically test and calibrate audio electronic products, thereby improving the quality and consistency of the products and realizing high-efficiency and high-quality mass production.
In order to solve the above technical problem, an embodiment of the present invention provides an automatic testing and calibrating method for audio call products, including:
acquiring a first audio collected by a device to be tested, and evaluating whether a first test result in the first audio exceeds a preset first standard requirement value range;
if so, generating a first adjusting parameter according to the first test result and the phase difference value required by the first standard, and sending the first adjusting parameter to the tested equipment so that the tested equipment adjusts the self input audio channel according to the first adjusting parameter;
when the first audio is evaluated to meet the value range of the first standard requirement, acquiring a second audio played by the tested equipment according to preset test audio source data, and evaluating whether a second test result in the second audio exceeds the value range of the preset second standard requirement;
if so, generating a second adjusting parameter according to the second test result and the phase difference value required by the second standard, and sending the second adjusting parameter to the tested equipment so that the tested equipment adjusts the self output audio channel according to the second adjusting parameter;
when the second audio is evaluated to meet the value range of the second standard requirement, acquiring a third audio sent by the tested device, and evaluating whether an echo cancellation test result in the third audio exceeds a preset value range of the third standard requirement; the third audio is the audio which is obtained by the tested device recording the test audio played by the tested device and eliminating the echo;
if so, generating a third adjustment parameter according to the gain difference between the test audio and the third audio and sending the third adjustment parameter to the tested device so that the tested device adjusts the gain ratio of the echo cancellation channel according to the third adjustment parameter.
Further, after the tested device adjusts the self input audio channel, the first audio collected by the tested device is evaluated again; after the tested device adjusts the self output audio channel, the second audio played by the tested device is evaluated again; and after the tested device adjusts the gain ratio of the echo cancellation channel of the tested device, evaluating the third audio sent by the tested device again.
Further, the automatic testing and calibrating method for audio call products further comprises the following steps:
and when the evaluation times of the first audio frequency exceed a preset first evaluation time threshold, or when the evaluation times of the second audio frequency exceed a preset second evaluation time threshold, or when the evaluation times of the third audio frequency exceed a preset third evaluation time threshold, judging the tested device as an unqualified product.
Further, the first audio is the audio recorded by the device under test and played by the simulated mouth.
Further, the evaluation of the first audio, the second audio, and the third audio are all evaluated using an RMS algorithm.
Further, when the first audio, the second audio and the third audio are evaluated, the audio to be tested is collected according to preset segmentation frequencies, and the audio collected according to each segmentation frequency is evaluated.
And further, a second audio played by the tested device is collected by adopting a simulated ear.
In order to solve the same technical problem, the invention provides an automatic testing and calibrating device for audio communication products, which comprises:
the first evaluation module is used for acquiring a first audio collected by the tested equipment and evaluating whether a first test result in the first audio exceeds a preset first standard requirement value range;
the first calibration module is used for generating a first adjustment parameter according to the phase difference value between the first test result and the first standard requirement and sending the first adjustment parameter to the tested device so that the tested device can adjust an input audio channel of the tested device according to the first adjustment parameter;
the second evaluation module is used for collecting a second audio played by the tested equipment according to preset test sound source data and evaluating whether a second test result in the second audio exceeds a preset second standard requirement value range or not when the first audio is evaluated to meet the first standard requirement value range;
the second calibration module is used for generating a second adjustment parameter according to the second test result and the phase difference value required by the second standard and sending the second adjustment parameter to the tested device so that the tested device can adjust the self-output audio channel according to the second adjustment parameter;
the third evaluation module is used for acquiring a third audio sent by the tested device when the second audio is evaluated to meet the value range of the second standard requirement, and evaluating whether an echo cancellation test result in the third audio exceeds a preset value range of the third standard requirement or not; the third audio is the audio which is obtained by the tested device recording the test audio played by the tested device and eliminating the echo;
and the third calibration module is used for generating a third adjustment parameter according to the gain difference between the test audio and the third audio and sending the third adjustment parameter to the tested device so that the tested device can adjust the gain ratio of the echo cancellation channel according to the third adjustment parameter.
Further, after the tested device adjusts the self input audio channel, the first audio collected by the tested device is evaluated again; after the tested device adjusts the self output audio channel, the second audio played by the tested device is evaluated again; and after the tested device adjusts the gain ratio of the echo cancellation channel of the tested device, evaluating the third audio sent by the tested device again.
The device further comprises a product judging module, wherein the product judging module is used for judging the tested device as a unqualified product when the evaluation times of the first audio frequency exceed a preset first evaluation time threshold value, or when the evaluation times of the second audio frequency exceed a preset second evaluation time threshold value, or when the evaluation times of the third audio frequency exceed a preset third evaluation time threshold value.
Compared with the prior art, the invention has the following beneficial effects:
the embodiment of the invention provides an automatic testing and calibrating method and device for audio call products, wherein the method comprises the following steps: acquiring a first audio collected by the tested equipment, evaluating whether the first audio meets a first standard requirement, and comparing the first audio with the first standard requirement to generate an adjustment parameter so as to calibrate an input audio channel of the tested equipment; collecting a second audio played by the tested equipment and evaluating whether the second audio meets a second standard requirement; and generating an adjusting parameter by comparing with a second standard requirement so as to calibrate an output audio channel of the tested equipment; and acquiring a third audio frequency which is recorded by the equipment to be tested and subjected to echo cancellation processing, evaluating whether the third audio frequency meets the third standard requirement, and generating a third adjustment parameter by comparing the gain difference between the audio frequency emitted by the equipment to be tested and the acquired audio frequency so as to calibrate an echo cancellation channel of the equipment to be tested. The invention can automatically test and calibrate the audio electronic product, thereby improving the quality and consistency of the product and realizing high-efficiency and high-quality batch production.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying 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.
Referring to fig. 1, an embodiment of the present invention provides an automatic testing and calibrating method for audio call products, including the steps of:
s1, acquiring a first audio collected by the tested device, and evaluating whether a first test result in the first audio exceeds a preset first standard requirement value range; in this embodiment of the present invention, further, the first audio is audio recorded by the device under test and played by a simulated mouth.
S2, if yes, generating a first adjusting parameter according to the first test result and the phase difference value required by the first standard, and sending the first adjusting parameter to the tested device so that the tested device can adjust the self input audio channel according to the first adjusting parameter;
s3, when the first audio is evaluated to meet the value range of the first standard requirement, acquiring a second audio played by the tested equipment according to preset test sound source data, and evaluating whether a second test result in the second audio exceeds the value range of the preset second standard requirement; in the embodiment of the invention, further, a second audio played by the device to be tested is collected by adopting a simulated ear.
S4, if yes, generating a second adjusting parameter according to the second test result and the phase difference value required by the second standard, and sending the second adjusting parameter to the tested device so that the tested device can adjust the self output audio channel according to the second adjusting parameter;
s5, when the second audio is evaluated to meet the value range of the second standard requirement, acquiring a third audio sent by the tested device, and evaluating whether an echo cancellation test result in the third audio exceeds a preset value range of the third standard requirement; the third audio is the audio which is obtained by the tested device recording the test audio played by the tested device and eliminating the echo;
and S6, if yes, generating a third adjustment parameter according to the gain difference between the test audio and the third audio and sending the third adjustment parameter to the tested device so that the tested device adjusts the gain ratio of the echo cancellation channel according to the third adjustment parameter.
In the embodiment of the invention, further, after the tested device adjusts the self input audio channel, the first audio collected by the tested device is evaluated again; after the tested device adjusts the self output audio channel, the second audio played by the tested device is evaluated again; and after the tested device adjusts the gain ratio of the echo cancellation channel of the tested device, evaluating the third audio sent by the tested device again.
In the embodiment of the present invention, further, the method for automatically testing and calibrating an audio call product further includes:
and when the evaluation times of the first audio frequency exceed a preset first evaluation time threshold, or when the evaluation times of the second audio frequency exceed a preset second evaluation time threshold, or when the evaluation times of the third audio frequency exceed a preset third evaluation time threshold, judging the tested device as an unqualified product.
In this embodiment of the present invention, further, the evaluation of the first audio, the second audio, and the third audio is performed by using an RMS algorithm.
In the embodiment of the present invention, further, when the first audio, the second audio, and the third audio are evaluated, the audio to be tested is collected according to a preset segment frequency, and the audio collected according to each segment frequency is evaluated.
It should be noted that the artificial ear is an audio capture device. In order to be able to compare or quantify tests related to simulated ears, a series of international standards such as iec60318 and recommendations define "ideal" ear simulators. We can approximate the characteristics of the ear by a mechanical or acoustic system. Simulated mouth is a sound source that simulates the sound field near a human mouth for acoustic testing of telephone receivers, and other microphones used in voice communication networks. A loudspeaker is arranged in the device, and the device meets the requirements of ieee269,661 international standard and itu-tp51 proposal for sending sound signals at the 'mouth reference point'.
Referring to FIG. 2, the following examples illustrate the present invention:
1. input audio path testing for product: the method comprises the steps that a simulated mouth is used at the MIC acquisition position of the tested equipment to play a sound source (the position can be adjusted according to actual products, for example, when products are used indoors, a test sound source is played at a distance of 5cm from the tested equipment, when products are used outdoors, the test sound source is played at a distance of 10cm from the tested equipment), the tested equipment sends acquired audio to the test equipment after passing through an audio processing channel according to a standard RTP communication protocol format, the test equipment performs integral evaluation and segmented time-sharing evaluation on the audio through an RMS algorithm, for example, the specific sampling frequency is adjusted according to different products, the weighting requirement of the audio response acquired at each segment is-23 dB (different product requirements are different), if the positive and negative values are not more than 1dB (different product requirements can be different), the corresponding frequencies are respectively played on the sound source, the audio response of the frequency band is subjected to RMS (root mean square) operation to obtain the current audio response value, and if the value response is in the required range, the value response passes, otherwise, the value response does not pass.
2. Input audio path calibration for product: the test equipment compares the calculation with the standard, if the audio frequency does not meet the set requirement of the product, the parameters needing to be adjusted are sent to the tested equipment, (for example, the calculation result is required to be-23 dB, the current test result is-28 dB, and the gain corresponding to 5dB needs to be adjusted aiming at the input audio frequency channel of the equipment to enable the product to meet the requirement), and the tested equipment adjusts the input audio frequency channel of the tested equipment according to the parameters. And responding to the test equipment after the adjustment is finished. And the testing equipment performs retesting after receiving the response.
3. And (3) testing an output audio channel of the product: the testing equipment sends a testing sound source to a tested product according to a standard RTP protocol, the tested product plays received audio data through an audio channel of the tested product, the testing equipment tests at a testing position through a simulation ear (the position can be adjusted according to actual products, for example, when the product is used indoors, the testing sound source is played at a distance of 5cm from the tested device, and when the product is used outdoors, the testing sound source is played at a distance of 10cm from the tested device), and the testing equipment carries out integral evaluation and segmented time-sharing evaluation on the audio through an RMS algorithm on the audio collected by the simulation ear.
4. Calibrating the audio output path of the product: the test equipment compares the calculation with the standard, if the audio frequency does not meet the set requirement of the product, the parameter needing to be adjusted is sent to the tested equipment, and the tested equipment adjusts the self output audio frequency channel according to the parameter (for example, the calculation result is required to be-23 dB, the current test result is-28 dB, and the gain corresponding to 5dB needs to be adjusted according to the output audio frequency channel of the equipment, so that the product meets the requirement). And responding to the test equipment after the adjustment is finished. And the testing equipment performs retesting after receiving the response.
5. And (3) testing the echo cancellation capability of the product: the testing equipment sends a testing sound source to a tested product according to a standard RTP (real time protocol), the tested product plays received audio data through an audio channel of the tested product, simultaneously acquires environmental audio (the environmental audio is an MIC and acquires a real sound source, possibly part of the audio itself and possibly all of the audio itself, and when sound other than sound emitted by the audio itself exists in the environment), processes the acquired audio through an echo elimination channel, and sends the audio data to the testing equipment according to a standard RTP communication protocol format, and the testing equipment performs integral evaluation and segmented time-sharing evaluation on the audio through an RMS (root mean square) algorithm.
6. Calibrating an echo cancellation channel of a product: the test equipment compares the parameters with the standard through calculation, if the audio frequency does not meet the set requirement of the product, the parameters needing to be adjusted are sent to the tested equipment, the tested equipment adjusts the self echo eliminating channel according to the parameters (the echo eliminating channel eliminates, the gain ratio of the self echo elimination can be adjusted according to the audio frequency collected by the tested equipment, and the gain ratio is used for adapting to the echo generated in the self structure. And responding to the test equipment after the adjustment is finished. And the testing equipment performs retesting after receiving the response.
7. And (3) confirming the product qualification: and judging that the product is qualified after the product can meet the standard requirement through the test, and judging that the product is unqualified if the product still cannot meet the standard after the test times exceed the preset calibration times.
It should be noted that the scheme of the present invention can be used for testing products with audio call functions and automatically correcting audio parameters. Through newly adding a flow and adopting audio automatic evaluation algorithm logic, a detected product can be detected, the quality and consistency of the product are improved by automatically adjusting the gain parameters of the product, manual detection is reduced, the precision requirement on electronic components is reduced through automation, and the like.
It should be noted that the above method or flow embodiment is described as a series of acts or combinations for simplicity, but those skilled in the art should understand that the present invention is not limited by the described acts or sequences, as some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are exemplary embodiments and that no single embodiment is necessarily required by the inventive embodiments.
Referring to fig. 3, to solve the same technical problem, the present invention provides an automatic testing and calibrating apparatus for audio call products, comprising:
the first evaluation module is used for acquiring a first audio collected by the tested equipment and evaluating whether a first test result in the first audio exceeds a preset first standard requirement value range;
the first calibration module is used for generating a first adjustment parameter according to the phase difference value between the first test result and the first standard requirement and sending the first adjustment parameter to the tested device so that the tested device can adjust an input audio channel of the tested device according to the first adjustment parameter;
the second evaluation module is used for collecting a second audio played by the tested equipment according to preset test sound source data and evaluating whether a second test result in the second audio exceeds a preset second standard requirement value range or not when the first audio is evaluated to meet the first standard requirement value range;
the second calibration module is used for generating a second adjustment parameter according to the second test result and the phase difference value required by the second standard and sending the second adjustment parameter to the tested device so that the tested device can adjust the self-output audio channel according to the second adjustment parameter;
the third evaluation module is used for acquiring a third audio sent by the tested device when the second audio is evaluated to meet the value range of the second standard requirement, and evaluating whether an echo cancellation test result in the third audio exceeds a preset value range of the third standard requirement or not; the third audio is the audio which is obtained by the tested device recording the test audio played by the tested device and eliminating the echo;
and the third calibration module is used for generating a third adjustment parameter according to the gain difference between the test audio and the third audio and sending the third adjustment parameter to the tested device so that the tested device can adjust the gain ratio of the echo cancellation channel according to the third adjustment parameter.
Further, after the tested device adjusts the self input audio channel, the first audio collected by the tested device is evaluated again; after the tested device adjusts the self output audio channel, the second audio played by the tested device is evaluated again; and after the tested device adjusts the gain ratio of the echo cancellation channel of the tested device, evaluating the third audio sent by the tested device again.
The device further comprises a product judging module, wherein the product judging module is used for judging the tested device as a unqualified product when the evaluation times of the first audio frequency exceed a preset first evaluation time threshold value, or when the evaluation times of the second audio frequency exceed a preset second evaluation time threshold value, or when the evaluation times of the third audio frequency exceed a preset third evaluation time threshold value.
It is to be understood that the foregoing device embodiment corresponds to the method embodiment of the present invention, and the automatic testing and calibrating device for audio call products according to the embodiment of the present invention can implement the automatic testing and calibrating method for audio call products according to any method embodiment of the present invention.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.