Summary of the invention
The main purpose of the present invention is to provide a kind of control method of intelligent terminal, intelligent terminal and computer-readable depositStorage media, it is intended to solve in human-computer interaction process, the technical issues of intelligent terminal can not execute the operation being consistent with voice command.
To achieve the above object, the present invention provides a kind of control method of intelligent terminal, comprising steps of
The default control under current scene is obtained to instruct and the control instruction is converted to the first phonetic control instruction;
Phonetic control command is received, and the phonetic control command is converted into the second phonetic control instruction;
Judge whether the first phonetic control instruction is consistent with the second phonetic control instruction;
If the first phonetic control instruction is consistent with the second phonetic control instruction, controls the intelligent terminal and holdRow predetermined registration operation corresponding with default control instruction.
Preferably, the step for judging the first phonetic control instruction and whether being consistent with the second phonetic control instructionSuddenly include:
The first phonetic control instruction and the second phonetic control instruction are compared, judge the first phonetic controlIt instructs whether identical as the second phonetic control instruction;
If the first phonetic control instruction is identical as the second phonetic control instruction, the first phonetic control is determinedSystem instruction is consistent with the second phonetic control instruction.
Preferably, the first phonetic control instruction includes multiple first character fields, and each first character field is correspondingA text in the default control instruction, the second phonetic control instruction includes multiple second character fields, each describedSecond character field corresponds to a word tone in the phonetic control command, judgement the first phonetic control instruction with it is describedThe step of whether the second phonetic control instruction is consistent further include:
If the first phonetic control instruction and the second phonetic control instruction be not identical, successively by each describedTwo character fields are compared with each first character field, by the second character field being consistent with first character field labeled as repetitionCharacter field;
The ratio for calculating the number of the repeat character (RPT) section and the sum of first character field obtains repeating ratio, and sentencesWhether the repetition ratio that breaks is greater than or equal to preset threshold;
When it is described repeat ratio and be greater than or equal to preset threshold when, execute the control intelligent terminal execute with it is describedDefault control instructs the step of corresponding predetermined registration operation.
Preferably, described successively to compare each second character field and each first character field, will with it is describedThe second character field that first character field is consistent be labeled as repeat character (RPT) section the step of include:
Successively each second character field and each first character field are compared, judge second character field withWhether first character field is identical;
If second character field is identical as first character field, the second character being consistent with first character fieldSegment mark is to repeat character field.
Preferably, described successively to compare each second character field and each first character field, will with it is describedThe second character field that first character field is consistent is labeled as the step of repeat character (RPT) section further include:
If second character field and first character field be not identical, dialect replacement rule corresponding with default dialect are obtainedThen, and judge whether first character field and second character field meet default dialect Substitution Rules;
If first character field and second character field meet default dialect Substitution Rules, first word is determinedIt is identical as second character field to accord with section, and the second character field being consistent with first character field is labeled as repeat character (RPT)Section.
Preferably, the intelligent terminal includes display screen, the default control instruction obtained under current scene and by instituteBefore stating the step of control instruction is converted to the first phonetic control instruction, the control method of the intelligent terminal is further comprised the steps of:
It controls the display screen and shows the default control instruction.
Preferably, the control method of the intelligent terminal further comprises the steps of:
When not receiving phonetic control command, when obtaining the display screen and showing the display of default control instructionIt is long;
Judge whether the display time is more than preset duration;
If the display duration is more than preset duration, prompting message is issued to prompt user to issue phonetic control command.
The present invention also provides a kind of intelligent terminals, which is characterized in that the intelligent terminal include processor, memory, withAnd it is stored in the control program for the intelligent terminal that can be executed on the memory and by the processor, wherein the intelligent terminalControl program when being executed by the processor, perform the steps of
The default control under current scene is obtained to instruct and the control instruction is converted to the first phonetic control instruction;
Phonetic control command is received, and the phonetic control command is converted into the second phonetic control instruction;
Judge whether the first phonetic control instruction is consistent with the second phonetic control instruction;
If the first phonetic control instruction is consistent with the second phonetic control instruction, controls the intelligent terminal and holdRow predetermined registration operation corresponding with default control instruction.
Preferably, the intelligent terminal includes display screen, and the control program of the intelligent terminal is executed by the processorWhen, also perform the steps of
It controls the display screen and shows the default control instruction.
The present invention also provides a kind of computer readable storage medium, intelligence is stored on the computer readable storage mediumThe control program of terminal, wherein being realized as above described in any item when the control program of the intelligent terminal is executed by processorThe step of control method of intelligent terminal.
In technical solution of the present invention, obtains the default control under current scene and instruct and control instruction is converted into the first spellingSound control instruction;Phonetic control command is received, and phonetic control command is converted into the second phonetic control instruction;Judge the first spellingWhether sound control instruction is consistent with the second phonetic control instruction;If the first phonetic control instruction and the second phonetic control instruction phaseSymbol then controls intelligent terminal and executes predetermined registration operation corresponding with default control instruction.By judging a phonetic control instruction and theWhether two phonetic control instructions, which are consistent, judges whether phonetic control command instructs with default control and is consistent, and in the first phonetic controlWhen system instruction is consistent with the second phonetic control instruction, control intelligent terminal executes predetermined registration operation corresponding with default control instruction,So that intelligent terminal executes the operation being consistent with voice command.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to the control method of intelligent terminal be mainly used in intelligent terminal, which can be withIt is the intelligent terminal that PC, portable computer etc. have display and processing function.
Referring to Fig.1, Fig. 1 is intelligent terminal structural schematic diagram involved in the embodiment of the present invention.The embodiment of the present inventionIn, intelligent terminal may include processor 1001 (such as CPU), communication bus 1002, user interface 1003, network interface1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components;User interface 1003It may include display screen (Display), input unit such as keyboard (Keyboard);Network interface 1004 optionally may includeStandard wireline interface and wireless interface (such as WI-FI interface);Memory 1005 can be high speed RAM memory, be also possible to steadyFixed memory (non-volatile memory), such as magnetic disk storage, memory 1005 optionally can also be independently ofThe storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that hardware configuration shown in Fig. 1 does not constitute the restriction to intelligent terminal, it canTo include perhaps combining certain components or different component layouts than illustrating more or fewer components.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of computer readable storage medium may include operation systemThe control program of system, network communication module and intelligent terminal.
In Fig. 1, network communication module is mainly used for connecting server, carries out data communication with server;And processor1001 can call the control program of the intelligent terminal stored in memory 1005, and execute following operation:
The default control under current scene is obtained to instruct and control instruction is converted to the first phonetic control instruction;
Phonetic control command is received, and phonetic control command is converted into the second phonetic control instruction;
Judge whether the first phonetic control instruction is consistent with the second phonetic control instruction;
If the first phonetic control instruction is consistent with the second phonetic control instruction, intelligent terminal execution and default control are controlledInstruct corresponding predetermined registration operation.
Further, judge that the step of whether the first phonetic control instruction is consistent with the second phonetic control instruction includes:
First phonetic control instruction and the second phonetic control instruction are compared, judge that the first phonetic control instruction is spelled with secondWhether sound control instruction is identical;
If the first phonetic control instruction is identical as the second phonetic control instruction, the first phonetic control instruction and second is determinedPhonetic control instruction is consistent.
Further, the first phonetic control instruction includes multiple first character fields, the corresponding default control of each first character fieldA text in system instruction, the second phonetic control instruction includes multiple second character fields, and each second character field corresponds to voiceA word tone in control instruction judges that the step of whether the first phonetic control instruction is consistent with the second phonetic control instruction also wrapsIt includes:
If the first phonetic control instruction and the second phonetic control instruction be not identical, successively by each second character field and oftenA first character field compares, and the second character field being consistent with the first character field is labeled as repeat character (RPT) section;
The ratio for calculating the number of repeat character (RPT) section and the sum of the first character field obtains repeating ratio, and judges to repeat ratioWhether value is greater than or equal to preset threshold;
When repeating ratio more than or equal to preset threshold, it is corresponding with default control instruction to execute control intelligent terminal executionPredetermined registration operation the step of.
Further, described successively to compare each second character field and each first character field, it will be with the first character fieldThe second character field being consistent be labeled as repeat character (RPT) section the step of include:
Successively each second character field and each first character field are compared, judge that the second character field is with the first character fieldIt is no identical;
If the second character field is identical as the first character field, by the second character field being consistent with the first character field labeled as repetitionCharacter field.
Further, successively each second character field and each first character field are compared, will be consistent with the first character fieldThe second character field be labeled as repeat character (RPT) section the step of further include:
If the second character field and the first character field be not identical, dialect Substitution Rules corresponding with default dialect are obtained, and sentenceWhether disconnected first character field and the second character field meet default dialect Substitution Rules;
If the first character field and the second character field meet default dialect Substitution Rules, the first character field and the second word are determinedDuan Xiangtong is accorded with, and the second character field being consistent with the first character field is labeled as repeat character (RPT) section.
Further, intelligent terminal includes display screen, obtains the default control instruction under current scene and by control instructionBefore the step of being converted to the first phonetic control instruction, processor 1001 can call the intelligent terminal stored in memory 1005Control program, and execute following operation:
It controls display screen and shows default control instruction.
Further, processor 1001 can call the control program of the intelligent terminal stored in memory 1005, and holdThe following operation of row:
When not receiving phonetic control command, the display duration that display screen shows default control instruction is obtained;
Judge show whether the time is more than preset duration;
If showing, duration is more than preset duration, issues prompting message to prompt user to issue phonetic control command.
Based on the hardware configuration of above-mentioned intelligent terminal, each embodiment of the control method of intelligent terminal of the present invention is proposed.
The present invention provides a kind of control method of intelligent terminal.
Referring to Fig. 2, in an embodiment of the present invention, the control method of intelligent terminal the following steps are included:
S11: it obtains the default control under current scene and instructs and control instruction is converted into the first phonetic control instruction;
The control method of the intelligent terminal of the embodiment of the present invention is used to control the intelligent terminal of the embodiment of the present invention.The present inventionThe control method of the intelligent terminal of embodiment is realized by the intelligent terminal of the embodiment of the present invention.Intelligent terminal includes display screen, is shownDisplay screen can show current scene, can show presetting under current scene by control intelligent terminal after intelligent terminal shows sceneControl instruction.Such as when user needs to scan for using intelligent terminal, under the input scene of function of search, control instructionIt is instructed including " emptying input " this default control, to prompt user can be by the phonetic control command of sending " emptying input "To execute the operation for emptying input." emptying input " can be shown by control intelligent terminal after entering input scene, and will emptyInput " is converted to the first phonetic control instruction.The quantity of default control instruction is either one or more.
S12: phonetic control command is received, and phonetic control command is converted into the second phonetic control instruction;
Intelligent terminal includes voice acquisition module, and user can issue phonetic control command, such intelligence to voice acquisition moduleEnergy terminal receives control instruction by voice acquisition module, and phonetic control command is converted to second using audio recognition methodPhonetic control instruction.
S13: judge whether the first phonetic control instruction is consistent with the second phonetic control instruction;
S14: it if the first phonetic control instruction is consistent with the second phonetic control instruction, controls intelligent terminal and executes and presetThe corresponding predetermined registration operation of control instruction.
Since one section of Chinese character only corresponds to one section of phonetic, one section of voice also only corresponds to one section of phonetic, then referring to default controlEnabling corresponding first phonetic control instruction is uniquely that the second phonetic control instruction corresponding with phonetic control command is also onlyOne, although one section of phonetic can correspond to multiple and different Chinese character sections, it is identical not have multiple pronunciations usually under a sceneDefault control instruction.When the first phonetic control instruction is consistent with the second phonetic control instruction, i.e., it is believed that with the second voiceThe corresponding phonetic control command of control instruction and default control corresponding with the first phonetic control command instruction are consistent, control intelligenceTerminal executes predetermined registration operation corresponding with default control instruction, so that intelligent terminal executes the operation being consistent with voice command.
In the control method of the intelligent terminal of the embodiment of the present invention, obtains the default control instruction under current scene and will controlSystem instruction is converted to the first phonetic control instruction;Phonetic control command is received, and phonetic control command is converted into the second phoneticControl instruction;Judge whether the first phonetic control instruction is consistent with the second phonetic control instruction;If the first phonetic control instruction withSecond phonetic control instruction is consistent, then controls intelligent terminal and execute predetermined registration operation corresponding with default control instruction.Pass through judgementWhether one phonetic control instruction and the second phonetic control instruction are consistent to judge whether phonetic control command instructs with default controlIt is consistent, and when the first phonetic control instruction is consistent with the second phonetic control instruction, control intelligent terminal executes and default controlCorresponding predetermined registration operation is instructed, so that intelligent terminal executes the operation being consistent with voice command.
Please refer to figs. 2 and 3, and based on the above embodiment, step S13 includes:
S131: the first phonetic control instruction and the second phonetic control instruction are compared, judge the first phonetic control instruction withWhether the second phonetic control instruction is identical;
Successively each character of the first phonetic control instruction and each character of the second phonetic control instruction can be compared, be sentencedWhether each character of disconnected first phonetic control instruction and each character of the second phonetic control instruction are corresponding unanimously to judge theWhether one phonetic control instruction and the second phonetic control instruction are identical.
S132: if the first phonetic control instruction is identical as the second phonetic control instruction, determine the first phonetic control instructionIt is consistent with the second phonetic control instruction.
If each character of a phonetic control instruction is corresponding with each character of the second phonetic control instruction consistent, canDetermine that the first phonetic control instruction is identical as the second phonetic control instruction.
Fig. 2 and Fig. 4 is please referred to, based on the above embodiment, the first phonetic control instruction includes multiple first character fields, eachFirst character field corresponds to a text in default control instruction, and the second phonetic control instruction includes multiple second character fields, oftenA second character field corresponds to a word tone in phonetic control command, step S13 further include:
S133: if the first phonetic control instruction and the second phonetic control instruction be not identical, successively by each second characterSection is compared with each first character field, and the second character field being consistent with the first character field is labeled as repeat character (RPT) section;
It is appreciated that the first phonetic control instruction includes multiple first character fields, the corresponding default control of each first character fieldA text in system instruction, the second phonetic control instruction includes multiple second character fields, and each second character field corresponds to voiceA word tone in control instruction.When the first phonetic control instruction and the second phonetic control instruction be not identical, it may be possible to userIt does not issue and instructs corresponding phonetic control command completely, such as the phonetic control command that user issues to be omitted with default controlPart field has exchanged word order, and when default control instruction is " emptying input ", the phonetic control command that user issues is" emptying ", in order to enable intelligent terminal can also execute the operation being consistent with phonetic control command, the first phonetic in this caseControl instruction and the second phonetic control instruction be not identical, then successively compares each second character field and each first character field,And the second character field being consistent with the first character field is labeled as repeat character (RPT) section, it in this way can be by judging the number of Repeating FieldIdentify default control instruction corresponding with phonetic control command.
S134: the ratio for calculating the number of repeat character (RPT) section and the sum of the first character field obtains repeating ratio, and judgesRepeat whether ratio is greater than or equal to preset threshold;
Preset threshold is greater than 0 and less than 1.Preset threshold can be set by developer, can also be by user according to dailyHabit passes through operation intelligent terminal sets itself.In the present embodiment, preset threshold 0.5 is preset certainly in other embodimentsThreshold value may be other values, for example, may be set to 0.6,0.75 etc..
When repeating ratio more than or equal to preset threshold, execute step S14: control intelligent terminal executes and default controlThe step of instructing corresponding predetermined registration operation.
When repeat ratio be greater than or equal to preset threshold when, it is believed that user issue phonetic control command be omitted it is pre-If the part field in control instruction, intelligent terminal can control to execute the step of instructing corresponding predetermined registration operation with default control.
In this way, can also be matched when part field or simple tune word order is omitted in the phonetic control command that user issuesIt is instructed to default control corresponding with phonetic control command, phonetic control command is more intelligently identified, so that opportunity interactedThe user experience of journey is more preferable.
Fig. 4 and Fig. 5 is please referred to, based on the above embodiment, step S133 includes:
S1331: successively each second character field and each first character field are compared, judge the second character field and the first wordWhether identical accord with section;
S1332: if the second character field is identical as the first character field, the second character segment mark for will being consistent with the first character fieldTo repeat character field.
It can be according to word order, first by first the first character field and each first character field ratio in the second phonetic control instructionIt is right, the first character field identical with the second character field is judged whether there is, if there is the first character field identical with the second character field,It is identical as the first character field to determine the second character field, if the first character field not identical with the second character field, determines secondCharacter field and the first character field.According still further to word order by next first character field and each first in the second phonetic control instructionCharacter field compares, and until that will complete to compare each second character field and each first character field, and obtains each second characterSection and the whether identical judging result of each first character field.And it is judging result is identical as the first character field for the second character fieldThe second character field be labeled as Repeating Field.
Fig. 4 and Fig. 6 is please referred to, based on the above embodiment, step S133 further include:
S1333: if the second character field and the first character field be not identical, dialect replacement rule corresponding with default dialect are obtainedThen, and judge whether the first character field and the second character field meet default dialect Substitution Rules;
Multiple dialect Substitution Rules can be stored in the server connecting in the memory of intelligent terminal or with intelligent terminal,User can select a dialect Substitution Rules as default dialect Substitution Rules by operating intelligent terminal.In dialect Substitution RulesThe rule of the phonetic transcriptions of Chinese characters of standard is converted to comprising multiple pronunciations by dialect, such as flat tongue consonant turns cacuminal, pre-nasal sound turnsNasal sound etc. afterwards.Such as cancelling corresponding dialect phonetic may be " cexiao ", then can be incited somebody to action according to dialect transformation rule" cexiao " is converted to " chexiao ".In the second character field and not identical the first character field, it may be possible to the language that user issuesSound control signal has dialectal accent, then can also execute and phonetic control command pair to make intelligent terminal in this caseThe operation answered can further judge the first character field and the second character in the second character field and not identical the first character fieldWhether section meets default dialect Substitution Rules.
S1334: if the first character field and the second character field meet default dialect Substitution Rules, determine the first character field withSecond character field is identical, and the second character field being consistent with the first character field is labeled as repeat character (RPT) section.
If the first character field and the second character field meet default dialect Substitution Rules, illustrate the corresponding use of the second fieldThe Chinese character that family is intended by is actually identical with the first field, then can determine that the first character field and the second character field phaseTogether, the second character field being consistent with the first character field is labeled as repeat character (RPT) section.In this way, the voice control letter issued in userWhen number having dialectal accent, also can accurately the speech-input instructions with dialectal accent be converted to and meet Chinese phonetic alphabet markSecond phonetic control instruction of brick, and it is matched to default control instruction corresponding with phonetic control command, such intelligent terminal energyIt is enough more intelligently to identify phonetic control command, so that the user experience of opportunity interactive process is more preferable.
Referring to Fig. 7, based on the above embodiment, the control method of intelligent terminal further comprises the steps of:
S15: when not receiving phonetic control command, the display duration that display screen shows default control instruction is obtained;
S16: judge show whether the time is more than preset duration;
S17: if display duration is more than preset duration, prompting message is issued to prompt user to issue phonetic control command.
When being not received by phonetic control command, it may be possible to which user does not recognize can be by issuing phonetic control commandIntelligent terminal is controlled, then prompt can be issued when display screen shows the display duration of default control instruction more than preset durationMessage prompts user to issue phonetic control command.Prompting message can for example issue in such a way that pop-up prompts, and can also lead toThe mode for crossing voice prompting issues.Certainly, in other embodiments, prompting message can also issue by other means.
In this way, user do not recognize can by issue phonetic control command control intelligent terminal or do not know asWhen what controls intelligent terminal by issuing phonetic control command, user is prompted to issue phonetic control command by issuing prompting messageIt controls intelligent terminal and executes corresponding operation.
In addition, the present invention also provides a kind of computer readable storage mediums.
The control program of intelligent terminal, computer readable storage medium are stored on computer readable storage medium of the present inventionOn be stored with the control program of intelligent terminal, wherein when the control program of intelligent terminal is executed by processor, realize such as above-mentionedThe step of control method of the intelligent terminal of one embodiment.
Wherein, the control program of intelligent terminal, which is performed realized method, can refer to the control of intelligent terminal of the present inventionEach embodiment of method, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-rowHis property includes, so that the process, method, article or the system that include a series of elements not only include those elements, andAnd further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsicElement.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to doThere is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment sideMethod can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many casesThe former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior artThe part contributed out can be embodied in the form of software products, which is stored in one as described aboveIn storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hairEquivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skillsArt field, is included within the scope of the present invention.