Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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 some, but not all, embodiments of the present invention. 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.
Fig. 1 shows a flow chart of an electroacoustic testing terminal used outside a anechoic chamber for a testing method of electroacoustic parameters of a loudspeaker in a product according to an embodiment of the present invention, which includes the following steps:
s11: determining a reference parameter according to a test item in the test instruction, and generating a test audio through the reference parameter;
s12: sending the test audio to an agent end in a silencing room;
s13: responding to the import success information fed back by the agent end in the anechoic room, and monitoring the anechoic room to record the actual audio played by a loudspeaker in a tested product in the anechoic room;
s14: analyzing the actual parameters of the actual audio, and determining the electroacoustic parameters of the loudspeaker in the product through a tracking algorithm according to the actual parameters and the reference parameters.
In the present embodiment, the present method can be incorporated into an electroacoustic test apparatus or an electroacoustic test system. When the electroacoustic tester is used for testing the loudspeaker of a product, the tested product may not have Bluetooth or the performance of a Bluetooth functional module is poor, but most products have usb debugging ports (some usb debugging ports are visible outside the product, and some usb debugging ports are inside the product and are invisible outside).
Because few electroacoustic test ends can call the command of an operating system through a built-in interface, the product is directly controlled through physical connection and wireless ADB (Android Debug Bridge). If possible, implementation is very difficult. In addition, because the electroacoustic test system is arranged outside the silencing room, the distance between the electroacoustic test system and the silencing room is several meters, and excessive loss is introduced due to the fact that a usb data line is too long in physical connection, so that the problem of incapability of communication is caused. Therefore, the agent terminal is used as the transfer of the electroacoustic test terminal and the tested product.
Since the test needs to be performed in the anechoic chamber, the electroacoustic test terminal is outside the anechoic chamber, the tested product is in the anechoic chamber, and the proxy terminal as a relay is also in the anechoic chamber.
For step S11, the electroacoustic test terminal responds to the test command issued by the tester, and determines the corresponding reference parameter according to the item tested in the command. The reference parameters are used to generate corresponding test audio, and the corresponding test items are determined during the test due to the variety of test items. For example, in the first test of a product, each test item needs to be tested. In this case, the number of reference parameters to be determined is large, and the time for generating the test audio is long. After the first test, for example, it is determined that part of the electroacoustic parameters pass, and when part of the electroacoustic parameters do not pass, the corresponding part of the loudspeaker in the product is adjusted, and then all test items can be selected for testing the accuracy of the test; for testing efficiency, only the items which fail in the first test can be selected for testing. Therefore, when testing, a tester can select corresponding test items according to actual needs, so that the testing time is controlled.
For step S12, the test audio determined at step S11 is sent to the agent in the anechoic room according to the connection established in advance with the agent in the anechoic room.
For step S13, the electroacoustic test terminal issues success information in response to the audio import and audio play instruction fed back by the agent terminal, and further monitors the sound in the anechoic chamber, thereby recording the actual audio played by the speaker in the tested product in the anechoic chamber.
For step S14, the actual parameters of the actual audio frequency are analyzed by an existing method, and the electroacoustic parameters of the speakers in the product are determined by a tracking algorithm, such as a harmonic tracking algorithm, using the actual parameters and the reference parameters.
Through the implementation method, the proxy terminal is used for establishing connection for the electroacoustic test terminal and the tested product, and the Bluetooth transmission method is replaced. The electroacoustic test terminal can be connected with the loudspeakers of various tested products, so that the problems of data loss, large delay or unstable delay in the Bluetooth transmission process are solved, and the accuracy of the test result is ensured.
As an implementation manner, in this embodiment, the monitoring the anechoic chamber to record the actual audio played by the speaker in the tested product in the anechoic chamber includes:
when detecting that the trigger signal and/or the environment sound pressure level in the anechoic chamber reach a preset threshold value, recording the actual audio played by a loudspeaker in the anechoic chamber tested product, wherein the trigger signal comprises a single-frequency signal.
In this embodiment, for example, once the electroacoustic test terminal detects that the sound pressure level of the single frequency signal at 1kHz exceeds 70 db (the 70 db is determined by measurement, and the value is related to the environment and the performance of the speaker, 70 is merely an example), the recording is started.
By the implementation method, the actual audio played by the loudspeaker in the tested product in the anechoic chamber is recorded by detecting the sound pressure level of the trigger signal, so that the electroacoustic test end can be accurately started to record in real time when the loudspeaker plays.
In this embodiment, as an implementation manner, when the test audio includes a mute signal of a preset duration,
starting timing in response to the import success information fed back by the agent end in the anechoic chamber;
and recording the actual audio played by the loudspeaker in the tested product in the anechoic chamber when the timed duration reaches the preset duration.
In this embodiment, for example, the first part of the test audio is a 30-second mute signal. And when the guiding-in success information fed back by the agent end in the anechoic chamber is responded, wherein the guiding-in success information comprises audio playing instruction issuing success information, timing is started, at the moment, 30 seconds are also timed, and recording is started after the 30 seconds. Thus, a method for recording audio without real-time monitoring is provided.
According to the implementation method, the unstable monitoring function of part of the electroacoustic test terminals is avoided by using a timing mode, and further the actual audio can be recorded.
As an implementation manner, in this embodiment, after the determining a reference parameter according to the test item in the test instruction and generating a test audio by using the reference parameter, the method further includes: determining a first audio duration of the test audio;
and the second audio time length for recording the actual audio played by the loudspeaker in the silencing indoor tested product is the same as the first audio time length.
In this embodiment, the test audio needs to be as long as the actual audio for use by the tracking algorithm. Therefore, after the first audio time length of the test audio is determined, the time length for recording the audio is limited according to the first audio time length, so that the time lengths of the actual audio and the test audio are equal.
According to the implementation method, the duration of the recorded audio is controlled by determining the duration of the test audio, so that the two inputs (the test audio and the actual audio) of the tracking algorithm are completely aligned, and the accuracy of the test is ensured.
As an implementation manner, in this embodiment, the test instruction at least includes: detecting a frequency wave signal;
when the test instruction at least comprises a detection frequency wave signal, the test item at least comprises: frequency response, total harmonic distortion, abnormal tones, intermodulation distortion, difference frequency distortion, and the like.
After the electro-acoustic parameters of the loudspeaker in the product are determined through the tracking algorithm, the method further comprises the following steps:
and detecting the electroacoustic parameters, and feeding back at least structural resonance and/or abnormal sound and/or routing abnormality when the frequency response and/or total harmonic distortion and/or abnormal sound parameters are abnormal.
In the present embodiment, frequency response, total harmonic distortion, R & B (Rub & Buzz, abnormal sound) require a sweep wave; intermodulation distortion and difference frequency distortion require two-tone signals. The waveform files are automatically generated by an electroacoustic test system according to input information of a tester, such as start-stop frequency, frequency resolution, amplitude, minimum cycle number and other information required by sweep frequency wave input; the two-tone signal inputs information such as required frequency, amplitude and the like.
These electroacoustic parameters are used to evaluate whether the performance of the loudspeaker system after assembly inside a product is good or bad, meeting specific requirements: firstly, in the aspect of user hearing, whether the frequency response of the middle frequency band of the loudspeaker system is flat, whether the low/high frequency playback frequency response meets the requirements, whether the tremolo, abnormal sound and the like are introduced after assembly, and the like; secondly, in the aspect of artificial intelligence voice interaction, the total harmonic distortion and R & B of the loudspeaker system are small enough, and the problems of structural resonance, abnormal sound, routing and the like occur after assembly. Because the total harmonic distortion and the R & B are too large, or structural resonance, abnormal sound and routing exist, the performance of a voice signal processing algorithm is influenced, the voice quality is damaged, and the experience of voice interaction is reduced, such as the problems of low awakening rate, low interruption success rate, poor recognition accuracy and the like.
By analyzing the parameters, the improvement direction of the product can be known, and the product performance is finally improved: problems such as frequency response, total harmonic distortion, intermodulation distortion, abnormal sound, etc. require improvements in the loudspeaker system; the vibration, resonance, wire bonding and the like need to be improved.
According to the implementation method, the configuration of the tested product is inquired about which configuration is abnormal according to the determined electroacoustic parameters as reference, so that the position of the tested product needing to be improved is determined according to the parameters, and the position needing to be improved is prompted for the loudspeaker of the tested product. Thereby improving the testing effect.
Fig. 2 shows a flowchart of an agent end in a anechoic chamber for a method for testing electroacoustic parameters of a loudspeaker in a product according to an embodiment of the present invention, which includes the following steps:
s21: receiving a test audio sent by an electroacoustic test end outside a silencing chamber;
s22: generating a corresponding audio playing instruction according to the test audio;
s23: the test audio and the audio playing instruction are led into the tested product through physical connection and/or wireless ADB connection which is established with the tested product in advance;
s24: and responding to the test audio and the success of the audio playing instruction introduction, and feeding back the introduction success information to an electroacoustic test end outside the anechoic chamber.
In this embodiment, the agent terminal inside the muffling chamber is connected to the electroacoustic testing terminal outside the muffling chamber in advance. And the agent end can interact with the electroacoustic test end.
For step S21, the agent end receives the test audio sent by the electroacoustic test end outside the anechoic chamber, and since the connection has been established in advance, information and data can be mutually transmitted.
And step S22, generating a corresponding playing instruction according to the test audio, where the playing instruction is used to send to the product under test to control the product to play the corresponding test audio.
For step S23, by physical connection and/or wireless ADB (Android Debug Bridge) connection established with the tested product in advance, since most products are ADB shelltiplay/aplay and other instructions to control the speaker to play, the test audio and the audio playing instruction are led to the tested product.
For step S24, in response to the successful introduction in step S23, the information that the introduction and the successful placement of the audio playing instruction are fed back to the electroacoustic testing terminal outside the anechoic chamber, so as to remind the electroacoustic testing terminal to prepare for monitoring.
Through the implementation method, the proxy terminal is used for establishing connection for the electroacoustic test terminal and the tested product, and the Bluetooth transmission method is replaced. The electroacoustic test terminal can be connected with various tested products, the problems of data loss, large delay or unstable delay in the Bluetooth transmission process are avoided, and the accuracy of the test result is ensured.
Fig. 3 is a schematic structural diagram of a system for testing electroacoustic parameters of a loudspeaker in a product according to an embodiment of the present invention, which can perform the method for testing electroacoustic parameters of a loudspeaker in a product according to any of the embodiments described above and is configured in a terminal.
The embodiment provides a test system for electroacoustic parameters of a loudspeaker in a product, which comprises: a test information generation program module 11, a test audio transmission program module 12, an actual audio recording program module 13 and an electroacoustic parameter determination program module 14.
The test information generation program module 11 is configured to determine a reference parameter according to a test item in the test instruction, and generate a test audio through the reference parameter; the test audio sending program module 12 is configured to send the test audio to an agent end in the anechoic room; the actual audio recording program module 13 is configured to monitor the anechoic chamber in response to the successful introduction information fed back by the agent end in the anechoic chamber, so as to record an actual audio played by a speaker in a tested product in the anechoic chamber; the electroacoustic parameter determining program module 14 is configured to analyze an actual parameter of the actual audio, and determine an electroacoustic parameter of a speaker in the product through a tracking algorithm according to the actual parameter and the reference parameter.
Further, the actual audio recording program module is configured to:
when detecting that the trigger signal and/or the environment sound pressure level in the anechoic chamber reach a preset threshold value, recording the actual audio played by a loudspeaker in the anechoic chamber tested product, wherein the trigger signal comprises a single-frequency signal.
Further, when the test audio includes a mute signal of a preset duration,
starting timing in response to audio import success information sent by an agent end in the anechoic room;
and recording the actual audio played by the loudspeaker in the tested product in the anechoic chamber when the timed duration reaches the preset duration.
Further, after the test information generating program module, the method further includes: an audio duration determination program module for:
determining a first audio duration of the test audio;
and the second audio time length for recording the actual audio played by the loudspeaker in the silencing indoor tested product is the same as the first audio time length.
Further, the test instructions include at least: detecting a frequency wave signal;
when the test instruction at least comprises a detection frequency wave signal, the test item at least comprises: frequency response, total harmonic distortion, abnormal tones, intermodulation distortion, difference frequency distortion, and the like.
After the electroacoustic parameter determination program module, the method further comprises the following steps: an exception feedback program module to:
and detecting the electroacoustic parameters, and feeding back at least structural resonance and/or abnormal sound and/or routing abnormality when the frequency response and/or total harmonic distortion and/or abnormal sound parameters are abnormal.
Fig. 4 is a schematic structural diagram of a system for testing electroacoustic parameters of a loudspeaker in a product according to an embodiment of the present invention, which can perform the method for testing electroacoustic parameters of a loudspeaker in a product according to any of the embodiments described above and is configured in a terminal.
The embodiment provides a test system for electroacoustic parameters of a loudspeaker in a product, which comprises: a test audio receiving program module 21, a play instruction generating program module 22, a test audio importing program module 23 and a feedback program module 24.
The test audio receiving program module 21 is configured to receive a test audio sent by an electroacoustic test end outside the anechoic chamber; the playing instruction generating program module 22 is configured to generate a corresponding audio playing instruction according to the test audio; the test audio importing program module 23 is configured to import the test audio and the audio playing instruction into the product to be tested through a physical connection and/or a wireless ADB connection that is established in advance with the product to be tested; the feedback program module 24 is configured to respond to the test audio and the success of the audio playing instruction introduction, and feed back the audio introduction success information to the electroacoustic test end outside the anechoic chamber.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute the test method for the electroacoustic parameters of the loudspeaker in the product in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
determining a reference parameter according to a test item in the test instruction, and generating a test audio through the reference parameter;
sending the test audio to an agent end in a silencing room;
responding to audio import success information fed back by an agent end in a silencing room, and monitoring the silencing room to record actual audio played by a loudspeaker in a tested product in the silencing room;
analyzing the actual parameters of the actual audio, and determining the electroacoustic parameters of the loudspeaker in the product through a tracking algorithm according to the actual parameters and the reference parameters.
The embodiment of the invention also provides a nonvolatile computer storage medium, wherein the computer storage medium stores computer executable instructions which can execute the test method for the electroacoustic parameters of the loudspeaker in the product in any method embodiment;
as one embodiment, a non-volatile computer storage medium of the present invention stores computer-executable instructions configured to:
receiving a test audio sent by an electroacoustic test end outside a silencing chamber;
generating a corresponding audio playing instruction according to the test audio;
the test audio and the audio playing instruction are led into the tested product through physical connection and/or wireless ADB connection which is established with the tested product in advance;
responding to the test audio and the success of the audio playing instruction introduction, and feeding back the audio introduction success information to an electroacoustic test end outside the anechoic chamber.
As a non-volatile computer readable storage medium, may be used to store non-volatile software programs, non-volatile computer executable programs, and modules, such as program instructions/modules corresponding to the methods of testing software in embodiments of the present invention. One or more program instructions are stored in a non-transitory computer readable storage medium that, when executed by a processor, perform a method for testing electroacoustic parameters of a loudspeaker within a product in any of the method embodiments described above.
The non-volatile computer-readable storage medium may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a device of test software, and the like. Further, the non-volatile computer-readable storage medium may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the non-transitory computer readable storage medium optionally includes memory located remotely from the processor, which may be connected to the means for testing software over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
An embodiment of the present invention further provides an electronic device, which includes: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the method for testing electroacoustic parameters of a speaker within a product of any of the embodiments of the present invention.
The client of the embodiment of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) Other electronic devices having a speaker function.
In this document, 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 … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
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 examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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 of the embodiments of the present invention.