Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The mobile terminal of describing in the embodiment of the present invention can comprise: at least a in mobile phone, panel computer, notebook computer.Above-mentioned mobile terminal is only for example, and non exhaustive, including but not limited to above-mentioned mobile terminal.The below is take mobile phone as example, and method and the mobile terminal of the mobile terminal recording that the embodiment of the present invention is provided carry out concrete description.Referring to Fig. 1, the first embodiment schematic flow sheet of the method for the mobile terminal recording that provides for the embodiment of the present invention.The method of the described mobile terminal recording of the present embodiment comprises step:
S101 obtains the wobble data of mobile terminal.
In specific implementation, cell phone incoming call or successfully the dialing after, when the cellphone subscriber connected mobile phone, mobile phone can start the transducers such as Qi Nei Ge gravity sensor or gyroscope voluntarily, came the swing state of detection of handset by transducer.In the process of conversation, if the cellphone subscriber needs recording, swingable mobile phone, mobile phone detects, obtains the wobble data of himself in real time by the transducer of Qi Nei Ge, and judge according to the wobble data that gets this moment, whether needs were recorded, if judgment result is that to be, can start sound-recording function.Wherein, the wobble data of the mobile phone that gets can comprise: the data that can get in the mobile phone swing process such as the swaying direction of mobile phone, swing speed, oscillating acceleration.Concrete, can be in advance set reference axis take mobile phone as benchmark according to the actual conditions of mobile phone, and come regularly to detect himself coordinate on all directions of default reference axis by gravity sensor, process according to the changes in coordinates data on detection time interval and all directions that detect and obtain swing speed and the mobile phone wobble data such as oscillating acceleration of mobile phone on all directions, wherein, detection time, the interval can preset.
S102 according to the wobble data of described mobile terminal, judges whether the oscillating acceleration of described mobile terminal or number of oscillations reach default swing threshold value, is to start sound-recording function if judgment result is that.
In specific implementation, mobile phone in the process of normal talking, himself wobble data of the transducer Real-time Obtainings such as gravity sensor that can be by Qi Nei Ge, gyroscope, and judge the swing state of mobile phone according to the wobble data that gets.Can be according to mobile phone the wobble data on all directions process, judge the moving direction of mobile phone, it is the direction that mobile phone swings, and process according to the wobble data on all directions of mobile phone and obtain the acceleration of mobile phone on its moving direction, comprising: the size of acceleration and the direction of acceleration etc.Process according to the wobble data of mobile phone the swaying direction and the oscillating acceleration that obtain mobile phone and can judge according to the size of its oscillating acceleration whether its oscillating acceleration reaches default swing threshold value afterwards, if judgment result is that be, can start the sound-recording function of mobile phone, if mobile phone communication finishes, close sound-recording function.In specific implementation, due to cellphone subscriber's handheld mobile phone in the process that mobile phone normally passes through may have some by a small margin swing or because the moving belt of the health machine of starting swings, in order to prevent that mobile phone starts sound-recording function voluntarily in these cases, consumed energy, the oscillating acceleration that can must reach according to the default startup of the concrete condition mobile phone recording of mobile phone in specific implementation or the size of swing speed, the i.e. swing threshold value of default handset starting sound-recording function is opened sound-recording function when the mobile phone amplitude of fluctuation reaches default swing threshold value.Wherein, above-mentioned swing threshold value comprises: the swing threshold value that oscillating acceleration threshold value, swing speed threshold value, number of oscillations etc. are default.For example, if it is that mobile phone oscillating acceleration size is not less than 1g that default mobile phone swings threshold value, when the oscillating acceleration size of mobile phone during more than or equal to 1g, mobile phone starts sound-recording function, when the oscillating acceleration size of mobile phone during less than 1g, the wobbling action that can judge this moment is the random wobbling action that swings of mobile phone, and mobile phone can not start sound-recording function.
The present embodiment is in the process of mobile phone normal talking, by the transducer wobble data of detection of handset voluntarily, judge the swing state of mobile phone according to the wobble data of mobile phone, and judge whether needs recording of mobile phone according to the size of the oscillating acceleration of mobile phone, if judgment result is that to be, the sound-recording function of starting hand-set, simplified the step that mobile phone is opened sound-recording function, improve the experience effect of mobile phone sound-recording function, promoted user's experience effect of mobile phone.
Referring to Fig. 2, the second embodiment schematic flow sheet of the method for the mobile terminal recording that provides for the embodiment of the present invention.The method of the mobile terminal recording that the present embodiment is described comprises step:
S201 obtains the wobble data of mobile terminal.
In specific implementation, cell phone incoming call or successfully after dialing, when the cellphone subscriber connected mobile phone, mobile phone can start the transducers such as the gravity sensor of Qi Nei Ge or gyroscope voluntarily, came the swing state of detection of handset by transducer.In the process of conversation, if the cellphone subscriber needs recording, swingable mobile phone, mobile phone detects, obtains the wobble data of himself in real time by the transducer of Qi Nei Ge, and judge according to the wobble data that gets this moment, whether needs were recorded, if judgment result is that to be, can start sound-recording function.Wherein, the wobble data of the mobile phone that gets can comprise: the data that can get in the mobile phone swing process such as the swaying direction of mobile phone, swing speed, oscillating acceleration.Concrete, can be in advance set reference axis take mobile phone as benchmark according to the actual conditions of mobile phone, and come regularly to detect himself coordinate on all directions of default reference axis by gravity sensor, process according to the changes in coordinates data on detection time interval and all directions that detect and obtain swing speed and the mobile phone wobble data such as oscillating acceleration of mobile phone on all directions, wherein, detection time, the interval can preset.
S202 judges the moving direction of described mobile terminal, and obtains the acceleration of described mobile terminal on its moving direction according to the wobble data processing of described mobile terminal according to the wobble data of described mobile terminal.
In specific implementation, mobile phone in the process of normal talking, himself wobble data of the transducer Real-time Obtainings such as gravity sensor that can be by Qi Nei Ge, gyroscope, and judge the swing state of mobile phone according to the wobble data that gets.Can be according to mobile phone the wobble data on all directions process, judge the moving direction of mobile phone, it is the direction that mobile phone swings, and process according to the wobble data on all directions of mobile phone and obtain the acceleration of mobile phone on its moving direction, comprising: the size of acceleration and the direction of acceleration etc.Process according to the wobble data of mobile phone the swaying direction and the oscillating acceleration that obtain mobile phone and can judge according to the size of its oscillating acceleration whether its oscillating acceleration reaches default swing threshold value afterwards, if judgment result is that be, can start the sound-recording function of mobile phone, if mobile phone communication finishes, close sound-recording function.In specific implementation, due to cellphone subscriber's handheld mobile phone in the process that mobile phone normally passes through may have some by a small margin swing or because the moving belt of the health machine of starting swings, in order to prevent that mobile phone starts sound-recording function voluntarily in these cases, consumed energy, can defaultly according to the concrete condition of mobile phone start oscillating acceleration size, the velocity magnitude that the mobile phone recording must reach in specific implementation, the i.e. swing threshold value of default handset starting sound-recording function is opened sound-recording function when the mobile phone amplitude of fluctuation reaches default swing threshold value.Wherein, above-mentioned swing threshold value comprises: the swing threshold value that oscillating acceleration threshold value, swing speed threshold value etc. are default.For example, if it is that mobile phone oscillating acceleration size is not less than 1g that default mobile phone swings threshold value, when the oscillating acceleration size of mobile phone is greater than or equal to 1g, mobile phone starts sound-recording function, when the oscillating acceleration size of mobile phone during less than 1g, the wobbling action that can judge this moment is the random wobbling action that swings of mobile phone, and mobile phone can not start sound-recording function.
S203, whether acceleration direction according to the direction-judgment of described mobile terminal on its moving direction changes, if the direction of described acceleration changes once, can judge that described mobile terminal swings once.
S204, the number of oscillations of the described mobile terminal of change frequency judgement of the acceleration direction according to described mobile terminal on its moving direction.
S205 judges whether described number of oscillations reaches default swing threshold value, if judgment result is that and be, and execution in step S206.
S206 starts sound-recording function.
In specific implementation, mobile phone processes according to himself the wobble data that detects the swaying direction obtain mobile phone and it is after the oscillating acceleration that the party makes progress, except the size according to its oscillating acceleration judges whether to start sound-recording function, also can judge whether to start sound-recording function according to the direction of its oscillating acceleration.During specific implementation, mobile phone detects according to Qi Nei Ge transducer, and the wobble data of himself processes obtains its swaying direction and after the oscillating acceleration that the party makes progress, can judge according to the data that processing obtains whether the direction of its oscillating acceleration changes, if the direction of its acceleration changes once, can judge that himself number of oscillations is 1, the every variation of its acceleration direction once, its number of oscillations totally adds 1, can judge according to the change frequency of its oscillating acceleration direction himself number of oscillations at last.In specific implementation, can preset mobile phone and open voluntarily the needed number of oscillations of sound-recording function, i.e. the number of oscillations threshold value of mobile phone when the number of oscillations of mobile phone reaches default number of oscillations threshold value, can start sound-recording function.
The present embodiment is in the process of mobile phone normal talking, by the transducer wobble data of detection of handset voluntarily, judge the swing state of mobile phone according to the wobble data of mobile phone, can judge according to the size and Orientation of mobile phone oscillating acceleration whether needs start sound-recording function to mobile phone, if judgment result is that to be, the sound-recording function of starting hand-set, simplified the step that mobile phone is opened sound-recording function, improve the experience effect of mobile phone sound-recording function, promoted user's experience effect of mobile phone.
Referring to Fig. 3, the first example structure schematic diagram of the mobile terminal that provides for the embodiment of the present invention.The mobile terminal that the present embodiment is described comprises:
Acquisition module 10 is for the wobble data that obtains mobile terminal.
Recording control module 20 is used for the wobble data according to described mobile terminal, judges whether the oscillating acceleration of described mobile terminal or number of oscillations reach default swing threshold value, is to start sound-recording function if judgment result is that.
In specific implementation, cell phone incoming call or successfully after dialing, when the cellphone subscriber connected mobile phone, 10 of acquisition modules can start the transducers such as the gravity sensor of mobile phone or gyroscope voluntarily, came the swing state of detection of handset by transducer.In the process of conversation, if the cellphone subscriber needs recording, swingable mobile phone, 10 of acquisition modules can detect, obtain by the transducer of Shou Ji Nei Ge the wobble data of mobile phone in real time, and the wobble data of the mobile phone that gets is sent to recordingcontrol module 20, process the wobble data that gets, judge whether mobile phone needs to record this moment, judgment result is that when being, can start sound-recording function by recording control module 20.Wherein, the wobble data of the mobile phone thatacquisition module 10 gets can comprise: the data that can get in the mobile phone swing process such as the swaying direction of mobile phone, swing speed, oscillating acceleration.Concrete,acquisition module 10 can be in advance set reference axis take mobile phone as benchmark according to the actual conditions of mobile phone, and come the regularly coordinate of detection of handset on all directions of default reference axis by gravity sensor, process according to the changes in coordinates data on detection time interval and all directions that detect and obtain swing speed and the mobile phone wobble data such as oscillating acceleration of mobile phone on all directions, and the data that processing obtains are sent to recordingcontrol module 20, wherein, detection time, the interval can preset.
In specific implementation, mobile phone is in the process of normal talking,acquisition module 10 can be by Shou Ji Nei Ge himself wobble data of the transducer Real-time Obtainings such as gravity sensor, gyroscope,recording control module 20 can judge according to the wobble data thatacquisition module 10 gets the swing state of mobile phone.The moving direction of mobile phone can process, judge according to the wobble data of mobile phone on all directions thatacquisition module 10 gets to recordingcontrol module 20, it is the direction that mobile phone swings, and process according to the wobble data on all directions of mobile phone and obtain the acceleration of mobile phone on its moving direction, comprising: the size of acceleration and the direction of acceleration etc.Recording control module 20 processes according to the wobble data of mobile phone the swaying direction and the oscillating acceleration that obtain mobile phone can judge whether the oscillating acceleration of mobile phone reaches default swing threshold value according to the oscillating acceleration size of mobile phone afterwards, if judgment result is that be, can start the sound-recording function of mobile phone, if mobile phone communication finishes, close sound-recording function.In specific implementation, due to cellphone subscriber's handheld mobile phone in the process that mobile phone normally passes through may have some by a small margin swing or because the moving belt of the health machine of starting swings, in order to prevent that mobile phone starts sound-recording function, consumed energy voluntarily in these cases.The oscillating acceleration that can must reach according to the default startup of the concrete condition mobile phone recording of mobile phone in specific implementation or the size of swing speed, the i.e. swing threshold value of default handset starting sound-recording function is opened sound-recording function when the mobile phone amplitude of fluctuation reaches default swing threshold value.Wherein, above-mentioned swing threshold value comprises: the swing threshold value that oscillating acceleration threshold value, swing speed threshold value etc. are default.For example, if it is that mobile phone oscillating acceleration size is not less than 1g that default mobile phone swings threshold value, when the oscillating acceleration size of mobile phone during more than or equal to 1g, mobile phone starts sound-recording function, when the oscillating acceleration size of mobile phone during less than 1g, the wobbling action that can judge this moment is the random wobbling action that swings of mobile phone, and mobile phone can not start sound-recording function.
The present embodiment is in the process of mobile phone normal talking, by the acquisition module wobble data of detection of handset voluntarily, and by the recording control module, the wobble data of the mobile phone that gets in conjunction with acquisition module judges the swing state of mobile phone, judge whether needs recording of mobile phone according to the size of the oscillating acceleration of mobile phone, if judgment result is that be, the sound-recording function of starting hand-set, simplified the step that mobile phone is opened sound-recording function, improve the experience effect of mobile phone sound-recording function, promoted user's experience effect of mobile phone.
Referring to Fig. 4, the second example structure schematic diagram of the mobile terminal that provides for the embodiment of the present invention.The mobile terminal that the present embodiment is described comprises:
Acquisition module 10 is for the wobble data that obtains mobile terminal.
Recording control module 30 is used for the wobble data according to described mobile terminal, judges whether the oscillating acceleration of described mobile terminal or number of oscillations reach default swing threshold value, is to start sound-recording function if judgment result is that.
Wherein,recording control module 30 comprises:
Thefirst judging unit 31 is used for judging according to the size of the acceleration of described mobile terminal on its moving direction whether the oscillating acceleration of described mobile terminal reaches default swing threshold value.
Processing unit 32 is used for the moving direction according to the described mobile terminal of wobble data judgement of described mobile terminal, and obtains the acceleration of described mobile terminal on its moving direction according to the wobble data processing of described mobile terminal.
Thesecond judging unit 33 is used for judging according to the direction of the acceleration of described mobile terminal on its moving direction whether the number of oscillations of described mobile terminal reaches default swing threshold value.
Recording start unit 34 is used in described the first judging unit or described the second judgment unit judges result when being the startup sound-recording function.
Wherein, thesecond judging unit 33 also comprises:
Whether the first judgment sub-unit is used for acceleration direction according to the direction-judgment of described mobile terminal on its moving direction and changes, if the direction of described acceleration changes once, can judge that described mobile terminal swings once.
Count sub-element, the change frequency that is used for the acceleration direction on its moving direction according to described mobile terminal judges the number of oscillations of described mobile terminal.
The second judgment sub-unit is used for judging whether described number of oscillations reaches default swing threshold value.
In specific implementation, cell phone incoming call or successfully after dialing, when the cellphone subscriber connected mobile phone, 10 of acquisition modules can start the transducers such as the gravity sensor of mobile phone or gyroscope voluntarily, came the swing state of detection of handset by transducer.In the process of conversation, if the cellphone subscriber needs recording, swingable mobile phone,acquisition module 10 can detect, obtain by the transducer of Shou Ji Nei Ge the wobble data of mobile phone in real time, and the data that get are sent to recordingcontrol module 30, to process by recordingcontrol module 30 wobble data that gets, whether judgement needs to record this moment, judgment result is that when being, can start sound-recording function.Wherein, the wobble data of the mobile phone thatacquisition module 10 gets can comprise: the data that can get in the mobile phone swing process such as the swaying direction of mobile phone, swing speed, oscillating acceleration.Concrete,acquisition module 10 can be in advance set reference axis take mobile phone as benchmark according to the actual conditions of mobile phone, and come regularly to detect himself coordinate on all directions of default reference axis by gravity sensor, process according to the changes in coordinates data on detection time interval and all directions that detect and obtain swing speed and the mobile phone wobble data such as oscillating acceleration of mobile phone on all directions, and the data that processing obtains are sent to the recording control module, wherein, detection time, the interval can preset.
In specific implementation, mobile phone in the process of normal talking, the wobble data of the transducer Real-time Obtaining mobile phones such as the gravity sensor thatacquisition module 10 can be by Shou Ji Nei Ge, gyroscope, and process, judge the swing state of mobile phone by recording control module 30.Theprocessing unit 32 ofrecording control module 30 can be according to mobile phone the wobble data on all directions process, judge the moving direction of mobile phone, it is the direction that mobile phone swings, and process according to the wobble data on all directions of mobile phone and obtain the acceleration of mobile phone on its moving direction, comprising: the size of acceleration and the direction of acceleration etc.Processing unit 32 according to the wobble data of mobile phone process obtain the swaying direction and oscillating acceleration of mobile phone after, the first 31 of judging units can judge according to the size of its oscillating acceleration whether its oscillating acceleration reaches default swing threshold value, if judgment result is that be, the sound-recording function of 34 startup mobile phones of recording start unit, if mobile phone communication finishes, close sound-recording function.In specific implementation, due to cellphone subscriber's handheld mobile phone in the process that mobile phone normally passes through may have some by a small margin swing or because the moving belt of the health machine of starting swings, in order to prevent that mobile phone starts sound-recording function voluntarily in these cases, consumed energy, can defaultly according to the concrete condition of mobile phone start oscillating acceleration size, the velocity magnitude that the mobile phone recording must reach in specific implementation, the i.e. swing threshold value of default handset starting sound-recording function is opened sound-recording function when the mobile phone amplitude of fluctuation reaches default swing threshold value.Wherein, above-mentioned swing threshold value can comprise the swing threshold value that oscillating acceleration threshold value, swing speed threshold value etc. are default.For example, if it is that mobile phone oscillating acceleration size is not less than 1g that default mobile phone swings threshold value, when the oscillating acceleration size of mobile phone is greater than or equal to 1g, mobile phone starts sound-recording function, when the oscillating acceleration size of mobile phone during less than 1g, the wobbling action that can judge this moment is the random wobbling action that swings of mobile phone, and mobile phone can not start sound-recording function.
In specific implementation,processing unit 32 processes according to himself the wobble data that detects the swaying direction that obtains mobile phone and it is after the oscillating acceleration that the party makes progress, except passing through thefirst judging unit 31, size in conjunction with the mobile phone oscillating acceleration judges whether to start voluntarily outside sound-recording function, also can pass through thesecond judging unit 33, judge whether to start sound-recording function in conjunction with the direction of mobile phone oscillating acceleration.During specific implementation, the first judgment sub-unit in thesecond judging unit 33 can be processed according toprocessing unit 32 and obtain the swaying direction of mobile phone and oscillating acceleration that mobile phone makes progress the party judges whether the direction of mobile phone oscillating acceleration changes, if the direction of mobile phone oscillating acceleration changes once, can judge that obtaining mobile phone has swung once, and come the counting mobile phone number of oscillations by count sub-element.The first every judgement of judgment sub-unit learns that mobile phone oscillating acceleration direction changes once, can record mobile phone number of oscillations accumulative total by count sub-element and add 1, count sub-element judges according to mobile phone oscillating acceleration change frequency the number of oscillations of learning mobile phone at last, and the mobile phone number of oscillations that judgement obtains is sent to the second judgment sub-unit, the second judgment sub-unit judges according to the number of oscillations of mobile phone whether the mobile phone number of oscillations reaches default swing threshold value, if judgment result is that to be, 34 of recording start units start sound-recording function.In specific implementation, can preset mobile phone and open the needed number of oscillations of sound-recording function, i.e. the swing threshold value of mobile phone, when the number of oscillations of mobile phone reaches default swing threshold value, but the automatic recording function.
The present embodiment is in the process of mobile phone normal talking, by the acquisition module wobble data of detection of handset voluntarily, by the recording control module, judge the swing state of mobile phone in conjunction with the wobble data of mobile phone, can judge according to the size and Orientation of mobile phone oscillating acceleration whether needs start sound-recording function to mobile phone, if judgment result is that be, the sound-recording function of starting hand-set, simplified the step that mobile phone is opened sound-recording function, improve the experience effect of mobile phone sound-recording function, promoted user's experience effect of mobile phone.
Module or submodule in all embodiment of the present invention, can pass through universal integrated circuit, CPU(Central Processing Unit for example, central processing unit), or realize by ASIC (Application Specific Integrated Circuit, application-specific integrated circuit (ASIC)).
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to come the relevant hardware of instruction to complete by computer program, described program can be stored in computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Above disclosed is only preferred embodiment of the present invention, certainly can not limit with this interest field of the present invention, and the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.