Summary of the invention
The main purpose of the present invention is to provide a kind of microphone test method, device and storage mediums, to solve intelligence
Microphone in equipment is difficult to the problem of production line is tested.
To achieve the above object, the present invention provides a kind of microphone test method, the microphone test method include with
Lower step:
Control Rouser wakes up the microphone on production line, and obtains waking up result;
When waking up result be successfully, the preset reference signal of control sound source broadcasting, and obtained by the microphone and
The corresponding audio signal of the reference signal;
The reference signal and the audio signal are compared and analyzed, obtain analysis as a result, and according to the analysis
As a result determine whether microphone is qualified.
Optionally, described to compare and analyze the reference signal and the audio signal, analysis is obtained as a result, simultaneously root
Determine whether He Ge step includes: microphone according to the analysis result
The reference signal each discrete frequency point corresponding with the audio signal is compared and analyzed, phase is obtained
The energy difference of reference signal and audio signal under corresponding each discrete frequency point;
Judge whether the energy difference of each discrete frequency point is greater than preset energy difference, obtains corresponding judging result;
Determine whether microphone is qualified according to the judging result.
Optionally, described to compare the reference signal each discrete frequency point corresponding with the audio signal
Analysis, the step of obtaining the energy difference of reference signal and audio signal under corresponding each discrete frequency point include:
By the reference signal each discrete frequency point corresponding with the audio signal resolve into fundamental frequency with repeatedly it is humorous
Wave;
The energy difference of reference signal fundamental frequency corresponding with audio signal and corresponding more is calculated under each discrete frequency point
The energy difference of subharmonic.
Optionally, the step of whether energy difference for judging each discrete frequency point is greater than corresponding preset energy difference is also
Include:
Judge whether the energy difference of each discrete frequency point is greater than corresponding preset energy difference;
When the energy difference of discrete frequency point is greater than corresponding preset energy difference, put according to the determination of the specifications and models of microphone
Relax energy differences after width, and judges whether the energy difference of discrete frequency point is greater than and relax energy differences.
Optionally, described to determine whether He Ge step includes: microphone later according to the analysis result
After testing the microphone for presetting sample size in same batch, the microphone of default sample size is obtained
Fraction defective;
When the fraction defective is less than pre-set level, it is qualified with a batch of all microphones to determine;
When the fraction defective is more than pre-set level, determination is unqualified with a batch of all microphones.
Optionally, the control Rouser wakes up the microphone on production line, and obtains waking up the step of result
Suddenly include:
Control Rouser carries out default time to the microphone on production line and wakes up, and obtains waking up result;
When microphone is waken up, determines that waking up result be successfully, and to execute step: controlling the preset reference of sound source broadcasting
Signal.
Optionally, include: before the step of control Rouser wakes up the microphone on production line
According to the position of microphone, controls Rouser and move so that the spacing of the Rouser and microphone is pre-
If distance.
Optionally, the step of control sound source broadcasting preset reference signal includes:
It controls the smart machine connecting with microphone and receives preset reference signal, and pass through the power amplifier of the smart machine
Play the reference signal.
In addition, to achieve the above object, the present invention also provides a kind of microphone test device, the microphone test device
Include: memory, processor and be stored in the microphone test program that can be run on the memory and on the processor,
The step of microphone test program realizes microphone test method as described above when being executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
It is stored with microphone test program on storage medium, is realized when the microphone test program is executed by processor as described above
The step of microphone test method.
A kind of microphone test method, microphone test device and the storage medium that the embodiment of the present invention proposes, by calling out
Device of waking up wakes up the microphone in producing line, determines whether microphone has availability according to result is waken up.Control is available
Microphone reference signal that sound source is issued record, and will record obtained audio signal and original reference signal into
Whether row comparative analysis, the function to judge microphone are qualified.By two parts respectively to the availability of microphone and function
Property tested, can in the production line by lesser cost complete microphone on-line testing, ensure the life of microphone
Yield and quality.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention is microphone test device, and microphone test device can be used in detecting on production line
Whether the quality of the microphone built in smart machine meets index.
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, communication bus 1002, user interface
1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
Optionally, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio
Circuit, WiFi module etc..Certainly, hardware device can also configure gyroscope, barometer, hygrometer, thermometer, infrared ray sensing
The other sensors such as device, details are not described herein.
Processor 1001 can be used for calling the microphone test program stored in memory 1005, and execute following Mike
Respectively implement the step in wind test method:
Control Rouser wakes up the microphone on production line, and obtains waking up result;
When waking up result be successfully, the preset reference signal of control sound source broadcasting, and obtained by the microphone and
The corresponding audio signal of the reference signal;
The reference signal and the audio signal are compared and analyzed, obtain analysis as a result, and according to the analysis
As a result determine whether microphone is qualified.
Further, processor 1001 can be used for calling the microphone test program stored in memory 1005, also hold
The following operation of row:
The reference signal each discrete frequency point corresponding with the audio signal is compared and analyzed, phase is obtained
The energy difference of reference signal and audio signal under corresponding each discrete frequency point;
Judge whether the energy difference of each discrete frequency point is greater than preset energy difference, obtains corresponding judging result;
Determine whether microphone is qualified according to the judging result.
Further, processor 1001 can be used for calling the microphone test program stored in memory 1005, also hold
The following operation of row:
By the reference signal each discrete frequency point corresponding with the audio signal resolve into fundamental frequency with repeatedly it is humorous
Wave;
The energy difference of reference signal fundamental frequency corresponding with audio signal and corresponding more is calculated under each discrete frequency point
The energy difference of subharmonic.
Further, processor 1001 can be used for calling the microphone test program stored in memory 1005, also hold
The following operation of row:
Judge whether the energy difference of each discrete frequency point is greater than corresponding preset energy difference;
When the energy difference of discrete frequency point is greater than corresponding preset energy difference, put according to the determination of the specifications and models of microphone
Relax energy differences after width, and judges whether the energy difference of discrete frequency point is greater than and relax energy differences.
Further, processor 1001 can be used for calling the microphone test program stored in memory 1005, also hold
The following operation of row:
After testing the microphone for presetting sample size in same batch, the microphone of default sample size is obtained
Fraction defective;
When the fraction defective is less than pre-set level, it is qualified with a batch of all microphones to determine;
When the fraction defective is more than pre-set level, determination is unqualified with a batch of all microphones.
Further, processor 1001 can be used for calling the microphone test program stored in memory 1005, also hold
The following operation of row:
Control Rouser carries out default time to the microphone on production line and wakes up, and obtains waking up result;
When microphone is waken up, determines that waking up result be successfully, and to execute step: controlling the preset reference of sound source broadcasting
Signal.
Further, processor 1001 can be used for calling the microphone test program stored in memory 1005, also hold
The following operation of row:
According to the position of microphone, controls Rouser and move so that the spacing of the Rouser and microphone is pre-
If distance.
Further, processor 1001 can be used for calling the microphone test program stored in memory 1005, also hold
The following operation of row:
It controls the smart machine connecting with microphone and receives preset reference signal, and pass through the power amplifier of the smart machine
Play the reference signal.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
Referring to figure 2., Fig. 2 is the flow diagram of inventive microphone test method first embodiment, wherein the wheat
Gram wind test method includes the following steps:
Step S10, control Rouser wake up the microphone on production line, and obtain waking up result;
In the present embodiment, microphone test program is installed at the terminal, which can be microphone test device.Mike
Wind test device includes Rouser and acoustic detecting device, and Rouser and acoustic detecting device, which can separate, is set to production line
Upper corresponding test zone.During microphone apparatus carries out movement in the production line, processor controls Rouser pair
Microphone on production line is waken up, i.e., by issuing phonetic order so that microphone can receive to microphone
Rouser issue sound whether be waken up after being waken up to microphone according to microphone, obtain Rouser for
The wake-up result of microphone.If microphone can be waken up device wake, show that the microphone in equipment can operate normally,
If Rouser can not wake up microphone after the voice command, then it represents that microphone in equipment can not normal wakeup open
It is dynamic, i.e., the microphone can not continue using.
Preferably, Rouser can carry out annular test to microphone in the dark place on pre-set production line,
With the peace and quiet of guarantee environment, the Stability and veracity of wake-up test is promoted.
Step S20, when waking up result is successfully, control sound source plays preset reference signal, and passes through the Mike
Wind obtains audio signal corresponding with the reference signal;
After being waken up to microphone, processor obtain it is corresponding wake up as a result, when wake up result be successfully when, wheat
Gram wind can be normally carried out use.Processor controls acoustic detecting device and plays pre-set reference signal, ginseng using sound source
Examining signal is a kind of audio signal.Processor control microphone sound source play reference signal to reference signal carry out receive with
It records, to obtain the audio signal that microphone records the reference signal of sound source.
Step S30 compares and analyzes the reference signal and the audio signal, obtains analysis as a result, simultaneously basis
The analysis result determines whether microphone is qualified.
Processor control sound source plays reference signal and controls microphone and recorded to reference signal to obtain audio letter
After number, reference signal and audio signal are compared and analyzed, the acoustic characteristic of microphone is judged according to the result that analysis obtains
Whether requirement can satisfy, to judge whether the quality of microphone is qualified.
In the present embodiment, processor passes through Rouser first and wakes up to microphone, when microphone can be called out
When waking up, processor issues reference signal using sound source by acoustic detecting device, and controls microphone and connect to reference signal
The system of including, obtains audio signal, compares and analyzes to audio signal and reference signal, can be derived that microphone is recording reference
Whether the acoustic characteristic of reference signal is able to maintain when signal, i.e. can microphone keep audio signal undistorted, according to analysis
The result obtained determines the quality for the microphone produced, and realizes the test for microphone.It is surveyed by wake-up test and acoustics
Examination, is divided into two parts for the quality test of microphone, and realize in the case of being modified smaller to production line
The on-line testing of microphone reduces the cost of test, has ensured the outgoing of microphone.
It further, is the flow diagram of inventive microphone test method second embodiment referring to Fig. 3, Fig. 3, at this
In embodiment, the step S30 compares and analyzes the reference signal and the audio signal, obtains analysis as a result, simultaneously
Determine whether He Ge step includes: microphone according to the analysis result
Step S31 compares the reference signal each discrete frequency point corresponding with the audio signal point
Analysis, obtains the energy difference of reference signal and audio signal under corresponding each discrete frequency point;
Step S32, judges whether the energy difference of each discrete frequency point is greater than preset energy difference, obtains corresponding judgement knot
Fruit;
Step S33 determines whether microphone is qualified according to the judging result.
In the present embodiment, the reference signal that sound source issues is discrete type swept-frequency signal, is had multiple and different and discontinuous
Signal frequency point.Processor after controlling microphone records audio signal, by each of reference signal and audio signal from
Scattered frequency point is separated, and compares the energy difference of each corresponding frequency point in reference signal and audio signal.For example, with reference to
Signal is discrete type swept-frequency signal of the signal frequency point from 200Hz-7500Hz, processor by reference signal and audio signal from
Audio letter after scattered frequency point is separated, under the frequency point that the reference signal under frequency point for being 200Hz by frequency and frequency are 200Hz
It number is compared, obtains the energy difference of the reference signal and audio signal under the frequency point that frequency is 200Hz.
After the energy difference for getting reference signal and audio signal under each discrete frequency point, by preset energy differences
It is compared from the energy difference under different discrete frequency points, judges whether the energy difference under different discrete frequency points is greater than default energy
Measure difference.When the energy difference of all frequency points is no more than preset energy difference, then it represents that the audio signal of microphone records is full
Otherwise tread test index indicates that the audio signal of microphone has relatively large deviation compared with reference signal, i.e. microphone is not inconsistent
Chorus test index.By being compared point by original reference signal and by the audio signal that microphone records obtain
Analysis, it can be deduced that whether audio signal has relatively large deviation compared to reference signal, when audio signal and larger reference signal deviation,
Sound after indicating microphone records is distorted, and microphone is unsatisfactory for acoustical testing requirement, i.e., microphone is off quality.
By carrying out acoustical testing to microphone, it can effectively confirm that microphone receives the stability and consistency of sound, ensure Mike
The quality of wind.
Further, in inventive microphone test method 3rd embodiment, the step S31, by described with reference to letter
Number each discrete frequency point corresponding with the audio signal compares and analyzes, and obtains under corresponding each discrete frequency point
The step of energy difference of reference signal and audio signal includes:
By the reference signal each discrete frequency point corresponding with the audio signal resolve into fundamental frequency with repeatedly it is humorous
Wave;
The energy difference of reference signal fundamental frequency corresponding with audio signal and corresponding more is calculated under each discrete frequency point
The energy difference of subharmonic.
In the present embodiment, processor is after getting reference signal and audio signal, by reference signal and audio signal
Each of discrete frequency point separated, and by the audio-signal resolution under each discrete frequency point at fundamental frequency with repeatedly it is humorous
Wave calculates the energy difference of the corresponding fundamental frequency of reference signal and audio signal and the energy difference of corresponding multiple harmonic.According to fundamental frequency
Energy difference and the energy difference of multiple harmonic be compared with preset energy difference, confirm the energy difference and multiple harmonic of fundamental frequency
Whether energy difference is greater than preset energy difference, and further confirms whether microphone meets acoustical testing and refer to according to judging result
Mark.By the way that the voice signal of discrete frequency point each in discrete swept-frequency signal is further separated into fundamental frequency signal and multiple harmonic letter
Number, whether the reference signal that can confirm that microphone receives in more detail does not generate relatively large deviation, meets acoustical testing
It is required that further ensureing the quality and radio reception effect of microphone.
It further, is the refinement stream of step S32 in inventive microphone test method fourth embodiment referring to Fig. 4, Fig. 4
Journey schematic diagram, in the present embodiment, it is poor to judge whether the energy difference of each discrete frequency point is greater than preset energy by the step S32
The step of value includes:
Step S321, judges whether the energy difference of each discrete frequency point is greater than corresponding preset energy difference;
Step S322, when the energy difference of discrete frequency point is greater than corresponding preset energy difference, according to the specification of microphone
Model, which determines, relaxes energy differences after relaxing, and judges whether the energy difference of discrete frequency point is greater than and relax energy differences.
In the present embodiment, after the energy difference of the reference signal and audio signal that are calculated under each discrete frequency point,
Energy difference is compared with preset energy difference, with confirm microphone radio reception effect whether meet demand.In discrete frequency point
Energy difference when being greater than preset energy difference, processor obtains the specifications and models of microphone tested, and according to microphone
Specifications and models determine that microphone is corresponding and relax energy differences, wherein relax energy differences greater than preset energy difference.When from
The energy difference for dissipating frequency point is greater than preset energy difference but no more than when relaxing energy differences, and expression microphone meets corresponding specification type
Number demand, and confirm microphone quality qualification;When the energy difference of discrete frequency point, which is still greater than, relaxes energy differences, Mike is indicated
Wind is unsatisfactory for the quality requirement of the specifications and models, and confirms that the quality of microphone is unqualified.For different types of microphone,
Different threshold values is set so that whether the radio reception effect for judging microphone can satisfy demand, enhance the flexibility of acoustical testing with
Diversity can be used in the production line test of a variety of different types of microphone apparatus, improve the compatibility of device.
Further, in the 5th embodiment of inventive microphone test method, the step S30, according to the analysis
As a result determine whether He Ge step includes: microphone
After testing the microphone for presetting sample size in same batch, the microphone of default sample size is obtained
Fraction defective;
When the fraction defective is less than pre-set level, it is qualified with a batch of all microphones to determine;
When the fraction defective is more than pre-set level, determination is unqualified with a batch of all microphones.
In the present embodiment, after processor control Rouser wakes up microphone, by the Mike in same batch
Wind sampling carries out acoustical testing, and the microphone that default sample size is extracted from same batch carries out acoustical testing as sample,
And determine that quality is the quantity of underproof microphone in sample, is calculated the fraction defective of sample testing according to test result.
Processor is using the fraction defective being calculated as the fraction defective of the microphone of the batch, when the fraction defective of the batch meets quality need
When the index asked, then it represents that all microphones of the batch meet acoustic mass demand, determine with a batch of all microphones
Quality is qualification;When the fraction defective of the batch is more than the index of quality requirement, then it represents that the microphone quality of the batch can not
Meet demand determines with a batch of all microphone qualities to be unqualified.In process of production, by way of sampling Detection
The acoustics index of microphone is detected, can be effectively reduced Acoustic detection the time it takes, improving production efficiency and
Detection efficiency.
Preferably, after determination is unqualified with a batch of all microphone qualities, to all microphones of the batch
Acoustical testings are all carried out, and are unsatisfactory for the concrete reason of demand according to the test result analysis batch microphone, thus to life
Producing line is debugged and is modified, and the quality of production of microphone is promoted.
Preferably, during acoustical testing, processor can be by receiving the enabled instruction of user's triggering, and according to opening
Dynamic instruction with a batch of microphone to sampling and carry out acoustical testing.
Further, in inventive microphone test method sixth embodiment, the step S10 controls Rouser
Microphone on production line is waken up, and the step of obtaining wake-up result includes:
Control Rouser carries out default time to the microphone on production line and wakes up, and obtains waking up result;
When microphone is waken up, determines that waking up result be successfully, and to execute step: controlling the preset reference of sound source broadcasting
Signal.
In the present embodiment, processor is carried out continuously preset times to the microphone on production line in control Rouser
It wakes up, and obtains waking up result after preset times wake up instruction.For example, Rouser is preset solid by playing to microphone
Surely word is waken up to realize the effect for waking up microphone, the wake-up word that Rouser can carry out preset times to microphone plays,
And determine whether microphone is waken up after broadcasting.When microphone is waken up, then it represents that microphone passes through wake-up test, Mike
Wind is able to carry out use, and controls microphone and receive the preset reference signal of sound source broadcasting to carry out acoustical testing;It is filled when waking up
After setting the wake-up for carrying out preset times, microphone is not waken up, then it represents that microphone does not pass through wake-up test, determines microphone not
It can use, i.e., the quality of microphone is unqualified.By repeatedly being waken up to microphone, Rouser can be reduced to microphone
The influence in environment and place when being waken up, to accurately judge the wake-up test of microphone as a result, promoting the standard of test
True property.
It further, is the flow diagram of the 7th embodiment of inventive microphone test method referring to Fig. 5, Fig. 5, at this
In embodiment, the step S10 includes: before controlling the step of Rouser wakes up the microphone on production line
Step S40 controls Rouser and moves so that the Rouser and microphone according to the position of microphone
Spacing is pre-determined distance.
In the present embodiment, processor first determines the position of microphone before control Rouser wakes up microphone
It sets, and controls Rouser and moved, so that the spacing between Rouser and microphone is suitable pre-determined distance,
Under pre-determined distance, microphone can more clearly from receive the wake up instruction of Rouser sending, to avoid Rouser
The distance between microphone influences the radio reception effect of microphone, promotes the accuracy and stability of test.It preferably, can be with
The pre-determined distance being arranged between microphone and Rouser is 10 centimetres.
Preferably, Rouser is clamped by rotatable fixture, when processor gets the position of microphone, energy
Enough control fixtures are rolled, so that Rouser can mutually be divided into pre-determined distance with microphone, to enhance wake-up dress
The flexibility set.
Further, in the 8th embodiment of inventive microphone test method, the step S20, control sound source is played
The step of preset reference signal includes:
It controls the smart machine connecting with microphone and receives preset reference signal, and pass through the power amplifier of the smart machine
Play the reference signal.
In the present embodiment, microphone can be the microphone apparatus being connected with the smart machine on production line, can also
To be the microphone module for being built in smart machine.Wherein, smart machine can be TV, be also possible to smart phone, plate
(Moving Picture Experts Group Audio Layer III, dynamic image are special by computer, E-book reader, MP3
Family's compression standard audio level 3) player, (Moving Picture Experts Group Audio Layer IV is moved MP4
State image expert's compression standard audio level 4) player, portable computer etc. set with the packaged type terminal of power amplifier function
It is standby.The present embodiment is illustrated by taking TV as an example.
Processor can control the preset reference signal that the television reception processor connecting with microphone is sent, and TV is connecing
It after receiving reference signal, can be made a sound by the power amplifier module of TV according to reference signal, and control microphone and TV is sent out
Sound out carries out radio reception, to obtain audio signal., can be simple according to the sound that TV issues, believe conveniently by reference
Number acoustical testing is carried out to microphone, reduces the cost of layout of test device, and simultaneously can power amplifier function to TV into
The synchronous detection of row, enhances the multifunctionality of detection device.
Furthermore the embodiment of the present invention also proposes a kind of computer readable storage medium, is stored thereon with microphone test journey
Sequence, the storage medium can be the memory 1005 in the terminal of Fig. 1, be also possible to as ROM (Read-Only Memory,
Read-only memory)/RAM (Random Access Memory, random access memory), magnetic disk, at least one of CD, institute
State computer readable storage medium include some instructions use so that one with processor terminal device (can be mobile phone,
Computer, server or television set etc.) execute method described in each embodiment of the present invention.
It is understood that in the description of this specification, reference term " embodiment ", " another embodiment ", " other
The description of embodiment " or " first embodiment~N embodiment " etc. means specific spy described in conjunction with this embodiment or example
Sign, structure, material or feature are included at least one embodiment or example of the invention.In the present specification, to above-mentioned
The schematic representation of term may not refer to the same embodiment or example.Moreover, the specific features of description, structure, material
Or feature can be combined in any suitable manner in any one or more of the embodiments or examples.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.