CN104965724A - Working state switching method and apparatus - Google Patents

Working state switching method and apparatus Download PDF

Info

Publication number
CN104965724A
CN104965724A CN201410779600.2A CN201410779600A CN104965724A CN 104965724 A CN104965724 A CN 104965724A CN 201410779600 A CN201410779600 A CN 201410779600A CN 104965724 A CN104965724 A CN 104965724A
Authority
CN
China
Prior art keywords
data
text data
audio data
text
duty
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410779600.2A
Other languages
Chinese (zh)
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.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems 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 Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201410779600.2A priority Critical patent/CN104965724A/en
Publication of CN104965724A publication Critical patent/CN104965724A/en
Priority to PCT/CN2015/091975 priority patent/WO2016058540A1/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a working state switching method and apparatus, and belongs to the computer technical field. The method comprises following steps: acquiring first audio data collected through an audio collecting device; performing test transformation on the first audio data so as to obtain corresponding first text data; and switching a first working state to a second working state if the first text data is the same with pre-stored reference text data and the first audio data and pre-stored reference audio data meet preset approximation degree conditions. According to the invention, the working state switching efficiency can be improved.

Description

A kind of method and apparatus of switch operating state
Technical field
The present invention relates to field of computer technology, particularly a kind of method and apparatus of switch operating state.
Background technology
Along with the development of computer technology, the screen locking function of intelligent terminal is more and more general.Intelligent terminal is when being in screen lock state, if user wants to operate intelligent terminal, then needs first to carry out unlocking screen.In order to improve the security of data, numerical ciphers screen locking is a kind of very conventional screen locking mode.
For the process of numerical ciphers screen locking, user first can carry out the setting of numerical ciphers in intelligent terminal.When user under terminal screen lock state clicks solution locking key or home key (main screen key), meeting display word keyboard on screen, user is by the digital keys input numerical ciphers in clicks word keyboard, if the numerical ciphers of input is consistent with the numerical ciphers preset, then remove screen lock state, otherwise, keep screen lock state, and point out number Password Input mistake.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Use above-mentioned screen locking mode, when unlocking screen, user needs on screen, carry out repeatedly clicking operation could realize the switching of screen lock state to released state, operates comparatively loaded down with trivial details, thus, cause the inefficiency that duty switches.
Summary of the invention
In order to solve the problem of prior art, embodiments provide a kind of method and apparatus of switch operating state.Described technical scheme is as follows:
First aspect, provide a kind of method of switch operating state, described method comprises:
Obtain the first voice data gathered by audio collecting device;
Text-converted is carried out to described first voice data, obtains the first corresponding text data;
If described first text data is identical with the benchmark text data prestored, and described first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty.
Second aspect, provide a kind of device of switch operating state, described device comprises:
Acquisition module, for obtaining the first voice data gathered by audio collecting device;
Modular converter, for carrying out text-converted to described first voice data, obtains the first corresponding text data;
Handover module, if identical with the benchmark text data prestored for described first text data, and described first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
In the embodiment of the present invention, obtain the first voice data gathered by audio collecting device, text-converted is carried out to the first voice data, obtain the first corresponding text data, if the first text data is identical with the benchmark text data prestored, and the first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty, like this, without the need to carrying out repeatedly clicking operation on screen, can triggering work state switch, thus, the efficiency that duty switches can be improved.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of switch operating state that the embodiment of the present invention provides;
Fig. 2 is the method flow diagram of a kind of switch operating state that the embodiment of the present invention provides;
Fig. 3 is the apparatus structure schematic diagram of a kind of switch operating state that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of terminal that the embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment one
Embodiments provide a kind of method of switch operating state, as shown in Figure 1, the treatment scheme of the method can comprise following step:
Step 101, obtains the first voice data gathered by audio collecting device.
Step 102, carries out text-converted to the first voice data, obtains the first corresponding text data.
Step 103, if the first text data is identical with the benchmark text data prestored, and the first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty.
In the embodiment of the present invention, obtain the first voice data gathered by audio collecting device, text-converted is carried out to the first voice data, obtain the first corresponding text data, if the first text data is identical with the benchmark text data prestored, and the first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty, like this, without the need to carrying out repeatedly clicking operation on screen, can triggering work state switch, thus, the efficiency that duty switches can be improved.
Embodiment two
Embodiments provide a kind of method of switch operating state, the executive agent of the method can be terminal or server etc.Wherein, terminal can be mobile phone, panel computer, computing machine etc.Carrying out switch operating state can be any two kinds of duties, as screen lock state and unlocking screen state etc.In the present embodiment, be switched to unlocking screen state for duty by screen lock state, and take terminal as mobile phone for example carries out the detailed description of scheme, the situation of other-end is similar with it, and the present embodiment is not repeated.
Below in conjunction with embodiment, be described in detail the treatment scheme shown in Fig. 1, content can be as follows:
Step 101, obtains the first voice data gathered by audio collecting device.
In force, before the flow process performing unlocking screen, can pre-set and Memory Reference voice data and benchmark text data, setting up procedure can be input one section of voice by user to audio collecting device (as microphone), then terminal obtains the voice data of this section of voice, and voice data is converted to text data, as reference note audio data and benchmark text data, this setting up procedure can by elaborating in content below.
Be the situation of terminal for executive agent, after the solution locking key that user clicks terminal or home key, then triggering terminal can show locking screen interface, in locking screen interface, display reminding information is with the voice of pointing out user to input unblock, the audio collecting device of activated terminals simultaneously, start the collection carrying out voice data, user at this moment can facing to audio collecting device input voice, the content of voice can be identical with the content inputting voice when oneself arranging reference note audio data, such as, for saying " open sesame " microphone.At this moment, audio collecting device then can collect the voice data (i.e. the first voice data) of user's input, and terminal then can get this voice data.Certainly, also can not show locking screen interface in this process, keep screen closed condition, carry out voice data acquisition.
Be the situation of server for executive agent, terminal is after the voice data getting user's input, unlocking request can be generated, this voice data is carried in unlocking request, the mark of all right carried terminal, as IMEI (International Mobile Equipment Identity, mobile device international identity code), unlocking request is sent to server, and server can obtain the voice data gathered above by audio collecting device from unlocking request.
Step 102, carries out text-converted to the first voice data, obtains the first corresponding text data.
In force, terminal or server can prestore audio frequency text translation data storehouse, store the audio frequency characteristics that each character is corresponding, based on the audio frequency characteristics of the first voice data, can at audio frequency text translation data library lookup to corresponding character, these characters are combined in order, thus voice data can be converted to text data (i.e. the first text data).
Step 103, if the first text data is identical with the benchmark text data prestored, and the first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty.
Wherein, first duty and the second duty can be any duties set, such as, the first duty is screen lock state, and the second duty is unlocking screen state, or, first duty is application program locking state, and the second duty is application program released state, or, first duty is non-energy conservation state, and the second duty is energy conservation state.
In force, be the situation of terminal for executive agent, terminal is after being converted to text data by the voice data of acquisition, the benchmark text data of the text data be converted to and storage can be compared, judge that whether they are identical, simultaneously, this voice data is carried out the degree of approximation with the reference note audio data of storage compare, judge whether meet the degree of approximation condition preset between them, this degree of approximation condition can be arranged arbitrarily according to demand, such as, this degree of approximation condition can be that the frequency curve of two voice datas meets certain degree of approximation, as two frequency curves are less than predetermined threshold value in the summation of the absolute difference of each point.If the first text data is identical with benchmark text data, and the first voice data and reference note audio data meet degree of approximation condition, then triggering work state switches, otherwise triggering work state does not switch.Like this, carried out the operations such as unblock by speech trigger, relative to the mode of slide, effectively can improve the security of terminal.
Be the situation of server for executive agent, server can prestore benchmark text data corresponding to each terminal and reference note audio data, specifically can set up the corresponding relation of the mark of terminal and benchmark text data, reference note audio data.Server can obtain the mark of terminal from above-mentioned unlocking request, in above-mentioned corresponding relation, then searches the benchmark text data of the mark correspondence of this terminal, reference note audio data, then carry out the process of above-mentioned multilevel iudge.When determining that triggering work state switches, server can send switching notice to terminal, to make terminal, the first duty is switched to the second duty.
Optionally, many group benchmark text datas and reference note audio data can be stored, if the first voice data and the first text data can with wherein one group mate, just can the switching of triggering work pattern, accordingly, the process of step 103 can be as follows:
Step one, if at the benchmark text data prestored with to there is the first benchmark text data in the corresponding relation of reference note audio data identical with the first text data, then according to the corresponding relation of benchmark text data and reference note audio data, determine the first reference note audio data that the first benchmark text data is corresponding.
In force, be that (process of server is similar with it for example for terminal with executive agent, be not repeated), user can arrange many group benchmark text datas and reference note audio data, and terminal then can the corresponding relation of Memory Reference text data and reference note audio data.Terminal is after being converted to text data (i.e. the first text data) by the voice data (i.e. the first voice data) obtained, can in the corresponding relation of benchmark text data and reference note audio data, search text data, if it is identical with text data to there is certain benchmark text data (i.e. the first reference note audio data), then can search reference note audio data corresponding to this benchmark text data (i.e. the first reference note audio data) further.
Step 2, if the first voice data and described first reference note audio data meet default degree of approximation condition, then switches to the second duty by the first duty.
In force, the first voice data, after determining the first reference note audio data, according to above-mentioned similar mode, can be carried out the degree of approximation with the first reference note audio data and compares by terminal, to determine whether triggering work state switches.
Optionally, based on the difference arranged, switch to the process of the second duty can there is diversified situation the first duty, following present several feasible situation: situation one, screen lock state is switched to unlocking screen state; Situation two, the state that application program locked switches to application program released state.
In force, for situation two, above-mentioned steps 101 can trigger when startup application program and perform.
The embodiment of the present invention, additionally provides the method arranging reference note audio data and benchmark text data, and treatment scheme can as shown in Figure 2, comprise the steps:
Step 201, is received and arranges instruction, obtain the second audio data gathered by audio collecting device.
In force, user can arrange the page by operating terminal unlatching audio frequency lock, the option of input voice can be set in this interface, user clicks this option, terminal then can receive and arrange instruction, can the audio collecting device of activated terminals, start the collection carrying out voice data, user at this moment can facing to audio collecting device input voice, as " open sesame ", at this moment, audio collecting device then can collect the voice data (i.e. second audio data) of user's input, and terminal then can get this voice data.
Step 202, carries out text-converted to second audio data, obtains the second corresponding text data.
This processing procedure and step 102 similar, with reference to corresponding content, can be not repeated herein.
Optionally, after text-converted obtains the second text data, following process can be carried out: show the second text data.
Step 203, is stored as reference note audio data and benchmark text data respectively by second audio data and the second text data.
Optionally, based on the above-mentioned display to the second text data, user can be allowed to confirm the second text data, accordingly, the process of step 203 can be as follows: if receive the confirmation instruction, then second audio data and the second text data are stored as reference note audio data and benchmark text data respectively.
In force, after terminal obtains the second text data, can show confirmation frame, in confirmation frame, show the second text data, as " open sesame ", and display confirms button and re-enters button.When user confirms that the second text data shown is the voice match of oneself input really, confirmation button can be clicked, at this moment, terminal can receive the confirmation instruction, and then second audio data and the second text data can be stored as reference note audio data and benchmark text data by terminal respectively.If when user finds that the second text data of display does not mate with the voice oneself inputted, can click and re-enter button, then can trigger to go to re-executing step 201.
In the embodiment of the present invention, obtain the first voice data gathered by audio collecting device, text-converted is carried out to the first voice data, obtain the first corresponding text data, if the first text data is identical with the benchmark text data prestored, and the first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty, like this, without the need to carrying out repeatedly clicking operation on screen, can triggering work state switch, thus, the efficiency that duty switches can be improved.
Embodiment three
The present embodiment is described in detail to the process of speech recognition in above-described embodiment and the process of voiceprint analysis.The process of speech recognition can be as follows:
Audio frequency text translation data storehouse can be set up in advance in terminal or server, audio frequency characteristics corresponding to each character (as frequency etc.) can have been stored in audio frequency text translation data storehouse.In time receiving speech data (i.e. first voice data) of user's input, can according to the change of the audio frequency characteristics of speech data, this speech data is divided into multiple syllable by stroke, such as, the speech data of user's input " open sesame ", can be divided into the voice data of " sesame ", " fiber crops ", "ON", " door ".Then, for each voice data marked off, speech data can be carried out mating with the audio frequency characteristics in audio frequency text translation data storehouse and judge, if find the audio frequency characteristics matched, then can obtain character corresponding to this audio frequency characteristics further, so just can obtain the character that the voice data of each syllable is corresponding, such as, for " sesame " above, " fiber crops ", "ON", the speech data of " door ", the coupling of audio frequency characteristics is carried out in audio frequency text translation data storehouse, can find " sesame " respectively, " fiber crops ", "ON", the character of " door ".Again, can according to the order of the voice data of correspondence, sequence combination is carried out to each character and obtains final text data (i.e. above-mentioned first text data), such as, based on the character of above-mentioned " sesame ", " fiber crops ", "ON", " door ", " open sesame " character string can be obtained.
The mode of voiceprint analysis can be varied, following present a kind of feasible processing mode:
Terminal or server obtain the speech data (i.e. the first voice data) of user's input and the reference note audio data prestored, for speech data and reference note audio data, respectively according to the change of their audio frequency characteristics separately, they are divided into multiple syllable by stroke, such as, the speech data of user's input " open sesame ", can be divided into the voice data of " sesame ", " fiber crops ", "ON", " door ", the division of reference note audio data is also similar with it.Then, whether the number of syllables comparing their divisions is identical, if different, then it fails to match for speech data and reference note audio data, if identical, then can continue the order according to each syllable, the syllable that speech data is corresponding with reference note audio data compares.When specifically comparing any two syllables, the time point of preset number (as 3,15 or 30 etc.) evenly can be chosen on the duration of two syllables, calculate the absolute value of the difference on the frequency of all corresponding time points in two syllables, then the absolute value of these difference on the frequencies is added and as degree of error.After determining degree of error, degree of error and the degree of error threshold value preset can be compared, if degree of error is greater than degree of error threshold value, then can judge that it fails to match, otherwise, can judge that the match is successful, if speech data and the syllable of reference note audio data mate all successful between two, then can judge that speech data and reference note audio data meet default degree of approximation condition.
Such as, in speech data, first syllable is syllable a, in reference note audio data, first syllable is syllable b, 3 time points are chosen uniformly respectively on the duration of syllable a and syllable b, calculate the absolute value of the difference on the frequency of first time point in first time point and syllable b in syllable a, the absolute value of the difference on the frequency of second time point in second time point and syllable b in syllable a, the absolute value of the difference on the frequency of the 3rd time point in 3rd time point and syllable b in syllable a, again the absolute value of these three difference on the frequencies is added as degree of error, then follow-up judgement is carried out based on degree of error.
In the embodiment of the present invention, carry out dual judgement by speech recognition and voiceprint analysis, the operations such as triggering terminal unblock, effectively can improve the security of terminal.
Embodiment four
Based on identical technical conceive, the embodiment of the present invention additionally provides a kind of device of switch operating state, and as shown in Figure 3, this device comprises:
Acquisition module 310, for obtaining the first voice data gathered by audio collecting device;
Modular converter 320, for carrying out text-converted to described first voice data, obtains the first corresponding text data;
Handover module 330, if identical with the benchmark text data prestored for described first text data, and described first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty.
Optionally, described device also comprises memory module, for:
After receiving instruction is set, obtain the second audio data gathered by audio collecting device;
Text-converted is carried out to described second audio data, obtains the second corresponding text data;
Described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively.
Optionally, described device also comprises display module, for: show described second text data;
Described memory module, for:
If receive the confirmation instruction, then described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively.
Optionally, described handover module 330, for:
Screen lock state is switched to unlocking screen state; Or,
The state that application program locked switches to application program released state.
Optionally, described handover module 330, for:
If at the benchmark text data prestored with to there is the first benchmark text data in the corresponding relation of reference note audio data identical with described first text data, then according to the corresponding relation of described benchmark text data and reference note audio data, determine the first reference note audio data that described first benchmark text data is corresponding;
If described first voice data and described first reference note audio data meet default degree of approximation condition, then the first duty is switched to the second duty.
In the embodiment of the present invention, obtain the first voice data gathered by audio collecting device, text-converted is carried out to the first voice data, obtain the first corresponding text data, if the first text data is identical with the benchmark text data prestored, and the first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty, like this, without the need to carrying out repeatedly clicking operation on screen, can triggering work state switch, thus, the efficiency that duty switches can be improved.
It should be noted that: the device of the switch operating state that above-described embodiment provides is when switch operating state, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, inner structure by device is divided into different functional modules, to complete all or part of function described above.In addition, the device of the switch operating state that above-described embodiment provides and the embodiment of the method for switch operating state belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Embodiment five
Please refer to Fig. 4, it illustrates the structural representation of the terminal involved by the embodiment of the present invention, this terminal may be used for the method implementing the switch operating state provided in above-described embodiment.Specifically:
Terminal 400 can comprise RF (Radio Frequency, radio frequency) circuit 110, the storer 120 including one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 4, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA (Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 400.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, to provide the access of processor 180 and input block 130 pairs of storeies 120.
Input block 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 400 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display panel 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in the diagram, Touch sensitive surface 131 and display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display panel 141 integrated and realize input and output function.
Terminal 400 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 141, proximity transducer when terminal 400 moves in one's ear, can cut out display panel 141 and/or backlight.As the one of motion sensor, Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal 400 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 400.Voicefrequency circuit 160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 161, by loudspeaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to storer 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 400.
WiFi belongs to short range wireless transmission technology, and terminal 400 can help user to send and receive e-mail by WiFi module 170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 4 shows WiFi module 170, be understandable that, it does not belong to must forming of terminal 400, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centers of terminal 400, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of terminal 400, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 400 also comprises the power supply 190 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 400 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal 400 is touch-screen displays, terminal 400 also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to be performed by more than one or one processor state more than one or one routine package containing the instruction for carrying out following operation:
Obtain the first voice data gathered by audio collecting device;
Text-converted is carried out to described first voice data, obtains the first corresponding text data;
If described first text data is identical with the benchmark text data prestored, and described first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty.
Optionally, described method also comprises:
Reception arranges instruction, obtains the second audio data gathered by audio collecting device;
Text-converted is carried out to described second audio data, obtains the second corresponding text data;
Described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively.
Optionally, described text-converted is carried out to described second audio data, after obtaining the second corresponding text data, also comprise: show described second text data;
Described described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively, comprise:
If receive the confirmation instruction, then described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively.
Optionally, described first duty is switched to the second duty, comprising:
Screen lock state is switched to unlocking screen state; Or,
The state that application program locked switches to application program released state.
Optionally, if described first text data is identical with the benchmark text data prestored, and described first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty, comprising:
If at the benchmark text data prestored with to there is the first benchmark text data in the corresponding relation of reference note audio data identical with described first text data, then according to the corresponding relation of described benchmark text data and reference note audio data, determine the first reference note audio data that described first benchmark text data is corresponding;
If described first voice data and described first reference note audio data meet default degree of approximation condition, then the first duty is switched to the second duty.
In the embodiment of the present invention, obtain the first voice data gathered by audio collecting device, text-converted is carried out to the first voice data, obtain the first corresponding text data, if the first text data is identical with the benchmark text data prestored, and the first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty, like this, without the need to carrying out repeatedly clicking operation on screen, can triggering work state switch, thus, the efficiency that duty switches can be improved.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a method for switch operating state, is characterized in that, described method comprises:
Obtain the first voice data gathered by audio collecting device;
Text-converted is carried out to described first voice data, obtains the first corresponding text data;
If described first text data is identical with the benchmark text data prestored, and described first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty.
2. method according to claim 1, is characterized in that, described method also comprises:
Reception arranges instruction, obtains the second audio data gathered by audio collecting device;
Text-converted is carried out to described second audio data, obtains the second corresponding text data;
Described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively.
3. method according to claim 2, is characterized in that, describedly carries out text-converted to described second audio data, after obtaining the second corresponding text data, also comprises: show described second text data;
Described described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively, comprise:
If receive the confirmation instruction, then described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively.
4. method according to claim 1, is characterized in that, described first duty is switched to the second duty, comprising:
Screen lock state is switched to unlocking screen state; Or,
The state that application program locked switches to application program released state.
5. method according to claim 1, it is characterized in that, if described first text data is identical with the benchmark text data prestored, and described first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty, comprising:
If at the benchmark text data prestored with to there is the first benchmark text data in the corresponding relation of reference note audio data identical with described first text data, then according to the corresponding relation of described benchmark text data and reference note audio data, determine the first reference note audio data that described first benchmark text data is corresponding;
If described first voice data and described first reference note audio data meet default degree of approximation condition, then the first duty is switched to the second duty.
6. a device for switch operating state, is characterized in that, described device comprises:
Acquisition module, for obtaining the first voice data gathered by audio collecting device;
Modular converter, for carrying out text-converted to described first voice data, obtains the first corresponding text data;
Handover module, if identical with the benchmark text data prestored for described first text data, and described first voice data meets default degree of approximation condition with the reference note audio data prestored, then the first duty is switched to the second duty.
7. device according to claim 6, is characterized in that, described device also comprises memory module, for:
After receiving instruction is set, obtain the second audio data gathered by audio collecting device;
Text-converted is carried out to described second audio data, obtains the second corresponding text data;
Described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively.
8. device according to claim 7, is characterized in that, described device also comprises display module, for: show described second text data;
Described memory module, for:
If receive the confirmation instruction, then described second audio data and described second text data are stored as described reference note audio data and described benchmark text data respectively.
9. device according to claim 6, is characterized in that, described handover module, for:
Screen lock state is switched to unlocking screen state; Or,
The state that application program locked switches to application program released state.
10. device according to claim 6, is characterized in that, described handover module, for:
If at the benchmark text data prestored with to there is the first benchmark text data in the corresponding relation of reference note audio data identical with described first text data, then according to the corresponding relation of described benchmark text data and reference note audio data, determine the first reference note audio data that described first benchmark text data is corresponding;
If described first voice data and described first reference note audio data meet default degree of approximation condition, then the first duty is switched to the second duty.
CN201410779600.2A 2014-10-15 2014-12-16 Working state switching method and apparatus Pending CN104965724A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410779600.2A CN104965724A (en) 2014-12-16 2014-12-16 Working state switching method and apparatus
PCT/CN2015/091975 WO2016058540A1 (en) 2014-10-15 2015-10-15 Identity authentication method and apparatus and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410779600.2A CN104965724A (en) 2014-12-16 2014-12-16 Working state switching method and apparatus

Publications (1)

Publication Number Publication Date
CN104965724A true CN104965724A (en) 2015-10-07

Family

ID=54219759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410779600.2A Pending CN104965724A (en) 2014-10-15 2014-12-16 Working state switching method and apparatus

Country Status (1)

Country Link
CN (1) CN104965724A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016058540A1 (en) * 2014-10-15 2016-04-21 腾讯科技(深圳)有限公司 Identity authentication method and apparatus and storage medium
CN106601268A (en) * 2016-12-26 2017-04-26 腾讯音乐娱乐(深圳)有限公司 Multimedia data processing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1042790A (en) * 1988-11-16 1990-06-06 中国科学院声学研究所 The method and apparatus that the real-time voice of recognizing people and do not recognize people is discerned
CN102647521A (en) * 2012-04-05 2012-08-22 福州博远无线网络科技有限公司 Method for removing lock of mobile phone screen based on short voice command and voice-print technology
CN102869008A (en) * 2011-07-07 2013-01-09 上海先先信息科技有限公司 Technology for applying vocal print verification as security codes of mobile applications
CN103729584A (en) * 2012-10-16 2014-04-16 北京千橡网景科技发展有限公司 Method and device used for unlocking screen
CN104142796A (en) * 2013-05-07 2014-11-12 北京三星通信技术研究有限公司 Unlocking method of terminal and terminal
CN104202486A (en) * 2014-09-26 2014-12-10 上海华勤通讯技术有限公司 Mobile terminal and screen unlocking method thereof

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1042790A (en) * 1988-11-16 1990-06-06 中国科学院声学研究所 The method and apparatus that the real-time voice of recognizing people and do not recognize people is discerned
CN102869008A (en) * 2011-07-07 2013-01-09 上海先先信息科技有限公司 Technology for applying vocal print verification as security codes of mobile applications
CN102647521A (en) * 2012-04-05 2012-08-22 福州博远无线网络科技有限公司 Method for removing lock of mobile phone screen based on short voice command and voice-print technology
CN103729584A (en) * 2012-10-16 2014-04-16 北京千橡网景科技发展有限公司 Method and device used for unlocking screen
CN104142796A (en) * 2013-05-07 2014-11-12 北京三星通信技术研究有限公司 Unlocking method of terminal and terminal
CN104202486A (en) * 2014-09-26 2014-12-10 上海华勤通讯技术有限公司 Mobile terminal and screen unlocking method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016058540A1 (en) * 2014-10-15 2016-04-21 腾讯科技(深圳)有限公司 Identity authentication method and apparatus and storage medium
CN106601268A (en) * 2016-12-26 2017-04-26 腾讯音乐娱乐(深圳)有限公司 Multimedia data processing method and device
CN106601268B (en) * 2016-12-26 2020-11-27 腾讯音乐娱乐(深圳)有限公司 Multimedia data processing method and device

Similar Documents

Publication Publication Date Title
CN104618440A (en) Intelligent equipment control method and device
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN104780164A (en) Method and device for operating game client
CN104135728B (en) Method for connecting network and device
CN104519485A (en) Communication method between terminals, devices and system
CN104852885A (en) Method, device and system for verifying verification code
CN104850406A (en) Page switching method and device
CN103179026B (en) Communication means in user interactive system, system and server and client side
CN104407804A (en) Screen capturing method and screen capturing device as well as electronic device
CN104571787A (en) Message display method and communication terminal
CN105302452A (en) Gesture interaction-based operation method and device
CN104134043B (en) Content is hidden, separates method, device and the terminal hidden
CN104238893A (en) Video preview image displaying method and device
CN104901805A (en) Identity authentication method and device and system
CN105138239A (en) Application operation method and device and terminal device
CN105320693A (en) Information querying method and terminal
CN105530239A (en) Multimedia data obtaining method and device
CN104850274A (en) Method and device for realizing key function by infrared induction
CN104699501A (en) Method and device for running application program
CN105045372A (en) Method and equipment controlling wearable device
CN104133693B (en) Installment state detection method, device and terminal
CN104573437A (en) Information authentication method, device and terminal
CN103200077B (en) The method of data interaction during a kind of voice call, Apparatus and system
CN105047185A (en) Method, device and system for obtaining audio frequency of accompaniment
CN105278925A (en) Method and device for refuse cleaning of uninstalled software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151007