CN108234751A - A kind of automatic detection dangerous approach, mobile terminal and computer readable storage medium - Google Patents
A kind of automatic detection dangerous approach, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108234751A CN108234751A CN201711371637.1A CN201711371637A CN108234751A CN 108234751 A CN108234751 A CN 108234751A CN 201711371637 A CN201711371637 A CN 201711371637A CN 108234751 A CN108234751 A CN 108234751A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- preset
- short
- duration
- voice 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72418—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services
- H04M1/72421—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting emergency services with automatic activation of emergency service functions, e.g. upon sensing an alarm
-
- 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/18—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 spectral information of each sub-band
-
- 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/78—Detection of presence or absence of voice signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- 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/78—Detection of presence or absence of voice signals
- G10L2025/783—Detection of presence or absence of voice signals based on threshold decision
Abstract
Dangerous approach is detected automatically the invention discloses a kind of, the method includes:The voice signal of the mobile terminal local environment is acquired in real time;Calculate the short-time energy value of each frame voice signal;Judge whether that short-time energy value is more than preset energy threshold value, and duration is more than two echo signal sections of the first preset duration;If there are described two echo signal sections, judge whether the time interval between described two echo signal sections is more than the second preset duration;If the time interval between described two echo signal sections controls the mobile terminal calling preset number no more than second preset duration.In addition, invention additionally discloses a kind of mobile terminal and computer readable storage mediums.The method can judge current environment with the presence or absence of danger according to the voice signal of the mobile terminal local environment, and the mobile terminal calling preset number is controlled to seek help in the case where judging that current environment is dangerous, it can effectively ensure that the promptness sought help.
Description
Technical field
The present invention relates to a kind of technical field of mobile terminals more particularly to automatic detection dangerous approach, mobile terminal and meters
Calculation machine readable storage medium storing program for executing.
Background technology
Safety is society and the eternal theme of the people, and the events such as robbery with violence, burglary frequently occur in society, personal
Safety, property safety are more valued by people.With the continuous development of electronic technology, mobile terminal (such as smart mobile phone,
Tablet computer etc.) to people’s lives and work bring very big convenience, be increasingly becoming the essential means of communication of people.
When facing a danger, if victim does not seek help in time, easily by irreversible infringement.The prior art
In, mobile terminal can not detect whether user is in the hole, can not ensure the promptness sought help.
Invention content
In view of this, the present invention proposes a kind of automatic detection dangerous approach, mobile terminal and computer readable storage medium,
To solve above-mentioned technical problem.
First, to achieve the above object, the present invention proposes a kind of automatic detection dangerous approach, applied to mobile terminal, institute
The method of stating includes:
The voice signal of the mobile terminal local environment is acquired in real time;
Calculate the short-time energy value of each frame voice signal;
Judge whether that short-time energy value is more than preset energy threshold value, and duration is more than the two of the first preset duration
A echo signal section;
If there are described two echo signal sections, judge whether the time interval between described two echo signal sections is more than
Second preset duration;
If the time interval between described two echo signal sections controls the movement no more than second preset duration
Terminal call preset number.
Optionally, if the time interval between described two echo signal sections is not more than second preset duration,
The mobile terminal calling preset number is controlled, including:
If the time interval between described two echo signal sections is no more than second preset duration, described mobile whole
End provides user interface and chooses whether calling preset number for user;
If it is not received by confirming call if receiving in confirming call operation input by user or third preset duration
Operation, controls the mobile terminal calling preset number.
Optionally, it is described to choose whether calling preset number for user in mobile terminal offer user interface, including:
The mobile terminal sound is controlled to prompt the user to choose whether calling preset number;
If described receive confirming call operation input by user, the mobile terminal calling preset number is controlled, including:
If receiving default voice messaging input by user, the mobile terminal calling preset number is controlled.
Optionally, it is described to judge whether that short-time energy value is more than preset energy threshold value, and duration is more than first
Before two echo signal sections of preset duration, the method further includes:
Scene according to residing for the voice signal of the mobile terminal local environment determines the mobile terminal;
It is preset energy threshold value to determine the corresponding energy threshold of scene residing for the mobile terminal, wherein, different fields
Scape corresponds to different energy thresholds.
Optionally, the corresponding energy threshold of scene determined residing for the mobile terminal is preset energy threshold value, is wrapped
It includes:
Acquire the background sound data under at least one scene;
Calculate the average value of the short-time energy value of background voice data under at least one scene;
The average value of short-time energy value under at least one scene is multiplied by the corresponding predetermined coefficient of the scene, is made
For the corresponding energy threshold of the scene.
Optionally, the short-time energy value for calculating each frame voice signal, including:
Voice signal is sampled, obtains multiframe voice signal, wherein each frame voice signal includes predetermined number
Sampled point;
Calculate the short-time energy value of the sampled point of the predetermined number of each frame voice signal.
Optionally, it is described to judge whether that short-time energy value is more than preset energy threshold value, and duration is more than first
Before two echo signal sections of preset duration, the method further includes:
Judge whether the short-time energy value of voice signal is more than the first energy value;
If the short-time energy value of voice signal is more than first energy value, it is pre- to judge whether that short-time energy value is more than
If energy threshold, and duration is more than two echo signal sections of the first preset duration, wherein, first energy value is little
In the preset energy threshold value.
Optionally, after the control mobile terminal calling preset number, the method further includes:
The geographical location information residing for the mobile terminal is obtained, and sends the geographical location to the preset number and believes
Breath;And/or
The microphone and/or camera of the mobile terminal are opened, and the mobile terminal is sent to the preset number
Microphone acquisition audio and/or the mobile terminal camera capture image.
Further, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes storage
Device, at least one processor and at least one journey that is stored on the memory and can be performed at least one processor
Sequence, at least one program realize the step in method described in any one of the above embodiments when being performed by least one processor
Suddenly.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers
Readable storage medium storing program for executing is stored at least one program that computer can perform, and at least one program is performed by the computer
When the computer is made to perform the step in the above method.
Compared to the prior art, automatic detection dangerous approach proposed by the invention is acquired in real time residing for the mobile terminal
The voice signal of environment;Calculate the short-time energy value of each frame voice signal;It is default to judge whether that short-time energy value is more than
Energy threshold, and duration is more than two echo signal sections of the first preset duration;If there are described two echo signal sections,
Judge whether the time interval between described two echo signal sections is more than the second preset duration;If described two echo signal sections
Between time interval no more than second preset duration, control the mobile terminal calling preset number.In this way, the side
Method can judge current environment with the presence or absence of danger according to the voice signal of the mobile terminal local environment, and judge currently
The mobile terminal calling preset number is controlled to seek help in the case that environment is dangerous, can effectively ensure that it is seeking help and
Shi Xing reduces the possibility that user sustains damage.
Description of the drawings
Fig. 1 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of automatic detection dangerous approach provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another automatic detection dangerous approach provided in an embodiment of the present invention;
Fig. 5 is the sound waveform schematic diagram under a kind of noisy background environment provided in an embodiment of the present invention;
Fig. 6 is the sound waveform schematic diagram under a kind of quiet background environment provided in an embodiment of the present invention;
Fig. 7 is the flow diagram of another automatic detection dangerous approach provided in an embodiment of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer
The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
For moving except the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the components such as memory 109, processor 110 and power supply 111, the number of the processor 110 is at least one.Ability
Field technique personnel are appreciated that the mobile terminal structure shown in Fig. 1 does not form the restriction to mobile terminal, and mobile terminal can
To include either combining certain components or different components arrangement than illustrating more or fewer components.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receive and send messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates
Frequency unit 101 can also communicate with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can be according to need
It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
Formula, speech recognition mode, broadcast reception mode when under isotypes, it is that radio frequency unit 101 or WiFi module 102 are received or
The audio data stored in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103
The relevant audio output of specific function performed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, 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 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Display panel 1061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 107 can be used for receiving the number inputted or character information and generation and the use of mobile terminal
The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and at least one element that the input received is transferred in mobile terminal 100 or can use
In transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 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
Audio data, phone directory etc.) etc..In addition, memory 109 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 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part is stored in storage by running or performing the software program being stored in memory 109 and/or module and call
Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include at least one processing unit;Preferably, processor 110 can integrate application processor and modulation /demodulation processing
Device, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
The LTE system united as universal mobile communications technology, the LTE system include the UE (User Equipment, the use that communicate connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address is distributed and other functions, and PCRF2036 is business data flow and the strategy of IP bearing resources and charging control strategic decision-making
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., it does not limit herein.
Based on above-mentioned 100 hardware configuration of mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
Refering to Fig. 3, Fig. 3 is a kind of step flow chart of automatic detection dangerous approach provided in an embodiment of the present invention, described
Method is applied in a mobile terminal, as shown in figure 3, the method includes:
Step 301, the voice signal for acquiring the mobile terminal local environment in real time.
In the step, the method acquires the voice signal of the mobile terminal local environment in real time.Specifically, the side
Method can acquire the voice signal of the mobile terminal local environment in real time by the microphone of the mobile terminal.
Step 302, the short-time energy value for calculating each frame voice signal.
In the step, the method calculates each frame sound of the collected mobile terminal local environment of the method
The short-time energy value of signal.In some embodiments of the invention, the method can sample voice signal, obtain multiframe
Then the voice signal of sampled point including predetermined number calculates the sampled point of predetermined number of each frame voice signal in short-term
Energy value.In some embodiments of the invention, the predetermined number can be 256, i.e., the method can to voice signal into
Row sampling, will be per collected 256 sampled points as a frame voice signal.The method calculates each frame using preset formula
The short-time energy value of voice signal, the preset formula can be:
Where it is assumed that sound waveform time-domain signal is x (l), the signal that n-th of sampled point is obtained after adding window sub-frame processing is
Xn (m), m=0,1,2 ..., N-1;N is N=in the value of predetermined number, such as the embodiment for being 256 in the predetermined number
256。
Step 303 judges whether that short-time energy value is more than preset energy threshold value, and duration is more than first and presets
Two echo signal sections of duration.
In the step, the method judges whether that short-time energy value is more than preset energy threshold value, and the duration is big
In two echo signal sections of the first preset duration, if there are short-time energy values to be more than preset energy threshold value, and the duration is big
In two echo signal sections of the first preset duration, step 304 is performed;If on the contrary, it is more than there is no short-time energy value default
Energy threshold, and duration is more than two echo signal sections of the first preset duration, flow terminates or continues to execute step
303, until there are short-time energy values to be more than preset energy threshold value, and the duration is more than two targets letter of the first preset duration
Number section, performs step 304, in present invention embodiment shown in Fig. 3 by taking flow terminates as an example, but is not limited thereto.
The method judges whether that short-time energy value is more than preset energy threshold value, and duration is more than first and presets
The mode of two echo signal sections of duration can be specifically that the method judges whether the short-time energy value of voice signal section is big
In preset energy threshold value, if the short-time energy value of the voice signal section is more than the preset energy threshold value, the method is into one
Step judges that the short-time energy value of the voice signal section is preset more than whether the duration of the preset energy threshold value is more than first
Duration, if the short-time energy value of the voice signal is default more than described first more than the duration of the preset energy threshold value
Long, the method determines Duan Weiyi echo signal section of the voice signal, in the sound for judging the mobile terminal local environment
After including an echo signal section, the method is further determined whether also there are another echo signal section, if in the presence of described
Method determines in the sound of the mobile terminal local environment that there are short-time energy values to be more than preset energy threshold value, and duration
More than two echo signal sections of the first preset duration.
Specifically, the method may determine that whether the short-time energy value of each frame voice signal is more than the preset energy
Threshold value, if the short-time energy value of a certain frame voice signal is more than the preset energy threshold value, the method records frame sound letter
Number at the time of for the t1 moment, the method continues to judge that the short-time energy value of other frame voice signals after the frame voice signal is
It is no to be more than the preset energy threshold value, if the short-time energy value of another frame voice signal after the frame voice signal is no more than described
Preset energy threshold value, the method are the t2 moment at the time of recording another frame voice signal, and (t2-t1) is this section of sound letter
Number short-time energy is more than the duration of the preset energy threshold value, and the method judges whether (t2-t1) is more than described first
Preset duration, if (t2-t1), more than first preset duration, the method determines that the voice signal section is echo signal section.
In the embodiment of the present invention, first preset duration can be 3s, in this way, the method can be avoided vehicle whistle etc. effectively
Distance speech pulse is judged as hazard event acoustic impluse, reduces the probability of erroneous judgement.
Step 304 judges whether the time interval between described two echo signal sections is more than the second preset duration.
In the step, if there are short-time energy values to be more than preset energy threshold value, and duration is more than the first preset duration
Two echo signal sections, the method further judges whether time interval between described two echo signal sections is more than the
Two preset durations, if the time interval between described two echo signal sections performs step no more than second preset duration
305;On the contrary, if the time interval between described two echo signal sections is more than second preset duration, flow terminates.It should
In embodiment, second preset duration can be 4s, it is to be understood that the longer echo signal section of two interval times can
Can be incident twice, environment may generate continuous sound, such as continuous shot or continuous when hazard event occurs
Sound of call for help or earthquake sound etc..Therefore, in the step, the method is between described two echo signal sections are judged
When time interval is not more than second preset duration, determine that the environment residing for the mobile terminal may cause danger event,
Perform step 305.
Step 305, the control mobile terminal calling preset number.
In the step, when the time interval between described two echo signal sections is not more than second preset duration,
The method controls the mobile terminal calling preset number, i.e., when the method judges that the environment residing for the mobile terminal can
During the dangerous event of energy, the mobile terminal calling preset number is controlled.The preset number can be user according to oneself
Demand setting number, such as can be the household that can be cried for help of user setting or the number of friend or silent
The alarm number (such as " 110 ") recognized, the embodiment of the present invention is not especially limited this.
In the present embodiment, the automatic detection dangerous approach acquires the sound letter of the mobile terminal local environment in real time
Number;Calculate the short-time energy value of each frame voice signal;Judge whether that short-time energy value is more than preset energy threshold value, and holds
Continuous duration is more than two echo signal sections of the first preset duration;If there are described two echo signal sections, judge described two
Whether the time interval between echo signal section is more than the second preset duration;If between the time between described two echo signal sections
Every no more than second preset duration, the mobile terminal calling preset number is controlled.In this way, the method can be according to institute
The voice signal for stating mobile terminal local environment judges current environment with the presence or absence of danger, and judging that current environment is dangerous
In the case of the mobile terminal calling preset number is controlled to seek help, can effectively ensure that the promptness sought help, reduce and use
The possibility that family sustains damage.
Optionally, if the time interval between described two echo signal sections is not more than second preset duration,
The mobile terminal calling preset number is controlled, including:
If the time interval between described two echo signal sections is no more than second preset duration, described mobile whole
End provides user interface and chooses whether calling preset number for user;
If it is not received by confirming call if receiving in confirming call operation input by user or third preset duration
Operation, controls the mobile terminal calling preset number.
In the embodiment, time interval of the method between described two echo signal sections are judged is no more than described the
Two preset durations, the method will not directly control preset number described in the mobile terminal calling, but described mobile whole
End provides user interface and chooses whether calling preset number for user, and for example, the method can be in the mobile terminal
User interface is provided and chooses whether that the mode of calling preset number can provide selection interface in the mobile terminal for user
It is selected for user, selected in the selection interface that user can provide in the mobile terminal or the shifting can be controlled
Dynamic terminal speech prompts the user to choose whether calling preset number, and user can be selected with input voice information.In this way, when using
When family is inconvenient or can not perform operation on mobile terminals, the movement can be controlled in a manner of directly by phonetic entry
Preset number described in terminal call, facilitates user to cry for help in time.
If the method receives confirming call operation input by user, the method controls the mobile terminal calling institute
Preset number is stated, the confirming call operation can be the choosing performed in the selection interface that user provides on the mobile terminal
The selection operation for confirming calling or default voice messaging input by user are selected, such as "Yes", " confirmation ", " confirmation is exhaled
Cry " etc. voice messagings.
It is understood that in some embodiments of the invention, the method can set a response time limitation, such as
Only in response to the operation that user performs in third preset duration, in the case of operation is not carried out in third preset duration,
The method can directly control preset number described in the mobile terminal calling, can not also control the mobile terminal calling
The preset number.Specifically, user can be pre-set in the case of user in third preset duration is without operation from behaviour
Make, such as be arranged on the situation for not having operation in third preset duration and directly control described in the mobile terminal calling default number
Code does not control preset number described in the mobile terminal calling in the case where third preset duration does not operate.The reality
It applies in example, when the method is not received by confirming call operation in third preset duration, controls the mobile terminal calling
Preset number, in such manner, it is possible to cry for help in time in the case where user is inconvenient to confirm calling.
Optionally, it is described to choose whether calling preset number for user in mobile terminal offer user interface, including:
The mobile terminal sound is controlled to prompt the user to choose whether calling preset number;
If described receive confirming call operation input by user, the mobile terminal calling preset number is controlled, including:
If receiving default voice messaging input by user, the mobile terminal calling preset number is controlled.
In the embodiment, the method provides user interface in the mobile terminal and chooses whether default number of calling for user
The mode of code is specifically as follows the control mobile terminal sound and prompts the user to choose whether calling preset number, if receiving use
The default voice messaging of family input, the method control preset number described in the mobile terminal calling.In this way, when user is not square
When can not perform just or on mobile terminals operation, the mobile terminal can be controlled to exhale in a manner of directly by phonetic entry
The preset number is, user is facilitated to cry for help in time.
Referring to Fig. 4, Fig. 4 is the flow diagram of another automatic detection dangerous approach provided in an embodiment of the present invention, such as
Shown in Fig. 4, the method includes:
Step 401, the voice signal for acquiring the mobile terminal local environment in real time.
Step 402, the short-time energy value for calculating each frame voice signal.
The step 401 and step 402 are identical with the step 301 in present invention embodiment shown in Fig. 3 and step 302,
Details are not described herein again.
Step 403, the scene according to residing for the voice signal of the mobile terminal local environment determines the mobile terminal.
In the step, the method determines the mobile terminal institute according to the voice signal of the mobile terminal local environment
The scene at place.Specifically, the method can be according to determining the waveform of the voice signal of the mobile terminal local environment
Scene residing for mobile terminal.Such as shown in Figures 5 and 6, Fig. 5 is a kind of noisy background environment provided in an embodiment of the present invention
Under sound waveform schematic diagram, Fig. 6 is the sound waveform schematic diagram under a kind of quiet background environment provided in an embodiment of the present invention,
As it can be seen that when other amplitudes in addition to crest location are more than default amplitude, such as shown in figure 5, the method can determine
The mobile terminal is under noisy background environment (such as the loud environments such as market, station);On the contrary, when except crest location it
When other outer amplitudes are not more than default amplitude, such as shown in fig. 6, the method can determine that the mobile terminal is in peace
Under static background environment (such as the quiet environments such as playground).
It is understood that the method can also determine the mobile terminal institute according under multiple and different scenes from feature
The scene at place does not limit and scene as shown in Figures 5 and 6.
Step 404 determines that the corresponding energy threshold of scene residing for the mobile terminal is preset energy threshold value, wherein,
Different scenes corresponds to different energy thresholds.
In the step, the method determines that the corresponding energy threshold of scene residing for the mobile terminal is preset energy threshold
Value.Multiple and different scenes can be prestored in the embodiment of the present invention, in the mobile terminal and each scene corresponds to respectively
Energy threshold, scene of the method according to residing for the mobile terminal is from multiple energy values that the mobile terminal stores
It is preset energy threshold value to obtain energy threshold corresponding with the scene that the mobile terminal is presently in.
In the embodiment of the present invention, the method can acquire the background sound data under at least one scene in advance, then
The average value of the short-time energy value of background voice data under at least one scene is calculated, and will be under at least one scene
The average value of short-time energy value be multiplied by the corresponding predetermined coefficient of the scene, as the corresponding energy threshold of the scene.
Step 405 judges whether that short-time energy value is more than preset energy threshold value, and duration is more than first and presets
Two echo signal sections of duration.
In the step, the method judges whether that short-time energy value is more than preset energy threshold value, and the duration is big
In two echo signal sections of the first preset duration, if there are short-time energy values to be more than preset energy threshold value, and the duration is big
In two echo signal sections of the first preset duration, step 406 is performed;If on the contrary, it is more than there is no short-time energy value default
Energy threshold, and duration is more than two echo signal sections of the first preset duration, flow terminates or continues to execute step
405, until there are short-time energy values to be more than preset energy threshold value, and the duration is more than two targets letter of the first preset duration
Number section, performs step 406, in present invention embodiment shown in Fig. 4 by taking flow terminates as an example, but is not limited thereto.
Step 406 judges whether the time interval between described two echo signal sections is more than the second preset duration.
In the step, if there are short-time energy values to be more than preset energy threshold value, and duration is more than the first preset duration
Two echo signal sections, the method further judges whether time interval between described two echo signal sections is more than the
Two preset durations, if the time interval between described two echo signal sections performs step no more than second preset duration
407;On the contrary, if the time interval between described two echo signal sections is more than second preset duration, flow terminates.
Step 407, the control mobile terminal calling preset number.
The step 405 is identical to step 305 to step 407 and the step 303 in present invention embodiment shown in Fig. 3,
Details are not described herein again.
In the present embodiment, the automatic detection dangerous approach acquires the sound letter of the mobile terminal local environment in real time
Number;Calculate the short-time energy value of each frame voice signal;According to determining the voice signal of the mobile terminal local environment
Scene residing for mobile terminal;Scene according to residing for the mobile terminal determines corresponding preset energy threshold value, wherein, it is different
Scene correspond to different energy values and judge whether that short-time energy value is more than preset energy threshold value, and duration is more than the
Two echo signal sections of one preset duration;If there are described two echo signal sections, judge described two echo signal sections it
Between time interval whether be more than the second preset duration;If the time interval between described two echo signal sections is no more than described
Second preset duration controls the mobile terminal calling preset number.In this way, the method can be according to the mobile terminal institute
The voice signal of place's environment judges the environment that the mobile terminal is presently in, and according to the voice signal and the movement
Environment residing for terminal judges current environment with the presence or absence of danger, and institute is controlled in the case where judging that current environment is dangerous
It states mobile terminal calling preset number to seek help, can effectively ensure that the promptness sought help, what reduction user sustained damage can
It can property.
Optionally, the corresponding energy threshold of scene determined residing for the mobile terminal is preset energy threshold value, is wrapped
It includes:
Acquire the background sound data under at least one scene;
Calculate the average value of the short-time energy value of background voice data under at least one scene;
The average value of short-time energy value under at least one scene is multiplied by the corresponding predetermined coefficient of the scene, is made
For the corresponding energy threshold of the scene.
For example, in the embodiment of the present invention, the method can acquire the audio files under quiet environment, as peace and quiet
The background noise data of environment, and the average value E1 of the short-time energy value under quiet environment is calculated, similarly, acquire noisy environment
Under audio files, as the background noise data of noisy environment, and calculate the average value of the short-time energy value under noisy environment
E2.The average value can also be multiplied by often by the method using the average value as the corresponding energy value of each environment
As the corresponding energy value of each environment after the corresponding coefficient of a environment, for example, under quiet environment, the method can determine
First predetermined coefficient * E1 determine that the second predetermined coefficient * E2 are corresponding as noisy environment as the corresponding energy value of quiet environment
Energy value.In the present embodiment, first predetermined coefficient can be 3.5, and second predetermined coefficient can be 1.5.
Optionally, it is described to judge whether that short-time energy value is more than preset energy threshold value, and duration is more than first
Before two echo signal sections of preset duration, the method further includes:
Judge whether the short-time energy value of voice signal is more than the first energy value;
If the short-time energy value of voice signal is more than first energy value, it is pre- to judge whether that short-time energy value is more than
If energy threshold, and duration is more than two echo signal sections of the first preset duration, wherein, first energy value is little
In the preset energy threshold value.
In the embodiment, the method is when judging whether short-time energy value more than preset energy threshold value, and continuing
Before long two echo signal sections more than the first preset duration, also judge whether the short-time energy value of voice signal is more than first
Energy value, and it is more than first energy value in the short-time energy value of voice signal, it is described to judge whether short-time energy value
More than preset energy threshold value, and duration is more than two echo signal sections of the first preset duration, wherein, first energy
Value is no more than the preset energy threshold value.In some embodiments of the invention, first energy value can be quiet environment pair
The energy value answered, such as 3.5*E1.
In this way, the method is only more than first energy value in the short-time energy value of voice signal, it just can be further
Judge whether that short-time energy value is more than preset energy threshold value, and duration is more than two targets letter of the first preset duration
Number section.
Referring to Fig. 7, Fig. 7 is the flow diagram of another automatic detection dangerous approach provided in an embodiment of the present invention, such as
Shown in Fig. 7, the method includes:
Step 701, the voice signal for acquiring the mobile terminal local environment in real time.
The step 701 is identical with present invention step 301 shown in Fig. 3, and details are not described herein again.
Step 702 samples voice signal, obtains multiframe voice signal, wherein each frame voice signal is included in advance
If the sampled point of number.
In the step, the method samples voice signal, obtains multiframe voice signal, wherein each frame sound is believed
Number include the sampled point of predetermined number.In the present embodiment, the predetermined number be 256, i.e., the method to voice signal into
Row sampling, will be per collected 256 sampled points as a frame voice signal.
Step 703, calculate each frame voice signal predetermined number sampled point short-time energy value.
In the step, the method calculates the short-time energy value of the sampled point of the predetermined number of each frame voice signal, meter
It is described in detail in the step 302 of calculation method in the embodiment shown in fig. 3, details are not described herein again.
Step 704 judges whether that short-time energy value is more than preset energy threshold value, and duration is more than first and presets
Two echo signal sections of duration.
In the step, the method judges whether that short-time energy value is more than preset energy threshold value, and the duration is big
In two echo signal sections of the first preset duration, if there are short-time energy values to be more than preset energy threshold value, and the duration is big
In two echo signal sections of the first preset duration, step 705 is performed;If on the contrary, it is more than there is no short-time energy value default
Energy threshold, and duration is more than two echo signal sections of the first preset duration, flow terminates or continues to execute step
704, until there are short-time energy values to be more than preset energy threshold value, and the duration is more than two targets letter of the first preset duration
Number section, performs step 705, in present invention embodiment shown in Fig. 7 by taking flow terminates as an example, but is not limited thereto.
Step 705 judges whether the time interval between described two echo signal sections is more than the second preset duration.
In the step, if there are short-time energy values to be more than preset energy threshold value, and duration is more than the first preset duration
Two echo signal sections, the method further judges whether time interval between described two echo signal sections is more than the
Two preset durations, if the time interval between described two echo signal sections performs step no more than second preset duration
706;On the contrary, if the time interval between described two echo signal sections is more than second preset duration, flow terminates.
Step 706, the control mobile terminal calling preset number.
The step 704 is identical to step 305 to step 706 and the step 303 in present invention embodiment shown in Fig. 3,
Details are not described herein again.
Optionally, after the control mobile terminal calling preset number, the method further includes:
The geographical location information residing for the mobile terminal is obtained, and sends the geographical location to the preset number and believes
Breath;And/or
The microphone and/or camera of the mobile terminal are opened, and the mobile terminal is sent to the preset number
Microphone acquisition audio and/or the mobile terminal camera capture image.
In the embodiment, the method can be after preset number described in the mobile terminal calling be controlled, also into one
Step obtains the geographical location information residing for the mobile terminal, and sends the geographical location information, side to the preset number
Just callee understands the geographical location that dangerous situation occurs, so as to implement to rescue faster.
The method can also open the mobile terminal after preset number described in the mobile terminal calling is controlled
Microphone and/or camera;Audio that the microphone of the mobile terminal acquires and/or described is sent to the preset number
The image that the camera of mobile terminal captures.In this way, callee is facilitated to go and find out what's going in real time, and can be formulated according to real-time condition
Rescue method or change rescue method.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment method is can be with
It is completed by the relevant hardware of at least one program instruction, at least one program can be stored in shifting as shown in Figure 1
It in the memory 109 of dynamic terminal 100, and can be performed by the processor 110, at least one program is by the processor
110 realize following steps when performing:
The voice signal of the mobile terminal local environment is acquired in real time;
Calculate the short-time energy value of each frame voice signal;
Judge whether that short-time energy value is more than preset energy threshold value, and duration is more than the two of the first preset duration
A echo signal section;
If there are described two echo signal sections, judge whether the time interval between described two echo signal sections is more than
Second preset duration;
If the time interval between described two echo signal sections controls the movement no more than second preset duration
Terminal call preset number.
Optionally, if the time interval between described two echo signal sections is not more than second preset duration,
The mobile terminal calling preset number is controlled, including:
If the time interval between described two echo signal sections is no more than second preset duration, described mobile whole
End provides user interface and chooses whether calling preset number for user;
If it is not received by confirming call if receiving in confirming call operation input by user or third preset duration
Operation, controls the mobile terminal calling preset number.
Optionally, it is described to choose whether calling preset number for user in mobile terminal offer user interface, including:
The mobile terminal sound is controlled to prompt the user to choose whether calling preset number;
If described receive confirming call operation input by user, the mobile terminal calling preset number is controlled, including:
If receiving default voice messaging input by user, the mobile terminal calling preset number is controlled.
Optionally, it is described to judge whether that short-time energy value is more than preset energy threshold value, and duration is more than first
Before two echo signal sections of preset duration, when at least one program is performed by the processor 110, can also be achieved as
Lower step:
Scene according to residing for the voice signal of the mobile terminal local environment determines the mobile terminal;
It is preset energy threshold value to determine the corresponding energy threshold of scene residing for the mobile terminal, wherein, different fields
Scape corresponds to different energy thresholds.
Optionally, the corresponding energy threshold of scene determined residing for the mobile terminal is preset energy threshold value, is wrapped
It includes:
Acquire the background sound data under at least one scene;
Calculate the average value of the short-time energy value of background voice data under at least one scene;
The average value of short-time energy value under at least one scene is multiplied by the corresponding predetermined coefficient of the scene, is made
For the corresponding energy threshold of the scene.
Optionally, the short-time energy value for calculating each frame voice signal, including:
Voice signal is sampled, obtains multiframe voice signal, wherein each frame voice signal includes predetermined number
Sampled point;
Calculate the short-time energy value of the sampled point of the predetermined number of each frame voice signal.
Optionally, it is described to judge whether that short-time energy value is more than preset energy threshold value, and duration is more than first
Before two echo signal sections of preset duration, when at least one program is performed by the processor 110, can also be achieved as
Lower step:
Judge whether the short-time energy value of voice signal is more than the first energy value;
If the short-time energy value of voice signal is more than first energy value, it is pre- to judge whether that short-time energy value is more than
If energy threshold, and duration is more than two echo signal sections of the first preset duration, wherein, first energy value is little
In the preset energy threshold value.
Optionally, after the control mobile terminal calling preset number, at least one program is by the place
When managing the execution of device 110, following steps are can also be achieved:
The geographical location information residing for the mobile terminal is obtained, and sends the geographical location to the preset number and believes
Breath;And/or
The microphone and/or camera of the mobile terminal are opened, and the mobile terminal is sent to the preset number
Microphone acquisition audio and/or the mobile terminal camera capture image.
One of ordinary skill in the art will appreciate that all or part of step for realizing above-described embodiment method is can be with
It is completed by the relevant hardware of at least one program instruction, at least one program can be stored in one and computer-readable deposit
In storage media, which when being executed, includes the following steps:
The voice signal of the mobile terminal local environment is acquired in real time;
Calculate the short-time energy value of each frame voice signal;
Judge whether that short-time energy value is more than preset energy threshold value, and duration is more than the two of the first preset duration
A echo signal section;
If there are described two echo signal sections, judge whether the time interval between described two echo signal sections is more than
Second preset duration;
If the time interval between described two echo signal sections controls the movement no more than second preset duration
Terminal call preset number.
Optionally, if the time interval between described two echo signal sections is not more than second preset duration,
The mobile terminal calling preset number is controlled, including:
If the time interval between described two echo signal sections is no more than second preset duration, described mobile whole
End provides user interface and chooses whether calling preset number for user;
If it is not received by confirming call if receiving in confirming call operation input by user or third preset duration
Operation, controls the mobile terminal calling preset number.
Optionally, it is described to choose whether calling preset number for user in mobile terminal offer user interface, including:
The mobile terminal sound is controlled to prompt the user to choose whether calling preset number;
If described receive confirming call operation input by user, the mobile terminal calling preset number is controlled, including:
If receiving default voice messaging input by user, the mobile terminal calling preset number is controlled.
Optionally, it is described to judge whether that short-time energy value is more than preset energy threshold value, and duration is more than first
Before two echo signal sections of preset duration, at least one program is performed, and can also be achieved following steps:
Scene according to residing for the voice signal of the mobile terminal local environment determines the mobile terminal;
It is preset energy threshold value to determine the corresponding energy threshold of scene residing for the mobile terminal, wherein, different fields
Scape corresponds to different energy thresholds.
Optionally, the corresponding energy threshold of scene determined residing for the mobile terminal is preset energy threshold value, is wrapped
It includes:
Acquire the background sound data under at least one scene;
Calculate the average value of the short-time energy value of background voice data under at least one scene;
The average value of short-time energy value under at least one scene is multiplied by the corresponding predetermined coefficient of the scene, is made
For the corresponding energy threshold of the scene.
Optionally, the short-time energy value for calculating each frame voice signal, including:
Voice signal is sampled, obtains multiframe voice signal, wherein each frame voice signal includes predetermined number
Sampled point;
Calculate the short-time energy value of the sampled point of the predetermined number of each frame voice signal.
Optionally, it is described to judge whether that short-time energy value is more than preset energy threshold value, and duration is more than first
Before two echo signal sections of preset duration, at least one program is performed, and can also be achieved following steps:
Judge whether the short-time energy value of voice signal is more than the first energy value;
If the short-time energy value of voice signal is more than first energy value, it is pre- to judge whether that short-time energy value is more than
If energy threshold, and duration is more than two echo signal sections of the first preset duration, wherein, first energy value is little
In the preset energy threshold value.
Optionally, after the control mobile terminal calling preset number, at least one program is performed,
It can also be achieved following steps:
The geographical location information residing for the mobile terminal is obtained, and sends the geographical location to the preset number and believes
Breath;And/or
The microphone and/or camera of the mobile terminal are opened, and the mobile terminal is sent to the preset number
Microphone acquisition audio and/or the mobile terminal camera capture image.
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 elements, and
And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device institute
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
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 of the present invention substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes
Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of automatic detection dangerous approach, applied to mobile terminal, which is characterized in that the method includes:
The voice signal of the mobile terminal local environment is acquired in real time;
Calculate the short-time energy value of each frame voice signal;
Judge whether that short-time energy value is more than preset energy threshold value, and duration is more than two mesh of the first preset duration
Mark signal segment;
If there are described two echo signal sections, judge whether the time interval between described two echo signal sections is more than second
Preset duration;
If the time interval between described two echo signal sections controls the mobile terminal no more than second preset duration
Call preset number.
2. detection dangerous approach as described in claim 1 automatic, which is characterized in that if described two echo signal sections it
Between time interval no more than second preset duration, control the mobile terminal calling preset number, including:
If the time interval between described two echo signal sections is carried no more than second preset duration in the mobile terminal
For user interface calling preset number is chosen whether for user;
If it is not received by confirming call behaviour if receiving in confirming call operation input by user or third preset duration
Make, control the mobile terminal calling preset number.
3. automatic detection dangerous approach as claimed in claim 2, which is characterized in that described to provide user in the mobile terminal
Interface for users chooses whether calling preset number, including:
The mobile terminal sound is controlled to prompt the user to choose whether calling preset number;
If described receive confirming call operation input by user, the mobile terminal calling preset number is controlled, including:
If receiving default voice messaging input by user, the mobile terminal calling preset number is controlled.
4. automatic detection dangerous approach as described in claim 1, which is characterized in that described to judge whether short-time energy value
More than preset energy threshold value, and duration is more than before two echo signal sections of the first preset duration, and the method is also wrapped
It includes:
Scene according to residing for the voice signal of the mobile terminal local environment determines the mobile terminal;
It is preset energy threshold value to determine the corresponding energy threshold of scene residing for the mobile terminal, wherein, different scenes pair
Answer different energy thresholds.
5. automatic detection dangerous approach as claimed in claim 4, which is characterized in that described to determine residing for the mobile terminal
The corresponding energy threshold of scene is preset energy threshold value, including:
Acquire the background sound data under at least one scene;
Calculate the average value of the short-time energy value of background voice data under at least one scene;
The average value of short-time energy value under at least one scene is multiplied by the corresponding predetermined coefficient of the scene, as institute
State the corresponding energy threshold of scene.
6. automatic detection dangerous approach as described in claim 1, which is characterized in that described to calculate the short of each frame voice signal
When energy value, including:
Voice signal is sampled, obtains multiframe voice signal, wherein each frame voice signal includes the sampling of predetermined number
Point;
Calculate the short-time energy value of the sampled point of the predetermined number of each frame voice signal.
7. automatic detection dangerous approach as described in claim 1, which is characterized in that described to judge whether short-time energy value
More than preset energy threshold value, and duration is more than before two echo signal sections of the first preset duration, and the method is also wrapped
It includes:
Judge whether the short-time energy value of voice signal is more than the first energy value;
If the short-time energy value of voice signal is more than first energy value, judge whether that short-time energy value is more than default energy
Threshold value is measured, and duration is more than two echo signal sections of the first preset duration, wherein, first energy value is not more than institute
State preset energy threshold value.
8. automatic detection dangerous approach as described in any one of claim 1 to 7, which is characterized in that the control movement
After terminal call preset number, the method further includes:
The geographical location information residing for the mobile terminal is obtained, and the geographical location information is sent to the preset number;
And/or
The microphone and/or camera of the mobile terminal are opened, and the wheat of the mobile terminal is sent to the preset number
The image that the audio of gram elegance collection and/or the camera of the mobile terminal capture.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, at least one processor and is stored in institute
At least one program stated on memory and can performed at least one processor, at least one program by it is described extremely
A few processor realizes the step in 1~8 any one of them method of the claims when performing.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer to can perform at least
One program, which is characterized in that at least one program makes the computer perform above-mentioned power when being performed by the computer
Profit requires the step in 1~8 any one of them method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711371637.1A CN108234751B (en) | 2017-12-19 | 2017-12-19 | Automatic danger detection method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711371637.1A CN108234751B (en) | 2017-12-19 | 2017-12-19 | Automatic danger detection method, mobile terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108234751A true CN108234751A (en) | 2018-06-29 |
CN108234751B CN108234751B (en) | 2020-12-18 |
Family
ID=62652396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711371637.1A Active CN108234751B (en) | 2017-12-19 | 2017-12-19 | Automatic danger detection method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108234751B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109493884A (en) * | 2018-12-06 | 2019-03-19 | 江苏满运软件科技有限公司 | A kind of outside sound source safety prompt function method, system, equipment and medium |
CN110189770A (en) * | 2019-06-18 | 2019-08-30 | 北京达佳互联信息技术有限公司 | Voice data processing method, device, terminal, server and medium |
CN112365899A (en) * | 2020-10-30 | 2021-02-12 | 北京小米松果电子有限公司 | Voice processing method, device, storage medium and terminal equipment |
CN113613155A (en) * | 2021-07-24 | 2021-11-05 | 武汉左点科技有限公司 | Hearing aid method and device adaptive to environment |
CN113613155B (en) * | 2021-07-24 | 2024-04-26 | 武汉左点科技有限公司 | Hearing aid method and device for self-adaptive environment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060134888A (en) * | 2006-12-07 | 2006-12-28 | 박철 | Industrial voice announcement system |
CN102184615A (en) * | 2011-05-09 | 2011-09-14 | 关建超 | Alarming method and system according to sound sources |
CN103873694A (en) * | 2014-03-27 | 2014-06-18 | 惠州Tcl移动通信有限公司 | Method and system used for automatically sending notification message under emergent conditions and based on mobile terminal |
-
2017
- 2017-12-19 CN CN201711371637.1A patent/CN108234751B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060134888A (en) * | 2006-12-07 | 2006-12-28 | 박철 | Industrial voice announcement system |
CN102184615A (en) * | 2011-05-09 | 2011-09-14 | 关建超 | Alarming method and system according to sound sources |
CN103873694A (en) * | 2014-03-27 | 2014-06-18 | 惠州Tcl移动通信有限公司 | Method and system used for automatically sending notification message under emergent conditions and based on mobile terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109493884A (en) * | 2018-12-06 | 2019-03-19 | 江苏满运软件科技有限公司 | A kind of outside sound source safety prompt function method, system, equipment and medium |
CN110189770A (en) * | 2019-06-18 | 2019-08-30 | 北京达佳互联信息技术有限公司 | Voice data processing method, device, terminal, server and medium |
CN110189770B (en) * | 2019-06-18 | 2021-06-25 | 北京达佳互联信息技术有限公司 | Voice data processing method, device, terminal, server and medium |
CN112365899A (en) * | 2020-10-30 | 2021-02-12 | 北京小米松果电子有限公司 | Voice processing method, device, storage medium and terminal equipment |
CN113613155A (en) * | 2021-07-24 | 2021-11-05 | 武汉左点科技有限公司 | Hearing aid method and device adaptive to environment |
CN113613155B (en) * | 2021-07-24 | 2024-04-26 | 武汉左点科技有限公司 | Hearing aid method and device for self-adaptive environment |
Also Published As
Publication number | Publication date |
---|---|
CN108234751B (en) | 2020-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108196741A (en) | Application split screen method, terminal and computer readable storage medium based on flexible screen | |
CN107027114A (en) | A kind of SIM card switching method, equipment and computer-readable recording medium | |
CN107995354A (en) | A kind of application control method, terminal and computer-readable recording medium | |
CN108289174A (en) | A kind of image pickup method, mobile terminal and computer readable storage medium | |
CN108391190B (en) | A kind of noise-reduction method, earphone and computer readable storage medium | |
CN108307030A (en) | A kind of SIM card management method, equipment and computer readable storage medium | |
CN109656371A (en) | Mobile terminal eye care method, device, mobile terminal and storage medium | |
CN109151169A (en) | Camera right management method, mobile terminal and computer readable storage medium | |
CN108234766A (en) | Microphone switching method, mobile terminal and computer readable storage medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN108553896A (en) | A kind of status information display control method, terminal and computer readable storage medium | |
CN108762631A (en) | A kind of method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN108512991A (en) | A kind of based reminding method, mobile terminal and computer readable storage medium | |
CN109584897A (en) | Vedio noise reduction method, mobile terminal and computer readable storage medium | |
CN108234751A (en) | A kind of automatic detection dangerous approach, mobile terminal and computer readable storage medium | |
CN108600513A (en) | A kind of record screen control method, equipment and computer readable storage medium | |
CN108156325A (en) | A kind of double-sided screen Incoming-call control method, equipment and computer readable storage medium | |
CN108563388A (en) | Screen operating method, mobile terminal and computer readable storage medium | |
CN108226880A (en) | Ultrasonic distance detects anti-tampering method, apparatus and storage medium | |
CN109309762A (en) | Message treatment method, device, mobile terminal and storage medium | |
CN110052024A (en) | Method of adjustment, adjustment device, mobile terminal and the storage medium of game vibration | |
CN109101301A (en) | A kind of display control method, mobile terminal and computer readable storage medium | |
CN108629863A (en) | Method, mobile terminal and the readable storage medium storing program for executing being automatically signing in the application | |
CN108260009A (en) | Method for processing video frequency, mobile terminal and computer readable storage medium | |
CN108187346A (en) | It is a kind of to prevent using plug-in method, terminal and storage medium |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20201208 Address after: No. 1601002, phase II, Hualong Bubugao Plaza, No. 90, Jianshe South Road, Yuetang District, Xiangtan City, Hunan Province Applicant after: Hunan ta'ao Communication Co., Ltd Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor Applicant before: NUBIA TECHNOLOGY Co.,Ltd. |
|
TA01 | Transfer of patent application right |