CN105979462A - Test processing method and device based on microphone - Google Patents

Test processing method and device based on microphone Download PDF

Info

Publication number
CN105979462A
CN105979462A CN201510786939.XA CN201510786939A CN105979462A CN 105979462 A CN105979462 A CN 105979462A CN 201510786939 A CN201510786939 A CN 201510786939A CN 105979462 A CN105979462 A CN 105979462A
Authority
CN
China
Prior art keywords
mike
target
audio
volume data
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510786939.XA
Other languages
Chinese (zh)
Inventor
刘建
李响
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Original Assignee
Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Leshi Zhixin Electronic Technology Tianjin Co Ltd filed Critical Leshi Zhixin Electronic Technology Tianjin Co Ltd
Priority to CN201510786939.XA priority Critical patent/CN105979462A/en
Publication of CN105979462A publication Critical patent/CN105979462A/en
Pending legal-status Critical Current

Links

Classifications

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

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a test processing method and device based on a microphone. The method comprises: detecting the audio frequency played by a sound source, and determining the sound source volume data; detecting the audio frequency by employing the microphone of a terminal, and generating the audio frequency information; determining the target volume data corresponding to the target microphone according to the audio frequency information; and comparing the target volume data with the sound source volume data, and determining the test result of the target microphone. According to the embodiment of the invention, the test processing method and device based on a microphone are able to determine the effect of receiving sound by each microphone and ensure the accuracy of detection for each microphone of the terminal, namely improve the accuracy of the detection for the microphones of the terminal.

Description

A kind of test processing method based on mike and device
Technical field
The present invention relates to microphone techniques field, particularly relate to a kind of test processes side based on mike Method and a kind of test processes device based on mike.
Background technology
Along with the fast development of science and technology, intelligent terminal's is universal increasingly faster, and the function of terminal is also got over Coming the abundantest, its control mode is the most varied, and speech control is exactly a kind of mode therein.Voice is grasped Prosecutor formula need in terminal integrated microphone to collect sound.Wherein, mike receives the effect of sound The reliability of speech control can be affected.
In order to ensure the reliability of speech control, need the mike being arranged in terminal is detected, To determine that the mike of terminal receives the effect of sound.At present, the inspection to the mike being assembled in terminal Survey method is, talks facing to terminal by opening mike, if terminal energy Normal Feedback, then it represents that eventually The mike that end is installed is no problem;The mike that otherwise terminal is installed is problematic.
Generally, terminal is installed two or more mike.With intelligent television, two wheats are installed As a example by gram wind, if there being a mike to be broken (sound cannot be received), another normal work of Mike's wind energy Making, intelligent television also can Normal Feedback in this case.According to the microphone detection method of current terminal, The quality of each mike that intelligent television installed cannot be judged.Additionally, one or two Mikes Wind receive the effect of sound bad in the case of, i.e. spoken sounds is very big, mike can only identify very During little sound, intelligent television also can Normal Feedback, the microphone detection method of the most existing terminal is to this Also correct judgement cannot be made.
Obviously, the microphone detection method of existing terminal cannot ensure what each mike to terminal detected Accuracy, degree of accuracy is low.
Summary of the invention
Embodiment of the present invention technical problem to be solved is to provide a kind of test processes based on mike Method, it is ensured that the accuracy to the mike detection of terminal, improves the degree of accuracy of detection.
Accordingly, the embodiment of the present invention additionally provides a kind of test processes device based on mike, in order to Ensure realization and the application of said method.
In order to solve the problems referred to above, the embodiment of the invention discloses a kind of test processes side based on mike Method, including:
The audio frequency playing sound source detects, and determines sound source volume data;
The mike using terminal detects described audio frequency, generates audio-frequency information;
According to described audio-frequency information, determine the target volume data corresponding to target mike;
Described target volume data are compared with sound source volume data, determines described target mike Test result.
Accordingly, the embodiment of the invention also discloses test processes device based on mike, including:
Sound Sources Detection module, detects for the audio frequency playing sound source, determines sound source volume data;
Audio-frequency information generation module, for using the mike of terminal to detect described audio frequency, generates audio frequency letter Breath;
Volume determines module, for according to described audio-frequency information, determines the target corresponding to target mike Volume data;
Volume comparison module, for comparing described target volume data with sound source volume data, really The test result of fixed described target mike.
Compared with prior art, the embodiment of the present invention includes advantages below:
The embodiment of the present invention can be detected by the audio frequency playing sound source, determines sound source volume number According to;And the audio frequency play this sound source by the mike of terminal is detected, generate audio-frequency information, May thereby determine that the target volume data corresponding to each mike, then by corresponding to each mike Target volume data compare with sound source volume data, may thereby determine that each Mike in terminal Wind receives the effect of sound, it is ensured that detects each mike in terminal is the most qualitative, and it is right i.e. to improve The degree of accuracy of mike detection in terminal.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that under, Accompanying drawing during face describes is some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of steps of a kind of based on mike the test processing method embodiment of the present invention;
Fig. 2 is the steps flow chart of a kind of based on mike the test processing method preferred embodiment of the present invention Figure;
Fig. 3 is the structured flowchart of a kind of based on mike the test processes device embodiment of the present invention;
Fig. 4 is the structural frames of a kind of based on mike the test processes device preferred embodiment of the present invention Figure.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments.Based on Embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise The every other embodiment obtained, broadly falls into the scope of protection of the invention.
At present, intelligent terminal's is universal increasingly faster, and the function of terminal is more and more abundanter, operation control terminal Mode the most varied, speech control is exactly a kind of mode therein.Speech control mode needs end End integrated microphone is to receive sound.
It is to open mike and say facing to terminal at present to the detection method of the mike being assembled in terminal Words, if terminal energy Normal Feedback, then it represents that the mike of terminal would be no problem;Otherwise, terminal is represented Mike problematic.But, in the case of terminal is provided with two or more mike, according to The detection method of the mike of terminal at present, it is impossible to judge in terminal, whether each mike can be normal Work, i.e. cannot determine that each mike receives the effect of sound.
For the problems referred to above, one of core idea of the embodiment of the present invention is, by the mike of terminal The audio frequency that detection sound source is play, generates audio-frequency information, so that it is determined that each mike of terminal is corresponding obtains sound Amount data, by being compared with sound source volume data by the volume data corresponding to each mike, generate The test result of each mike of terminal, it is possible to determine the effect receiving audio frequency of each mike, To be accurately judged in terminal whether each mike can normally work.
With reference to Fig. 1, it is shown that the step of a kind of based on mike the test processing method embodiment of the present invention Rapid flow chart, specifically may include steps of:
Step 101, the audio frequency playing sound source detects, and determines sound source volume data.
It practice, terminal can be main by mike reception audio frequency to realize speech control mode, and Receive audio frequency by analysis, identify operational order, then according to preset rule response operational order.
Mike's wind energy of terminal receives sound source and is playing audio frequency.Specifically, the audio frequency that sound source is play Propagated by medium such as air.When audio frequency travels to the mike of terminal, mike just can connect Receive this audio frequency.It should be noted that audio frequency refers to that sound frequency that human ear can hear is at 20HZ~20kHz Between sound wave;Sound source refers to just at the object of sounding, such as: the vocal cords that vibrating, vibrate Tuning fork, the drum etc. beaten are all sound sources.
In embodiments of the present invention, the mike detecting system (such as terminal test software) of terminal can be pre- First arrange a section audio, played out by speaker, i.e. speaker is equivalent to sound source.By to sound source The audio frequency play detects, it may be determined that the broadcast sound volume of this audio frequency, i.e. plays the size of sound, raw Become sound source volume data.Wherein, volume data can be understood as the decibel value (unit is dB) of volume, Intensity of sound can be represented.
It is of course also possible to from the position of terminal one segment distance play one section of constant frequency audio frequency, as From the position of the position of terminal general 2-5 rice, play frequency and be about the audio frequency of 300Hz-1.5KHz. The mike test system of terminal can be detected by the audio frequency that sound source is play by decibel instrument, generation sound Source volume data.
It should be noted that the position warrantor of terminal distance sound source can hear that in the position of terminal sound is i.e. Can, position, frequency and the volume of sound source are not any limitation as by the present invention.Terminal be to include but not It is only limitted to mobile terminal and television terminal, mobile terminal such as mobile phone, panel computer, notebook etc., TV Terminal such as intelligent TV set.
Step 103, uses the mike of terminal to detect described audio frequency, generates audio-frequency information.
Generally, terminal can be by installing one, two or more mike reception audio frequency, and the present invention is real Execute example this is not any limitation as.The audio frequency play when sound source passes through the Medium Propagation mike place to terminal Position time, the mike of terminal just can receive this audio frequency.The mike test system of terminal is the most permissible The mike using terminal detects this audio frequency, generates audio-frequency information.The acoustical signal that mike receives is initial Receive for the signal of telecommunication, i.e. mike is audio analog signals (being referred to as speech simulation signal). This audio analog signals can pass through analog-digital converter (Analog-to-Digital Converter, ADC) Be converted to audio digital signals.Audio digital signals is that the audio analog signals corresponding to all mikes mixes Symphysis becomes, and is equivalent to the audio-frequency information generated.This audio-frequency information can include corresponding to each mike Audio signal.
As a concrete example of the present invention, intelligent TV set installs two mikes.For the ease of reason Solve, two mikes can be respectively labeled as left mike and right mike, left mike is received To acoustical signal generate audio signal be labeled as left audio signal, by the sound received by right mike The audio signal that tone signal generates is labeled as right audio signal.The analog-digital converter of intelligent TV set is by intelligence Speech simulation signal mixing acquired in the left mike of television set and right wheat wind generates audio-frequency information, this sound Frequently information is that left and right acoustic channels mixes, and is equivalent to left audio signal and right audio signal is blended in one Rise, i.e. this audio-frequency information can include left audio signal and right audio signal.In order to make it easy to understand, below Continue to install as a example by two mikes by intelligent TV set, the embodiment of the present invention is described, but should not Restriction as the present invention.
Step 105, according to described audio-frequency information, determines the target volume data corresponding to target mike.
Specifically, when needing to detect the mike in terminal, can will need Mike's weathercock of detection Know for target mike.Such as, when the left mike of such as detection intelligent television, by left microphone identity For target mike.By analyzing audio-frequency information, it may be determined that the left audio signal corresponding to left mike, Wherein, left audio signal is equivalent to target audio signal.By the volume of this target audio signal is carried out Calculate, i.e. calculate the decibel value of this target audio signal, it is possible to determine received by target mike Sound size, i.e. determines the target volume data corresponding to target mike.
In one preferred embodiment of the invention, described according to described audio-frequency information, determine target Mike Target volume data corresponding to wind, can include following sub-step:
Sub-step 10501, by audio manager interface, obtains described audio-frequency information.
Sub-step 10503, is analyzed acquired audio-frequency information, determines that target mike is corresponding Target audio signal.
Sub-step 10505, calculates the volume of described target audio signal, generates target volume number According to.
Of course, it is possible to when needing each mike detecting terminal, successively by each microphone identity Detect for target mike.As, terminal is provided with plural mike, is respectively labeled as First mike, second microphone, the 3rd mike and so on.When detection for the first time, First mike can be detected, be target mike by the first microphone identity;In second time inspection During survey, when second microphone can be detected, second microphone is designated target mike;? During third time detection, when second microphone can be detected, second microphone is designated target wheat Gram wind and so on.The order of embodiment of the present invention mike each to terminal detection, and often The quantity of secondary detection mike is not any limitation as.
Described target volume data are compared with sound source volume data, determine described mesh by step 107 The test result of cursor microphone.
In embodiments of the present invention, by the target volume data corresponding to target mike and sound source volume number According to comparing, it is possible to determine that this target mike receives the effect of sound.Connect according to target mike Quiet down the effect of sound, generates the test result of this target mike, i.e. determines whether target mike is just Often mike.Specifically, target volume data are compared with sound source data as far as possible, it may be determined that Go out this target mike and receive audio frequency loss, the sound effect that this target mike receives can be determined together Really, it is judged that whether this target mike can normally work, the most just i.e. may determine that this target mike Often mike (being appreciated that mike preferably).If target mike cisco unity malfunction, can be by This target mike is defined as abnormal mike (can be understood as bad mike).
As the concrete example of the present invention, the sound size of the position at intelligent television place is 60dB, can Be interpreted as audio frequency that sound source plays volume as 60dB, the loss propagated due to audio frequency, to it Detecting, the sound source volume data of generation is 59.8dB.It is assumed that the left mike institute of intelligent television is right The target volume data answered are 59dB, by target volume data 59dB corresponding to left mike and sound source Volume data 59.8dB compares, and determines that the loudness loss data of this left mike are 0.8dB, permissible Ignore, this left mike is defined as normal microphone, generates the test result of this left mike; The target volume data corresponding to right mike of intelligent television are 9dB, by the mesh corresponding to right mike Mark volume data 9dB compares with sound source volume data 59.8dB, determines the volume of this right mike Lossy data is 50.8dB, it can be determined that the effectiveness comparison going out this right mike reception sound is poor, determines this Right mike is problematic, this right mike is defined as abnormal mike, generates the test of this right mike Result.
In one preferred embodiment of the invention, described by described target volume data and sound source volume number According to comparing, determine the test result of described target mike, can include following sub-step:
Sub-step 10701, by calculating the difference of described sound source volume data and target volume data, really The loudness loss data of fixed described target mike.
Sub-step 10703, it is judged that whether described loudness loss data are more than preset loudness loss threshold value.
Sub-step 10705, when loudness loss data are not more than described loudness loss threshold value, by described mesh Cursor microphone is defined as normal microphone, generates the normal test result of mike.
Sub-step 10707, when loudness loss data are more than described loudness loss threshold value, by described target Mike is defined as abnormal mike, generates the test result that mike is abnormal.
In embodiments of the present invention, can be detected by the audio frequency that sound source is play, determine sound source sound Amount data;And the audio frequency play this sound source by the mike of terminal is detected, generate audio frequency letter Breath, may thereby determine that the target volume data corresponding to each mike, then by each mike institute Corresponding target volume data compare with sound source volume data, it is possible to determine each wheat in terminal Gram wind receives the effect of sound, it is ensured that detects each mike in terminal is the most qualitative, i.e. improves To the degree of accuracy of mike detection in terminal.
With reference to Fig. 2, it is shown that the step of another kind method of testing based on the mike embodiment of the present invention Flow chart, specifically may include steps of:
Step 201, the audio frequency play sound source by decibel instrument is detected, and generates sound source volume data.
Generally, terminal is talked by people in the position of mike one segment distance from terminal, to carry out voice behaviour Control this terminal.Therefore, it can by the position from terminal one segment distance, play one section of constant frequency (as Audio frequency 1KHz), to detect the effect of terminal mike reception sound.Certainly.Can also be that people stands Terminal is talked by the position of the segment distance example terminal, and such as people stands example Intelligent electric apparent value one meter Position facing to television set talk, voice size is in about 55-70dB, the embodiment of the present invention pair This is not any limitation as.
Decibel instrument is placed, to sound by the position at the mike place of the position play in sound source or terminal The audio frequency that source is being play detects, and generates sound source volume data.It is of course also possible to decibel instrument is put Putting other position (near the position at terminal place), this is not any limitation as by the present invention.Consider The distance dependent that the loss of sound transmission is propagated with it, it is preferred that decibel instrument is placed on the Mike of terminal The position of wind, as the position at TV microphone hardware place pressed close to by decibel instrument.
In order to ensure to detect accuracy and the degree of accuracy of sound source volume data, multiple decibel can be set The audio frequency that sound source is play by instrument detects, and generates the volume data that multiple decibels of instrument detect, Ke Yitong Cross and calculate all decibel instrument and the meansigma methods of volume data detected, this meansigma methods is defined as sound source volume number According to, the quantity of decibel instrument is not restricted by the present invention.
It is of course also possible to place decibel in the position of the position that sound source is play and the mike of terminal respectively Instrument, the decibel instrument of position sound source play detects that sound source volume data is labeled as volume decibel value O, The decibel instrument of position sound source play detects that sound source volume data is labeled as volume decibel value H.Sound Aerial loss causes volume decibel value H to have certain floating.Compare at volume decibel value H During close to volume decibel value O, when i.e. can ignore sound loss, volume decibel value H is defined as sound Source volume data, is otherwise defined as sound source volume data by volume decibel value O, it is ensured that the accuracy of detection. Such as, the volume decibel value O that the position that decibel instrument is play in sound source detects is 60dB, in terminal The volume decibel value H that position detects is 59.8dB, can be defined as by volume decibel value 59.8dB Sound source volume data.
Step 203, uses the mike of terminal to detect described audio frequency, generates audio-frequency information.
Step 205, by audio manager interface, obtains described audio-frequency information.
The mike test happiness of terminal is with can be by calling audio manager interface, it is possible to acquisition audio frequency The audio-frequency information that modulus device is generated.Such as, in Android system, by audio manager interface (AudioManager interface) just can get audio digital signals, i.e. audio-frequency information.
Step 207, is analyzed acquired audio-frequency information, determines the target that target mike is corresponding Audio signal.
In one preferred embodiment of the invention, described acquired audio-frequency information is analyzed, really The target audio signal that the mike that sets the goal is corresponding, can include following sub-step:
Sub-step 20701, is analyzed acquired audio-frequency information, generates corresponding to each mike Audio signal.
Sub-step 20703, is defined as described target audio letter by the audio signal corresponding to target mike Number.
After getting audio-frequency information, by this audio signal is analyzed, can be by each wheat of terminal Gram audio signal that wind is corresponding the most out, forms the audio signal corresponding to each mike.Such as, By the audio-frequency information of intelligent television is analyzed, it may be determined that the left audio frequency letter corresponding to left mike Number, and right audio signal corresponding to right mike.Believe needing the audio frequency corresponding to the mike detected Number it is defined as target audio signal, as when detecting left mike, left audio signal being defined as target sound Frequently signal.
Step 209, calculates the volume of described target audio signal, generates target volume data.
The volume of target audio signal is calculated, i.e. calculates the decibel value of this target audio signal, raw Become target volume data.Such as, by calculating the decibel value of left audio signal, left mike is generated Volume data such as 59.8dB, i.e. generates target volume data 59.8dB.
Step 211, by calculating the difference of described sound source volume data and target volume data, determines institute State the loudness loss data of target mike.
It is said that in general, sound source volume data is bigger than target volume data.Specifically, audio frequency is in propagation During, some energy can be lost, the energy size of audio frequency loss is it can be understood as loudness loss data. According to law of conservation of energy, the loudness loss data of mike can be interpreted as sound source volume data and be somebody's turn to do The difference of the volume data that mike is corresponding.
In embodiments of the present invention, sound source volume data can be used to deduct target volume data, calculate Go out the loudness loss data of target mike.Such as, by calculating sound source volume data 60dB and target The difference of the volume data 59.8dB that mike is corresponding, it may be determined that the loudness loss of this target mike Data are 0.8dB.
Step 213, it is judged that whether described loudness loss data are more than preset loudness loss threshold value.
In embodiments of the present invention, can the loudness loss threshold value of pre-microphone, to judge that mike is No can normally work.When Mike's wind energy normally works, i.e. the loudness loss data at this mike are little When described loudness loss threshold value, perform step 215;When mike cisco unity malfunction, i.e. at this When the loudness loss data of mike are more than described loudness loss threshold value, perform step 217.
The loudness loss threshold value of mike can be arranged according to the degree of accuracy that test needs, the embodiment of the present invention This is not any limitation as.Such as, loudness loss threshold value could be arranged to 3dB, it is also possible to is set to 10dB, For convenience, as a example by loudness loss threshold value 3dB of mike, the embodiment of the present invention is retouched State.
Step 215, is defined as normal microphone by described target mike, generates mike and surveys normally Test result.
Step 217, is defined as abnormal mike by described target mike, generates the survey that mike is abnormal Test result.
Such as, when detecting the left mike of intelligent television, the loudness loss data of left mike are 0.8dB, by judging, it may be determined that loudness loss data 0.8dB of left mike are less than loudness loss Threshold value 3dB, it is possible to determine that left Mike's wind energy normally works, and left mike is defined as normal microphone, Generate the normal test result of left mike.When detecting the right mike of intelligent television, right mike Loudness loss data are 50.8dB, by judging, it may be determined that the loudness loss data of right mike 50.8dB is more than loudness loss threshold value 3dB, it is possible to determine that right mike cisco unity malfunction, by right Mike Wind is defined as abnormal mike, generates the test result that right mike is abnormal.
In embodiments of the present invention, can be detected by the audio frequency that sound source is play by decibel instrument, generate Sound source volume data;And the audio frequency play this sound source by the mike of terminal is detected, generate Audio-frequency information, is analyzed may determine that the audio signal that each mike is corresponding to this audio-frequency information;Then The volume of the audio signal corresponding to target mike is calculated target volume data, by calculating Target volume data and the difference of sound source sound data, it is possible to determine the loudness loss number of this target mike According to, i.e. may determine that this target mike receives the effect of sound, improve the degree of accuracy of test;And By judging whether these loudness loss data are more than the loudness loss threshold value of mike, it is possible to judge this Whether target mike can normally work, and generates the test result of this target mike, it is ensured that test result Accuracy.
In one preferred embodiment of the invention, method of testing based on mike can also include as follows Step:
Step S11, calculates the volume of the audio signal corresponding to each mike respectively, determines each The volume data of mike.
Specifically, by audio-frequency information is analyzed, it may be determined that each by the volume number of each mike According to, voice data A1 as corresponding in mike A, voice data B1 corresponding for mike B, mike Voice data C1 corresponding for C and so on.Voice data corresponding to each mike respectively Volume calculates, and determines the volume data of each mike, as counted the volume of voice data A1 Calculate, determine the volume data A2 of mike A;The volume of voice data B1 is calculated, determines The volume data B2 of mike B;The volume of voice data C1 is calculated, determines mike C Volume data C2 and so on.
Step S13, compares the volume data of each mike with described target volume data respectively, Obtain the difference test result of target mike.
Such as, when mike A is detected, by volume data A2 and volume data B2 Contrast, volume data will be deducted by volume data A2, obtain mike wheat A and connect with mike B Quiet down difference value AB (can be understood as AB=| A2-B2 |) of sound, i.e. can obtain mike A and wheat The diversity of gram wind B, generates the difference test result of mike A.It is, of course, also possible to by volume number Contrast with other mikes according to A2, as contrasted with volume data C2, obtain mike A With the diversity of mike C, generate mike A difference test result, the embodiment of the present invention pair with Other number of microphone that target mike compares are not any limitation as.
Certainly, the embodiment of the present invention can be with preset comparison in difference threshold value S, when target mike and other wheats When the absolute value of gram difference value that wind compares is less than comparison in difference threshold value S, determine that target mike compares with it Compared with the comparison in difference of mike little, i.e. target mike compares mike and receives the effect ratio of sound with it It is closer to.If the mike compared with target mike is standard microphone, it is possible to sentence accurately Break and the effect of target mike reception sound, to generate the difference test result of this target mike, enter One step improves the degree of accuracy of test.
In one preferred embodiment of the invention, method of testing based on mike can also include as follows Step:
Step S21, calculates the volume of acquired audio-frequency information, generates total volume data.
Step S23, by calculating the difference of total volume data and sound source volume data, determines that total volume is damaged Consumption data.
In embodiments of the present invention, by the volume of audio-frequency information is calculated, generate total volume data, Be equivalent to the decibel value V of audio frequency received by all mikes of computing terminal, i.e. determine that terminal receives sound The sound size of frequency.By calculating the difference of total volume data and sound source volume data, it is possible to determine total Loudness loss data, i.e. may determine that this terminal receives the effect of audio frequency by all mikes.If terminal In have mike to damage or abnormal, but terminal receives the difference ratio of total volume data and sound source volume data Less, i.e. total loudness loss data of this terminal are smaller, still it is believed that terminal receives the effect of audio frequency Relatively good, i.e. think that this terminal can be with the instruction of voice responsive operation.
Step S25, it is judged that whether described total loudness loss data are more than preset total loudness loss threshold value.
When described total loudness loss data are more than preset total loudness loss threshold value, perform step S27. When described total loudness loss data are not more than preset total loudness loss threshold value, perform step S29.
Step S27, it is determined that the microphone works of terminal is abnormal, generates terminal and receives the test that audio frequency is abnormal Result.
Step S29, it is determined that the microphone works of terminal is normal, generates terminal reception audio frequency and tests normally Result.
Total loudness loss threshold value can be arranged according to the sound size of terminal response voice operating, and the present invention is real Execute example this is not any limitation as.When total loudness loss data are more than preset total loudness loss threshold value, i.e. The decibel value of the audio frequency that terminal receives is the least, and this terminal can not voice responsive operate, and performs step S27, Generate terminal and receive the test result that audio frequency is abnormal;When total loudness loss data are not more than preset total volume During loss threshold value, i.e. this terminal can operate with voice responsive, performs step S29, generates terminal and receives sound The normal test result of frequency.
In embodiments of the present invention, can be by judging that whether total loudness loss data are more than total loudness loss Threshold value, thus judge whether terminal can normally receive audio frequency, i.e. for voice operating, whether terminal can Normal Feedback.The test processing method implemented by the present invention, it is ensured that terminal receives the effect of audio frequency The accuracy of detection, it is ensured that the reliability of the voice operating of terminal.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as one it be The combination of actions of row, but those skilled in the art should know, and the embodiment of the present invention is not by described The restriction of sequence of movement because according to the embodiment of the present invention, some step can use other orders or Person is carried out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description Belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
With reference to Fig. 3, it is shown that the structure of a kind of method of testing device embodiment based on mike of the present invention Block diagram, specifically can include such as lower module:
Sound Sources Detection module 301, the audio frequency that may be used for playing sound source detects, and determines sound source sound Amount data.
Audio-frequency information generation module 303, may be used for using the mike of terminal to detect described audio frequency, raw Become audio-frequency information.
Wherein, terminal can include but not limit and mobile terminal and television terminal, mobile terminal such as mobile phone, Panel computer, notebook etc., television terminal such as television set.
Volume determines module 305, may be used for according to described audio-frequency information, determines that target mike institute is right The target volume data answered.
Volume comparison module 307, may be used for carrying out described target volume data with sound source volume data Relatively, the test result of described target mike is determined.
In one preferred embodiment of the invention, sound Sources Detection module 301, it is also possible to specifically for logical Cross the audio frequency that sound source play by decibel instrument to detect, generate sound source volume data.
With reference to Fig. 4, it is shown that the structural frames of a kind of method of testing device preferred embodiment based on mike Figure, specifically can include with lower module:
Sound Sources Detection module 401, can be examined specifically for the audio frequency play sound source by decibel instrument Survey, generate sound source volume data.
Audio-frequency information generation module 403, may be used for using the mike of terminal to detect described audio frequency, raw Become audio-frequency information.
Volume determines module 405, may be used for according to described audio-frequency information, determines that target mike institute is right The target volume data answered.
In one preferred embodiment of the invention, volume determines module 405, can include following submodule Block:
Obtain submodule 40501, for by audio manager interface, obtain described audio-frequency information.
Audio information analysis submodule 40503, for being analyzed acquired audio-frequency information, determines The target audio signal that target mike is corresponding.
Audiovolume indicator operator module 40505, for the volume of described target audio signal is calculated, raw Become target volume data.
In one preferred embodiment of the invention, audio information analysis submodule 40503, can include Such as lower unit:
Audio signal generation unit 405031, is suitable to be analyzed acquired audio-frequency information, generates each Audio signal corresponding to mike.
Target audio signal determines unit 405033, for by true for the audio signal corresponding to target mike It is set to described target audio signal.
Volume comparison module 407, may be used for carrying out described target volume data with sound source volume data Relatively, the test result of described target mike is determined.
In one preferred embodiment of the invention, volume comparison module 407, following submodule can be included Block:
Loudness loss determines submodule 40701, for by calculating described sound source volume data and target sound The difference of amount data, determines the loudness loss data of described target mike.
Judge submodule 40703, for judging whether described loudness loss data damage more than preset volume Consumption threshold value.
Test result determines submodule 40705, for being not more than described loudness loss when loudness loss data During threshold value, described target mike is defined as normal microphone, generates the normal test result of mike; And for when loudness loss data are more than described loudness loss threshold value, described target mike being determined For abnormal mike, generate the test result that mike is abnormal.
In another preferred embodiment of the invention, described audiovolume indicator operator module 40505, it is also possible to For respectively the volume of the audio signal corresponding to each mike being calculated, determine the sound of each mike Amount data.Method of testing device based on mike can also include:
Comparison in difference module 409, for respectively by the volume data of each mike and described target volume number According to comparing, obtain the difference test result of target mike.
In one preferred embodiment of the invention, described audiovolume indicator operator module 40505, it is also possible to use In the volume of acquired audio-frequency information is calculated, generate total volume data.Survey based on mike Method for testing device, it is also possible to include such as lower module:
Loudness loss computing module 411, for the difference by calculating total volume data and sound source volume data Value, determines total loudness loss data.
Loudness loss judge module 413, for judging that whether described total loudness loss data are more than preset Total loudness loss threshold value.
Determination module 415, for when described total loudness loss data are more than preset total loudness loss threshold value Time, it is determined that the microphone works of terminal is abnormal, generates terminal and receives the test result that audio frequency is abnormal;Also use In time being not more than preset total loudness loss threshold value when described total loudness loss data, it is determined that the Mike of terminal Wind is working properly, generates terminal and receives the normal test result of audio frequency.
For device embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described Simply, relevant part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually ?.
Those skilled in the art are it should be appreciated that the embodiment of the embodiment of the present invention can be provided as method, dress Put or computer program.Therefore, the embodiment of the present invention can use complete hardware embodiment, completely Software implementation or the form of the embodiment in terms of combining software and hardware.And, the embodiment of the present invention Can use and can be situated between with storage at one or more computers wherein including computer usable program code The upper computer journey implemented of matter (including but not limited to disk memory, CD-ROM, optical memory etc.) The form of sequence product.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal unit (system) and meter The flow chart of calculation machine program product and/or block diagram describe.It should be understood that can be by computer program instructions Each flow process in flowchart and/or block diagram and/or square frame and flow chart and/or square frame Flow process in figure and/or the combination of square frame.Can provide these computer program instructions to general purpose computer, The processor of special-purpose computer, Embedded Processor or other programmable data processing terminal equipment is to produce One machine so that performed by the processor of computer or other programmable data processing terminal equipment Instruction produce for realizing at one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The device of the function specified in multiple square frames.
These computer program instructions may be alternatively stored in and computer or other programmable datas can be guided to process In the computer-readable memory that terminal unit works in a specific way so that be stored in this computer-readable Instruction in memorizer produces the manufacture including command device, and this command device realizes flow chart one The function specified in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded into computer or other programmable data processing terminals set Standby upper so that on computer or other programmable terminal equipment, to perform sequence of operations step in terms of producing The process that calculation machine realizes, thus the instruction performed on computer or other programmable terminal equipment provides and uses In realizing in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame The step of the function specified.
Although having been described for the preferred embodiment of the embodiment of the present invention, but those skilled in the art being once Know basic creative concept, then these embodiments can be made other change and amendment.So, Claims are intended to be construed to include preferred embodiment and fall into the institute of range of embodiment of the invention There are change and amendment.
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like It is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires Or imply relation or the order that there is any this reality between these entities or operation.And, art Language " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that Process, method, article or terminal unit including a series of key elements not only include those key elements, and Also include other key elements being not expressly set out, or also include for this process, method, article or The key element that person's terminal unit is intrinsic.In the case of there is no more restriction, statement " include one It is individual ... " key element that limits, it is not excluded that including the process of described key element, method, article or end End equipment there is also other identical element.
Above to a kind of test processing method based on mike provided by the present invention and a kind of based on wheat The test processes device of gram wind, is described in detail, and specific case used herein is to the present invention's Principle and embodiment are set forth, and the explanation of above example is only intended to help to understand the present invention's Method and core concept thereof;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, The most all will change, in sum, this specification content is not It is interpreted as limitation of the present invention.

Claims (16)

1. a test processing method based on mike, it is characterised in that including:
The audio frequency playing sound source detects, and determines sound source volume data;
The mike using terminal detects described audio frequency, generates audio-frequency information;
According to described audio-frequency information, determine the target volume data corresponding to target mike;
Described target volume data are compared with sound source volume data, determines described target mike Test result.
Method the most according to claim 1, it is characterised in that the described audio frequency that sound source is play Detect, determine sound source volume data, including:
The audio frequency play sound source by decibel instrument is detected, and generates sound source volume data.
Method the most according to claim 1, it is characterised in that described according to described audio-frequency information, Determine the target volume data corresponding to target mike, including:
By audio manager interface, obtain described audio-frequency information;
Acquired audio-frequency information is analyzed, determines the target audio signal that target mike is corresponding;
The volume of described target audio signal is calculated, generates target volume data.
Method the most according to claim 3, it is characterised in that described to acquired audio frequency letter Breath is analyzed, and determines the target audio signal that target mike is corresponding, including:
Acquired audio-frequency information is analyzed, generates the audio signal corresponding to each mike;
Audio signal corresponding to target mike is defined as described target audio signal.
5. according to the arbitrary described method of Claims 1-4, it is characterised in that described by described mesh Mark volume data compares with sound source volume data, determines the test result of described target mike, bag Include:
By calculating the difference of described sound source volume data and target volume data, determine described target Mike The loudness loss data of wind;
Judge that whether described loudness loss data are more than preset loudness loss threshold value;
When loudness loss data are not more than described loudness loss threshold value, described target mike is defined as Normal microphone, generates the normal test result of mike;
When loudness loss data are more than described loudness loss threshold value, described target mike is defined as different Often mike, generates the test result that mike is abnormal.
Method the most according to claim 4, it is characterised in that also include:
Respectively the volume of the audio signal corresponding to each mike is calculated, determine the sound of each mike Amount data;
Respectively the volume data of each mike is compared with described target volume data, obtain target wheat The difference test result of gram wind.
Method the most according to claim 6, it is characterised in that also include:
The volume of acquired audio-frequency information is calculated, generates total volume data;
By calculating the difference of total volume data and sound source volume data, determine total loudness loss data;
Judge that whether described total loudness loss data are more than preset total loudness loss threshold value;
When described total loudness loss data are more than preset total loudness loss threshold value, it is determined that the Mike of terminal Wind operation irregularity, generates terminal and receives the test result that audio frequency is abnormal;
When described total loudness loss data are not more than preset total loudness loss threshold value, it is determined that the wheat of terminal Gram wind is working properly, generates terminal and receives the normal test result of audio frequency.
8. according to claim 1-4, the arbitrary described method of 6-7, it is characterised in that described terminal bag Include: mobile terminal and/or television terminal.
9. a test processes device based on mike, it is characterised in that including:
Sound Sources Detection module, detects for the audio frequency playing sound source, determines sound source volume data;
Audio-frequency information generation module, for using the mike of terminal to detect described audio frequency, generates audio frequency letter Breath;
Volume determines module, for according to described audio-frequency information, determines the target corresponding to target mike Volume data;
Volume comparison module, for comparing described target volume data with sound source volume data, really The test result of fixed described target mike.
Device the most according to claim 9, it is characterised in that described sound Sources Detection module, tool Body is detected for the audio frequency play sound source by decibel instrument, generates sound source volume data.
11. devices according to claim 9, it is characterised in that described volume determines that module includes:
Obtain submodule, for by audio manager interface, obtain described audio-frequency information;
Audio information analysis submodule, for being analyzed acquired audio-frequency information, determines target wheat Gram target audio signal that wind is corresponding;
Audiovolume indicator operator module, for calculating the volume of described target audio signal, generates target Volume data.
12. devices according to claim 11, it is characterised in that described audio information analysis Module includes:
Audio signal generation unit, is suitable to be analyzed acquired audio-frequency information, generates each mike Corresponding audio signal;
Target audio signal determines unit, for the audio signal corresponding to target mike is defined as institute State target audio signal.
13. according to the arbitrary described device of claim 9 to 12, it is characterised in that described volume ratio Relatively module includes:
Loudness loss determines submodule, for by calculating described sound source volume data and target volume data Difference, determine the loudness loss data of described target mike;
Judge submodule, for judging that whether described loudness loss data are more than preset loudness loss threshold Value;
Test result determines submodule, for being not more than described loudness loss threshold value when loudness loss data Time, described target mike is defined as normal microphone, generates the normal test result of mike;With And for when loudness loss data are more than described loudness loss threshold value, described target mike being defined as Abnormal mike, generates the test result that mike is abnormal.
14. devices according to claim 12, it is characterised in that described audiovolume indicator operator module, It is additionally operable to respectively the volume of the audio signal corresponding to each mike be calculated, determines each mike Volume data;
Described device also includes:
Comparison in difference module, for entering the volume data of each mike with described target volume data respectively Row compares, and obtains the difference test result of target mike.
15. devices according to claim 14, it is characterised in that described audiovolume indicator operator module, It is additionally operable to the volume of acquired audio-frequency information is calculated, generates total volume data;
Described device also includes:
Loudness loss computing module, for the difference by calculating total volume data and sound source volume data, Determine total loudness loss data;
Loudness loss judge module, for judging that whether described total loudness loss data are more than preset total sound Amount loss threshold value;
Determination module, is used for when described total loudness loss data are more than preset total loudness loss threshold value, Judge that the microphone works of terminal is abnormal, generate terminal and receive the test result that audio frequency is abnormal;It is additionally operable to work as When described total loudness loss data are not more than preset total loudness loss threshold value, it is determined that the mike work of terminal Make normal, generate terminal and receive the normal test result of audio frequency.
16. according to claim 9-12, the arbitrary described device of 14-15, it is characterised in that described end End includes: mobile terminal and/or television terminal.
CN201510786939.XA 2015-11-16 2015-11-16 Test processing method and device based on microphone Pending CN105979462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510786939.XA CN105979462A (en) 2015-11-16 2015-11-16 Test processing method and device based on microphone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510786939.XA CN105979462A (en) 2015-11-16 2015-11-16 Test processing method and device based on microphone

Publications (1)

Publication Number Publication Date
CN105979462A true CN105979462A (en) 2016-09-28

Family

ID=56988140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510786939.XA Pending CN105979462A (en) 2015-11-16 2015-11-16 Test processing method and device based on microphone

Country Status (1)

Country Link
CN (1) CN105979462A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172560A (en) * 2017-06-28 2017-09-15 青岛海信移动通信技术股份有限公司 The method for detecting abnormality and mobile terminal of microphone in a kind of mobile terminal
CN107613446A (en) * 2017-09-27 2018-01-19 惠州Tcl移动通信有限公司 A kind of detection method for preventing microphone whistle, mobile terminal and storage medium
CN108712709A (en) * 2018-08-15 2018-10-26 会听声学科技(北京)有限公司 Noise cancelling headphone test device and system, its microphone trouble-shooter, system and method
CN110267187A (en) * 2019-05-29 2019-09-20 广西科飞科技发展有限公司 A kind of radio reception detection method of multimedia loudspeaker box
CN110798790A (en) * 2018-08-01 2020-02-14 杭州海康威视数字技术股份有限公司 Microphone abnormality detection method, device storage medium
CN110996244A (en) * 2019-12-23 2020-04-10 四川虹美智能科技有限公司 Microphone array performance test method, device and system
CN111182435A (en) * 2020-01-13 2020-05-19 北京松果电子有限公司 Testing method and device of voice equipment
CN112180196A (en) * 2020-09-30 2021-01-05 重庆市海普软件产业有限公司 State detection feedback system and method of intelligent equipment
CN112393799A (en) * 2019-08-16 2021-02-23 青岛海尔多媒体有限公司 Far-field voice equipment detection method and device and television terminal
CN113225659A (en) * 2020-02-06 2021-08-06 钉钉控股(开曼)有限公司 Equipment test method and electronic equipment
CN113891228A (en) * 2021-09-24 2022-01-04 珠海格力电器股份有限公司 Microphone fault detection method and device, control equipment, air conditioner and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089641A (en) * 2007-07-12 2007-12-19 北京中星微电子有限公司 Method system for implementing investigating audio-frequency equipment and audio-frequency equipment
JP2009055153A (en) * 2007-08-24 2009-03-12 Yokogawa Electric Corp Cellular phone tester and test method of cellular phone
CN101729969A (en) * 2008-10-27 2010-06-09 纬创资通股份有限公司 Method and system for testing microphone of electronic device
CN102780797A (en) * 2012-06-12 2012-11-14 苏州佳世达电通有限公司 Mobile telephone and correction method of internal electroacoustic component thereof
GB2492429A (en) * 2012-01-20 2013-01-02 Wolfson Microelectronics Plc Low frequency acoustic source for acoustic testing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089641A (en) * 2007-07-12 2007-12-19 北京中星微电子有限公司 Method system for implementing investigating audio-frequency equipment and audio-frequency equipment
JP2009055153A (en) * 2007-08-24 2009-03-12 Yokogawa Electric Corp Cellular phone tester and test method of cellular phone
CN101729969A (en) * 2008-10-27 2010-06-09 纬创资通股份有限公司 Method and system for testing microphone of electronic device
GB2492429A (en) * 2012-01-20 2013-01-02 Wolfson Microelectronics Plc Low frequency acoustic source for acoustic testing
CN102780797A (en) * 2012-06-12 2012-11-14 苏州佳世达电通有限公司 Mobile telephone and correction method of internal electroacoustic component thereof

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107172560A (en) * 2017-06-28 2017-09-15 青岛海信移动通信技术股份有限公司 The method for detecting abnormality and mobile terminal of microphone in a kind of mobile terminal
CN107613446A (en) * 2017-09-27 2018-01-19 惠州Tcl移动通信有限公司 A kind of detection method for preventing microphone whistle, mobile terminal and storage medium
CN110798790B (en) * 2018-08-01 2021-04-27 杭州海康威视数字技术股份有限公司 Microphone abnormality detection method, device and storage medium
CN110798790A (en) * 2018-08-01 2020-02-14 杭州海康威视数字技术股份有限公司 Microphone abnormality detection method, device storage medium
CN108712709A (en) * 2018-08-15 2018-10-26 会听声学科技(北京)有限公司 Noise cancelling headphone test device and system, its microphone trouble-shooter, system and method
CN110267187A (en) * 2019-05-29 2019-09-20 广西科飞科技发展有限公司 A kind of radio reception detection method of multimedia loudspeaker box
CN112393799A (en) * 2019-08-16 2021-02-23 青岛海尔多媒体有限公司 Far-field voice equipment detection method and device and television terminal
CN110996244A (en) * 2019-12-23 2020-04-10 四川虹美智能科技有限公司 Microphone array performance test method, device and system
CN111182435A (en) * 2020-01-13 2020-05-19 北京松果电子有限公司 Testing method and device of voice equipment
CN111182435B (en) * 2020-01-13 2021-11-09 北京小米松果电子有限公司 Testing method and device of voice equipment
CN113225659A (en) * 2020-02-06 2021-08-06 钉钉控股(开曼)有限公司 Equipment test method and electronic equipment
CN112180196A (en) * 2020-09-30 2021-01-05 重庆市海普软件产业有限公司 State detection feedback system and method of intelligent equipment
CN113891228A (en) * 2021-09-24 2022-01-04 珠海格力电器股份有限公司 Microphone fault detection method and device, control equipment, air conditioner and storage medium

Similar Documents

Publication Publication Date Title
CN105979462A (en) Test processing method and device based on microphone
CN103167391B (en) The audio testing method of audio test system and test system
CN103945062B (en) User terminal volume adjusting method, device and terminal
US20180176705A1 (en) Wireless exchange of data between devices in live events
US8879744B2 (en) Audio testing system and audio testing method for device under test
CN109547910B (en) Electronic equipment acoustic assembly performance testing method, device, equipment and storage medium
WO2020037555A1 (en) Method, device, apparatus, and system for evaluating microphone array consistency
CN110337055A (en) Detection method, device, electronic equipment and the storage medium of speaker
CN102510418B (en) Intelligibility of speech method of measurement under noise circumstance and device
CN109474879A (en) Microphone test method, device and storage medium
CN110097895B (en) Pure music detection method, pure music detection device and storage medium
CN107948869A (en) Audio-frequency processing method, device, sound system and storage medium
CN105259459A (en) Automatic quality inspection method, apparatus and device for electronic equipment
CN113259832B (en) Microphone array detection method and device, electronic equipment and storage medium
CN104601769A (en) Automatic mobile phone main board audio testing system
CN107231597B (en) Method and system for testing harmonic distortion value of loudspeaker
CN110475181B (en) Equipment configuration method, device, equipment and storage medium
CN111951833A (en) Voice test method and device, electronic equipment and storage medium
CN105810222A (en) Defect detection method, device and system for audio equipment
CN113329315B (en) Detection method, device and equipment of audio playing equipment and storage medium
CN107403629B (en) Far-field pickup performance evaluation method and system, and electronic device
CN110390954B (en) Method and device for evaluating quality of voice product
CN110475196A (en) Test fixture, acoustical device test macro and method
CN110099350A (en) The test method of power amplifier
CN111868821A (en) Method and apparatus for extracting tone-independent timbre attributes from a media signal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160928