CN107705804A - A kind of audible device condition detection method and mobile terminal - Google Patents
A kind of audible device condition detection method and mobile terminal Download PDFInfo
- Publication number
- CN107705804A CN107705804A CN201710882928.0A CN201710882928A CN107705804A CN 107705804 A CN107705804 A CN 107705804A CN 201710882928 A CN201710882928 A CN 201710882928A CN 107705804 A CN107705804 A CN 107705804A
- Authority
- CN
- China
- Prior art keywords
- energy value
- audible device
- supersonic range
- mobile terminal
- recorded file
- 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
Links
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
- G10L25/51—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/03—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters
- G10L25/21—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 characterised by the type of extracted parameters the extracted parameters being power information
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/10527—Audio or video recording; Data buffering arrangements
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/10527—Audio or video recording; Data buffering arrangements
- G11B2020/10537—Audio or video recording
- G11B2020/10546—Audio or video recording specifically adapted for audio data
Abstract
The embodiments of the invention provide a kind of audible device condition detection method and mobile terminal, methods described to include:Record the recorded file of ultrasonic audio signal generation first played;Obtain the first supersonic range of preset duration in first recorded file;Calculate the energy value of first supersonic range;By the energy value of first supersonic range compared with preset energy value, according to comparative result output audible device state-detection result.Can be weaker than normal ultrasonic energy value by the energy value for the ultrasonic wave for detecting abnormal audible device, therefore the power of the first supersonic range energy value of contrast is passed through, the state for the audible device for determining mobile terminal can be realized, and enter micro foreign matter or dust initial stage only in sounding mouth, also the state of audible device can be perceived immediately, so as to lift the audio experience of user.
Description
Technical field
The present invention relates to communication technical field, more particularly to a kind of audible device condition detection method and mobile terminal.
Background technology
Now with flourishing for data science and technology, the mobile terminal such as smart mobile phone, tablet personal computer turns into the daily life of people
Indispensable instrument living, and people are to the quality requirements of various mobile terminals also more and more higher, especially in mobile terminal
The tonequality requirement for the audible device installed has turned into mobile terminal user's emphasis of interest.
The sounding mouth of its audible device during the use of mobile terminal, such as receiver, loudspeaker, easily by dust or enter
Foreign matter is blocked, and is caused audible device to occur abnormal, is influenceed the effect of sent audio signal.However, people set to sounding at present
The detection method of standby state is also confined to artificially be detected, and when sounding mouth is by Severe blockage, people can pass through observation
Sounding mouth determines the state of audible device with the presence or absence of foreign matter, and when sounding mouth only enters micro foreign matter or dust, then
The state of audible device can not be detected, it is seen then that, can not be to the state of audible device at present to the detection method of audible device state
Accurately judged.
The content of the invention
The invention provides a kind of audible device condition detection method and mobile terminal, to solve nothing existing for prior art
The problem of method is to audible device state-detection.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of audible device condition detection method, it is described
Method includes:Record the recorded file of ultrasonic audio signal generation first played;When obtaining default in first recorded file
The first long supersonic range;Calculate the energy value of first supersonic range;By the energy value of first supersonic range and in advance
If energy value is compared, according to comparative result output audible device state-detection result.
In a first aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, the mobile terminal includes:Record module,
For recording the recorded file of ultrasonic audio signal generation first played;Acquisition module, for obtaining first recorded file
First supersonic range of middle preset duration;Computing module, for calculating the energy value of first supersonic range;Output module,
For compared with preset energy value, the energy value of first supersonic range to be exported into audible device shape according to comparative result
State testing result.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including:Memory, processor and it is stored in
On the memory and the audible device state-detection computer program that can run on the processor, the audible device shape
State test computer programs are realized described audible device condition detection method during computing device the step of.
The third aspect, the embodiment of the present invention additionally provide a kind of computer-readable recording medium, described computer-readable to deposit
Audible device state-detection computer program is stored with storage media, the audible device state-detection computer program is processed
The step of described audible device condition detection method is realized when device performs.
In embodiments of the present invention, by the first recorded file for being obtained to the ultrasonic audio signal recording played
The energy of first supersonic range is compared with preset energy value, so that the whether abnormal of mobile terminal audible device detected, due to
Ultrasonic wave is a kind of high frequency waves, if transmission process is blocked that reflection can be caused, by the ultrasound for detecting abnormal audible device
The energy value of ripple can be weaker than normal ultrasonic energy value, therefore by contrasting the power of the first supersonic range energy value, can
The state for the audible device for determining mobile terminal is realized, and enters micro foreign matter or dust initial stage only in sounding mouth, also can be
When the state for perceiving audible device, so as to lift the audio experience of user.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of audible device condition detection method of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of audible device condition detection method of the embodiment of the present invention two;
Fig. 3 is a kind of structured flowchart of mobile terminal of the embodiment of the present invention three;
Fig. 4 is a kind of structured flowchart of mobile terminal of the embodiment of the present invention four;
Fig. 5 is a kind of structured flowchart of mobile terminal of the embodiment of the present invention five.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is further detailed explanation.
Embodiment one
Reference picture 1, show a kind of step flow chart of audible device condition detection method of the embodiment of the present invention one.
Audible device condition detection method provided in an embodiment of the present invention comprises the following steps:
Step 101:Record the recorded file of ultrasonic audio signal generation first played.
In the embodiment of the present invention, it can be played and be higher than by audible device when being detected to audible device state
20kHz ultrasonic audio signal, 23kHz, 24kHz or the ultrasonic audio signal of higher frequency can be specifically played, and recorded
The played ultrasonic audio signal of system, is defined as the first recorded file, and the first recorded file is deposited by the audio file of recording
Storage is into mobile terminal.
It should be noted that audible device can be the audible devices such as receiver, loudspeaker, for sounding in the embodiment of the present invention
The particular type of equipment is not construed as limiting.
Step 102:Obtain the first supersonic range of preset duration in the first recorded file.
It should be noted that those skilled in the art can be selected preset duration according to actual conditions, wherein, in advance
If duration can be 100ms, 200ms, 300ms etc., the embodiment of the present invention is not specifically limited to preset duration.
Obtain the ultrasonic wave in the first recorded file, and according to preset duration ultrasonic wave is intercepted to obtain the first ultrasound
Wave band, wherein the first supersonic range is corresponding with crest, trough and signal value corresponding to each moment.
Step 103:Calculate the energy value of the first supersonic range.
Those skilled in the art, the energy value of the first supersonic range can be calculated by any appropriate mode;Example
Such as:When calculating the energy value of supersonic range, signal sampling can be carried out from supersonic range, the signal according to each sampled signal is strong
The energy value of supersonic range is calculated in degree.This is not specifically limited in the embodiment of the present invention.
Step 104:By the energy value of the first supersonic range compared with preset energy value, according to comparative result output hair
Acoustic equipment state-detection result.
Energy value corresponding to first supersonic range is calculated by the signal intensity in the first supersonic range, by the first of calculating
The energy value of supersonic range is compared with the preset energy value calculated using normal audible device.When the first supersonic range
Energy value is less than preset energy value, then shows that the sounding mouth of audible device has foreign matter or dust, when the first supersonic range
Energy value is consistent with preset energy value, then shows that audible device is normal, and asking for sounding mouth is crammed in the absence of having dust or foreign matter
Topic.
By judging that the energy value of the first supersonic range differs situation with preset energy value, it can be determined that the hair of audible device
Sound mouth crams situation.
Audible device condition detection method provided in an embodiment of the present invention, pass through the ultrasonic audio signal recording to being played
The energy of the first supersonic range in the first obtained recorded file is compared with preset energy value, to detect mobile terminal hair
Acoustic equipment it is whether abnormal, because ultrasonic wave is a kind of high frequency waves, if transmission process is blocked that reflection can be caused, pass through detection
The energy value of the ultrasonic wave of abnormal audible device can be weaker than normal ultrasonic energy value, therefore by contrasting the first ultrasonic wave
The power of section energy value, the state for the audible device for determining mobile terminal can be realized, and into micro different only in sounding mouth
Thing or dust initial stage, the state of audible device can be also perceived immediately, so as to lift the audio experience of user.
Embodiment two
Reference picture 2, show a kind of step flow chart of audible device condition detection method of the embodiment of the present invention two.
Audible device condition detection method provided in an embodiment of the present invention comprises the following steps:
Step 201:Audio file and ultrasonic audio signal are played simultaneously, and records generation recorded file.
In the embodiment of the present invention, in mobile terminal playing sound or music, while ultrasonic audio signal is played, due to
Ultrasonic wave is a kind of sound wave more than people's range of audibility 20-20kHz, and frequency is in more than 20kHz, therefore in use not
User's sense of hearing is influenceed, therefore ultrasonic audio signal can be played while music is played, in order in use to sounding
Equipment state is detected.Also, ultrasonic wave interacts with audible device, it is possible to achieve while audible device is not damaged
Complete the detection to audible device.
Step 202:By audio file filtering the first recorded file of generation in recorded file.
Ultrasonic audio signal is only existed in wherein the first recorded file.
, will be low using high-pass filtering due to audio file or audio signal, and ultrasonic signal in recorded file be present
Frequency signal, i.e. audio file and audio signal are filtered, in real process, it is also possible to which due to recording, environment is noisy to be caused
Noise in recorded file be present, can also be filtered noise by high-pass filtering so that only exist ultrasound in the first recorded file
Audio signal.
Step 203:Obtain the first supersonic range of preset duration in the first recorded file.
The ultrasonic wave in the first recorded file is obtained, and ultrasonic wave is intercepted according to preset duration, the record of interception first
A certain section in file processed, for subsequently carrying out algorithm calculating to the supersonic range.
It should be noted that those skilled in the art can be selected preset duration according to actual conditions, wherein, in advance
If duration can be 100ms, 200ms, 300ms etc., the embodiment of the present invention is not specifically limited to preset duration.
Step 204:Obtain signal intensity corresponding to each sampled signal in the first supersonic range.
By the first supersonic range it is discrete according to number of samples be multiple sampled signals, obtain and believe corresponding to these sampled signals
Number intensity.
Sample frequency is higher, and the interval time of sampling is shorter, then the sample data that computer obtains within the unit interval is just
More, the expression to signal waveform is also more accurate.Have certain relation between sample frequency and original signal frequency, according to how Kui
This is special theoretical, and when only sample frequency is higher than twice of primary signal highest frequency, the signal that data signal could be represented is also
Original turns into original signal, therefore a kind of preferable employing mode is by the first ultrasonic band signal, according to ultrasonic signal frequencies
Sampled for twice.
Step 205:Square sum of each signal intensity is calculated, obtains the energy value of the first supersonic range.
Pass through formula:Calculate the energy value of the first supersonic range, wherein n is number of samples, x (n)
For each sampled signal.
Step 206:Calculate the energy value of the first supersonic range and the difference of preset energy value.
Wherein, preset energy value generates in the following manner:Using the normal mobile terminal of audible device state, recording is broadcast
The recorded file of ultrasonic audio signal generation second put;Obtain the second supersonic range of preset duration in the second recorded file;Meter
The energy value of the second supersonic range is calculated, the energy value of the second supersonic range is defined as preset energy value.
The energy value of the first supersonic range and the difference of preset energy value are calculated, audible device may indicate that by difference
Cram degree.
Step 207:By difference compared with difference threshold.
Step 208:When difference is less than or equal to difference threshold, then export for indicating that audible device state is normal
First prompt message.
Step 209:When difference is more than difference threshold, then the second prompting for indicating audible device abnormal state is exported
Information.
Those skilled in the art can set according to actual conditions to difference threshold, such as:Difference threshold can be set
It is set to 10,20,30 etc., setting of the embodiment of the present invention to difference threshold is not specifically limited.
When difference threshold be 20 when, and the difference calculated be 10 when, 10 be less than 20, then showing audible device state just
Often, while the prompting normal prompting message of audible device state is exported, wherein it is possible to be carried for vibration, blinking text and ejection
Show that the mode of frame exports the first prompt message.
When difference threshold is 20, when the difference calculated is 30,30 are more than 20, show audible device abnormal state, when
When calculating difference is 40,40 are more than 20, then the degree for the audible device abnormal state that difference is 40 is higher than the sounding that difference is 30
Equipment, the second different prompt messages can be sent, according to the grade of exception to prompt the state of user's audible device.
Audible device condition detection method provided in an embodiment of the present invention, by played audio file and ultrasonic sound
Frequency signal is carried out recording generation recorded file, and recorded file is filtered, obtains the first recorded file, by the journey of filtering
Sequence so that noise is not present in the first recorded file after filtering, by the energy of the first supersonic range in the first recorded file with
The difference of preset energy value is compared with difference threshold, by comparative result, the state of mobile terminal audible device is determined, due to super
Sound wave is a kind of high frequency waves, if transmission process is blocked that reflection, the energy value of the ultrasonic wave of abnormal audible device can be caused
Can be weaker than normal ultrasonic energy value, therefore by contrasting the size of difference and difference threshold, it can be determined that mobile terminal
The state of audible device, when audible device is blocked, then the size degree that is differed by difference with difference threshold, it is determined that it is mobile eventually
The degree that is blocked of the occurrence of equipment at end, also, enter micro foreign matter or dust initial stage in sounding mouth, also can timely it perceive
The state of audible device, and the state of user's audible device is prompted in time, state of the user according to audible device, take necessary
Measure, so as to lift the audio experience of user.
Embodiment three
Reference picture 3, show a kind of structured flowchart of mobile terminal of the embodiment of the present invention three.
Mobile terminal provided in an embodiment of the present invention includes:Module 301 is recorded, for recording the ultrasonic audio signal played
Generate the first recorded file;Acquisition module 302, for obtaining the first ultrasonic wave of preset duration in first recorded file
Section;Computing module 303, for calculating the energy value of first supersonic range;Output module 304, for the first surpassing described
The energy value of sound wave section is compared with preset energy value, according to comparative result output audible device state-detection result.
Mobile terminal provided in an embodiment of the present invention, pass through the first record obtained to the ultrasonic audio signal recording played
The energy of the first supersonic range in file processed is compared with preset energy value, whether to detect mobile terminal audible device
It is abnormal, because ultrasonic wave is a kind of high frequency waves, if transmission process is blocked that reflection can be caused, set by the sounding for detecting abnormal
The energy value of standby ultrasonic wave can be weaker than normal ultrasonic energy value, therefore by contrasting the strong of the first supersonic range energy value
It is weak, it can be determined that whether the audible device of mobile terminal is abnormal, therefore enters micro foreign matter or dust initial stage only in sounding mouth, i.e.,
The exception of audible device can be perceived immediately, solves the exception with instantly prompting user, so as to lift the audio experience of user.
Example IV
Reference picture 4, show a kind of structured flowchart of mobile terminal of the embodiment of the present invention four.
Mobile terminal provided in an embodiment of the present invention includes:Module 401 is recorded, for recording the ultrasonic audio signal played
Generate the first recorded file;Acquisition module 402, for obtaining the first ultrasonic wave of preset duration in first recorded file
Section;Computing module 403, for calculating the energy value of first supersonic range;Output module 404, for the first surpassing described
The energy value of sound wave section is compared with preset energy value, according to comparative result output audible device state-detection result.
Preferably, the computing module 403 includes:First acquisition submodule 4031, for obtaining first ultrasonic wave
Signal intensity corresponding to each sampled signal in section;First calculating sub module 4032, for calculating each signal intensity
Square sum, obtains the energy value of first supersonic range.
Preferably, the output module 404 includes:Second calculating sub module 4041, for calculating first ultrasonic wave
The energy value of section and the difference of the preset energy value;Comparison sub-module 4042, for the difference and difference threshold to be carried out
Compare;First output sub-module 4043, it is used to refer to for when the difference is less than or equal to the difference threshold, then exporting
Show normal first prompt message of audible device state;Second output sub-module 4044, for being more than the difference when the difference
When being worth threshold value, then the second prompt message for indicating audible device abnormal state is exported.
Preferably, the recording module 401 includes:Submodule 4011 is recorded, for playing audio file simultaneously and surpassing
Sound audio signals, and record generation recorded file;Filter submodule 4012, for by the audio file mistake in the recorded file
Filter the first recorded file of generation, wherein only existing ultrasonic audio signal in first recorded file.
Preferably, the preset energy value generates in the following manner:Using the normal mobile terminal of audible device state,
Record the recorded file of ultrasonic audio signal generation second played;Obtain the second surpassing for preset duration in second recorded file
Sound wave section;The energy value of second supersonic range is calculated, the energy value of second supersonic range is defined as preset energy
Value.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in Fig. 1 to Fig. 2 embodiment of the method
Each process, to avoid repeating, repeat no more here.
Mobile terminal provided in an embodiment of the present invention, by being recorded to played audio file and ultrasonic audio signal
System generation recorded file, filters to recorded file, obtains the first recorded file, by the process of filtering so that after filtering
The first recorded file noise is not present, by the difference of the energy of the first supersonic range in the first recorded file and preset energy value
Value is compared with difference threshold, by comparative result, the state of mobile terminal audible device is determined, because ultrasonic wave is a kind of high frequency
Ripple, if transmission process is blocked that reflection can be caused, the energy value of the ultrasonic wave of abnormal audible device can be than normal ultrasound
Wave energy value is weak, therefore by contrasting the size of difference and difference threshold, it can be determined that the state of the audible device of mobile terminal,
When audible device is blocked, then the size degree that is differed by difference with difference threshold determines the occurrence of equipment of mobile terminal
Be blocked degree, also, enter micro foreign matter or dust initial stage in sounding mouth, it also can timely perceive the shape of audible device
State, and the state of user's audible device is prompted in time, state of the user according to audible device, necessary measure is taken, so as to
To lift the audio experience of user.
Embodiment five
Reference picture 5, show the structured flowchart of the mobile terminal of the embodiment of the present invention.
Fig. 5 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 500 includes but is not limited to:It is radio frequency unit 501, mixed-media network modules mixed-media 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 part such as 510 and power supply 511.It will be understood by those skilled in the art that the mobile terminal structure shown in Fig. 5 is not formed
Restriction to mobile terminal, mobile terminal can be included than illustrating more or less parts, either combine some parts or
Different part arrangements.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet personal computer, notebook computer,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510, for recording the recorded file of ultrasonic audio signal generation first played;Obtain described
First supersonic range of preset duration in one recorded file;Calculate the energy value of first supersonic range;The first surpass described
The energy value of sound wave section is compared with preset energy value, according to comparative result output audible device state-detection result;
Pass through the energy of the first supersonic range in the first recorded file for being obtained to the ultrasonic audio signal recording played
Amount is compared with preset energy value, so that the whether abnormal of mobile terminal audible device detected, because ultrasonic wave is a kind of high frequency
Ripple, can be than just by detecting the energy value of ultrasonic wave of abnormal audible device if transmission process is blocked that reflection can be caused
Normal ultrasonic energy value is weak, therefore by contrasting the power of the first supersonic range energy value, can realize detection mobile terminal
Audible device state, therefore enter micro foreign matter or dust initial stage only in sounding mouth, you can instant sounding of perceiving is set
Whether standby state is abnormal, so as to lift the audio experience of user.
It should be understood that in the embodiment of the present invention, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 510;In addition, will be up
Data are sent to base station.Generally, 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 has provided the user wireless broadband internet by mixed-media network modules mixed-media 502 and accessed, and such as helps user to receive
Send e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be receiving by radio frequency unit 501 or mixed-media network modules mixed-media 502 or in memory 509
It is sound that the voice data of storage, which is converted into audio signal and exported,.Moreover, audio output unit 503 can also be provided and moved
The audio output for the specific function correlation that dynamic terminal 500 performs is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input block 504 is used to receive audio or video signal.Input block 504 can include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the static images or the view data of video obtained in image capture mode by image capture apparatus (such as camera) are carried out
Reason.Picture frame after processing may be displayed on display unit 506.Picture frame after the processing of graphics processor 5041 can be deposited
Storage is transmitted in memory 509 (or other storage mediums) or via radio frequency unit 501 or mixed-media network modules mixed-media 502.Mike
Wind 5042 can receive sound, and can be voice data by such acoustic processing.Voice data after processing can be
The form output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 also 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 transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 5061, and proximity transducer can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, available for identification mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);Pass
Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared ray sensor etc. are spent, will not be repeated here.
Display unit 506 is used for the information for showing the information inputted by user or being supplied to 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) configures display panel 5061.
User input unit 507 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 507 include contact panel 5071 and
Other input equipments 5072.Contact panel 5071, also referred to as touch-screen, collect touch operation of the user on or near it
(for example user uses any suitable objects or annex such as finger, stylus on contact panel 5071 or in contact panel 5071
Neighbouring operation).Contact panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and 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
Manage the order that device 510 is sent and performed.It is furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes contact panel 5071.Except contact 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, action bars, will not be repeated here.
Further, contact panel 5071 can be covered on display panel 5061, when contact 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 touch
The type for touching event provides corresponding visual output on display panel 5061.Although in Figure 5, contact panel 5071 and display
Panel 5061 is the part independent as two to realize the input of mobile terminal and output function, but in some embodiments
In, can be integrated by contact panel 5071 and display panel 5061 and realize input and the output function of mobile terminal, it is specific this
Place does not limit.
Interface unit 508 is the interface that external device (ED) is connected with mobile terminal 500.For example, external device (ED) can include
Line or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, storage card end
Mouth, port, audio input/output (I/O) port, video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receive the input (for example, data message, electric power etc.) from external device (ED) and
One or more elements that the input received is transferred in mobile terminal 500 can be used in the He of mobile terminal 500
Data are transmitted between external device (ED).
Memory 509 can be used for storage software program and various data.Memory 509 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 509 can include high-speed random access memory, 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 whole mobile terminal of connection
Individual part, by running or performing the software program and/or module that are stored in memory 509, and call and be stored in storage
Data in device 509, the various functions and processing data of mobile terminal are performed, so as to carry out integral monitoring to mobile terminal.Place
Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) to all parts power supply, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned functional modules, will not be repeated here.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, memory 509, is stored in
On memory 509 and the computer program that can be run on the processor 510, the computer program are performed by processor 510
Each process of the above-mentioned audible device condition detection method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid
Repeat, repeat no more here.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium
Calculation machine program, the computer program realize each process of above-mentioned audible device detection method embodiment when being executed by processor,
And identical technique effect can be reached, to avoid repeating, repeat no more here.Wherein, described computer-readable recording medium,
Such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, letter
Claim RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements not only include those key elements, and
And also include the other element being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Other identical element also be present in the process of key element, method, 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 add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, belong within the protection of the present invention.
Claims (12)
1. a kind of audible device condition detection method, it is characterised in that methods described includes:
Record the recorded file of ultrasonic audio signal generation first played;
Obtain the first supersonic range of preset duration in first recorded file;
Calculate the energy value of first supersonic range;
By the energy value of first supersonic range compared with preset energy value, according to comparative result output audible device shape
State testing result.
2. according to the method for claim 1, it is characterised in that the step of the energy value for calculating first supersonic range
Suddenly, including:
Obtain signal intensity corresponding to each sampled signal in first supersonic range;
Square sum of each signal intensity is calculated, obtains the energy value of first supersonic range.
3. according to the method for claim 2, it is characterised in that the energy value by first supersonic range is with presetting
The step of energy value is compared, and foundation comparative result exports audible device state-detection result, including:
Calculate the energy value of first supersonic range and the difference of the preset energy value;
By the difference compared with difference threshold;
When the difference is less than or equal to the difference threshold, then export for indicating audible device state normal first
Prompt message;
When the difference is more than the difference threshold, then the second prompting letter for indicating audible device abnormal state is exported
Breath.
4. according to the method for claim 1, it is characterised in that the ultrasonic audio signal generation first played of recording is recorded
The step of file processed, including:
Audio file and ultrasonic audio signal are played simultaneously, and records generation recorded file;
Audio file filtering in the recorded file is generated into the first recorded file, wherein only being deposited in first recorded file
In ultrasonic audio signal.
5. according to the method for claim 1, it is characterised in that the preset energy value generates in the following manner:
Using the normal mobile terminal of audible device state, the recorded file of ultrasonic audio signal generation second of broadcasting is recorded;
Obtain the second supersonic range of preset duration in second recorded file;
The energy value of second supersonic range is calculated, the energy value of second supersonic range is defined as preset energy value.
6. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
Module is recorded, for recording the recorded file of ultrasonic audio signal generation first played;
Acquisition module, for obtaining the first supersonic range of preset duration in first recorded file;
Computing module, for calculating the energy value of first supersonic range;
Output module, for by the energy value of first supersonic range compared with preset energy value, according to comparative result
Export audible device state-detection result.
7. mobile terminal according to claim 6, it is characterised in that the computing module includes:
First acquisition submodule, for obtaining signal intensity corresponding to each sampled signal in first supersonic range;
First calculating sub module, for calculating square sum of each signal intensity, obtain the energy of first supersonic range
Value.
8. mobile terminal according to claim 7, it is characterised in that the output module includes:
Second calculating sub module, for calculating the energy value of first supersonic range and the difference of the preset energy value;
Comparison sub-module, for by the difference compared with difference threshold;
First output sub-module, it is used to indicate hair for when the difference is less than or equal to the difference threshold, then exporting
Normal first prompt message of acoustic equipment state;
Second output sub-module, it is used to indicate audible device shape for when the difference is more than the difference threshold, then exporting
The second abnormal prompt message of state.
9. mobile terminal according to claim 6, it is characterised in that the recording module includes:
Submodule is recorded, for playing audio file and ultrasonic audio signal simultaneously, and records generation recorded file;
Filter submodule, for by audio file filtering the first recorded file of generation in the recorded file, wherein described the
Ultrasonic audio signal is only existed in one recorded file.
10. mobile terminal according to claim 6, it is characterised in that the preset energy value generates in the following manner:
Using the normal mobile terminal of audible device state, the recorded file of ultrasonic audio signal generation second of broadcasting is recorded;
Obtain the second supersonic range of preset duration in second recorded file;
The energy value of second supersonic range is calculated, the energy value of second supersonic range is defined as preset energy value.
A kind of 11. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be in institute
The audible device state-detection computer program run on processor is stated, the audible device state-detection computer program is by institute
The step of audible device condition detection method as any one of claim 1 to 5 being realized when stating computing device.
12. a kind of computer-readable recording medium, it is characterised in that be stored with sounding on the computer-readable recording medium and set
Standby state-detection computer program, realize that right such as will when the audible device state-detection computer program is executed by processor
The step of seeking the audible device condition detection method any one of 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710882928.0A CN107705804A (en) | 2017-09-26 | 2017-09-26 | A kind of audible device condition detection method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710882928.0A CN107705804A (en) | 2017-09-26 | 2017-09-26 | A kind of audible device condition detection method and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107705804A true CN107705804A (en) | 2018-02-16 |
Family
ID=61176036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710882928.0A Pending CN107705804A (en) | 2017-09-26 | 2017-09-26 | A kind of audible device condition detection method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107705804A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109121059A (en) * | 2018-07-26 | 2019-01-01 | Oppo广东移动通信有限公司 | Loudspeaker plug-hole detection method and Related product |
CN110875058A (en) * | 2018-08-31 | 2020-03-10 | 中国移动通信有限公司研究院 | Voice communication processing method, terminal equipment and server |
CN110995921A (en) * | 2019-11-19 | 2020-04-10 | 维沃移动通信有限公司 | Call processing method, electronic device and computer readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1773605A (en) * | 2004-11-12 | 2006-05-17 | 中国科学院声学研究所 | Sound end detecting method for sound identifying system |
US20140358535A1 (en) * | 2013-05-28 | 2014-12-04 | Samsung Electronics Co., Ltd. | Method of executing voice recognition of electronic device and electronic device using the same |
CN104640054A (en) * | 2015-02-12 | 2015-05-20 | 广东欧珀移动通信有限公司 | Earphone/loudspeaker testing method and system for mobile terminal |
CN105246015A (en) * | 2015-11-11 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Electronic device and method and system for detecting loudspeaker sound source thereof |
CN105979053A (en) * | 2016-04-18 | 2016-09-28 | 广东欧珀移动通信有限公司 | Method and device for detecting microphone in mobile terminal and mobile terminal |
CN106791186A (en) * | 2017-01-22 | 2017-05-31 | 惠州Tcl移动通信有限公司 | It is a kind of to detect the method and system that microphone sound hole is blocked |
-
2017
- 2017-09-26 CN CN201710882928.0A patent/CN107705804A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1773605A (en) * | 2004-11-12 | 2006-05-17 | 中国科学院声学研究所 | Sound end detecting method for sound identifying system |
US20140358535A1 (en) * | 2013-05-28 | 2014-12-04 | Samsung Electronics Co., Ltd. | Method of executing voice recognition of electronic device and electronic device using the same |
CN104640054A (en) * | 2015-02-12 | 2015-05-20 | 广东欧珀移动通信有限公司 | Earphone/loudspeaker testing method and system for mobile terminal |
CN105246015A (en) * | 2015-11-11 | 2016-01-13 | 上海斐讯数据通信技术有限公司 | Electronic device and method and system for detecting loudspeaker sound source thereof |
CN105979053A (en) * | 2016-04-18 | 2016-09-28 | 广东欧珀移动通信有限公司 | Method and device for detecting microphone in mobile terminal and mobile terminal |
CN106791186A (en) * | 2017-01-22 | 2017-05-31 | 惠州Tcl移动通信有限公司 | It is a kind of to detect the method and system that microphone sound hole is blocked |
Non-Patent Citations (1)
Title |
---|
韩志艳: "《面向语音与面部表情信号的多模式情感识别技术研究》", 31 January 2017, 东北大学出版社 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109121059A (en) * | 2018-07-26 | 2019-01-01 | Oppo广东移动通信有限公司 | Loudspeaker plug-hole detection method and Related product |
CN110875058A (en) * | 2018-08-31 | 2020-03-10 | 中国移动通信有限公司研究院 | Voice communication processing method, terminal equipment and server |
CN110995921A (en) * | 2019-11-19 | 2020-04-10 | 维沃移动通信有限公司 | Call processing method, electronic device and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107799125A (en) | A kind of audio recognition method, mobile terminal and computer-readable recording medium | |
CN107734378A (en) | A kind of audio and video synchronization method, device and mobile terminal | |
CN107613131A (en) | A kind of application program disturbance-free method and mobile terminal | |
CN108737921A (en) | A kind of control method for playing back, system, earphone and mobile terminal | |
CN107911445A (en) | A kind of information push method, mobile terminal and storage medium | |
CN107832110A (en) | A kind of information processing method and mobile terminal | |
CN108511002A (en) | The recognition methods of hazard event voice signal, terminal and computer readable storage medium | |
CN107908705A (en) | A kind of information-pushing method, information push-delivery apparatus and mobile terminal | |
CN108063999A (en) | A kind of dust-proof network detecting method, mobile terminal | |
CN107743178A (en) | A kind of message player method and mobile terminal | |
CN107785027A (en) | A kind of audio-frequency processing method and electronic equipment | |
CN107864353A (en) | A kind of video recording method and mobile terminal | |
CN107633850A (en) | A kind of volume adjusting method and electronic equipment | |
CN108521501A (en) | Pronunciation inputting method and mobile terminal | |
CN107835495A (en) | A kind of message prompt method, device and mobile terminal | |
CN109754823A (en) | A kind of voice activity detection method, mobile terminal | |
CN107705804A (en) | A kind of audible device condition detection method and mobile terminal | |
CN107786751A (en) | A kind of method for broadcasting multimedia file and mobile terminal | |
CN110995921A (en) | Call processing method, electronic device and computer readable storage medium | |
CN107749306A (en) | A kind of method and mobile terminal for vibrating optimization | |
CN107920310A (en) | A kind of method and mobile terminal of multi-microphone recording | |
CN108062195A (en) | The reminding method and mobile terminal of a kind of notification event | |
CN109451158B (en) | Reminding method and device | |
CN108650392A (en) | A kind of call recording method and mobile terminal | |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180216 |