CN109982228A - A kind of microphone fault detection method and mobile terminal - Google Patents

A kind of microphone fault detection method and mobile terminal Download PDF

Info

Publication number
CN109982228A
CN109982228A CN201910147752.3A CN201910147752A CN109982228A CN 109982228 A CN109982228 A CN 109982228A CN 201910147752 A CN201910147752 A CN 201910147752A CN 109982228 A CN109982228 A CN 109982228A
Authority
CN
China
Prior art keywords
microphone
output signal
failure
case
signal
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.)
Granted
Application number
CN201910147752.3A
Other languages
Chinese (zh)
Other versions
CN109982228B (en
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201910147752.3A priority Critical patent/CN109982228B/en
Publication of CN109982228A publication Critical patent/CN109982228A/en
Application granted granted Critical
Publication of CN109982228B publication Critical patent/CN109982228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/93Discriminating between voiced and unvoiced parts of speech signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • 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

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Business, Economics & Management (AREA)
  • Business, Economics & Management (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention provides a kind of microphone fault detection method and mobile terminals, this method comprises: obtaining the output signal of the microphone in the case where microphone starting;In the case where the output signal meets the first preset condition, determines the microphone failure and reminded.In the embodiment of the present invention, mobile terminal can be according to the starting situation of microphone, the automatic fault detection executed to microphone, and carry out fault cues, detection process will not be perceived by the user, and fault cues are only carried out when detecting microphone failure, therefore user only needs to know that microphone breaks down according to prompt, the convenience of significant increase mobile terminal user's microphone fault detection.

Description

A kind of microphone fault detection method and mobile terminal
Technical field
The present invention relates to mobile communication fields, more particularly to a kind of microphone fault detection method and mobile terminal.
Background technique
Microphone is device important in mobile terminal, voice signal can be converted to electric signal by microphone, from And realize the functions such as the call of mobile terminal, recording.
If microphone breaks down, the call or sound-recording function that will lead to mobile terminal be cannot achieve, and in the prior art, be led to Mobile terminal user is often needed to determine whether microphone breaks down according to service condition, for example, user is in call, discovery pair Fang Jingchang can not hear the sound of user oneself, by can just have found that it is likely that it is microphone with after more people call or multiple test Failure.
It is found by the applicant that above-mentioned technical proposal has the following disadvantages: the side for carrying out microphone detection by mobile terminal user Formula, testing result accuracy is low and is brought inconvenience for user using mobile terminal.
Summary of the invention
The embodiment of the present invention provides a kind of microphone fault detection method and mobile terminal, to solve microphone fault detection The problem of user's actual need cannot be met.
In order to solve the above-mentioned technical problems, the present invention provides a kind of microphone fault detection methods, are applied to mobile whole End, which comprises
In the case where microphone starting, the output signal of the microphone is obtained;
In the case where the output signal meets the first preset condition, determines the microphone failure and reminded.
The embodiment of the invention also provides a kind of mobile terminals, comprising:
Output signal obtains module, for obtaining the output signal of the microphone in the case where microphone starting;
Failure reminding module, for determining the Mike in the case where the output signal meets the first preset condition Wind failure is simultaneously reminded.
The embodiment of the present invention still further provides a kind of mobile terminal, including processor, memory and is stored in described deposit On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor The step of microphone fault detection method above-mentioned.
The embodiment of the present invention still further provides a kind of computer readable storage medium, the computer readable storage medium Upper storage computer program, the computer program realize the step of microphone fault detection method above-mentioned when being executed by processor Suddenly.
In the embodiment of the present invention, the starting situation of microphone can detecte, in the case where microphone starting, obtain Mike The output signal of wind determines microphone failure and is reminded, i.e., in the case where the output signal meets the first preset condition In the embodiment of the present invention, mobile terminal can be according to the starting situation of microphone, the automatic fault detection executed to microphone, and Fault cues are carried out, detection process will not be perceived by the user, and fault cues are only carried out when detecting microphone failure, because This, user only needs to know that microphone breaks down according to prompt, the inspection of significant increase mobile terminal user's microphone failure The convenience of survey.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of microphone fault detection method of the embodiment of the present invention;
Fig. 2 is a kind of dual microphone terminal schematic diagram of the embodiment of the present invention;
Fig. 3 is a kind of specific steps flow chart of microphone fault detection method of the embodiment of the present invention;
Fig. 4 is a kind of structural block diagram of mobile terminal of apparatus of the present invention embodiment;
Fig. 5 is a kind of specific block diagram of mobile terminal of apparatus of the present invention embodiment;
Fig. 6 is a kind of structural block diagram of mobile terminal of the embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Referring to Fig.1, the step flow chart of one of embodiment of the present invention microphone fault detection method is shown.The party Method is applied to mobile terminal, and specific steps include:
Step 101: in the case where microphone starting, obtaining the output signal of the microphone.
In concrete application, the embodiment of the present invention can be applied to mobile terminal, and mobile terminal includes but is not limited to mobile phone, puts down Plate computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
In concrete application, microphone can be silicon microphone either other kinds of microphone, the embodiment of the present invention pair Microphone is not specifically limited.
It may include multiple microphones in some scenes, in mobile terminal, as shown in Fig. 2, can in multiple microphones With there are main microphon 10 and secondary microphone 20, main microphon can be used for conventional call, recording etc., and secondary microphone can be with Call de-noising function is realized for mobile phone environment noise, and the microphone in the embodiment of the present invention can be for conversing, recording The main microphon of function.It is appreciated that if there is multiple microphones for functions such as calling records, it can be according to each microphone Mark, select it is therein any one carry out fault detection, the present invention is not especially limit this.A kind of preferred Embodiment in, the microphone for needing fault detection can be defined in the terminal, need the wheat of fault detection as being arranged The detection mark of gram wind, only in the case where defining the microphone for needing fault detection starting, just acquisition microphone is defeated Signal out.
In concrete application, the scene of microphone starting has very much, for example, mobile terminal opens call or sound-recording function, Or third party software calls microphone to complete certain functions, such as the video or phonetic function of social software, opens in microphone When dynamic, usually mobile terminal user carries out voice input, therefore, the output signal of available microphone.
Step 102: in the case where the output signal meets the first preset condition, determining that the microphone failure is gone forward side by side Row is reminded.
In the embodiment of the present invention, if output signal meets the first preset condition, it may be said that failure has occurred in bright microphone, into And microphone failure prompting can be carried out automatically.
In concrete application, if microphone does not have failure, usual output signal can be normal voice signal, or mix The voice signal of some noise signal.If microphone breaks down, microphone is likely to occur failure in the terminal Reason can have: since microphone film rupture causes microphone no signal to export, then signal output waveform amplitude is close to 0;By Make output signal cause voice to be blanked there are the random noise of duration extremely in microphone, is presented as that recording is only capable of listening It makes an uproar on earth, voice is faint or does not have voice;Since microphone makes the sound of output less than normal extremely, normal talking/recording is influenced Effect;Since microphone pickup hole is blocked, the voice signal of input is weaker, and the signal for causing microphone to export is very weak, approximate It is exported in no signal.
In the case where above-mentioned several microphone failures, common feature is using microphone records normal sound signal In the case of microphone non-output signal or the efficient voice of output signal it is less.It therefore, can be by by output signal and the The matching of one preset condition, judges whether microphone breaks down.
In practical application, the first preset condition can be set according to actual application scenarios, such as the first default item Part may is that there is no voice signal, output signals, and mistake etc. occurs in output signal, as long as the first preset condition can be used for Determine whether output signal is normal, and the embodiment of the present invention is not specifically limited in this embodiment.
In concrete application, the mode for carrying out the prompting of microphone failure may is that be popped up in the user interface of mobile terminal Prompting frame prompts user's microphone to break down in prompting frame by text, picture, sound, video etc..Carry out microphone event The mode of barrier prompt is also possible to: carrying out corresponding voice prompting, vibration prompt, the prompt of flashing device according to presetting Deng;It is appreciated that the carry out microphone fault cues adapted to can be arranged according to actual application scenarios in those skilled in the art Mode, the present invention is not especially limit this.
In practical application, if output signal is unsatisfactory for the first preset condition, it may be said that without discovery wheat in bright preliminary judgement Gram wind failure can terminate this microphone fault detection, the present invention is not especially limit this without prompt.
In conclusion can detecte the starting situation of microphone in the embodiment of the present invention, the case where microphone starts Under, the output signal of microphone is obtained, in the case where the output signal meets the first preset condition, determines microphone failure simultaneously It is reminded, i.e., in the embodiment of the present invention, mobile terminal can be automatic to execute to microphone according to the starting situation of microphone Fault detection, and fault cues are carried out, detection process will not be perceived by the user, and event is only carried out when detecting microphone failure Barrier prompt, therefore user only needs to know that microphone breaks down according to prompt, significant increase mobile terminal user Mike The convenience of wind fault detection.
Referring to Fig. 3, the specific steps flow chart of one of embodiment of the present invention microphone fault detection method is shown. Specific steps include:
Step 201: in the case where microphone starting, obtaining the output signal of the microphone.
It can also include: that front ring is worked as in identification before step 201 as a kind of preferred embodiment of the embodiment of the present invention Border.
In the embodiment of the present invention, it is contemplated that if microphone is in noisy environment, in the output signal of microphone There may be a large amount of noise signals, can cause larger interference to the fault detection of microphone, even result in erroneous judgement, therefore, The initial of the microphone fault detection of the embodiment of the present invention is carried out, first identification current environment.
In concrete application, current environment may include quiet environment and noisy environment;Quiet environment specifically can be sound Noisy value is lower than the environment of preset threshold, correspondingly, noisy environment can be the environment that a riot of sound value is higher than preset threshold;It can To understand, preset threshold can be set according to actual application scenarios, and the present invention is not especially limit this.
In concrete application, step 201 can be executed in the case where current environment is quiet environment, carry out Mike to be promoted The accuracy of wind fault detection.
It is appreciated that if microphone is that the occupied output signal extremely short time, got may be not enough to point Whether analysis microphone breaks down, therefore, in order to obtain can be used for accurately analyzing the output signal of microphone failure, this hair It is described in the case where microphone starting in a kind of preferred embodiment of bright embodiment, obtain the output letter of the microphone It number include: to obtain the output signal of the microphone in the case where microphone starts more than the second preset duration.
In concrete application, the starting situation of microphone interface can be detected on the backstage of mobile terminal, if microphone opens Dynamic duration exceeds the second preset duration, then obtains the output signal of microphone;Wherein, the second preset duration can be according to actual Application scenarios are set, and the embodiment of the present invention is not especially limited the second preset duration.
Step 202: the actual signal duration of the detection signal is compared with the first preset duration.
In the embodiment of the present invention, the first preset duration can be set according to actual application scenarios, for example, if mobile terminal In the output signal of microphone is detected by A algorithm, the output signal of fixed input T duration is needed in A algorithm, then first is pre- If duration can be set as T.
In the embodiment of the present invention, the actual signal duration of output signal if it is greater than or be equal to the first preset duration T, then say Bright acquisition is effective output signal, can further be detected to the output signal;And the actual signal duration of output signal If smaller than preset duration, possibly fault detection can not be carried out to microphone by the output signal, it is believed that get Output signal be invalid output signal, in the embodiment of the present invention, it is contemplated that detect usually to invalid output signal Accurate detection is unable to get as a result, therefore, after the signal duration of output signal being compared with the first preset duration, Determine whether to continue output signal detection.
Step 203: the case where the actual signal duration of the output signal is greater than or equal to first preset duration Under, detect the output signal.
In the embodiment of the present invention, the case where the actual signal duration of output signal is greater than or equal to the first preset duration Under, it may be said that it is bright to have got effective output signal, therefore can detecte the output signal.
In the embodiment of the present invention, invalid output signal can be filtered out by step 202 and step 203, only to effective Output signal is detected, and avoids carrying out invalid signal detection calculating, and then save the computing resource of mobile terminal.
In concrete application, if the actual signal duration of output signal is less than the second preset duration, it may be said that bright acquisition is Valid output signal, can detecte whether microphone is still running the functions such as call or recording, if microphone is still occupied, The judgment step of step 201 to step 203 can be re-started.
As a kind of preferred embodiment of the embodiment of the present invention, the step of the detection output signal, comprising:
Sub-step A1: the output signal is subjected to framing operation, obtains echo signal.
Sub-step A2: the phonetic feature of each frame of the echo signal is extracted respectively.
Sub-step A3: the phonetic feature is analyzed.
In the embodiment of the present invention, by taking the output signal of T a length of when obtaining as an example, N frame can be divided into output signal, often The frame length of frame is T/N, wherein N can be set according to the detection algorithm for carrying out output signal detection, the embodiment of the present invention N is not especially limited.
Using the output signal after progress framing as echo signal, the language of every frame signal of echo signal can be extracted respectively Sound feature.In concrete application, phonetic feature can be used to indicate that the feature of voice signal or noise signal etc., pass through analytic language Sound feature can determine whether microphone breaks down.
In the embodiment of the present invention, a kind of method for providing specific detection output signal will be defeated by the detection method Signal carries out framing operation out, and the phonetic feature for extracting output signal frame by frame is analyzed, therefore available accurate inspection Survey result.
Step 204: in the case where the output signal meets the first preset condition, determining that the microphone failure is gone forward side by side Row is reminded.
As a kind of preferred embodiment of the embodiment of the present invention, the phonetic feature includes following at least one: short-time average Energy, short-time average zero-crossing rate, comentropy, auto-correlation coefficient.
Energy difference phase in concrete application, due to the energy time to time change of voice signal, between voiceless sound and voiced sound When significant, therefore by analyzing short-time energy and short-time average magnitude, this eigentransformation feelings of voice can be described Condition, short-time average energy can characterize short-time energy, and short-time average zero-crossing rate can characterize short-time average magnitude.And normal Voice signal in, occur it is duplicate may be smaller, and in noise signal, occur it is duplicate may be larger, in the concept of entropy In, for uncertain content, more information is needed to go to determine, information source output is random quantity in information theory, thus its Degree of indeterminacy can be measured with probability distribution, therefore the usually noise that comentropy is big, the small usually voice signal of comentropy; And people, in pronunciation, vocal cord vibration sounding, voice can usually embody certain periodicity, noise be do not have it is rhythmic, because This, can with the auto-correlation coefficient of phonetic feature in output signal it is big be usually voice signal, auto-correlation coefficient it is small be usually Noise signal.
It is described in the case where the output signal meets the first preset condition based on this, determine the microphone failure And the step of being reminded, comprising:
It is less than default low energy threshold value, and the echo signal in the short-time average energy of each frame of the echo signal Each frame short-time average zero-crossing rate be less than preset low zero-crossing rate threshold value in the case where, determine the microphone failure are as follows: wheat Gram wind ontology failure or microphone path fault, and reminded;
Or,
The default low energy threshold value and default high energy are in the short-time average energy of each frame of the echo signal It measures between threshold value, and the short-time average zero-crossing rate of each frame of the echo signal is greater than the case where presetting high zero-crossing rate threshold value Under, determine the microphone failure are as follows: microphone body failure or microphone path fault, and reminded;
Or,
In the case where the comentropy of each frame of the echo signal is greater than presupposed information entropy threshold, the Mike is determined Wind failure are as follows: microphone body failure or microphone path fault, and reminded;
Or,
In the case where the auto-correlation coefficient of each frame of the echo signal is less than predetermined coefficient threshold value, the wheat is determined Gram wind failure are as follows: microphone body failure or microphone path fault, and reminded.
In the embodiment of the present invention, first by taking short-time average energy and short-time average zero-crossing rate as an example, illustrate to determine microphone The specific method of failure respectively obtains the short-time average energy En and short-time average of each frame signal of echo signal by calculating Zero-crossing rate Zn, and be En setting just two decision thresholds TEH and TEL, and TEH > TEL;Correspondingly, Zn setting height two are sentenced Certainly threshold value TZH and TZL, and TZH > TZL.
If En < TEL, and Zn < TZL, illustrate that the energy of the frame and zero-crossing rate are very low, even equal to 0, it can determine whether that the frame is Unvoiced segments;If TEL<En<TEH, and Zn>TZH, since the energy of random noise is usually smaller, and zero-crossing rate is higher, therefore can sentence It is set to noise segment;If En > TEH, and Zn > TZL, then be determined as voice segments.
After each frame signal has all been marked, signal is judged further according to considered repealed scene.If signal there is only Unvoiced segments illustrate microphone body or microphone access there may be exception, and the output of microphone no signal or sound are less than normal;If There is only noise segments or voice segments for signal far fewer than noise segment, illustrates microphone body there may be exception, noise disturbs just Normal call or recording effect.It is appreciated that judging that the process of microphone failure is lost based on several frequently seen user terminal above Effect mode is actually embodied on the example of each failure and also has subtle difference, but these can be by adjusting detection Algorithm is adapted to, and principle is all based on the feature whether analysis microphone output signal meets normal speech signals.
It, can be the case where the comentropy of each frame of echo signal be greater than presupposed information entropy threshold based on similar principle Under, determine microphone failure are as follows: microphone body failure or microphone path fault;In the auto-correlation of each frame of echo signal In the case that coefficient is less than predetermined coefficient threshold value, microphone failure is determined are as follows: microphone body failure or microphone path fault.
It, further, can be according to the different by TZL of the short-time average zero-crossing rate of each frame of echo signal in concrete application The voice segments of<Zn<TZH are defined as voiced sound, and the voice segments of Zn>TZH are defined as voiceless sound, can be reduced according to the distribution of unvoiced or voiced sound Noise segment is mistaken for the probability of voice segments, the present invention is not especially limit this.
In the embodiment of the present invention, inventor obtains specific microphone most common failure scene, and root according to a large amount of experiment Provide the concrete sound feature of extraction according to most common failure scene, and judge microphone whether the specific method of failure, Verified, determination method through the embodiment of the present invention can determine the microphone of the larger proportion in practical application scene Failure is a kind of efficient, pinpoint accuracy determination microphone fault method.
It can also include: that display corresponds to the wheat as a kind of preferred embodiment of the embodiment of the present invention, after step 204 The after-sales-service information of gram wind.
In the embodiment of the present invention, when detecting that microphone deposits after a failure, can be to show in the user interface of mobile terminal Show prompt information, reminds user's microphone that there may be failures, it is proposed that user further detects confirmation, while providing microphone After-sales-service information, after-sales-service information specifically can be the address information that user nearby puts after sale and contact method etc.;Into one Step, can also be provided the function of " key reserve after-sale service ", user can be convenient according to after-sales-service information to relevant Place repairs after sale, or contacts customer service etc. according to after-sales-service information, so as to promote user experience.
In conclusion can detecte the starting situation of microphone in the embodiment of the present invention, the case where microphone starts Under, the output signal of microphone is obtained, in the case where the output signal meets the first preset condition, determines microphone failure simultaneously It is reminded, i.e., in the embodiment of the present invention, mobile terminal can be automatic to execute to microphone according to the starting situation of microphone Fault detection, and fault cues are carried out, detection process will not be perceived by the user, and event is only carried out when detecting microphone failure Barrier prompts, and therefore, user only needs to know that microphone breaks down according to prompt, significant increase mobile terminal user Mike The convenience of wind fault detection.
It should be noted that for the aforementioned method embodiment, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because according to According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know that, The embodiments described in the specification are all preferred embodiments, and related movement is not necessarily essential to the invention.
Referring to Fig. 4, the structural block diagram of one of embodiment of the present invention mobile terminal 300 is shown.Include:
Output signal obtains module 310, in the case where microphone starting, obtaining the output letter of the microphone Number;
Failure reminding module 320, for determining the wheat in the case where the output signal meets the first preset condition Gram wind failure is simultaneously reminded.
Preferably, referring to Fig. 5, on the basis of fig. 4, in above-mentioned mobile terminal, further includes:
Comparison module 330, for the actual signal duration of the output signal to be compared with the first preset duration;
Output signal detection module 340 is greater than or equal to described for the actual signal duration in the output signal In the case where one preset duration, the output signal is detected.
The output signal detection module 340 includes:
Framing submodule 3401 obtains echo signal for the output signal to be carried out framing operation;
Speech feature extraction submodule 3402, the phonetic feature of each frame for extracting the echo signal respectively;
Submodule 3403 is analyzed, for analyzing the phonetic feature.
The phonetic feature includes following at least one: short-time average energy, short-time average zero-crossing rate, comentropy, from phase Relationship number.
The failure reminding module 320 includes:
Failure reminds submodule, and the short-time average energy for each frame in the echo signal is less than default low energy Threshold value, and the short-time average zero-crossing rate of each frame of the echo signal is determined less than in the case where presetting low zero-crossing rate threshold value The microphone failure are as follows: microphone body failure or microphone path fault, and reminded;
Or,
The default low energy threshold value and default high energy are in the short-time average energy of each frame of the echo signal It measures between threshold value, and the short-time average zero-crossing rate of each frame of the echo signal is greater than the case where presetting high zero-crossing rate threshold value Under, determine the microphone failure are as follows: microphone body failure or microphone path fault, and reminded;
Or,
In the case where the comentropy of each frame of the echo signal is greater than presupposed information entropy threshold, the Mike is determined Wind failure are as follows: microphone body failure or microphone path fault, and reminded;
Or,
In the case where the auto-correlation coefficient of each frame of the echo signal is less than predetermined coefficient threshold value, the wheat is determined Gram wind failure are as follows: microphone body failure or microphone path fault, and reminded.
The output signal obtains module 310
Output signal acquisition submodule 3101, for the starting duration in microphone be more than the second preset duration the case where Under, obtain the output signal of the microphone.
In the embodiment of the present invention, the starting situation of microphone can detecte, in the case where microphone starting, obtain Mike The output signal of wind determines microphone failure and is reminded, i.e., in the case where the output signal meets the first preset condition In the embodiment of the present invention, mobile terminal can be according to the starting situation of microphone, the automatic fault detection executed to microphone, and Fault cues are carried out, detection process will not be perceived by the user, and fault cues are only carried out when detecting microphone failure, because This, user only needs to know that microphone breaks down according to prompt, the inspection of significant increase mobile terminal user's microphone failure The convenience of survey.
Above-mentioned mobile terminal can be realized each process that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 3, to keep away Exempt to repeat, which is not described herein again.
A kind of hardware structural diagram of Fig. 6 mobile terminal of each embodiment to realize the present invention.
The mobile terminal 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, defeated Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor The components such as 510 and power supply 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 6 is not constituted Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop, Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510, for obtaining the output signal of the microphone in the case where microphone starting;Institute In the case where stating output signal the first preset condition of satisfaction, determines the microphone failure and reminded.
In the embodiment of the present invention, the starting situation of microphone can detecte, in the case where microphone starting, obtain Mike The output signal of wind determines microphone failure and is reminded, i.e., in the case where the output signal meets the first preset condition In the embodiment of the present invention, mobile terminal can be according to the starting situation of microphone, the automatic fault detection executed to microphone, and Fault cues are carried out, detection process will not be perceived by the user, and fault cues are only carried out when detecting microphone failure, because This, user only needs to know that microphone breaks down according to prompt, the inspection of significant increase mobile terminal user's microphone failure The convenience of survey.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set Standby communication.
Mobile terminal provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor (Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071 Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments 5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 6, touch panel 5071 and display Panel 5061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.It is mobile whole End 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511 can pass through power supply pipe Reason system and processor 510 are logically contiguous, to realize management charging, electric discharge and power managed by power-supply management system Etc. functions.
In addition, mobile terminal 500 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510 Each process of the above-mentioned microphone fault detection method embodiment of Shi Shixian, and identical technical effect can be reached, to avoid weight Multiple, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each mistake of above-mentioned microphone fault detection method embodiment when being executed by processor Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
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 device 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 device 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 device.
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 a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (10)

1. a kind of microphone fault detection method, which is characterized in that the described method includes:
In the case where microphone starting, the output signal of the microphone is obtained;
In the case where the output signal meets the first preset condition, determines the microphone failure and reminded.
2. the method according to claim 1, wherein being gone back after the output signal for obtaining the microphone Include:
The actual signal duration of the output signal is compared with the first preset duration;
In the case where the actual signal duration of the output signal is greater than or equal to first preset duration, detect described defeated Signal out.
3. according to the method described in claim 2, it is characterized in that, the step of the detection output signal, comprising:
The output signal is subjected to framing operation, obtains echo signal;
The phonetic feature of each frame of the echo signal is extracted respectively;
Analyze the phonetic feature.
4. according to the method described in claim 3, it is characterized in that, the phonetic feature includes following at least one: putting down in short-term Equal energy, short-time average zero-crossing rate, comentropy, auto-correlation coefficient;
It is described to determine the microphone failure in the case where the output signal meets the first preset condition and reminded, Include:
It is less than default low energy threshold value in the short-time average energy of each frame of the echo signal, and the echo signal is every The short-time average zero-crossing rate of one frame determines the microphone failure are as follows: microphone less than in the case where presetting low zero-crossing rate threshold value Ontology failure or microphone path fault, and reminded;
Or,
The default low energy threshold value and default high-energy threshold are in the short-time average energy of each frame of the echo signal Between value, and the short-time average zero-crossing rate of each frame of the echo signal be greater than preset high zero-crossing rate threshold value in the case where, really The fixed microphone failure are as follows: microphone body failure or microphone path fault, and reminded;
Or,
In the case where the comentropy of each frame of the echo signal is greater than presupposed information entropy threshold, the microphone event is determined Barrier are as follows: microphone body failure or microphone path fault, and reminded;
Or,
In the case where the auto-correlation coefficient of each frame of the echo signal is less than predetermined coefficient threshold value, the microphone is determined Failure are as follows: microphone body failure or microphone path fault, and reminded.
5. method according to any one of claims 1 to 4, which is characterized in that it is described in the case where microphone starting, it obtains The output signal for taking the microphone includes:
In the case where the starting duration of the microphone is more than the second preset duration, the output signal of the microphone is obtained.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Output signal obtains module, for obtaining the output signal of the microphone in the case where microphone starting;
Failure reminding module, in the case where the output signal meets the first preset condition, determining the microphone event Hinder and is reminded.
7. mobile terminal according to claim 6, which is characterized in that further include:
Comparison module, for the actual signal duration of the output signal to be compared with the first preset duration;
Output signal detection module, when default more than or equal to described first for the actual signal duration in the output signal In the case where length, the output signal is detected.
8. mobile terminal according to claim 7, which is characterized in that the output signal detection module includes:
Framing submodule obtains echo signal for the output signal to be carried out framing operation;
Speech feature extraction submodule, the phonetic feature of each frame for extracting the echo signal respectively;
Submodule is analyzed, for analyzing the phonetic feature.
9. mobile terminal according to claim 8, which is characterized in that the phonetic feature includes following at least one: short When average energy, short-time average zero-crossing rate, comentropy, auto-correlation coefficient;
The failure reminding module includes:
Failure reminds submodule, and the short-time average energy for each frame in the echo signal is less than default low energy threshold Value, and the short-time average zero-crossing rate of each frame of the echo signal determines institute less than in the case where presetting low zero-crossing rate threshold value State microphone failure are as follows: microphone body failure or microphone path fault, and reminded;
Or,
The default low energy threshold value and default high-energy threshold are in the short-time average energy of each frame of the echo signal Between value, and the short-time average zero-crossing rate of each frame of the echo signal be greater than preset high zero-crossing rate threshold value in the case where, really The fixed microphone failure are as follows: microphone body failure or microphone path fault, and reminded;
Or,
In the case where the comentropy of each frame of the echo signal is greater than presupposed information entropy threshold, the microphone event is determined Barrier are as follows: microphone body failure or microphone path fault, and reminded;
Or,
In the case where the auto-correlation coefficient of each frame of the echo signal is less than predetermined coefficient threshold value, the microphone is determined Failure are as follows: microphone body failure or microphone path fault, and reminded.
10. according to the described in any item mobile terminals of claim 6 to 9, which is characterized in that the output signal obtains module packet It includes:
Output signal acquisition submodule, for obtaining in the case where the starting duration of the microphone is more than the second preset duration Take the output signal of the microphone.
CN201910147752.3A 2019-02-27 2019-02-27 Microphone fault detection method and mobile terminal Active CN109982228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910147752.3A CN109982228B (en) 2019-02-27 2019-02-27 Microphone fault detection method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910147752.3A CN109982228B (en) 2019-02-27 2019-02-27 Microphone fault detection method and mobile terminal

Publications (2)

Publication Number Publication Date
CN109982228A true CN109982228A (en) 2019-07-05
CN109982228B CN109982228B (en) 2020-11-03

Family

ID=67077530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910147752.3A Active CN109982228B (en) 2019-02-27 2019-02-27 Microphone fault detection method and mobile terminal

Country Status (1)

Country Link
CN (1) CN109982228B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445781A (en) * 2019-08-06 2019-11-12 广州市百果园信息技术有限公司 A kind of speech detection method and relevant device of chatroom
CN110677780A (en) * 2019-09-26 2020-01-10 北京小米移动软件有限公司 Detection method and device of audio input module and storage medium
CN111491247A (en) * 2020-03-17 2020-08-04 广州视源电子科技股份有限公司 Microphone hole plugging detection method and device, storage medium and related equipment
CN111601224A (en) * 2020-04-10 2020-08-28 歌尔微电子有限公司 Microphone performance testing method and device and electronic equipment
CN112866690A (en) * 2021-01-08 2021-05-28 深圳创维-Rgb电子有限公司 Microphone fault detection circuit, detection method and equipment thereof, and storage medium
CN113674758A (en) * 2021-07-09 2021-11-19 南京航空航天大学 Wind noise judgment method and device based on smart phone and electronic equipment
CN113891228A (en) * 2021-09-24 2022-01-04 珠海格力电器股份有限公司 Microphone fault detection method and device, control equipment, air conditioner and storage medium
CN114040312A (en) * 2021-11-29 2022-02-11 四川虹美智能科技有限公司 Microphone detection method and system of voice air conditioner
RU2781476C1 (en) * 2021-12-02 2022-10-12 Общество С Ограниченной Ответственностью "Яндекс" Method for testing microphones and the speaker system implementing it

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5822718A (en) * 1997-01-29 1998-10-13 International Business Machines Corporation Device and method for performing diagnostics on a microphone
JP2009151299A (en) * 2007-12-20 2009-07-09 Toshiba Corp Method and device for detecting speech spectrum peak, and speech recognition method and speech recognition system
CN103929707A (en) * 2014-04-08 2014-07-16 深圳市中兴移动通信有限公司 Method for detecting conditions of microphone voice-grade channels and terminal
CN106197650A (en) * 2016-08-30 2016-12-07 陕西千山航空电子有限责任公司 A kind of method judging that audio signal is noiseless
CN108419200A (en) * 2018-01-30 2018-08-17 海尔优家智能科技(北京)有限公司 A kind of microphone array fault detection method and device
CN109151697A (en) * 2018-07-26 2019-01-04 Oppo广东移动通信有限公司 Microphone plug-hole detection method and Related product
CN109195090A (en) * 2018-09-05 2019-01-11 苏州思必驰信息科技有限公司 Test method and system for microphone electro mechanical parameter in product

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5822718A (en) * 1997-01-29 1998-10-13 International Business Machines Corporation Device and method for performing diagnostics on a microphone
JP2009151299A (en) * 2007-12-20 2009-07-09 Toshiba Corp Method and device for detecting speech spectrum peak, and speech recognition method and speech recognition system
CN103929707A (en) * 2014-04-08 2014-07-16 深圳市中兴移动通信有限公司 Method for detecting conditions of microphone voice-grade channels and terminal
CN106197650A (en) * 2016-08-30 2016-12-07 陕西千山航空电子有限责任公司 A kind of method judging that audio signal is noiseless
CN108419200A (en) * 2018-01-30 2018-08-17 海尔优家智能科技(北京)有限公司 A kind of microphone array fault detection method and device
CN109151697A (en) * 2018-07-26 2019-01-04 Oppo广东移动通信有限公司 Microphone plug-hole detection method and Related product
CN109195090A (en) * 2018-09-05 2019-01-11 苏州思必驰信息科技有限公司 Test method and system for microphone electro mechanical parameter in product

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445781B (en) * 2019-08-06 2021-11-23 广州市百果园信息技术有限公司 Voice detection method of chat room and related equipment
CN110445781A (en) * 2019-08-06 2019-11-12 广州市百果园信息技术有限公司 A kind of speech detection method and relevant device of chatroom
CN110677780A (en) * 2019-09-26 2020-01-10 北京小米移动软件有限公司 Detection method and device of audio input module and storage medium
CN110677780B (en) * 2019-09-26 2021-12-14 北京小米移动软件有限公司 Detection method and device of audio input module and storage medium
CN111491247A (en) * 2020-03-17 2020-08-04 广州视源电子科技股份有限公司 Microphone hole plugging detection method and device, storage medium and related equipment
CN111491247B (en) * 2020-03-17 2022-05-31 广州视源电子科技股份有限公司 Microphone hole plugging detection method and device, storage medium and related equipment
CN111601224A (en) * 2020-04-10 2020-08-28 歌尔微电子有限公司 Microphone performance testing method and device and electronic equipment
CN111601224B (en) * 2020-04-10 2022-06-10 歌尔微电子有限公司 Microphone performance testing method and device and electronic equipment
CN112866690A (en) * 2021-01-08 2021-05-28 深圳创维-Rgb电子有限公司 Microphone fault detection circuit, detection method and equipment thereof, and storage medium
CN112866690B (en) * 2021-01-08 2022-07-19 深圳创维-Rgb电子有限公司 Microphone fault detection circuit, detection method and equipment thereof, and storage medium
CN113674758A (en) * 2021-07-09 2021-11-19 南京航空航天大学 Wind noise judgment method and device based on smart phone and electronic equipment
CN113891228A (en) * 2021-09-24 2022-01-04 珠海格力电器股份有限公司 Microphone fault detection method and device, control equipment, air conditioner and storage medium
CN114040312A (en) * 2021-11-29 2022-02-11 四川虹美智能科技有限公司 Microphone detection method and system of voice air conditioner
CN114040312B (en) * 2021-11-29 2023-08-22 四川虹美智能科技有限公司 Microphone detection method and system of voice air conditioner
RU2781476C1 (en) * 2021-12-02 2022-10-12 Общество С Ограниченной Ответственностью "Яндекс" Method for testing microphones and the speaker system implementing it

Also Published As

Publication number Publication date
CN109982228B (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN109982228A (en) A kind of microphone fault detection method and mobile terminal
CN108491123A (en) A kind of adjusting application program image target method and mobile terminal
CN108075966A (en) A kind of message treatment method and mobile terminal
CN109215683A (en) A kind of reminding method and terminal
CN108521520A (en) A kind of call handling method and mobile terminal
CN108347512A (en) A kind of personal identification method and mobile terminal
CN109194899A (en) A kind of method and terminal of audio-visual synchronization
CN108989558A (en) The method and device of terminal call
CN110138963A (en) A kind of message treatment method and mobile terminal
CN110213686A (en) A kind of detection method and terminal of earphone socket
CN109994111A (en) A kind of exchange method, device and mobile terminal
CN108196815A (en) A kind of adjusting method and mobile terminal of sound of conversing
CN108769369A (en) A kind of method for early warning and mobile terminal
CN108521501A (en) Pronunciation inputting method and mobile terminal
CN109412932A (en) A kind of screenshotss method and terminal
CN108512980A (en) A kind of detection method and mobile terminal of mobile terminal
CN109726121A (en) A kind of identifying code acquisition methods and terminal device
CN108769410A (en) A kind of method for sending information and mobile terminal
CN109451158A (en) A kind of based reminding method and device
CN109949809A (en) A kind of sound control method and terminal device
CN109815679A (en) Right management method and mobile terminal
CN109743448A (en) Reminding method and terminal device
CN108650392A (en) A kind of call recording method and mobile terminal
CN109729301A (en) A kind of message inspection method and device
CN108307048A (en) A kind of message output method and device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant