CN103139394A - Answering or hanging up process method and system based on incoming call of mobile phone - Google Patents

Answering or hanging up process method and system based on incoming call of mobile phone Download PDF

Info

Publication number
CN103139394A
CN103139394A CN2013100900496A CN201310090049A CN103139394A CN 103139394 A CN103139394 A CN 103139394A CN 2013100900496 A CN2013100900496 A CN 2013100900496A CN 201310090049 A CN201310090049 A CN 201310090049A CN 103139394 A CN103139394 A CN 103139394A
Authority
CN
China
Prior art keywords
mobile phone
incoming call
action events
microphone
hang
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013100900496A
Other languages
Chinese (zh)
Other versions
CN103139394B (en
Inventor
雷明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Weihai high tech Park Operation Management Co.,Ltd.
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201310090049.6A priority Critical patent/CN103139394B/en
Publication of CN103139394A publication Critical patent/CN103139394A/en
Application granted granted Critical
Publication of CN103139394B publication Critical patent/CN103139394B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an answering or hanging up process method and a system based on an incoming call of a mobile phone. The answering or hanging up process method of the incoming call of the mobile phone comprises the following steps: detecting whether an operational affair of pressing a lateral key of the mobile phone exists or not when the mobile phone has the incoming call, and reminding users to flow air to a microphone of the mobile phone to answer or hand up the call when the operational affair of pressing the lateral key of the mobile phone is detected; judging whether the microphone of the mobile phone has a flowing air signal of a reserved threshold or not at a first reserved time, and controlling to answer or hang up the call when the microphone of the mobile phone having the flowing air signal of the reserved threshold is detected in the first reserved time. The answering or hanging up process method and the system based on the incoming call of the mobile phone can enable users to answer or hang up the call under the condition that only one hand is convenient, are very convenient and swift to operate, and can further effectively prevent misoperation by pressing keys and sound volume changing condition while blowing air for recognition.

Description

A kind of based on mobile phone incoming call sound or hang up processing method and system
Technical field
The present invention relates to the technical field that smart mobile phone receives calls, in particular a kind ofly carry out by volume key and air blowing voice recognition the method that incoming call sound is hung up operation.
Background technology
Current smart mobile phone screen is increasing, and frame is more and more narrow, when having beautiful mobile phone appearance, also band is served problem: a hand is difficult to the complete independently interface operation, usually need one and holding mobile phone, the another hand operates, and perhaps mobile phone is placed on desk or other object.Yet one of user is just holding other article on hand sometimes, is inconvenient to use two manual manipulations, and if have phone to call in, at this time receive calls will be comparatively difficulty.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, defects for prior art, a kind of incoming call sound based on mobile phone be provided or hang up processing method and system, providing a kind of mobile phone of comparatively simple and fast to answer or hang up mode of operation, convenience is provided busy the time for the user is daily.
The technical scheme that technical solution problem of the present invention adopts is as follows:
A kind of based on mobile phone incoming call sound or hang up processing method, wherein, comprise step:
A, when mobile phone has incoming call, detect the Action Events whether have by mobile phone side key;
B, when the Action Events that detects by mobile phone side key, point out the user that mobile microphone is blown to answer or hanging up calling;
Whether C, judgement detect the air blowing signal that mobile microphone has a reservation threshold within first scheduled time, when mobile microphone detected within first scheduled time, the air blowing signal of one reservation threshold is arranged, and control and answer or hang up described incoming call.
Described based on mobile phone incoming call sound or hang up processing method, wherein, also comprised before described steps A:
A1, set in advance and add microphone by mobile phone side key and receive being combined as of air blowing signal and control that mobile phone is answered or the command signal of hanging up calling.
Described based on mobile phone incoming call sound or hang up processing method, wherein, described mobile phone side key comprises the lower volume side switch of volume side switch and mobile phone on mobile phone.
Described based on mobile phone incoming call sound or hang up processing method, wherein, described step B comprises: B10, when the Action Events that detects by mobile phone side key, and described Action Events is the Action Events by volume side switch on mobile phone, point out the user to the mobile microphone incoming call answering of blowing;
Described step C comprises: C10, when described Action Events be by mobile phone on the Action Events of volume side switch, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and answer described incoming call.
Described based on mobile phone incoming call sound or hang up processing method, wherein, described step B also comprises: B20, when the Action Events that detects by mobile phone side key, and described Action Events is the Action Events by volume side switch under mobile phone, point out the user to the mobile microphone hanging up calling of blowing;
Described step C also comprises: C20, when described Action Events be by mobile phone under the Action Events of volume side switch, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and hang up described incoming call.
Described based on mobile phone incoming call sound or hang up processing method, wherein, described step B also comprises: when the Action Events that detects by mobile phone side key, control mobile phone and stop jingle bell, and the prompting user blows to answer or hanging up calling to mobile microphone.
A kind of based on mobile phone incoming call sound or hang up treatment system, wherein, comprising:
Detection module is used for detecting the Action Events that whether has by mobile phone side key when mobile phone has incoming call;
Prompting processing is used for pointing out the user that mobile microphone is blown to answer or hanging up calling when the Action Events that detects by mobile phone side key;
Judgement and control module, be used for judgement and the air blowing signal that mobile microphone has a reservation threshold whether detected within first scheduled time, when mobile microphone detected within first scheduled time, the air blowing signal of one reservation threshold is arranged, control and answer or hang up described incoming call.
Described based on mobile phone incoming call sound or hang up treatment system, wherein, it also comprises:
Set in advance module, be used for setting in advance and add microphone by mobile phone side key and receive being combined as of air blowing signal and control that mobile phone is answered or the command signal of hanging up calling.
Described based on mobile phone incoming call sound or hang up treatment system, wherein,
Described prompting processing comprises:
The first Tip element is used for when the Action Events that detect by mobile phone side key, and described Action Events is the Action Events by volume side switch on mobile phone, points out the user to the mobile microphone incoming call answering of blowing;
The second Tip element is used for when the Action Events that detect by mobile phone side key, and described Action Events is the Action Events by volume side switch under mobile phone, points out the user to the mobile microphone hanging up calling of blowing.
Described based on mobile phone incoming call sound or hang up treatment system, wherein,
Described judgement and control module comprise:
The first control unit, be used for when described Action Events be Action Events by volume side switch on mobile phone, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and answer described incoming call;
The second control unit, be used for when described Action Events be Action Events by volume side switch under mobile phone, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and hang up described incoming call.
Provided by the present invention a kind of based on mobile phone incoming call sound or hang up processing method and system, owing to having adopted in the mobile phone connecting incoming call, press upper volume key or lower volume key on the mobile phone side, make the electric bell sound to stop, and the prompting by mobile phone screen, then give a puff facing to microphone, can connect or hang up the telephone; Just can only have a hand can to answer or hang up the telephone in situation easily by such mode user, operation is very easy and simple and direct, and add the wave volume situation of change of identification when blowing by button, can also effectively prevent misoperation.
Description of drawings
Fig. 1 be the present invention a kind of based on mobile phone incoming call sound or hang up the flow chart of the preferred embodiment of processing method.
Fig. 2 be the present invention a kind of based on mobile phone incoming call sound or hang up the flow chart of the overall preferred embodiment that realizes of processing method.
Fig. 3 be the present invention a kind of based on mobile phone incoming call sound or hang up the flow chart of the preferred embodiment that the onKeyDown method of processing method carries out.
Fig. 4 be the present invention a kind of based on mobile phone incoming call sound or hang up the flow chart of the preferred embodiment that the onKeyUp method of processing method carries out.
Fig. 5 be the present invention a kind of based on mobile phone incoming call sound or hang up the system module structural representation of processing method.
Fig. 6 be the present invention a kind of based on mobile phone incoming call sound or hang up the prompting processing structural representation of processing method.
Fig. 7 be the present invention a kind of based on mobile phone incoming call sound or hang up judgement and the control module structural representation of processing method.
Fig. 8 be the present invention a kind of based on mobile phone incoming call sound or the air blowing sound of hanging up processing method know
Other oscillogram.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Embodiment one:
See also Fig. 1, Fig. 1 be the present invention a kind of based on mobile phone incoming call sound or hang up the flow chart of the preferred embodiment of processing method;
Step S11 when mobile phone has incoming call, detects the Action Events that whether has by mobile phone side key;
When user's mobile phone is in normal holding state, when having incoming call to connect, whether cell phone system has with automatic detection of handset side switch the Action Events that is pressed, if mobile phone side key detected, the event that is pressed is arranged, control so electric bell sound or vibration to stop, illustrate that the user has confirmed to know the information that incoming call is arranged, enter step S12; The Action Events of mobile phone side key if be not pressed, the incoming ring tone of mobile phone or vibrational state can be retained to the other side always and hang up, or answer operation and automatically stop jingle bell and hanging up calling because of overtime still unmanned the startup.
Step S12 when the Action Events that detects by mobile phone side key, points out the user that mobile microphone is blown to answer or hanging up calling;
S11 is described according to above-mentioned steps, if mobile phone receives incoming call and mobile phone side key detected, the operation that is pressed is arranged, and occurs so information on mobile phone screen, and suggestion content is for " receiving calls and please aim at the microphone air blowing! " or " hang up the telephone and please aim at the microphone air blowing! ", namely the user aims at the microphone operation of blowing according to the described suggestion content on previous step operation and mobile phone screen, further answering or to hang up the telephone, and enters thus step S13.
Step S13, whether judgement detects the air blowing signal that mobile microphone has a reservation threshold within first scheduled time, when mobile microphone detected within first scheduled time, the air blowing signal of one reservation threshold is arranged, and controls and answers or hang up described incoming call.
This step is according to the operation of previous step S12, receive the operation of user's air blowing when microphone after, this step will further judge the air blowing signal that mobile microphone has a reservation threshold whether detected within first scheduled time, when mobile microphone detected within first scheduled time, the air blowing signal of one reservation threshold is arranged, control and answer or hang up described incoming call.
such as, by audoiRecord in 0.1 second, have in 800 continuous data values being detected data value higher than 25000 data amount check greater than 10% of total data, and the data amount check higher than 20000 is greater than 20% of total data, can well distinguish the sound of other sound and the air blowing such as speak, so False Rate is very low, have much all greater than 25000 and 20000 in the data that get by audoiRecord, as shown in Figure 8, Fig. 8 be the present invention a kind of based on mobile phone incoming call sound or hang up the oscillogram of the air blowing voice recognition of processing method, draw by statistical analysis, can judge further that data are distinguished greater than 25000 and 20000 number blows and other sound, this method is very simple and effective, amount of calculation is very little, be well suited for the limited equipment of the such computing capability of mobile phone.
Air blowing voice recognition function canRecogenize (short[] buffer, int size) is achieved as follows:
private?boolean?canRecognize(short[]?b,?int?size)?{
Int than20000=0; // initializaing variable
Int than15000=0; // initializaing variable
for?(int?i?=?0;?i?<?size;?++i)?{
If (abs (b[i])〉20000) than20000++; // calculate the data amount check greater than 20000
If (abs (b[i])〉15000) than15000++; // calculate the data amount check greater than 15000
}
Return than20000〉size/10 || than15000〉size/5; // return results
}
Common size herein is 512, if greater than 800, should carry out segment processing again.
In sum, in the present embodiment, by pressing mobile phone side key when the mobile phone connecting incoming call, make the electric bell sound to stop, and the prompting by mobile phone screen, then microphone is blown, thereby can singlehanded complete the operation of answering or hanging up the telephone, therefore, very convenient user's routine use.
Described based on mobile phone incoming call sound or hang up processing method, wherein, also comprised before described step S11:
Step S111 sets in advance and adds microphone by mobile phone side key and receive being combined as of air blowing signal and control that mobile phone is answered or the command signal of hanging up calling.
Due to the user in using the mobile phone process, can freely select to arrange for incoming call sound or the operation hung up, therefore, if the user wishes to complete this generic operation by the mode of blowing, need to select in advance to arrange and add microphone by mobile phone side key and receive the combination of air blowing signal mobile phone is answered or the command signal of hanging up calling as controlling, and this setting is saved in the incoming call handling pattern.
above tupe for incoming call is generally to answer and the method setting of hanging up, thereby for more convenient again better difference answer and the operation judges of hanging up, therefore the operational order of answering that selection arranges when the upper volume side switch of mobile phone side key is corresponding sends a telegram here is guided, and the operational order of hanging up of selecting to arrange when maybe needing to finish this conversation when lower volume side switch is pressed corresponding incoming call is guided, and be saved in new incoming call handling pattern to selecting that corresponding button is set, answer and hang up operational order by the correspondence of volume key up and down of mobile phone side and guide the button custom that meets the daily handheld mobile phone operation of people, therefore such setting is that the most convenient use is also most suitable pattern.
Described based on mobile phone incoming call sound or hang up processing method, wherein, described step S12 comprises: step S1210, when the Action Events that detects by mobile phone side key, and described Action Events is the Action Events by volume side switch on mobile phone, points out the user to the mobile microphone incoming call answering of blowing;
for example, the user has set in advance and has added by mobile phone side key the combination that microphone receives the air blowing signal mobile phone is answered or the command signal of hanging up calling as controlling, and this setting is saved in the incoming call handling pattern, when user mobile phone has incoming call to connect, user's preparation is answered this incoming call and is pressed the upper volume key of mobile phone side, system detects the Action Events by volume side switch on mobile phone, point out the user that mobile microphone is blown and to answer this incoming call, due to user's single-hand handling ﹠ machine of shaking hands, when selection receives calls on first flicking mobile phone side volume button comparatively simple and facilitate, therefore save a lot of troubles when receiving calls to the user.
Described step S13 comprises: step S1310, when described Action Events be by mobile phone on the Action Events of volume side switch, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and answer described incoming call.
S1210 is described according to above-mentioned steps, this step is easily last operation of connecting incoming call of user, namely when pressing on mobile phone after the volume side switch, and then the user blows to mobile microphone, make system the air blowing signal that mobile microphone has a reservation threshold can be detected within first scheduled time, control and answer this incoming call.Realize the incoming call answering that user's single-hand handling ﹠ machine of shaking hands just can be easy and convenient.
Same, described based on mobile phone incoming call sound or hang up processing method, wherein, described step S12 also comprises: S1220, when the Action Events that detects by mobile phone side key, and described Action Events is the Action Events by volume side switch under mobile phone, points out the user to the mobile microphone hanging up calling of blowing;
for example, the user has set in advance and has added by mobile phone side key the combination that microphone receives the air blowing signal mobile phone is answered or the command signal of hanging up calling as controlling, and this setting is saved in the incoming call handling pattern, when user mobile phone has incoming call to connect, because this incoming call is inconvenient to answer and is wished to hang up to the user, perhaps the user has conversed a period of time with incoming call the other side, need to finish this conversation this moment, press the lower volume key of mobile phone side, system detects the Action Events by volume side switch under mobile phone, point out the user that mobile microphone is blown and to hang up this incoming call, due to user's single-hand handling ﹠ machine of shaking hands, when selection is hung up the telephone under first flicking mobile phone side volume button comparatively simple and facilitate, can much bother therefore save when hanging up the telephone to the user.
Described step S13 also comprises: step S1320, when described Action Events be by mobile phone under the Action Events of volume side switch, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and hang up described incoming call.
S1220 is described according to above-mentioned steps, this step is easily last operation of hanging up calling of user, namely when pressing under mobile phone after the volume side switch, and then the user blows to mobile microphone, make system the air blowing signal that mobile microphone has a reservation threshold can be detected within first scheduled time, control and hang up this incoming call.Realize the hanging up calling that user's single-hand handling ﹠ machine of shaking hands just can be easy and convenient or finish this conversation.
Described based on mobile phone incoming call sound or hang up processing method, wherein, described step S12 also comprises: when the Action Events that detects by mobile phone side key, control mobile phone and stop jingle bell, and the prompting user blows to answer or hanging up calling to mobile microphone.
Because each user knows when call-in reporting is arranged, prepare to have entered next step by beginning by mobile phone side key, mobile phone can be controlled and stopped jingle bell or vibration prompt this moment so, and the prompting user blows to answer or hang up this incoming call to mobile microphone.
above content is to based on the incoming call sound of mobile phone or hang up the mode of operation of processing method, by when receiving incoming call, after the user picks up mobile phone, by living in volume key or lower volume key, illustrate that the user confirmed to know and sent a telegram here this moment, therefore stop bell sound or vibration, and the intensity that begins to receive the voice data of microphone and analyze the frequency of sound, that sound frequency and the volume of blowing reaches requirement if identify, think and received air blowing sound, and according to the beginning upper volume key pinned of user or lower volume key, carry out receive calls operation or the operation of hanging up the telephone.Therefore, by using being used in combination the family and can processing quickly and easily cell phone incoming call of mobile phone side key and air blowing signal, user's work and life have greatly been facilitated.
Embodiment two:
In addition, by described incoming call sound based on mobile phone or hang up processing method, blow before sound receiving the user, should pass through screen synch information indicating user, with can incoming call answering after clearly telling the user to blow or will hang up the telephone, prevent that the user from pressing the wrong button; After volume key is pressed, timeout mechanism should be set, prevent volume key from being blocked by other object and misoperation during non-artificial pinning, as shown in Figure 2, Fig. 2 be the present invention a kind of based on mobile phone incoming call sound or hang up the flow chart of the overall preferred embodiment that realizes of processing method.
Below will be by a concrete Application Example to the incoming call sound based on mobile phone of the present invention or hang up overall realization of processing method and be described in further details:
Step S20, beginning;
Start mobile phone, make mobile phone be in normal holding state.
Step S21 receives incoming call, comes the electric bell sound equipment to rise;
User mobile phone receives an incoming call, and this moment, the electric bell sound equipment that comes of mobile phone rose, or with mobile phone vibration, and namely to have at this moment incoming call just waiting pending for call user's attention.
Step S22, the key-press event that judgement receives is upper volume key or lower volume key;
According to the incoming call event of previous step S21, whether the user selects will to receive calls or hang up the telephone according to present case, need to answer this incoming call if the user thinks, selects by upper volume key, and enters next step S231; If user's this moment, inconvenient incoming call answering need to be hung up this incoming call, select to press volume key, and enter next step S232.
Step S231, the bell sound stops;
Press the upper volume key of mobile phone side as the user, system has detected the button operation event, controls mobile phone ringtone and stops jingle bell, and enter step S241.
Step S241, the prompting user can answer after blowing;
Upper volume key being detected according to the above-mentioned steps mobile phone has the button operation order, and stops mobile phone ringtone, a suggestion content occurs again simultaneously and " receive calls and please aim at the microphone air blowing on mobile phone screen! ", then the user aims at microphone and blows out one breath, and enters step S251.
Step S251 receives microphone voice and analyzes;
After haveing broken up without a break according to the previous step user to mobile microphone, receive in the air blowing sound of microphone record and data that statistical analysis gets by audoiRecord and what are arranged greater than 25000 and 20000, judging that data are distinguished greater than 25000 and 20000 number blows or other sound again, and enters step S261.
Step S261 judges whether it is air blowing sound;
Receive after sound by audoiRecord and whether the received sound of statistical analysis is air blowing sound according to above-mentioned steps, if by data statistic analysis be defined as the blowing operation signal of sound, directly enter step S281; If determine not to be the operation signal of air blowing sound by data statistic analysis, enter step S271.
Does step S271 judge whether overtime?
Due in previous step S261, system detects the operation signal that is not air blowing sound, therefore this step judges to blow to detect whether exceed the scheduled time again, if do not exceed the scheduled time, goes back to again step S251 again to receiving the user to the air blowing sound of microphone and analyzing; If surpassed the scheduled time, directly enter step S29 after this button operation order and finish this incoming call handling.
Step S281 receives calls;
Analyze judgement according to step S261 and draw the sound of sound for blowing that mobile microphone receives, namely carry out the combination by upper volume key and air blowing signal of system's setting and can answer this incoming call, after the user connects phone, enter at last step S29 and finish this incoming call handling.
Same, when the user has selected to press volume key, complete successively according to following steps and hang up this incoming call handling:
Step S232, the bell sound stops;
Press the lower volume key of mobile phone side as the user, system has detected the button operation event, controls mobile phone ringtone and stops jingle bell, and enter step S242.
Step S242, the prompting user can be hung up after blowing;
Lower volume key being detected according to the above-mentioned steps mobile phone has the button operation order, and stops mobile phone ringtone, a suggestion content occurs again simultaneously and " hang up the telephone and please aim at the microphone air blowing on mobile phone screen! ", then the user aims at microphone and blows out one breath, and enters step S252.
Step S252 is hung up microphone voice and analyzes;
After haveing broken up without a break according to the previous step user to mobile microphone, receive in the air blowing sound of microphone record and data that statistical analysis gets by audoiRecord and what are arranged greater than 25000 and 20000, judging that data are distinguished greater than 25000 and 20000 number blows or other sound again, and enters step S262.
Step S262 judges whether it is air blowing sound;
Receive after sound by audoiRecord and whether the received sound of statistical analysis is air blowing sound according to above-mentioned steps, if by data statistic analysis be defined as the blowing operation signal of sound, directly enter step S282; If determine not to be the operation signal of air blowing sound by data statistic analysis, enter step S272.
Does step S272 judge whether overtime?
Due in previous step S262, system detects the operation signal that is not air blowing sound, therefore this step judges to blow to detect whether exceed the scheduled time again, if do not exceed the scheduled time, goes back to again step S252 again to receiving the user to the air blowing sound of microphone and analyzing; If surpassed the scheduled time, directly enter step S29 after this button operation order and finish this incoming call handling.
Step S282 hangs up the telephone;
Analyze judgement according to step S262 and draw the sound of sound for blowing that mobile microphone receives, the combination of pressing volume key and air blowing signal of namely having carried out system's setting can be hung up this incoming call, after the user hangs up the telephone, enter at last step S29 and finish this incoming call handling.
Step S29 finishes;
To answer or hang up the button operation command process overtime when system detects, and directly finishes this incoming call; And after the user normally answered or hung up phone, system's entering too finished this incoming call.
Wherein, at above-mentioned steps S251/252 to the implementation of step S29, need to use the AudioRecord class owing to obtaining microphone voice, can carry out initialization to the AudioRecord object in the operation interface object initialization that receives calls, specifying microphone in the time of initialized is data source, and the relative program step further illustrates as follows:
(MediaRecorder.AudioSource.MIC, // data source is microphone to AudioRecord ar=new AudioRecord
8000, the sample rate of // 8000Hz
AudioFormat.CHANNEL_CONFIGURATION_MONO, // monophony
AudioFormat.ENCODING_PCM_16BIT, // sample with 16 data encoding formaies
Buffersize); // cache size
Carry out recorded voice with AudioRecord object (ar) afterwards in the startListenThread function, and the sound under recording is processed.
The startListenThread function definition is as follows:
startListenThread(Runnable?operateCall)?{
StopRingTone (); // stop the bell sound
IsRecording=true; // end mark is for fictitious time finishes thread
Ar. startRecording (); // beginning recorded voice data
Short[] buffer=new short[bufferSize]; The buffer memory of voice data is deposited in // setting
New Thread (new Runnable () // new thread is set
@override
Public?viod?Run()?{
Boolean haveRecogenize=false; Whether // setting distinguishing mark.
While (isRecording) if // the isRecording flag bit is true, repeats always
Int readSize=ar.read (buffer, 0, bufferSize); // read voice data
If (! HaveRecogenize || canRecogenize (buffer, readSize)) if // can identify air blowing sound
HaveRecogenize=true; // record distinguishing mark
}
If (overtime) return; If // overtime withdraw from
}
If (haveRecogenize) if // identified air blowing sound
OpenrateCall.run (); // carry out and answer or hang up operation
}
}
) .start (); // new thread begins to carry out
}
IsRecording sign in this function is the condition of thread wire harness, can call stopListen () function when decontroling volume key, and it is defined as follows:
stopListen()?{
IsRecording=false; // end punctuate
Ar.stop () // stop recording
}
Above-mentioned according to shown in Figure 2 a kind of based on mobile phone incoming call sound or the flow chart of hanging up the overall preferred embodiment that realizes of processing method carried out concrete detailed description, can clearly recognize by the family that is used in combination by up and down volume key and air blowing signal the mobile phone incoming call handling operation is brought great convenience.
Embodiment three:
according to above embodiment one, two can know and recognize based on the incoming call sound of mobile phone or hang up the overall realization of processing method, now just the present invention is based on the incoming call sound of mobile phone or hang up that in processing method, the reception ﹠ disposal about the volume key event is further analyzed by embodiment, when mobile phone is received incoming call, can start and enter the operation interface that receives calls accordingly, we monitor key-press event in the code at this interface, and with following method: i.e. heavily loaded onKeyDown and onKeyUp method, wherein, the onKeyDown method be the user press any key all can be by system call, begin to open microphone and obtain data to carry out data analysis in the method, stop obtaining voice data in the onKeyUp method.Specific implementation of the present invention also can easily be transplanted to other cell phone system take Android system as example.
See also Fig. 3, Fig. 3 be the present invention a kind of based on mobile phone incoming call sound or hang up the flow chart of the preferred embodiment that the onKeyDown method of processing method carries out.Below will carry out the incoming call sound based on mobile phone of the present invention or the onKeyDown method of hanging up processing method by a concrete Application Example and be described in further details:
Step S31, the OnKeyDown method begins;
When user mobile phone receives incoming call, can start and enter the operation interface that receives calls accordingly, we monitor key-press event in the code at this interface, and heavily loaded onKeyDown method is prepared to receive the user and is pressed any key, and all can be called by system.
Step S32 determines whether that volume key presses;
Start and enter the operation interface that receives calls accordingly according to previous step, monitor key-press event in the code at this interface, whether the key-press event that judgement listens to is the Action Events that upper volume key is pressed, if the Action Events that upper volume key is pressed enters step S321; If not the Action Events that upper volume key is pressed, turn next determining step S33.
Step S321 starts new thread and answers operation startListenThread(new acceptCall(to obtain voice data and analyzing and processing and triggering));
S32 is described according to previous step, judgment result is that it is the Action Events of upper volume key, start new thread and answer operation startListenThread(new acceptCall(to obtain voice data and analyzing and processing and triggering)), shown in the concrete execution embodiment two of startListenThread function, the parameter of startListenThread method is a callback object, in order to be judged when the sound that receives will carry out when meeting the requirements answer or hang up operation, wherein, acceptCall is the object carried out that receives calls and operate, and it is defined as follows:
Class acceptCall implements Runnable // receive calls and can carry out the definition of class
@override
Public?void?Run()?{
// carry out the operation that receives calls
}
}
And acceptCall passes in the startListenThread method as parameter in the onKeyDown method, calling it after air blowing sound is identified confirmation operates and answers, be noted that: this callback object just can be performed after the user decontrols volume key, so, complete and enter step S35 after answering operation.
Step S33 determines whether that lower volume key presses;
According to previous step S32, the key-press event that listens to of judgement is not the Action Events that upper volume key is pressed, and therefore forwards this step to and determines whether that lower volume key presses, if the Action Events that lower volume key is pressed enters step S331; Action Events if not lower volume key is pressed turns next step S34.
Step S331 starts new thread and answers operation startListenThread(new rejectCall(to obtain voice data and analyzing and processing and triggering));
S32 is described according to previous step, judgment result is that it is the Action Events of lower volume key, start new thread and answer operation startListenThread(new rejectCall(to obtain voice data and analyzing and processing and triggering)), shown in the concrete execution embodiment two of startListenThread function, the parameter of startListenThread method is a callback object, in order to be judged when the sound that receives will carry out when meeting the requirements answer or hang up operation, wherein, rejectCall is the object carried out that receives calls and operate, and it is defined as follows:
Class rejectCall implements Runnable // hang up the telephone and can carry out the definition of class
@override
Public?void?Run()?{
// carry out the operation of hanging up the telephone
}
}
And rejectCall passes in the startListenThread method as parameter in the onKeyDown method, calling it after air blowing sound is identified confirmation operates and hangs up, be noted that equally: this callback object just can be performed after the user decontrols volume key, so, complete and enter step S35 after hanging up operation.
Step S34, the event of execution parent: super.onKeyDown;
S33 is described according to previous step, and judged result is not that lower volume key is pressed, and carries out the event of parent: super.onKeyDown, and namely supressing other any keys all has by the situation of system call, enters simultaneously step S35.
Step S35 finishes;
This step finishes for after previous step S321, step 331, step 34, the onKeyDown method being carried out.
In above method step, to carry out obtaining, analyze and operating of voice data in order to start a new thread by the onKeyDonw method, only the key of a start-up operation due to the onKeyDonw method after triggering button, do not complete and obtain the overall process of analyzing data, need in addition to continue to stop obtaining voice data by the execution of onKeyUp method, carry out place mat for next step can receive the voice data that obtains microphone could for clear and definite order of system.Therefore, as shown in Figure 4, Fig. 4 be the present invention a kind of based on mobile phone incoming call sound or hang up the flow chart of the preferred embodiment that the onKeyUp method of processing method carries out, the execution flow process of onKeyUp is as follows:
Step S41, the OnKeyUp method begins;
According to a upper method example, when any button of user mobile phone have trigger key-press event after, flicked again button and the OnKeyUp method detected and begin to carry out, and enter step S42 and judge.
Step S42 judges whether that volume key upsprings;
Detect according to previous step and carry out the onKeyUp method, will judge whether that at first volume key upsprings, if the button of upper volume key is upspring, directly enter step S45; Button if not upper volume key is upspring, and enters step S43 again and further judges.
Step S43 judges whether that lower volume key upsprings;
Not that upper volume key is upspring according to the previous step judged result, continue to carry out by this step determining whether that the button of lower volume key is upspring, if the button of lower volume key is upspring, directly enter step S45; Upspring if not lower volume key button, enter again step S44 and further carry out this method of operation.
Step S44, the event super.onKeyDown of execution parent;
S43 is described according to previous step, and its judged result is not that the button of lower volume key is upspring, and further carries out the event super.onKeyDown of parent, and namely other any keys are supressed situation about all having by system call, enter simultaneously step S46.
Step S45 stops obtaining data: stopListen();
According to above-mentioned steps S42 and step S43, when two judged results are the Action Events that upper volume key is upspring or lower volume key is upspring, all can the execution of this step stop obtaining data: stopListen(), allow and obtain that the thread of analyzing sound stops by flag bit is set in the stopListen function, namely all can call stopListen(when decontroling volume key) function, it is defined as follows:
stopListen()?{
IsRecording=false; // end punctuate
Ar.stop () // stop recording
}
And will enter thus step S46 and finish this method of operation.
Step S46 finishes;
This step finishes for after previous step S44 and step 45, the onKeyUp method being carried out.
The method that the reception ﹠ disposal of above-mentioned volume key event is specifically described in detail by heavily loaded onKeyDown and onKeyUp can easily begin to open microphone and obtain data to carry out data analysis and to stop obtaining voice data, bring a lot of convenience for the user uses mobile phone operation, make the relative user of feature operation of mobile phone use more reasonable in operating process and hommization.
Based on the embodiment of the unlocking screen method of above-mentioned a kind of movement-based terminal, the present invention also provides a kind of system of unlocking screen method of movement-based terminal, and as shown in Figure 5, described system comprises:
Detection module 52 is used for detecting the Action Events that whether has by mobile phone side key when mobile phone has incoming call; Specifically as mentioned above.
Prompting processing 53 is used for pointing out the user that mobile microphone is blown to answer or hanging up calling when the Action Events that detects by mobile phone side key; Specifically as mentioned above.
Judgement and control module 54, be used for judgement and the air blowing signal that mobile microphone has a reservation threshold whether detected within first scheduled time, when mobile microphone detected within first scheduled time, the air blowing signal of one reservation threshold is arranged, control and answer or hang up described incoming call; Specifically as mentioned above.
Described based on mobile phone incoming call sound or hang up treatment system, wherein, also comprise:
Set in advance module 51, be used for setting in advance and add microphone by mobile phone side key and receive being combined as of air blowing signal and control that mobile phone is answered or the command signal of hanging up calling.
Described based on mobile phone incoming call sound or hang up treatment system, wherein,
Described prompting processing 53 comprises:
The first Tip element 531 is used for when the Action Events that detect by mobile phone side key, and described Action Events is the Action Events by volume side switch on mobile phone, points out the user to the mobile microphone incoming call answering of blowing; Specifically as mentioned above.
The second Tip element 532 is used for when the Action Events that detect by mobile phone side key, and described Action Events is the Action Events by volume side switch under mobile phone, points out the user to the mobile microphone hanging up calling of blowing; Specifically as mentioned above.
Described based on mobile phone incoming call sound or hang up treatment system, wherein,
Described judgement and control module 54 comprise:
The first control unit 541, be used for when described Action Events be Action Events by volume side switch on mobile phone, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and answer described incoming call; Specifically as mentioned above.
The second control unit 542, be used for when described Action Events be Action Events by volume side switch under mobile phone, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and hang up described incoming call; Specifically as mentioned above.
In sum, provided by the present invention a kind of based on mobile phone incoming call sound or hang up processing method and system, owing to having adopted in the mobile phone connecting incoming call, press upper volume key or lower volume key on the mobile phone side, make the electric bell sound to stop, and the prompting by mobile phone screen, then give a puff facing to microphone, can connect or hang up the telephone; Just can only have a hand can to answer or hang up the telephone in situation easily by such mode user, operation is very easy and simple and direct, and add the wave volume situation of change of identification when blowing by button, can also effectively prevent misoperation.
Should be understood that; application of the present invention is not limited to above-mentioned giving an example; for those of ordinary skills; can be improved according to the above description or conversion; hang up function such as completing switching on and shutting down or answer by button and the combination of blowing at the various mobile devices with volume key or other buttons such as MP4, MP5, Ipad, all these improve and conversion all should belong to the protection range of claims of the present invention.

Claims (10)

1. one kind based on the incoming call sound of mobile phone or hang up processing method, it is characterized in that, comprises step:
A, when mobile phone has incoming call, detect the Action Events whether have by mobile phone side key;
B, when the Action Events that detects by mobile phone side key, point out the user that mobile microphone is blown to answer or hanging up calling;
Whether C, judgement detect the air blowing signal that mobile microphone has a reservation threshold within first scheduled time, when mobile microphone detected within first scheduled time, the air blowing signal of one reservation threshold is arranged, and control and answer or hang up described incoming call.
According to claim 1 based on mobile phone incoming call sound or hang up processing method, it is characterized in that, also comprised before described steps A:
A1, set in advance and add microphone by mobile phone side key and receive being combined as of air blowing signal and control that mobile phone is answered or the command signal of hanging up calling.
According to claim 1 based on mobile phone incoming call sound or hang up processing method, it is characterized in that, described mobile phone side key comprises the lower volume side switch of volume side switch and mobile phone on mobile phone.
According to claim 1 based on mobile phone incoming call sound or hang up processing method, it is characterized in that, described step B comprises: B10, when the Action Events that detects by mobile phone side key, and described Action Events is the Action Events by volume side switch on mobile phone, points out the user to the mobile microphone incoming call answering of blowing;
Described step C comprises: C10, when described Action Events be by mobile phone on the Action Events of volume side switch, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and answer described incoming call.
According to claim 1 based on mobile phone incoming call sound or hang up processing method, it is characterized in that, described step B also comprises: B20, when the Action Events that detects by mobile phone side key, and described Action Events is the Action Events by volume side switch under mobile phone, points out the user to the mobile microphone hanging up calling of blowing;
Described step C also comprises: C20, when described Action Events be by mobile phone under the Action Events of volume side switch, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and hang up described incoming call.
According to claim 1 based on mobile phone incoming call sound or hang up processing method, it is characterized in that, described step B also comprises: when the Action Events that detects by mobile phone side key, control mobile phone and stop jingle bell, and the prompting user blows to answer or hanging up calling to mobile microphone.
7. one kind based on the incoming call sound of mobile phone or hang up treatment system, it is characterized in that, comprising:
Detection module is used for detecting the Action Events that whether has by mobile phone side key when mobile phone has incoming call;
Prompting processing is used for pointing out the user that mobile microphone is blown to answer or hanging up calling when the Action Events that detects by mobile phone side key;
Judgement and control module, be used for judgement and the air blowing signal that mobile microphone has a reservation threshold whether detected within first scheduled time, when mobile microphone detected within first scheduled time, the air blowing signal of one reservation threshold is arranged, control and answer or hang up described incoming call.
8. according to claim 7 based on the incoming call sound of mobile phone or hang up treatment system, it is characterized in that, it also comprises:
Set in advance module, be used for setting in advance and add microphone by mobile phone side key and receive being combined as of air blowing signal and control that mobile phone is answered or the command signal of hanging up calling.
9. according to claim 7 based on the incoming call sound of mobile phone or hang up treatment system, it is characterized in that,
Described prompting processing comprises:
The first Tip element is used for when the Action Events that detect by mobile phone side key, and described Action Events is the Action Events by volume side switch on mobile phone, points out the user to the mobile microphone incoming call answering of blowing;
The second Tip element is used for when the Action Events that detect by mobile phone side key, and described Action Events is the Action Events by volume side switch under mobile phone, points out the user to the mobile microphone hanging up calling of blowing.
10. according to claim 9 based on the incoming call sound of mobile phone or hang up treatment system, it is characterized in that,
Described judgement and control module comprise:
The first control unit, be used for when described Action Events be Action Events by volume side switch on mobile phone, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and answer described incoming call;
The second control unit, be used for when described Action Events be Action Events by volume side switch under mobile phone, and the air blowing signal that mobile microphone has a reservation threshold detected within first scheduled time, control and hang up described incoming call.
CN201310090049.6A 2013-03-20 2013-03-20 A kind of incoming call sound based on mobile phone or hang up processing method and system Active CN103139394B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310090049.6A CN103139394B (en) 2013-03-20 2013-03-20 A kind of incoming call sound based on mobile phone or hang up processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310090049.6A CN103139394B (en) 2013-03-20 2013-03-20 A kind of incoming call sound based on mobile phone or hang up processing method and system

Publications (2)

Publication Number Publication Date
CN103139394A true CN103139394A (en) 2013-06-05
CN103139394B CN103139394B (en) 2015-08-19

Family

ID=48498676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310090049.6A Active CN103139394B (en) 2013-03-20 2013-03-20 A kind of incoming call sound based on mobile phone or hang up processing method and system

Country Status (1)

Country Link
CN (1) CN103139394B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888609A (en) * 2014-03-13 2014-06-25 宇龙计算机通信科技(深圳)有限公司 Incoming call processing method and system
CN104238755A (en) * 2014-09-22 2014-12-24 广东小天才科技有限公司 Method and device for adjusting general parameters of intelligent wearing device
CN104615358A (en) * 2015-02-06 2015-05-13 掌赢信息科技(上海)有限公司 Application program starting method and electronic device
CN104660808A (en) * 2015-02-04 2015-05-27 小米科技有限责任公司 Communication control method and related communication equipment
CN104821996A (en) * 2015-06-02 2015-08-05 广东欧珀移动通信有限公司 Method for answering or hanging up mobile terminal, and system thereof
CN105187661A (en) * 2015-09-28 2015-12-23 小米科技有限责任公司 Incoming call processing method and device
CN107301765A (en) * 2016-04-15 2017-10-27 零度智控(北京)智能科技有限公司 Remote control thereof, device and terminal
CN108737625A (en) * 2017-04-13 2018-11-02 北京嘀嘀无限科技发展有限公司 A kind of terminal and call processing method
CN111866264A (en) * 2019-04-28 2020-10-30 重庆赫皇科技咨询有限公司 Mobile terminal with auxiliary blowing operation device and control method thereof
WO2023034010A1 (en) * 2021-09-01 2023-03-09 Snap Inc. Physical action-based augmented reality communication exchanges

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100227640A1 (en) * 2009-03-03 2010-09-09 Jong Hwan Kim Mobile terminal and operation control method thereof
CN101968709A (en) * 2010-09-17 2011-02-09 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and airflow induction based operation method and system thereof
CN102608931A (en) * 2012-03-28 2012-07-25 深圳鼎瑄通讯科技有限公司 System and method for controlling electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100227640A1 (en) * 2009-03-03 2010-09-09 Jong Hwan Kim Mobile terminal and operation control method thereof
CN101968709A (en) * 2010-09-17 2011-02-09 宇龙计算机通信科技(深圳)有限公司 Mobile terminal and airflow induction based operation method and system thereof
CN102608931A (en) * 2012-03-28 2012-07-25 深圳鼎瑄通讯科技有限公司 System and method for controlling electronic equipment

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888609A (en) * 2014-03-13 2014-06-25 宇龙计算机通信科技(深圳)有限公司 Incoming call processing method and system
CN103888609B (en) * 2014-03-13 2016-08-24 宇龙计算机通信科技(深圳)有限公司 The processing method of a kind of incoming call and system
CN104238755A (en) * 2014-09-22 2014-12-24 广东小天才科技有限公司 Method and device for adjusting general parameters of intelligent wearing device
CN104660808A (en) * 2015-02-04 2015-05-27 小米科技有限责任公司 Communication control method and related communication equipment
CN104615358A (en) * 2015-02-06 2015-05-13 掌赢信息科技(上海)有限公司 Application program starting method and electronic device
WO2016124048A1 (en) * 2015-02-06 2016-08-11 掌赢信息科技(上海)有限公司 Application program starting method and electronic device
CN104821996A (en) * 2015-06-02 2015-08-05 广东欧珀移动通信有限公司 Method for answering or hanging up mobile terminal, and system thereof
CN105187661A (en) * 2015-09-28 2015-12-23 小米科技有限责任公司 Incoming call processing method and device
CN107301765A (en) * 2016-04-15 2017-10-27 零度智控(北京)智能科技有限公司 Remote control thereof, device and terminal
CN108737625A (en) * 2017-04-13 2018-11-02 北京嘀嘀无限科技发展有限公司 A kind of terminal and call processing method
CN111866264A (en) * 2019-04-28 2020-10-30 重庆赫皇科技咨询有限公司 Mobile terminal with auxiliary blowing operation device and control method thereof
WO2023034010A1 (en) * 2021-09-01 2023-03-09 Snap Inc. Physical action-based augmented reality communication exchanges

Also Published As

Publication number Publication date
CN103139394B (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN103139394B (en) A kind of incoming call sound based on mobile phone or hang up processing method and system
CN104380254B (en) The quick method and terminal for starting application service
KR100678212B1 (en) Method for controlling information of emotion in wireless terminal
CN107481721A (en) Voice interactive method and wearable electronic for wearable electronic
CN103220432A (en) Mobile terminal and call on-off control method thereof
CN107390977A (en) Button operation method, apparatus and storage medium
CN110473550A (en) Voice communication method, device and storage medium
CN101917529A (en) Remote intelligent telephone controller based on internet of things in homes
CN203825684U (en) Wireless intelligent building talkback gangway machine
CN103957312A (en) Device and method for operating device through earphone
JP2015148648A (en) Dialogue system, speech controller, dialog unit, speech control method, control program of speech controller and control program of dialog unit
CN107846730A (en) Call transferring method and device
CN106657645A (en) Call request processing method and device, calling method and device, and related terminal
CN105282867B (en) Method for connecting network and device
CN106406175A (en) Prompting method and apparatus for door opening
CN103870166A (en) Mode switching method and device
CN106657647A (en) Incoming call processing method and device and mobile terminal
CN103401975A (en) Fixed-number dialing method and system
CN109889927A (en) Intercom method, apparatus and indoor unit in intercom system
CN103685708A (en) Terminal device and control method thereof
CN105554297A (en) Information reminding method and apparatus and terminal
CN108566221B (en) Call control method and related equipment
CN109545231A (en) A kind of method of portable control smart machine
CN104967720B (en) A kind of Emmergency call method and system based on headset
CN104883427A (en) Method and apparatus of recording information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211118

Address after: 264200 No. 220, Keji Road, torch high tech Industrial Development Zone, Weihai City, Shandong Province

Patentee after: Weihai high tech Park Operation Management Co.,Ltd.

Address before: 516006 No.70, Huifeng 4th Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right