Summary of the invention
There is no Bluetooth function module at least solve part test product in the prior art, Mike in product can not be carried out
The test of wind or the performance of portioned product Bluetooth function module are bad, the problem for causing to test the result inaccuracy of microphone.
In a first aspect, the embodiment of the present invention provides a kind of test method for microphone electro mechanical parameter in product, it is used for
Electroacoustical measurement end outside anechoic room, comprising:
According to the test instruction in test item determine basic parameter, by the basic parameter generate testing audio with
And record command;
The record command is sent to indoor agent side of eliminating the noise;
In response to microphone in test product by the recording open state of the indoor agent side feedback of eliminating the noise, by institute
It states testing audio and is sent to the indoor artificial mouth of eliminating the noise and play out;
Receive the recorded audio of microphone records in the test product of the indoor agent side feedback of eliminating the noise;
The actual parameter for parsing the recorded audio passes through tracking according to the actual parameter and the basic parameter
Algorithm determines microphone electro mechanical parameter in the product.
Second aspect, the embodiment of the present invention provide a kind of test method for microphone electro mechanical parameter in product, are used for
It eliminates the noise indoor agent side, comprising:
The record command that electroacoustical measurement end outside in response to anechoic room is sent, generates effective record for controlling test product
Sound instruction;
It is connect based on the physical connection and/or wireless AD B established in advance with test product, passes through effective record command
It controls the test product and opens recording;
In response to the recording open state of test product feedback, the recording open state is fed back to outside the anechoic room
Electroacoustical measurement end;
The recorded audio is fed back to the anechoic room by the recorded audio for receiving microphone records in the test product
Outer electroacoustical measurement end.
The third aspect, the embodiment of the present invention provide a kind of test macro for microphone 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 and record command;
Record command sends program module, for the record command to be sent to indoor agent side of eliminating the noise;
Testing audio playing program module, for passing through the indoor agency that eliminates the noise in response to microphone in test product
The testing audio is sent to indoor artificial mouth of eliminating the noise and played out by the recording open state for holding feedback;
Recorded audio receives program module, Mike in the test product for receiving the indoor agent side feedback of eliminating the noise
The recorded audio that wind is recorded;
Electro mechanical parameter determines program module, for parsing the actual parameter of the recorded audio, according to the actual parameter
And the basic parameter, microphone 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 microphone electro mechanical parameter in product, are used for
It eliminates the noise indoor agent side, comprising:
Effective instruction generates program module, raw for the record command that the electroacoustical measurement end outside in response to anechoic room is sent
At effective record command for controlling test product;
Effective instruction retransmission process module, for based on the physical connection and/or wireless AD B established in advance with test product
Connection controls the test product by effective record command and opens recording;
Recording state retransmission process module, the recording open state for being fed back in response to test product, by the recording
Open state feeds back to the electroacoustical measurement end outside the anechoic room;
Recorded audio retransmission process module, for receiving the recorded audio of microphone records in the test product, by institute
State the electroacoustical measurement end that recorded audio is fed back to outside the 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 microphone 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 microphone 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 method of bluetooth.So that the microphone of electroacoustical measurement end and various test products can all establish connection, keep away
Exempt to there is a problem of during Bluetooth transmission losing that data, delay is larger or delay is unstable, guarantee 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 microphone 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
Frequency and record command;
S12: the record command is sent to indoor agent side of eliminating the noise;
S13: the recording open state fed back in response to microphone in test product by the indoor agent side of eliminating the noise,
The testing audio is sent to indoor artificial mouth of eliminating the noise to play out;
S14: the recorded audio of microphone records in the test product of the indoor agent side feedback of eliminating the noise is received;
S15: parsing the actual parameter of the recorded audio, according to the actual parameter and the basic parameter, passes through
Track algorithm determines microphone 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 microphone 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, instructed in response to the test that tester assigns, the electroacoustical measurement end is according in described instruction
The project of test, to determine corresponding basic parameter.Corresponding testing audio is generated by the basic parameter, due to test
There are many kinds of the types of project, so, corresponding test item is determined in testing.For example, microphone is surveyed for the first time in product
In examination, it is necessary to all test each test item.At this point, the basic parameter of required determination is more, the test tone of generation
The frequency time is longer.After testing for the first time, such as, it is determined that part electro mechanical parameter passes through, and part is obstructed out-of-date, in product
After the adjustment of microphone corresponding site, for higher accuracy, the whole project of test can choose;It may be test effect
Rate only selects that the project not passed through in test for the first time is tested.In this way in test, tester can be according to reality
It needs to select corresponding test item, to control the time of test.While generating testing audio, it is also necessary to generate control
The record command of microphone in test product processed.
For step S12, the record command 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 recording open state that the electroacoustical measurement end is fed back in response to agent side will be in step S11
The testing audio of middle generation is played out by the indoor artificial mouth of electric sound testing system control noise elimination.
For step S14, due in step s 12, record command being sent to test product, the wheat of test product
Gram wind is in recording state, and artificial mouth in step s 13 plays testing audio, the audio that microphone just plays artificial mouth into
Row is included, and determines recorded audio.After the completion of recording, Mike in the test product that agent side is fed back out of described anechoic room is received
The recorded audio that wind is recorded.
For step S15, the actual parameter of the recording audio is parsed, can be parsed by existing method, then
According to the actual parameter and basic parameter, by track algorithm, for example, harmonic track algorithm, to determine in the product
The electro mechanical parameter of microphone.
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 microphone 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 that benchmark is determined according to test item in test instruction
Parameter, after basic parameter generation testing audio and record command, further includes:
Determine the first audio duration of the testing audio;
It is described to receive in the test product that indoor agent side is sent of eliminating the noise after the recorded audio of microphone records,
Further include:
The recording waveform for determining the recorded audio determines the second sound according to the waveform to the recorded audio cutting
Effective recorded audio of frequency duration, wherein the first audio duration is identical as the second audio duration.
In the present embodiment, since a part of blank audio during recording audio, may be recorded, so,
Cutting is carried out according to the waveform of recorded audio, with the effective recorded audio of determination, the testing audio needs and effective recorded audio
Isometric and frequency range is consistent, uses so that harmonic track algorithm calculates.
The principle of cutting is that waveform is consistent with the frequency sweep wave frequency range that artificial mouth plays over a frequency range.Allow to cut
For audio afterwards in starting there are the non-frequency sweep wave signal of certain time length, which is no more than " the record filling " of test macro setting
Time.Then the wave file cut is exported, the sample rate for exporting waveform needs to protect with the sample rate of electric sound testing system microphone
It holds consistent.
For example, electric sound testing system generate frequency sweep wave be it is known, from 8000Hz to 100Hz, duration is frequency
8.3s, the record filling time of setting are 100ms.The audio audio so cut is also 8000Hz to 100Hz, duration
8.35s allows to start the non-frequency sweep wave signal having no more than 100ms because the record of 100ms is filled.Electric sound testing system is adopted
Sample rate is 44100Hz, so the audio cut needs resampling to 44100Hz in export.
It can be seen that the duration by determining testing audio by the implementation method, when carrying out the effective recorded audio of cutting
It is long, it ensure that two inputs (testing audio and recorded audio) of track algorithm completely to it, to improve 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, phase.
It is described to be determined in the product after microphone electro mechanical parameter by track algorithm, further includes:
The electro mechanical parameter is detected, when the frequency is corresponding and/or total harmonic distortion and/or when phase parameter exception, until
Feedback radio reception channel assembly exception and/or radio reception passage length exception and/or audio include exception less.
In the present embodiment, microphone frequency response, phase, total harmonic distortion can pass through the humorous of electric sound testing system
Wave track algorithm acquires.After electro mechanical parameter has been determined, it can be used to evaluate whether microphone in product meets particular demands.
For all products (single microphone, microphone array) with microphone, the fluctuation of frequency response, total harmonic wave are lost
It very cannot be excessive.For example, the assembly of radio reception channel is not up to standard, radio reception channel is too long will lead to very big, the inexpensive wheat of frequency response fluctuation
Gram wind total harmonic distortion is bigger than normal, these can all destroy voice quality, influences the performance of Speech processing algorithm, reduces voice
Interactive experience, such as wake-up rate is low, recognition accuracy is poor.
For the product of microphone array, also require between each microphone the consistency of frequency response and phase difference one
Determine in range.If going beyond the scope, microphone array speech enhancement performance can decline, and can equally reduce the body of interactive voice
It tests, the problems such as wake-up rate is low, recognition accuracy is poor occurs.
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
Microphone prompts area for improvement.And then improve the effect of test.
A kind of test side for microphone 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 record command that the electroacoustical measurement end outside in response to anechoic room is sent is generated for controlling having for test product
Imitate record command;
S22: it is connect based on the physical connection and/or wireless AD B established in advance with test product, passes through effective recording
Instruction controls the test product and opens recording;
S23: in response to the recording open state of test product feedback, the recording open state is fed back into the noise elimination
Outdoor electroacoustical measurement end;
S24: receiving the recorded audio of microphone records in the test product, and the recorded audio is fed back to described disappear
Electroacoustical measurement end outside sound chamber.
In the present embodiment, the indoor agent side of eliminating the noise is connect in advance with the electroacoustical measurement end outside anechoic room.Into
And agent side can be interacted with electroacoustical measurement end.
For step S21, agent side receives the record command that the electroacoustical measurement end outside anechoic room is sent, due in advance
Establish connection, it is possible to mutually transmitting information, data.After being connected to record command, since electroacoustical measurement end may not
Understand tested specific product, the instruction for controlling the test product can not be generated.So electroacoustical measurement end is by control instruction
After being assigned to agent side, since agent side is connect in advance with test product, the corresponding product of the available test product of agent side
Signal, to issue according to different products and control the test product effective record command accordingly.
For step S22, agent side passes through the physical connection and/or wireless AD B in advance with test product foundation
(Android Debug Bridge, Android debug bridge) connection, since most of product is all ADB shell tinycap/
The instructions such as arecord control microphone and open recording, and recording file is stored in test product flash.
For step S23, the recording open state that agent side is fed back in response to test product, by the recording open state
The electroacoustical measurement end outside anechoic room is fed back to, to remind electroacoustical measurement end control artificial mouth to play testing audio.
For step S24, after the recording open state is fed back to electroacoustical measurement end, electroacoustical measurement end controls artificial mouth
Testing audio is played, test product is recorded also by microphone, generates recorded audio, after audio to be tested plays, generation
Reason end receives the recorded audio of microphone records in the test product flash, and the recorded audio is fed back to the noise elimination
Outdoor electroacoustical measurement end.
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 microphone 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.
A kind of test system for microphone electro mechanical parameter in product of one embodiment of the invention offer is provided
System, for anechoic room outside electroacoustical measurement end structural schematic diagram, which can be performed is used for described in above-mentioned any embodiment
The test method of microphone electro mechanical parameter in product, and configure in the terminal.
A kind of test macro for microphone electro mechanical parameter in product provided in this embodiment, for anechoic room outside electricity
Sound test end, comprising: test information generation program module 11, record command send program module 12, testing audio playing program
Module 13, recorded audio receives program module 14 and electro mechanical parameter determines program module 15.
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 and record command by the basic parameter;Record command transmission program module 12 is used for will be described
Record command is sent to indoor agent side of eliminating the noise;Testing audio playing program module 13 is used in response to Mike in test product
The testing audio is sent to indoor imitate of eliminating the noise by the recording open state of the indoor agent side feedback of eliminating the noise by wind
True mouth plays out;Recorded audio receives the test product that program module 14 is used to receive the indoor agent side feedback of eliminating the noise
The recorded audio of interior microphone records;Electro mechanical parameter determines that program module 15 is used to parse the actual parameter of the recorded audio,
According to the actual parameter and the basic parameter, microphone electro mechanical parameter in the product is determined by track algorithm.
Further, after the test information generation program module, further includes: audio duration determines program module, uses
In the first audio duration for determining the testing audio;
The recorded audio receives after program module, further includes:
Audio cutting procedure module, for determining the recording waveform of the recorded audio, according to the waveform to the record
Sound audio cutting determines effective recorded audio of the second audio duration, wherein the first audio duration and second audio
Duration is identical.
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, phase.
Further, after the electro mechanical parameter determines program module, further includes:
Abnormal feedback process module, for detecting the electro mechanical parameter, when the frequency is corresponding and/or total harmonic distortion
And/or when phase parameter exception, at least feedback radio reception channel assembly exception and/or radio reception passage length exception and/or audio is received
Record is abnormal.
A kind of test system for microphone electro mechanical parameter in product of one embodiment of the invention offer is provided
System, for the structural schematic diagram for indoor agent side of eliminating the noise, which be can be performed described in above-mentioned any embodiment for product
The test method of interior microphone electro mechanical parameter, and configure in the terminal.
A kind of test macro for microphone electro mechanical parameter in product provided in this embodiment, for indoor generation of eliminating the noise
Manage end, comprising: effective instruction generates program module 21, effective instruction retransmission process module 22, recording state feedback process module
23 and recorded audio feedback process module 24.
Wherein, the recording that effective instruction generates the electroacoustical measurement end transmission that program module 21 is used for outside in response to anechoic room refers to
It enables, generates effective record command for controlling test product;Effective instruction retransmission process module 22 be used for based in advance with quilt
Physical connection and/or wireless AD B connection that product is established are surveyed, the test product is controlled by effective record command and is opened
Recording;Recording state feedback process module 23 is used for the recording open state fed back in response to test product, and the recording is opened
The state of opening feeds back to the electroacoustical measurement end outside the anechoic room;Recorded audio feedback process module 24 is for receiving the tested production
The recorded audio is fed back to the electroacoustical measurement end outside the anechoic room by the recorded audio of microphone records in 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 microphone 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:
According to the test instruction in test item determine basic parameter, by the basic parameter generate testing audio with
And record command;
The record command is sent to indoor agent side of eliminating the noise;
In response to microphone in test product by the recording open state of the indoor agent side feedback of eliminating the noise, by institute
It states testing audio and is sent to the indoor artificial mouth of eliminating the noise and play out;
Receive the recorded audio of microphone records in the test product of the indoor agent side feedback of eliminating the noise;
The actual parameter for parsing the recorded audio passes through tracking according to the actual parameter and the basic parameter
Algorithm determines microphone 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 microphone 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:
The record command that electroacoustical measurement end outside in response to anechoic room is sent, generates effective record for controlling test product
Sound instruction;
It is connect based on the physical connection and/or wireless AD B established in advance with test product, passes through effective record command
It controls the test product and opens recording;
In response to the recording open state of test product feedback, the recording open state is fed back to outside the anechoic room
Electroacoustical measurement end;
The recorded audio is fed back to the anechoic room by the recorded audio for receiving microphone records in the test product
Outer electroacoustical measurement end.
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 microphone 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 microphone 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 microphone 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.