Summary of the invention
There is no Bluetooth function module at least solve part test product in the prior art, loudspeaking in product can not be carried out
The test of device or portioned product bluetooth performance are bad, lead to the problem of the result inaccuracy of test loudspeaker.
In a first aspect, the embodiment of the present invention provides a kind of test method for loudspeaker electro mechanical parameter in product, it is used for
Electroacoustical measurement end outside anechoic room, comprising:
Basic parameter is determined according to test item in test instruction, and testing audio is generated by the basic parameter;
The testing audio is sent to indoor agent side of eliminating the noise;
In response to the importing successful information for indoor agent side feedback of eliminating the noise, the anechoic room is monitored, to disappear described in recording
The actual audio that loudspeaker plays in test product in sound chamber;
The actual parameter for parsing the actual audio passes through tracking according to the actual parameter and the basic parameter
Algorithm determines loudspeaker electro mechanical parameter in the product.
Second aspect, the embodiment of the present invention provide a kind of test method for loudspeaker electro mechanical parameter in product, are used for
It eliminates the noise indoor agent side, comprising:
Receive the testing audio that the electroacoustical measurement end outside anechoic room is sent;
According to the testing audio, corresponding audio play instruction is generated;
It is connect by the physical connection and/or wireless AD B established in advance with test product, by the testing audio and institute
It states audio play instruction and imports the test product;
In response to the success that the testing audio and the audio play instruction import, fed back to successful information is imported
Electroacoustical measurement end outside anechoic room.
The third aspect, the embodiment of the present invention provide a kind of test macro for loudspeaker electro mechanical parameter in product, are used for
Electroacoustical measurement end outside anechoic room, comprising:
Information generation program module is tested, for determining basic parameter according to test item in test instruction, is passed through
The basic parameter generates testing audio;
Testing audio sends program module, for the testing audio to be sent to indoor agent side of eliminating the noise;
Actual audio records program module, for the importing successful information in response to indoor agent side feedback of eliminating the noise, prison
The anechoic room is listened, to record the actual audio that loudspeaker plays in test product in the anechoic room;
Electro mechanical parameter determines program module, for parsing the actual parameter of the actual audio, according to the actual parameter
And the basic parameter, loudspeaker electro mechanical parameter in the product is determined by track algorithm.
Fourth aspect, the embodiment of the present invention provide a kind of test macro for loudspeaker electro mechanical parameter in product, are used for
It eliminates the noise indoor agent side, comprising:
Testing audio receives program module, for receiving the testing audio of the transmission of the electroacoustical measurement end outside anechoic room;
Play instruction generates program module, for generating corresponding audio play instruction according to the testing audio;
Testing audio imports program module, for the physical connection and/or wireless AD B by establishing in advance with test product
The testing audio and the audio play instruction are imported the test product by connection;
Feedback process module will for the success in response to the testing audio and audio play instruction importing
It imports successful information and feeds back to the electroacoustical measurement end outside anechoic room.
5th aspect, provides a kind of electronic equipment comprising: at least one processor, and with described at least one
Manage the memory of device communication connection, wherein the memory is stored with the instruction that can be executed by least one described processor, institute
It states instruction to be executed by least one described processor, so that at least one described processor is able to carry out any embodiment of the present invention
For in product the step of the test method of loudspeaker electro mechanical parameter.
6th aspect, the embodiment of the present invention provide a kind of storage medium, are stored thereon with computer program, and feature exists
In the test side for loudspeaker electro mechanical parameter in product of realization any embodiment of the present invention when the program is executed by processor
The step of method.
The beneficial effect of the embodiment of the present invention is: being that electroacoustical measurement end and test product are established by using agent side
Connection, is substituted the transmission of bluetooth.So that electroacoustical measurement end and various test products can all establish connection, transmission process is avoided
Middle have losing that data, delay is larger or delay is unstable, guarantees that test result is accurate.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
A kind of test side for loudspeaker electro mechanical parameter in product provided as shown in Figure 1 for one embodiment of the invention
Method, for anechoic room outside electroacoustical measurement end flow chart, include the following steps:
S11: basic parameter is determined according to test item in test instruction, test tone is generated by the basic parameter
Frequently;
S12: the testing audio is sent to indoor agent side of eliminating the noise;
S13: in response to the importing successful information for indoor agent side feedback of eliminating the noise, the anechoic room is monitored, to record
State the actual audio that loudspeaker plays in test product in anechoic room;
S14: parsing the actual parameter of the actual audio, according to the actual parameter and the basic parameter, passes through
Track algorithm determines loudspeaker electro mechanical parameter in the product.
In the present embodiment, this method can be mounted in electruacousticfidelity instrument or electric sound testing system.It is using
When the loudspeaker of electruacousticfidelity instrument test product, tested product may be very poor without bluetooth or Bluetooth function module performance, but
Be most of product can all have usb debugging mouth (product usb debugging mouth be visible outside product, some product usb debugging
Mouthful be in interiors of products, it is externally invisible).
Since the electroacoustical measurement end of only a few can be by built-in interface come the order of call operation system, to pass through object
Reason connection, wireless AD B (Android Debug Bridge, Android debug bridge) directly control product.Even if can be with, realize nor
It is often difficult.In addition, since electric sound testing system is outside anechoic room, product in anechoic room, the two apart from several meters, physical connection
The problem of usb data line is too long to introduce excessive loss, lead to not communication.So by agent side as electroacoustical measurement end
With the transfer of test product.
Since test needs to carry out in anechoic chamber, so, electroacoustical measurement end is outside anechoic chamber, and test product is in anechoic chamber
Interior, the agent side as transfer is also in anechoic chamber.
For step S11, electroacoustical measurement end is instructed in response to the test that tester assigns, and is tested according in described instruction
Project, to determine corresponding basic parameter.Corresponding testing audio is generated by the basic parameter, due to test item
There are many kinds of, so, corresponding test item is determined in testing.For example, in product is tested for the first time, it is necessary to by each test
Project is all tested.At this point, the basic parameter of required determination is more, the testing audio time of generation is longer.By for the first time
After test, such as, it is determined that part electro mechanical parameter passes through, and part is obstructed out-of-date, and loudspeaker corresponding site adjusts in product
Afterwards, for the accuracy of test, it can choose each test item and all test;It may be testing efficiency, only selected that first
The project not passed through in secondary test is tested.In this way in test, tester can select accordingly according to actual needs
Test item, to control the time of test.
For step S12, the testing audio that will be determined in step S11, according to what is established in advance with agent side in anechoic room
Connection is sent to indoor agent side of eliminating the noise.
For step S13, the electroacoustical measurement end is imported in response to the audio of agent side feedback and under audio play instruction
Up to successful information, and then the indoor sound of eliminating the noise is monitored, loudspeaker is broadcast in test product to record in the anechoic room
The actual audio put.
For step S14, the actual parameter of the actual audio is parsed, can be parsed by existing method, then
By the actual parameter and the basic parameter, by track algorithm, for example, harmonic track algorithm, to determine the product
The electro mechanical parameter of interior loudspeaker.
Can be seen that by the implementation method by using agent side is that electroacoustical measurement end and test product are established and connected
It connects, the transmission method of bluetooth is substituted.So that the loudspeaker of electroacoustical measurement end and various test products can all establish connection, avoid
There is a problem of losing that data, delay is larger or delay is unstable during Bluetooth transmission, guarantee test result is accurate.
As an implementation, in the present embodiment, described to monitor the anechoic room, to record quilt in the anechoic room
Surveying the actual audio that loudspeaker plays in product includes:
When detecting that the indoor trigger signal of the noise elimination and/or environment sound pressure level reach preset threshold, described in recording
The actual audio that loudspeaker plays in test product in anechoic room, wherein the trigger signal includes simple signal.
In the present embodiment, for example, electroacoustical measurement end once detects that the sound pressure level of 1kHz simple signal is more than 70 points
When shellfish (this 70 decibels need to survey determination, and the value is related to environment, speaker performance, and 70 is merely illustrative), opens and record.
It can be seen that by the implementation method by using detection trigger signal sound pressure level to record and be tested production in anechoic room
The actual audio that loudspeaker plays in product, when may insure that loudspeaker plays in this way, electroacoustical measurement end can accurately open in real time
It records.
As an implementation, in the present embodiment, when the testing audio includes the mute signal of preset duration,
In response to the importing successful information for indoor agent side feedback of eliminating the noise, start timing;
When the duration of the timing reaches preset duration, loudspeaker broadcasting in test product in the anechoic room is recorded
Actual audio.
In the present embodiment, for example, the mute signal that the first section part of the testing audio is 30 seconds.When in response to disappearing
The importing successful information of sound indoor agent side feedback, wherein importing successful information includes that audio play instruction is assigned and successfully believed
Breath starts timing, at this point, also timing 30 seconds, started to record again later to 30 seconds.It is a kind of without monitoring in real time to provide,
The method of energy recording audio again.
In such a way that the implementation method can be seen that by using timing, avoids part electroacoustical measurement end and monitor function
Can be unstable, and then can also record actual audio.
As an implementation, in the present embodiment, described that benchmark is determined according to test item in test instruction
Parameter, it is described further include: when determining the first audio of the testing audio after generating testing audio by the basic parameter
It is long;
The second audio duration for recording the actual audio that loudspeaker plays in test product in the anechoic room and institute
It is identical to state the first audio duration.
In the present embodiment, testing audio needs and actual audio is isometric, for track algorithm use.So true
After the first audio duration for determining testing audio, the duration of recording audio is limited according to the first audio duration, so that real
Border audio and the audio duration of testing audio are isometric.
It can be seen that by the implementation method by determining the duration of testing audio and control the duration of recording audio, protect
Two inputs (testing audio and actual audio) for having demonstrate,proved track algorithm are perfectly aligned, ensure that the accuracy of test.
As an implementation, in the present embodiment, the test instruction includes at least: detection frequency wave signal;
When test instruction includes at least detection frequency wave signal, the test item is included at least: frequency response, total
Harmonic distortion, abnormal sound, intermodulation distortion, difference frequency distortion etc..
It is described to be determined in the product after loudspeaker electro mechanical parameter by track algorithm, further includes:
The electro mechanical parameter is detected, when the audio is corresponding and/or total harmonic distortion and/or when abnormal sound abnormal parameters,
At least feedback arrangement resonance and/or abnormal sound and/or routing are abnormal.
In the present embodiment, frequency response, total harmonic distortion, R&B (Rub&Buzz, abnormal sound) need frequency sweep wave;Mutually
Distortion, difference frequency distortion is adjusted to need two-tone signal.These wave files input information certainly according to tester by electric sound testing system
It is dynamic to generate, such as the information such as start-stop frequency, frequency resolution, amplitude, minimum period number needed for the input of frequency sweep wave;Two-tone signal is defeated
Enter the information such as required frequency, amplitude.
It is bad that these electro mechanical parameters, which are used to evaluate its performance after speaker system is assembled in interiors of products, if is met
Specific to require: one, for user's sense of hearing aspect, whether the frequency response of speaker system Mid Frequency is flat, and low/high frequency playback frequency response is
No meet demand, if the problems such as introducing tremolo, abnormal sound after assembling;Two, for artificial intelligent voice interaction aspect, loudspeaker
Whether the total harmonic distortion of system, R&B are sufficiently small, if occur the problems such as mesomerism, abnormal sound, routing after assembling.Because
Total harmonic distortion and R&B is excessive or there are mesomerism, abnormal sound, routings, can all influence Speech processing algorithm performance,
Voice quality is destroyed, the experience of interactive voice is reduced, such as the problems such as wake-up rate is low, to interrupt success rate low, recognition accuracy is poor.
By analyzing these parameters, it is known that the improvement direction of product, finally promotes properties of product: such as frequency is rung
Answer, total harmonic distortion, intermodulation distortion, abnormal sound the problems such as need to improve speaker system;Tremolo, resonance, routing etc. need to improve structure
Design.
It can be seen that according to determining electro mechanical parameter by the implementation method as reference, inquire the test product
There is exception in which configuration, thus, it determines where the test product needs to improve according to the parameter, is test product
Loudspeaker prompts area for improvement.And then improve the effect of test.
A kind of test side for loudspeaker electro mechanical parameter in product of one embodiment of the invention offer is provided
Method includes the following steps: for the flow chart for indoor agent side of eliminating the noise
S21: the testing audio that the electroacoustical measurement end outside anechoic room is sent is received;
S22: according to the testing audio, corresponding audio play instruction is generated;
S23: by advance with test product establish physical connection and/or wireless AD B connect, by the testing audio with
And the audio play instruction imports the test product;
S24: the success imported in response to the testing audio and the audio play instruction, it is anti-by successful information is imported
It is fed to the electroacoustical measurement end outside anechoic room.
In the present embodiment, the electroacoustical measurement end eliminated the noise outside indoor agent side and anechoic room pre-establishes company
It connects.And then agent side can be interacted with electroacoustical measurement end.
For step S21, agent side receives the testing audio that the electroacoustical measurement end outside anechoic room is sent, due in advance
Establish connection, it is possible to mutually transmitting information, data.
Corresponding play instruction is generated according to the testing audio for step S22, wherein the play instruction is used for
It is sent to test product, plays corresponding testing audio to control it.
For step S23, pass through the physical connection and/or wireless AD B (Android established in advance with test product
Debug Bridge, Android debug bridge) connection, since most of product is all the instruction such as ADB shell tinyplay/aplay
It controls loudspeaker to play, and then the testing audio and the audio play instruction is imported into test product.
For step S24, in response to the importing success of step S23, success is assigned into the importing and audio play instruction
Information feed back to the electroacoustical measurement end outside anechoic room, thus remind electroacoustical measurement end prepare monitor.
Can be seen that by the implementation method by using agent side is that electroacoustical measurement end and test product are established and connected
It connects, the transmission method of bluetooth is substituted.So that electroacoustical measurement end and various test products can all establish connection, bluetooth biography is avoided
There is a problem of losing that data, delay is larger or delay is unstable during defeated, guarantee test result is accurate.
A kind of test macro for loudspeaker electro mechanical parameter in product of one embodiment of the invention offer is provided
Structural schematic diagram, which can be performed the test side described in above-mentioned any embodiment for loudspeaker electro mechanical parameter in product
Method, and configure in the terminal.
A kind of test macro for loudspeaker electro mechanical parameter in product provided in this embodiment includes: that test information generates
Program module 11, testing audio send program module 12, and actual audio records program module 13 and electro mechanical parameter determines program mould
Block 14.
Wherein, test information generation program module 11 is used to determine that benchmark is joined according to test item in test instruction
Number generates testing audio by the basic parameter;Testing audio sends program module 12 for sending the testing audio
To indoor agent side of eliminating the noise;Actual audio records the importing that program module 13 is used to feed back in response to indoor agent side of eliminating the noise
Successful information monitors the anechoic room, to record the actual audio that loudspeaker plays in test product in the anechoic room;Electroacoustic
Parameter determination program module 14 is used to parse the actual parameter of the actual audio, according to the actual parameter and the benchmark
Parameter determines loudspeaker electro mechanical parameter in the product by track algorithm.
Further, the actual audio is recorded program module and is used for:
When detecting that the indoor trigger signal of the noise elimination and/or environment sound pressure level reach preset threshold, described in recording
The actual audio that loudspeaker plays in test product in anechoic room, wherein the trigger signal includes simple signal.
Further, when the testing audio includes the mute signal of preset duration,
In response to eliminating the noise, the audio that indoor agent side is sent imports successful information, starts timing;
When the duration of the timing reaches preset duration, loudspeaker broadcasting in test product in the anechoic room is recorded
Actual audio.
Further, described further include: audio duration determines program mould after the test information generation program module
Block is used for:
Determine the first audio duration of the testing audio;
The second audio duration for recording the actual audio that loudspeaker plays in test product in the anechoic room and institute
It is identical to state the first audio duration.
Further, the test instruction includes at least: detection frequency wave signal;
When test instruction includes at least detection frequency wave signal, the test item is included at least: frequency response, total
Harmonic distortion, abnormal sound, intermodulation distortion, difference frequency distortion etc..
The electro mechanical parameter determines after program module, further includes: abnormal feedback process module is used for:
The electro mechanical parameter is detected, when the audio is corresponding and/or total harmonic distortion and/or when abnormal sound abnormal parameters,
At least feedback arrangement resonance and/or abnormal sound and/or routing are abnormal.
A kind of test macro for loudspeaker electro mechanical parameter in product of one embodiment of the invention offer is provided
Structural schematic diagram, which can be performed the test side described in above-mentioned any embodiment for loudspeaker electro mechanical parameter in product
Method, and configure in the terminal.
A kind of test macro for loudspeaker electro mechanical parameter in product provided in this embodiment includes: that testing audio receives
Program module 21, play instruction generate program module 22, and testing audio imports program module 23 and feedback process module 24.
Wherein, testing audio receives program module 21 and is used to receive the test tone that the electroacoustical measurement end outside anechoic room is sent
Frequently;Play instruction generates program module 22 and is used to generate corresponding audio play instruction according to the testing audio;Testing audio
It imports program module 23 to be used to connect by the physical connection and/or wireless AD B established with test product in advance, by the test
Audio and the audio play instruction import the test product;Feedback process module 24 is used in response to the testing audio
And the success that the audio play instruction imports, audio importing successful information is fed back into the electroacoustical measurement outside anechoic room
End.
The embodiment of the invention also provides a kind of nonvolatile computer storage media, computer storage medium is stored with meter
Calculation machine executable instruction, the computer executable instructions can be performed in above-mentioned any means embodiment and are used for loudspeaker in product
The test method of electro mechanical parameter;
As an implementation, nonvolatile computer storage media of the invention is stored with the executable finger of computer
It enables, computer executable instructions setting are as follows:
Basic parameter is determined according to test item in test instruction, and testing audio is generated by the basic parameter;
The testing audio is sent to indoor agent side of eliminating the noise;
Successful information is imported in response to the audio for indoor agent side feedback of eliminating the noise, the anechoic room is monitored, to record
State the actual audio that loudspeaker plays in test product in anechoic room;
The actual parameter for parsing the actual audio passes through tracking according to the actual parameter and the basic parameter
Algorithm determines loudspeaker electro mechanical parameter in the product.
The embodiment of the invention also provides a kind of nonvolatile computer storage media, computer storage medium is stored with meter
Calculation machine executable instruction, the computer executable instructions can be performed in above-mentioned any means embodiment and are used for loudspeaker in product
The test method of electro mechanical parameter;
As an implementation, nonvolatile computer storage media of the invention is stored with the executable finger of computer
It enables, computer executable instructions setting are as follows:
Receive the testing audio that the electroacoustical measurement end outside anechoic room is sent;
According to the testing audio, corresponding audio play instruction is generated;
It is connect by the physical connection and/or wireless AD B established in advance with test product, by the testing audio and institute
It states audio play instruction and imports the test product;
In response to the success that the testing audio and the audio play instruction import, the audio is imported and is successfully believed
Breath feeds back to the electroacoustical measurement end outside anechoic room.
As a kind of non-volatile computer readable storage medium storing program for executing, it can be used for storing non-volatile software program, non-volatile
Property computer executable program and module, such as the corresponding program instruction/mould of the method for the test software in the embodiment of the present invention
Block.One or more program instruction is stored in non-volatile computer readable storage medium storing program for executing, when being executed by a processor, is held
The test method for loudspeaker electro mechanical parameter in product in the above-mentioned any means embodiment of row.
Non-volatile computer readable storage medium storing program for executing may include storing program area and storage data area, wherein storage journey
It sequence area can application program required for storage program area, at least one function;Storage data area can be stored according to test software
Device use created data etc..In addition, non-volatile computer readable storage medium storing program for executing may include that high speed is deposited at random
Access to memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or other are non-
Volatile solid-state part.In some embodiments, it includes relative to place that non-volatile computer readable storage medium storing program for executing is optional
The remotely located memory of device is managed, these remote memories can be by being connected to the network to the device of test software.Above-mentioned network
Example include but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
The embodiment of the present invention also provides a kind of electronic equipment comprising: at least one processor, and with described at least one
The memory of a processor communication connection, wherein the memory is stored with the finger that can be executed by least one described processor
Enable, described instruction executed by least one described processor so that at least one described processor be able to carry out it is of the invention any
The step of being used for the test method of loudspeaker electro mechanical parameter in product of embodiment.
The client of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio,
Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) other electronic devices with loudspeaker function.
Herein, relational terms such as first and second and the like be used merely to by an entity or operation with it is another
One entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this reality
Relationship or sequence.Moreover, the terms "include", "comprise", include not only those elements, but also including being not explicitly listed
Other element, or further include for elements inherent to such a process, method, article, or device.Do not limiting more
In the case where system, the element that is limited by sentence " including ... ", it is not excluded that including process, method, the article of the element
Or there is also other identical elements in equipment.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member
It is physically separated with being or may not be, component shown as a unit may or may not be physics list
Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs
In some or all of the modules achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creativeness
Labour in the case where, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.