CN113225659A - Equipment test method and electronic equipment - Google Patents

Equipment test method and electronic equipment Download PDF

Info

Publication number
CN113225659A
CN113225659A CN202010081941.8A CN202010081941A CN113225659A CN 113225659 A CN113225659 A CN 113225659A CN 202010081941 A CN202010081941 A CN 202010081941A CN 113225659 A CN113225659 A CN 113225659A
Authority
CN
China
Prior art keywords
signal
echo
reference signal
audio
audio signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010081941.8A
Other languages
Chinese (zh)
Inventor
郑新刚
张守闯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nail Holding Cayman Co ltd
Dingtalk Holding Cayman Ltd
Original Assignee
Nail Holding Cayman 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 Nail Holding Cayman Co ltd filed Critical Nail Holding Cayman Co ltd
Priority to CN202010081941.8A priority Critical patent/CN113225659A/en
Publication of CN113225659A publication Critical patent/CN113225659A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The embodiment of the application provides an equipment testing method and electronic equipment. The method comprises the following steps: responding to a test request event, and providing a test audio signal for the electronic equipment, wherein the electronic equipment comprises a loudspeaker and a microphone; acquiring the audio signal before the audio signal is played by the loudspeaker to obtain a reference signal; after the loudspeaker plays the audio signal, acquiring an echo signal collected by the microphone; testing whether an echo cancellation system of the electronic equipment meets a set requirement or not according to the reference signal and the echo signal; and outputting a test result. Compared with a manual listening test mode, the technical scheme provided by the embodiment of the application has the advantages of higher accuracy, rapidness, simplicity and convenience.

Description

Equipment test method and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an apparatus testing method and an electronic apparatus.
Background
Along with the increasing application of AI (Artificial Intelligence) intelligent speech technology in hardware products, multi-microphone products are also increasing. In order to ensure accurate sound collection of the microphone, the noise elimination of the whole audio system needs to be ensured to meet the set technical indexes.
Currently, single-microphone (or multi-microphone) noise reduction plus loop noise reduction is mostly adopted for system noise reduction. Loop noise reduction is performed to ensure that the echo cancellation system of the entire hardware is functioning properly. The existing common test scheme is artificial listening, a sound indicates that the loop is judged to pass, accurate comparison of the data of the whole loop is lacked, and the test misjudgment rate is high.
Disclosure of Invention
The embodiment of the application provides an equipment testing method and electronic equipment which can effectively solve or improve the problems in the prior art.
In one embodiment of the present application, a device testing method is provided. The method comprises the following steps:
responding to a test request event, and providing a test audio signal for the electronic equipment, wherein the electronic equipment comprises a loudspeaker and a microphone;
acquiring the audio signal before the audio signal is played by the loudspeaker to obtain a reference signal;
after the loudspeaker plays the audio signal, acquiring an echo signal collected by the microphone;
testing whether an echo cancellation system of the electronic equipment meets a set requirement or not according to the reference signal and the echo signal;
and outputting a test result.
In another embodiment of the present application, an electronic device is provided. The electronic device includes:
the loudspeaker is used for playing the audio signal for the test in the test mode;
the microphone is used for acquiring an echo signal after the loudspeaker plays the audio signal in the test mode;
the signal acquisition circuit is used for acquiring the audio signal before the audio signal is played by the loudspeaker so as to obtain a reference signal;
the processor is used for responding to the test request event, acquiring a test audio signal and controlling the electronic equipment to work in a test mode; the echo cancellation system is also used for acquiring the reference signal and the echo signal and testing whether an echo cancellation system of the electronic equipment meets the set requirement or not according to the reference signal and the echo signal;
and the output module is used for outputting the test result.
In yet another embodiment of the present application, a device testing method is provided. The method comprises the following steps:
acquiring an audio signal before the audio signal is played by a loudspeaker to obtain a reference signal;
after the audio signal is played by the loudspeaker, acquiring an echo signal acquired by a microphone;
testing whether an echo cancellation system of the electronic equipment meets a set requirement or not according to the reference signal and the echo signal;
wherein the electronic device includes the speaker and the microphone.
In yet another embodiment of the present application, an electronic device is provided. The electronic device includes: the device comprises a memory, a processor and a signal acquisition circuit; wherein the content of the first and second substances,
the memory is used for storing programs;
the processor, coupled with the memory, to execute the program stored in the memory to:
controlling the signal acquisition circuit to acquire the audio signal before the audio signal is played by the loudspeaker so as to obtain a reference signal;
after the audio signal is played by the loudspeaker, acquiring an echo signal acquired by a microphone;
testing whether an echo cancellation system of the electronic equipment meets a set requirement or not according to the reference signal and the echo signal;
wherein the electronic device includes the speaker and the microphone.
The embodiments of the present application also provide a computer-readable storage medium storing a computer program, where the computer program, when executed by a computer, can implement the steps or functions of the device testing method provided in the foregoing embodiments.
In the technical scheme provided by the embodiment of the application, the reference signal acquired by acquiring the audio signal before the audio signal is played by the loudspeaker and the echo signal acquired by the microphone after the audio signal is played by the loudspeaker have less distortion; and then, whether the echo cancellation system meets the set requirement is tested based on the reference signal and the echo signal with less distortion, and compared with an artificial listening test mode, the method has the advantages of higher accuracy, rapidness, simplicity and convenience.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic diagram of an implementation of an apparatus testing method combined with an interface display according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a device testing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a circuit implementation involved in a device testing method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another implementation of the device testing method in combination with an interface display according to an embodiment of the present application;
FIG. 5 is a schematic diagram of another circuit implementation involved in a device testing method according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of a device testing method according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of an apparatus testing device according to an embodiment of the present application;
FIG. 8 is a schematic structural diagram of an apparatus testing device according to another embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Although most consumer electronics products (such as smart speakers) are multi-microphone products, the microphone has low requirements for accuracy of sound direction determination, and slight differences can be accepted. And commercial class hardware products, like intelligent proscenium equipment, intelligent answer robot etc. need when many people converse simultaneously, judge the pronunciation position with different microphones, and then discern the people of speaking, judge that the mistake can lead to experiencing relatively poorly, so it is higher to the requirement of making an uproar of system's noise elimination, can adopt the microphone to fall simultaneously and make an uproar + the return circuit falls the noise. At present, the loop noise reduction is mostly realized in a manual judgment mode, namely, an echo is heard manually, the sound indicates that the loop is through, namely, the judgment is passed, the accurate comparison of the data of the whole loop is lacked, the optimization help of the researched and developed technical indexes is limited, and the test misjudgment is higher.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In some of the flows described in the specification, claims, and above-described figures of the present application, a number of operations are included that occur in a particular order, which operations may be performed out of order or in parallel as they occur herein. The sequence numbers of the operations, e.g., 101, 102, etc., are used merely to distinguish between the various operations, and do not represent any order of execution per se. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different. In addition, the embodiments described below are only a part of the embodiments of the present application, 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 application.
Fig. 1 shows a schematic flow chart of a device testing method according to an embodiment of the present application. The execution main body of the method provided by the embodiment of the present application may be a device testing apparatus, and the apparatus may be hardware integrated on an electronic device and having an embedded program, may also be application software installed in the electronic device, and may also be tool software embedded in an operating system of the electronic device, and the like, which is not limited in the embodiment of the present application. The electronic device may be any device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a Point of sale (POS), a vehicle-mounted computer, an intelligent internet of things device, an intelligent foreground device, and the like. Specifically, as shown in fig. 1 and 2, the method includes:
101. in response to a test request event, a test audio signal is provided to the electronic device.
Wherein the electronic device includes a speaker and a microphone.
102. The audio signal is acquired before the audio signal is played by the loudspeaker to obtain a reference signal.
103. And after the loudspeaker plays the audio signal, acquiring an echo signal collected by the microphone.
104. And testing whether an echo cancellation system of the electronic equipment meets a set requirement or not according to the reference signal and the echo signal.
105. And outputting a test result.
In the foregoing 101, the test request event may be triggered after a user touches a virtual control on an interactive interface of the electronic device or a physical control set on the electronic device, or triggered after the user inputs specified voice information through the interactive interface, and the like, which is not specifically limited in this embodiment. In another implementation, the test request event may also be triggered after the electronic device receives a test control instruction, for example, the electronic device triggers the test request event after receiving a test control instruction sent by a server; or the electronic equipment triggers the test request event after receiving a test control instruction sent by other equipment connected with the electronic equipment through Bluetooth or an approach communication mode.
Accordingly, the audio signal for testing is provided to the electronic device, which may include, but is not limited to, any one of the following:
locally retrieving the audio signal for testing from the electronic device;
acquiring the audio signal for testing from a server;
and acquiring the audio signal for testing from a terminal which is in communication connection with the electronic equipment.
In an implementation solution, the method provided in this embodiment may further include the following steps:
s1, displaying an interactive interface;
s2, responding to a test request triggered by the user through the interactive interface, acquiring the audio signal for testing, and controlling the electronic equipment to work in a test mode.
For example, a touchable "test control" is displayed on the interactive interface; the user can trigger the test request by clicking the test control.
In another implementation solution, the method provided in this embodiment may further include the following steps:
s1', in response to a voice uttered by a user, recognizing the voice;
s2', if the recognition result represents that the user intends to start the test instruction, the audio signal of the test user is obtained, and the electronic device is controlled to work in the test mode.
In the test mode, the audio playback circuit of the electronic device processes the audio signal for testing (e.g., digital-to-analog conversion, amplification, etc.), and then plays the audio signal through the speaker. That is, in the above steps 102 and 103, before the audio signal is played by the speaker, an electrical signal is collected in the circuit as a reference signal; after the audio signal is played by the speaker, the echo signal is collected by the microphone.
In the step 104, whether the echo cancellation system of the electronic device meets the setting requirement may be determined by comparing the difference between the reference signal and the audio signal.
What needs to be added here is: echo cancellation systems are critical to speech recognition and speech interaction in electronic products. The working process of the echo cancellation system is as follows: firstly, carrying out audio acquisition and digital processing from an audio channel of a loudspeaker to obtain a noise sample; collecting voice signals and noise from the microphone; the processor performs audio processing on the voice signal collected by the microphone based on the noise sample to remove noise in the audio signal collected by the microphone.
Therefore, the factors for determining whether the echo cancellation system of the electronic device meets the set requirements (or can work normally) are: difference between the reference signal and the echo signal. If the difference between the reference signal and the echo signal meets the index requirement, judging that the echo cancellation system meets the set requirement; and if the reference signal and the echo signal do not meet the index requirement, judging that the echo cancellation system does not meet the set requirement.
In specific implementation, the index requirement may be input by a user through an index setting interface provided by the electronic device (see the following contents in a specific setting process); of course, default information preset in the electronic device is also possible.
In 105, the outputting the test result may include: displaying the test result; and/or playing the test results.
In the technical scheme provided by this embodiment, distortion is less for both a reference signal acquired by collecting an audio signal before the audio signal is played by a speaker and an echo signal acquired by a microphone after the audio signal is played by the speaker; and then, whether the echo cancellation system meets the set requirement is tested based on the reference signal and the echo signal with less distortion, and compared with an artificial listening test mode, the method has the advantages of higher accuracy, rapidness, simplicity and convenience.
In an implementable technical solution, the step 102 "acquiring the audio signal before the audio signal is played by the speaker to obtain a reference signal" includes:
102' before the audio signal is played by the loudspeaker, an electrical signal is collected from a circuit accessed by the loudspeaker to serve as the reference signal.
Further, the above 102' "may specifically be that before the audio signal is played by the speaker, an electrical signal is collected from a circuit connected to the speaker to be used as the reference signal:
102 ", acquiring an electrical signal as said reference signal at an electrical signal input of said loudspeaker before said audio signal is played by said loudspeaker.
Referring to fig. 3, the test audio is processed by the audio codec and then converted into an analog signal; the analog signal is amplified by an audio amplifier and then played by a loudspeaker. Collecting an electric signal at an electric signal input end of a loudspeaker, namely an analog electric signal amplified by an audio amplifier, as a reference signal; more closely to the working principle of the existing echo cancellation system. Therefore, the electric signal at the electric signal input end of the loudspeaker is collected as a reference signal, and distortion is smaller.
In an implementation manner, the step 104 "testing whether the echo cancellation system of the electronic device meets the setting requirement according to the reference signal and the echo signal" includes:
104' by comparing the difference between the reference signal and the echo signal, testing whether the echo cancellation system meets the set requirement.
Specifically, the above 104' "testing whether the echo cancellation system meets the set requirement by comparing the difference between the reference signal and the echo signal includes:
1041. and comparing the volumes of the reference signal and the echo signal to obtain the volume difference.
1042. And comparing the coding information of the reference signal and the echo signal to obtain information difference.
1043. And integrating the volume difference and the information difference to judge whether the echo cancellation system meets the set requirement.
1043 "integrating the volume difference and the information difference to determine whether the echo cancellation system meets a setting requirement" includes:
judging that the echo cancellation system is normal under the condition that the volume difference is within a preset first allowable range and the coding information difference is within a preset second allowable range;
and judging that the echo cancellation system is abnormal under the condition that the volume difference exceeds a preset first allowable range or the coding information difference exceeds a preset second allowable range.
The "index requirement" mentioned hereinabove includes: a first allowed range for volume, and a second allowed range for encoded information. Actually, the sound volume of the sound wave is somewhat attenuated in the transmission process, and the coded information changes due to the influence of external interference signals in the transmission process; for this purpose, the first permissible range here is an allowable error set for the volume attenuation; the second allowable range is an allowable error set for the occurrence of a change in the encoded information with respect to the influence of the interference signal.
Further, the first allowable range and/or the second allowable range may be set manually or by the system. The following describes a scheme for artificially setting the first allowable range and/or the second allowable range, that is, the test method provided by this embodiment may further include the following steps:
106. recording the first allowable range and/or the second allowable range generated in the technical index setting event in response to a technical index setting event.
For example, a user enters an index setting interface through an interactive element (such as a touch screen or a voice control system) of the electronic device; and the user inputs corresponding index parameters, such as a first allowable range and/or a second allowable range, in the index setting interface, and then triggers the technical index setting event. After the electronic device monitors the technical index setting event, the first allowable range and/or the second allowable range input by the user in the technical index setting event are/is stored so as to be called in the testing process.
Further, the method provided by this embodiment may further include the following method:
107. storing the reference signal, echo signal and/or signal difference; wherein the signal difference is obtained by comparing the reference signal and the echo signal.
108. The reference signal, the echo signal, and/or the signal difference are retrieved from a memory area and output in response to a test data retrieval event.
For example, the electronic device stores locally reference signals, echo signals, and/or signal differences acquired during the test. Assuming that the user sees the test result displayed on the display screen of the electronic device as "fail", the user may trigger the retrieval of data generated during the test, such as the reference signal, echo signal and/or signal difference. By checking the reference signal, the echo signal and/or the signal difference, a user (such as a tester) can quickly find out the problem point of the echo cancellation system, thereby accelerating the speed of poor analysis and improvement.
In fact, in addition to the user triggered recall, the reference signal, echo signal and/or signal difference may also be output simultaneously with the test results as they are presented on the display screen of the electronic device.
FIG. 4 illustrates an electronic device, such as a smart front desk device; besides the test result, the reference signal, the echo signal and the signal difference (including the volume difference and the coding information difference) are displayed on the display screen. Based on the information, the tester can quickly locate the problem point of the echo cancellation system of the equipment. Of course, the test result (such as the reference signal, the echo signal and the signal difference) can be used as a reference for the analysis model besides being checked by the tester; problem point information of an echo cancellation system of the device is automatically located by executing the analytical model. The analysis model can be a neural network model with self-learning capability, and the neural network model is obtained by training a training sample. The present embodiment is not particularly limited to the selection of the neural network model (e.g., convolutional neural network model, fully-connected neural network model, etc.), and the training process of the neural network model, and relevant information can refer to corresponding contents in the prior art. Then, the analysis model can feed back the located problem point information to a processor of the electronic device (such as an intelligent foreground device), and the processor executes corresponding processing operation according to the problem point information so as to realize the process of automatic processing optimization. Therefore, the workload of the tester can be further reduced, and the equipment is more intelligent.
In summary, the technical solution provided by this embodiment can acquire accurate reference signals and echo signals with less distortion; then, technical indexes (namely a first allowable range and/or a second allowable range) are set through a technical index setting function provided by the electronic equipment, and whether the echo cancellation system of the whole hardware meets the setting requirement or not can be accurately judged; the labor input cost is reduced, and manual misjudgment is avoided; and the test data can be called, when the test result is not in accordance with the set requirement, the problem point of the echo cancellation system of the equipment can be quickly positioned based on the test data, and the speed of poor analysis and improvement is also accelerated.
Fig. 5 shows a schematic structural diagram of an electronic device according to another embodiment of the present application. As shown in fig. 5, the electronic device includes:
the loudspeaker is used for playing the audio signal for the test in the test mode;
the microphone is used for acquiring an echo signal after the loudspeaker plays the audio signal in the test mode;
the signal acquisition circuit is used for acquiring the audio signal before the audio signal is played by the loudspeaker so as to obtain a reference signal;
the processor is used for responding to the test request event, acquiring a test audio signal and controlling the electronic equipment to work in a test mode; the echo cancellation system is also used for acquiring the reference signal and the echo signal and testing whether an echo cancellation system of the electronic equipment meets the set requirement or not according to the reference signal and the echo signal;
and the output module is used for outputting the test result.
In the technical scheme provided by this embodiment, distortion is less for both a reference signal acquired by collecting an audio signal before the audio signal is played by a speaker and an echo signal acquired by a microphone after the audio signal is played by the speaker; and then, whether the echo cancellation system meets the set requirement is tested based on the reference signal and the echo signal with less distortion, and compared with an artificial listening test mode, the method has the advantages of higher accuracy, rapidness, simplicity and convenience.
Further, as shown in fig. 5, the electronic device further includes:
an audio codec coupled to the processor;
the audio amplifier is connected with the audio codec and amplifies the audio signal output by the audio codec;
the loudspeaker is connected with the audio amplifier and used for playing the amplified signal output by the audio amplifier;
the signal acquisition circuit is provided with an acquisition end and a feedback end, the acquisition end is arranged between the audio amplifier and the loudspeaker, and the feedback end is connected with the processor through the audio encoder.
What needs to be added here is: an audio codec: digitizing (discretizing) the analog, continuous sound waveform to obtain digital audio; for digital audio, analog sound signals are converted into digital signals through sampling, quantizing and encoding processes, and then recording, transmission and other processing are carried out; during reproduction, the recorded digital audio signals are restored to analog signals, and continuous sound is obtained.
Further, the electronic device further comprises a storage medium for storing the reference signal, the echo signal and/or the signal difference; wherein the signal difference is obtained by comparing the reference signal and the echo signal;
the processor to retrieve the reference signal, the echo signal, and/or the signal difference from the storage medium in response to a test data retrieval event;
the output module is configured to output the reference signal, the echo signal, and/or the signal difference.
Further, the output module includes at least one of a display, a touch display, and an audio player.
Here, it should be noted that: the processor in this embodiment has other functions in the above method embodiments in addition to the above functions, and reference may be made to the corresponding contents in the above method embodiments for details, which are not described herein again.
Fig. 6 is a schematic flowchart illustrating a device testing method according to another embodiment of the present application. As shown, the method comprises:
301. the audio signal is acquired before being played by a loudspeaker to obtain a reference signal.
302. And after the loudspeaker plays the audio signal, acquiring an echo signal collected by a microphone.
303. And testing whether an echo cancellation system of the electronic equipment meets the set requirement or not according to the reference signal and the echo signal.
Wherein the electronic device includes the speaker and the microphone.
In the technical scheme provided by this embodiment, distortion is less for both a reference signal acquired by collecting an audio signal before the audio signal is played by a speaker and an echo signal acquired by a microphone after the audio signal is played by the speaker; and then, whether the echo cancellation system meets the set requirement is tested based on the reference signal and the echo signal with less distortion, and compared with an artificial listening test mode, the method has the advantages of higher accuracy, rapidness, simplicity and convenience.
The step 301 "acquiring the audio signal before the audio signal is played by the speaker to obtain the reference signal" includes:
301', before the audio signal is played by the loudspeaker, an electrical signal is collected from a circuit connected to the loudspeaker as the reference signal.
The step 303 of testing whether an echo cancellation system of the electronic device meets a set requirement according to the reference signal and the echo signal may include:
303' testing whether the echo cancellation system meets a set requirement by comparing the difference between the reference signal and the echo signal.
Further, the 303' "testing whether the echo cancellation system meets a set requirement by comparing the difference between the reference signal and the echo signal includes:
3031. comparing the volumes of the reference signal and the echo signal to obtain a volume difference;
3032. comparing the coding information of the reference signal and the echo signal to obtain information difference;
3033. judging that the echo cancellation system is normal under the condition that the volume difference is within a preset first allowable range and the coding information difference is within a preset second allowable range;
3034. and judging that the echo cancellation system is abnormal under the condition that the volume difference exceeds a preset first allowable range or the coding information difference exceeds a preset second allowable range.
For the steps 301 to 303, reference may be made to the corresponding contents in the above embodiments, which are not described herein again.
Fig. 7 shows a schematic structural diagram of a device testing apparatus according to an embodiment of the present application. As shown in the figure, the device testing apparatus includes: the device comprises a providing module 11, an acquisition module 12, a first acquisition module 13, a test module 14 and an output module 15. Wherein the content of the first and second substances,
the providing module 11 is configured to provide a test audio signal to an electronic device in response to a test request event, where the electronic device includes a speaker and a microphone;
a collecting module 12, configured to collect the audio signal before the audio signal is played by the speaker, so as to obtain a reference signal;
a first obtaining module 13, configured to obtain an echo signal collected by the microphone after the audio signal is played by the speaker;
the test module 14 is configured to test whether an echo cancellation system of the electronic device meets a set requirement according to the reference signal and the echo signal;
and the output module 15 is used for outputting the test result.
In the technical scheme provided by this embodiment, distortion is less for both a reference signal acquired by collecting an audio signal before the audio signal is played by a speaker and an echo signal acquired by a microphone after the audio signal is played by the speaker; and then, whether the echo cancellation system meets the set requirement is tested based on the reference signal and the echo signal with less distortion, and compared with an artificial listening test mode, the method has the advantages of higher accuracy, rapidness, simplicity and convenience.
Further, the acquisition module 12 is further configured to: before the audio signal is played by the loudspeaker, an electric signal is collected from a circuit connected to the loudspeaker to serve as the reference signal.
Further, the acquisition module 12 is further configured to: before the audio signal is played by the loudspeaker, an electric signal serving as the reference signal is collected at an electric signal input end of the loudspeaker.
Further, the test module 14 is further configured to: and testing whether the echo cancellation system meets the set requirement or not by comparing the difference between the reference signal and the echo signal.
Further, the test module 14 is further configured to: comparing the volumes of the reference signal and the echo signal to obtain a volume difference; comparing the coding information of the reference signal and the echo signal to obtain information difference; and integrating the volume difference and the information difference to judge whether the echo cancellation system meets the set requirement.
Further, the test module 14 is further configured to: judging that the echo cancellation system is normal under the condition that the volume difference is within a preset first allowable range and the coding information difference is within a preset second allowable range; and judging that the echo cancellation system is abnormal under the condition that the volume difference exceeds a preset first allowable range or the coding information difference exceeds a preset second allowable range.
Further, the device testing apparatus provided in this embodiment further includes a recording module. The recording module is used for responding to a technical index setting event and recording the first allowable range and/or the second allowable range generated in the technical index setting event.
Further, the providing module 11 further has at least one of the following functions:
locally retrieving the audio signal for testing from the electronic device;
acquiring the audio signal for testing from a server; and
and acquiring the audio signal for testing from a terminal which is in communication connection with the electronic equipment.
Further, the device testing apparatus provided in this embodiment further includes: the display module and the second acquisition module. The display module is used for displaying an interactive interface; the second obtaining module is used for responding to a test request triggered by a user through the interactive interface and obtaining the audio signal for testing.
Further, the output module 15 is further configured to: displaying the test result; and/or playing the test results.
Further, the device testing apparatus provided in this embodiment may further include: the device comprises a storage module and a calling module. Wherein the storage module is used for storing the reference signal, the echo signal and/or the signal difference; wherein the signal difference is obtained by comparing the reference signal and the echo signal. The retrieval module is configured to retrieve the reference signal, the echo signal, and/or the signal difference from a memory area in response to a test data retrieval event. The output module is further configured to: outputting the reference signal, the echo signal and/or the signal difference.
Here, it should be noted that: the device testing apparatus provided in the foregoing embodiments may implement the technical solutions described in the foregoing method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the foregoing method embodiments, which is not described herein again.
Fig. 8 shows a schematic structural diagram of a device testing apparatus according to an embodiment of the present application. As shown in fig. 8, the device testing apparatus includes: the device comprises an acquisition module 21, an acquisition module 22 and a test module 23. The acquisition module 21 is configured to acquire an audio signal before the audio signal is played by a speaker, so as to obtain a reference signal; the obtaining module 22 is configured to obtain an echo signal collected by a microphone after the audio signal is played by the speaker; the test module 23 is configured to test whether an echo cancellation system of the electronic device meets a set requirement according to the reference signal and the echo signal. Wherein the electronic device includes the speaker and the microphone.
In the technical scheme provided by this embodiment, distortion is less for both a reference signal acquired by collecting an audio signal before the audio signal is played by a speaker and an echo signal acquired by a microphone after the audio signal is played by the speaker; and then, whether the echo cancellation system meets the set requirement is tested based on the reference signal and the echo signal with less distortion, and compared with an artificial listening test mode, the method has the advantages of higher accuracy, rapidness, simplicity and convenience.
Further, the acquisition module 21 is further configured to: before the audio signal is played by the loudspeaker, an electric signal is collected from a circuit connected to the loudspeaker to serve as the reference signal.
Further, the test module 23 is further configured to: and testing whether the echo cancellation system meets the set requirement or not by comparing the difference between the reference signal and the echo signal.
Further, the test module 23 is further configured to:
comparing the volumes of the reference signal and the echo signal to obtain a volume difference;
comparing the coding information of the reference signal and the echo signal to obtain information difference;
judging that the echo cancellation system is normal under the condition that the volume difference is within a preset first allowable range and the coding information difference is within a preset second allowable range;
and judging that the echo cancellation system is abnormal under the condition that the volume difference exceeds a preset first allowable range or the coding information difference exceeds a preset second allowable range.
Here, it should be noted that: the device testing apparatus provided in the foregoing embodiments may implement the technical solutions described in the foregoing method embodiments, and the specific implementation principle of each module or unit may refer to the corresponding content in the foregoing method embodiments, which is not described herein again.
Fig. 9 shows a schematic structural diagram of an electronic device according to an embodiment of the present application. As shown in fig. 9, the electronic device includes a memory 31, a processor 32, a signal acquisition circuit 33, a speaker 34, and a microphone 35; wherein the content of the first and second substances,
the memory 31 is used for storing programs;
the processor 32, coupled to the memory 31, is configured to execute the program stored in the memory 31 to:
controlling the signal acquisition circuit 33 to acquire the audio signal before the audio signal is played by the speaker 34 to obtain a reference signal;
after the audio signal is played by the speaker 34, acquiring an echo signal acquired by a microphone 35;
and testing whether an echo cancellation system of the electronic equipment meets the set requirement or not according to the reference signal and the echo signal.
The memory 31 described above may be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device. The memory 31 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The processor 32 may also implement other functions besides the above functions when executing the program in the memory 31, which may be specifically referred to the description of the foregoing embodiments.
Further, the electronic device may further include: display, power components, communication components, and the like. Only some of the components are schematically shown in fig. 9, and the electronic device is not meant to include only the components shown in fig. 9.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing a computer program, where the computer program can implement the steps or functions of the device testing method provided in the foregoing embodiments when executed by a computer.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (20)

1. A method for testing a device, comprising:
responding to a test request event, and providing a test audio signal for the electronic equipment, wherein the electronic equipment comprises a loudspeaker and a microphone;
acquiring the audio signal before the audio signal is played by the loudspeaker to obtain a reference signal;
after the loudspeaker plays the audio signal, acquiring an echo signal collected by the microphone;
testing whether an echo cancellation system of the electronic equipment meets a set requirement or not according to the reference signal and the echo signal;
and outputting a test result.
2. The method of claim 1, wherein capturing the audio signal before the audio signal is played by the speaker to obtain a reference signal comprises:
before the audio signal is played by the loudspeaker, an electric signal is collected from a circuit connected to the loudspeaker to serve as the reference signal.
3. The method of claim 2, wherein collecting an electrical signal from a circuit accessed by the speaker as the reference signal before the audio signal is played by the speaker comprises:
before the audio signal is played by the loudspeaker, an electric signal serving as the reference signal is collected at an electric signal input end of the loudspeaker.
4. The method according to any one of claims 1 to 3, wherein testing whether an echo cancellation system of an electronic device meets a set requirement according to the reference signal and the echo signal comprises:
and testing whether the echo cancellation system meets the set requirement or not by comparing the difference between the reference signal and the echo signal.
5. The method of claim 4, wherein testing whether the echo cancellation system meets a set requirement by comparing the difference between the reference signal and the echo signal comprises:
comparing the volumes of the reference signal and the echo signal to obtain a volume difference;
comparing the coding information of the reference signal and the echo signal to obtain information difference;
and integrating the volume difference and the information difference to judge whether the echo cancellation system meets the set requirement.
6. The method of claim 5, wherein the step of determining whether the echo cancellation system meets a set requirement by combining the volume difference and the information difference comprises:
judging that the echo cancellation system is normal under the condition that the volume difference is within a preset first allowable range and the coding information difference is within a preset second allowable range;
and judging that the echo cancellation system is abnormal under the condition that the volume difference exceeds a preset first allowable range or the coding information difference exceeds a preset second allowable range.
7. The method of claim 6, further comprising:
recording the first allowable range and/or the second allowable range generated in the technical index setting event in response to a technical index setting event.
8. A method according to any of claims 1 to 3, wherein the electronic device is provided with a test audio signal comprising any of:
locally retrieving the audio signal for testing from the electronic device;
acquiring the audio signal for testing from a server;
and acquiring the audio signal for testing from a terminal which is in communication connection with the electronic equipment.
9. The method of claim 8, further comprising:
displaying an interactive interface;
and responding to a test request triggered by a user through the interactive interface, and acquiring the audio signal for testing.
10. The method of any of claims 1 to 3, wherein outputting the test result comprises:
displaying the test result; and/or
And playing the test result.
11. The method of any of claims 1 to 3, further comprising:
storing the reference signal, echo signal and/or signal difference; wherein the signal difference is obtained by comparing the reference signal and the echo signal;
the reference signal, the echo signal, and/or the signal difference are retrieved from a memory area and output in response to a test data retrieval event.
12. An electronic device, comprising:
the loudspeaker is used for playing the audio signal for the test in the test mode;
the microphone is used for acquiring an echo signal after the loudspeaker plays the audio signal in the test mode;
the signal acquisition circuit is used for acquiring the audio signal before the audio signal is played by the loudspeaker so as to obtain a reference signal;
the processor is used for responding to the test request event, acquiring a test audio signal and controlling the electronic equipment to work in a test mode; the echo cancellation system is also used for acquiring the reference signal and the echo signal and testing whether an echo cancellation system of the electronic equipment meets the set requirement or not according to the reference signal and the echo signal;
and the output module is used for outputting the test result.
13. The electronic device of claim 12, further comprising:
an audio codec coupled to the processor;
the audio amplifier is connected with the audio codec and amplifies the audio signal output by the audio codec;
the loudspeaker is connected with the audio amplifier and used for playing the amplified signal output by the audio amplifier;
the signal acquisition circuit is provided with an acquisition end and a feedback end, the acquisition end is arranged between the audio amplifier and the loudspeaker, and the feedback end is connected with the processor through the audio encoder.
14. The electronic device of claim 12 or 13,
the electronic device further comprises a storage medium for storing the reference signal, the echo signal and/or the signal difference; wherein the signal difference is obtained by comparing the reference signal and the echo signal;
the processor to retrieve the reference signal, the echo signal, and/or the signal difference from the storage medium in response to a test data retrieval event;
the output module is configured to output the reference signal, the echo signal, and/or the signal difference.
15. The electronic device of claim 12 or 13, wherein the output module comprises at least one of a display, a touch display, and an audio player.
16. A method for testing a device, comprising:
acquiring an audio signal before the audio signal is played by a loudspeaker to obtain a reference signal;
after the audio signal is played by the loudspeaker, acquiring an echo signal acquired by a microphone;
testing whether an echo cancellation system of the electronic equipment meets a set requirement or not according to the reference signal and the echo signal;
wherein the electronic device includes the speaker and the microphone.
17. The method of claim 16, wherein acquiring the audio signal before the audio signal is played by a speaker to obtain a reference signal comprises:
before the audio signal is played by the loudspeaker, an electric signal is collected from a circuit connected to the loudspeaker to serve as the reference signal.
18. The method of claim 16 or 17, wherein testing whether an echo cancellation system of an electronic device meets a set requirement according to the reference signal and the echo signal comprises:
and testing whether the echo cancellation system meets the set requirement or not by comparing the difference between the reference signal and the echo signal.
19. The method of claim 16 or 17, wherein testing whether the echo cancellation system meets a set requirement by comparing the difference between the reference signal and the echo signal comprises:
comparing the volumes of the reference signal and the echo signal to obtain a volume difference;
comparing the coding information of the reference signal and the echo signal to obtain information difference;
judging that the echo cancellation system is normal under the condition that the volume difference is within a preset first allowable range and the coding information difference is within a preset second allowable range;
and judging that the echo cancellation system is abnormal under the condition that the volume difference exceeds a preset first allowable range or the coding information difference exceeds a preset second allowable range.
20. An electronic device, comprising a memory, a processor and a signal acquisition circuit; wherein the content of the first and second substances,
the memory is used for storing programs;
the processor, coupled with the memory, to execute the program stored in the memory to:
controlling the signal acquisition circuit to acquire the audio signal before the audio signal is played by the loudspeaker so as to obtain a reference signal;
after the audio signal is played by the loudspeaker, acquiring an echo signal acquired by a microphone;
testing whether an echo cancellation system of the electronic equipment meets a set requirement or not according to the reference signal and the echo signal;
wherein the electronic device includes the speaker and the microphone.
CN202010081941.8A 2020-02-06 2020-02-06 Equipment test method and electronic equipment Pending CN113225659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010081941.8A CN113225659A (en) 2020-02-06 2020-02-06 Equipment test method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010081941.8A CN113225659A (en) 2020-02-06 2020-02-06 Equipment test method and electronic equipment

Publications (1)

Publication Number Publication Date
CN113225659A true CN113225659A (en) 2021-08-06

Family

ID=77085620

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010081941.8A Pending CN113225659A (en) 2020-02-06 2020-02-06 Equipment test method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113225659A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245281A (en) * 2021-12-09 2022-03-25 深圳市音络科技有限公司 Voice performance test method and system
CN115148208A (en) * 2022-09-01 2022-10-04 北京探境科技有限公司 Audio data processing method and device, chip and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150271616A1 (en) * 2012-10-09 2015-09-24 Koninklijke Philips N.V. Method and apparatus for audio interference estimation
CN105979462A (en) * 2015-11-16 2016-09-28 乐视致新电子科技(天津)有限公司 Test processing method and device based on microphone
CN107636758A (en) * 2015-05-15 2018-01-26 哈曼国际工业有限公司 Acoustic echo eliminates system and method
CN108322859A (en) * 2018-02-05 2018-07-24 北京百度网讯科技有限公司 Equipment, method and computer readable storage medium for echo cancellor
CN109362016A (en) * 2018-09-18 2019-02-19 北京小鸟听听科技有限公司 Audio-frequence player device and its test method and test device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150271616A1 (en) * 2012-10-09 2015-09-24 Koninklijke Philips N.V. Method and apparatus for audio interference estimation
CN107636758A (en) * 2015-05-15 2018-01-26 哈曼国际工业有限公司 Acoustic echo eliminates system and method
CN105979462A (en) * 2015-11-16 2016-09-28 乐视致新电子科技(天津)有限公司 Test processing method and device based on microphone
CN108322859A (en) * 2018-02-05 2018-07-24 北京百度网讯科技有限公司 Equipment, method and computer readable storage medium for echo cancellor
CN109362016A (en) * 2018-09-18 2019-02-19 北京小鸟听听科技有限公司 Audio-frequence player device and its test method and test device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245281A (en) * 2021-12-09 2022-03-25 深圳市音络科技有限公司 Voice performance test method and system
CN114245281B (en) * 2021-12-09 2024-03-19 深圳市音络科技有限公司 Voice performance test method and system
CN115148208A (en) * 2022-09-01 2022-10-04 北京探境科技有限公司 Audio data processing method and device, chip and electronic equipment
CN115148208B (en) * 2022-09-01 2023-02-03 北京探境科技有限公司 Audio data processing method and device, chip and electronic equipment

Similar Documents

Publication Publication Date Title
US20170330579A1 (en) Method and device for improving audio processing performance
MX2008016354A (en) Detecting an answering machine using speech recognition.
EP2826261B1 (en) Spatial audio signal filtering
CN105848052B (en) A kind of Mike's switching method and terminal
CN1894946A (en) Method and apparatus for automatic telephone menu navigation
CN112601045A (en) Speaking control method, device, equipment and storage medium for video conference
CN113225659A (en) Equipment test method and electronic equipment
CN111798833A (en) Voice test method, device, equipment and storage medium
CN105979462A (en) Test processing method and device based on microphone
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN111343410A (en) Mute prompt method and device, electronic equipment and storage medium
CN104092809A (en) Communication sound recording method and recorded communication sound playing method and device
CN111739512A (en) Voice wake-up rate testing method, system, device and medium based on real vehicle
US20120053937A1 (en) Generalizing text content summary from speech content
CN107680592A (en) A kind of mobile terminal sound recognition methods and mobile terminal and storage medium
CN111724781A (en) Audio data storage method and device, terminal and storage medium
CN108899011B (en) Voice function testing method, device and system of air conditioner
CN107403629B (en) Far-field pickup performance evaluation method and system, and electronic device
CN111370031B (en) Voice separation method, system, mobile terminal and storage medium
CN109271480B (en) Voice question searching method and electronic equipment
US20230290335A1 (en) Detection of live speech
US8244538B2 (en) Measuring double talk performance
CN113517000A (en) Echo cancellation test method, terminal and storage device
CN111148005B (en) Method and device for detecting mic sequence
CN106293607A (en) The method and system of automatic switchover audio output mode

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210806

RJ01 Rejection of invention patent application after publication