A kind of timing voice operating method, apparatus and system
Technical field
The present invention relates to voice operating technical field, in particular to a kind of timing voice operating method, apparatus and system.
Background technique
With the development of science and technology, more and more smart machines are used widely in schedule life, these intelligence
Electronic operation control of the energy housed device from initial mechanically actuated control till now, realizes more and more intelligentized operation
Control.
However, be initial mechanically actuated control or later electronic operation control, require user's operation button or
Key realizes the operation control to equipment, and stronger and stronger with functions of the equipments, and the function of needing to operate is also increasingly
It is more, for example the operation button of the housed devices top such as our common micro-wave oven, oven, water heaters is more and more more and more multiple
Miscellaneous, this virtually increases the difficulty of user's operation, is not easy to the operation of user, for example we want to do a timing to equipment
Operation, it may be necessary to which multi-pass operation button realizes time and the function of wanted timing.In addition, more function is by less
Button realize that for the user relatively low for operative skill, for example old man, association's operation are relatively elaborate.
Therefore the deficiencies of existing equipment fixed cycle operator has convenience poor, complicated for operation, high to user's operation skill requirement
Place.
Summary of the invention
The present invention provides a kind of timing voice operating method, apparatus and system, and timing exists in the prior art to solve
Poor operation convenience, problem complicated for operation are realized and are more convenient, are quick, convenient for the fixed cycle operator of operation.
The present invention provides a kind of timing voice operating method, comprising:
Obtain the voice command information of user's input;
Written order information is converted by institute's speech commands information;
Identify in the written order information whether there is number;
When there is number, operational order and clocked command are generated according to the written order information;
Relevant operation is executed according to the operational order and clocked command.
In some alternative embodiments, operational order and clocked command are generated according to the written order information, specifically
Include:
Nonnumeric literal in the written order information is matched with preset operational order word and clocked command word,
When successful match, operational order and clocked command are generated according to the operational order word of successful match and clocked command word.
It in some alternative embodiments, include the current command and lag order in the operational order;The timing life
It include the lag duration information of lag order in order.
In some alternative embodiments, the generation operational order and clocked command, specifically include:
Extract the operational order word and clocked command word of successful match in the written order information;
Judge whether the operational order word has corresponding clocked command word or hysteretic operation deictic words;
When the judgment is yes, lag order and corresponding clocked command are generated;When the judgment is no, the current command is generated.
In some alternative embodiments, described to convert written order information for institute's speech commands information, it is specific to wrap
It includes:
Using selected acoustic model and language model, the highest text of voice command information matches degree with input is determined
It is corresponding for written order information to obtain voice command information for command information.
In some alternative embodiments, it using selected acoustic model and language model, determines and is ordered with the voice of input
The highest written order information of information matches degree is enabled, is specifically included:
Using selected language model, according to participle each in text to be matched relative to the general of all currently known words
Rate determines the sequence of text to be matched probability itself;
Determine that text to be matched issues the probability of this section of voice of voice command information using selected acoustic model;
Determine that the sequence of text to be matched probability itself issues the general of this section of voice of voice command information with text to be matched
The maximum text to be matched of the product of rate is the highest written order information of voice command information matches degree.
In some alternative embodiments, the voice command information for obtaining user's input, specifically includes:
Obtain the voice command information that user is inputted by local input interface;Or
Obtain the voice command information that user is inputted by Terminal Server Client and network sends over by wireless communication.
The embodiment of the present invention also provides a kind of timing voice operating device, comprising:
Voice obtains module, for obtaining the voice command information of user's input;
Voice conversion module, for converting written order information for institute's speech commands information;
Whether content identifier module has number in the written order information for identification;When there is number, notification command
Generation module;
Order generation module, for generating operational order and clocked command according to the written order information;
Operation executing module, for executing relevant operation according to the operational order and clocked command.
In some alternative embodiments, the order generation module, is specifically used for:
Nonnumeric literal in the written order information is matched with preset operational order word and clocked command word,
When successful match, operational order and clocked command are generated according to the operational order word of successful match and clocked command word.
In some alternative embodiments, the order generation module, is specifically used for:
Extract the operational order word and clocked command word of successful match in the written order information;
Judge whether the operational order word has corresponding clocked command word or hysteretic operation deictic words;
When the judgment is yes, lag order and corresponding clocked command are generated;When the judgment is no, the current command is generated.
In some alternative embodiments, the voice conversion module, is specifically used for:
Using selected acoustic model and language model, the highest text of voice command information matches degree with input is determined
It is corresponding for written order information to obtain voice command information for command information.
In some alternative embodiments, the voice conversion module, is specifically used for:
Using selected language model, according to participle each in text to be matched relative to the general of all currently known words
Rate determines the sequence of text to be matched probability itself;
Determine that text to be matched issues the probability of this section of voice of voice command information using selected acoustic model;
Determine that the sequence of text to be matched probability itself issues the general of this section of voice of voice command information with text to be matched
The maximum text to be matched of the product of rate is the highest written order information of voice command information matches degree.
In some alternative embodiments, the voice obtains module, is specifically used for:
Obtain the voice command information that user is inputted by local input interface;Or
Obtain the voice command information that user is inputted by Terminal Server Client and network sends over by wireless communication.
The embodiment of the present invention also provides a kind of timing voice operating system, comprising: Terminal Server Client and fixed cycle operator equipment;
The Terminal Server Client, for receiving the voice command information of user's input, network is sent to by wireless communication
The fixed cycle operator equipment;
The fixed cycle operator equipment, the institute's speech commands information sent for obtaining the Terminal Server Client;It will be described
Voice command information is converted into written order information;Identify in the written order information whether there is number;When there is number, root
Operational order and clocked command are generated according to the written order information;According to operational order behaviour related to clocked command execution
Make.
In some alternative embodiments, the fixed cycle operator equipment, is specifically used for:
Nonnumeric literal in the written order information is matched with preset operational order word and clocked command word,
When successful match, operational order and clocked command are generated according to the operational order word of successful match and clocked command word.
In some alternative embodiments, the fixed cycle operator equipment, is specifically used for:
Extract the operational order word and clocked command word of successful match in the written order information;
Judge whether the operational order word has corresponding clocked command word or hysteretic operation deictic words;
When the judgment is yes, lag order and corresponding clocked command are generated;When the judgment is no, the current command is generated.
In some alternative embodiments, the fixed cycle operator equipment, is specifically used for:
Using selected acoustic model and language model, the highest text of voice command information matches degree with input is determined
It is corresponding for written order information to obtain voice command information for command information.
In some alternative embodiments, the fixed cycle operator equipment, is specifically used for:
Using selected language model, according to participle each in text to be matched relative to the general of all currently known words
Rate determines the sequence of text to be matched probability itself;
Determine that text to be matched issues the probability of this section of voice of voice command information using selected acoustic model;
Determine that the sequence of text to be matched probability itself issues the general of this section of voice of voice command information with text to be matched
The maximum text to be matched of the product of rate is the highest written order information of voice command information matches degree.
Timing voice operating method provided in an embodiment of the present invention, apparatus and system can realize that operation is fixed by voice
When, operation can be realized without operation button, facilitate user's operation, reduce the complexity of fixed cycle operator, realize more
It is convenient, fast, reduce the requirement to user's operation technical ability.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation
Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the flow chart of timing voice operating method in the embodiment of the present invention;
Fig. 2 is the flow chart of timing voice operating method in the embodiment of the present invention one;
Fig. 3 is the flow chart of timing voice operating method in the embodiment of the present invention two;
Fig. 4 is the structural schematic diagram of timing voice operating device in the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of timing voice operating system in the embodiment of the present invention.
Specific embodiment
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
In order to solve the problems in the prior art, the embodiment of the present invention provides a kind of timing voice operating method, this method
It can allow for equipment by local input and remote input voice operating order, realize the voice control to equipment.
Timing voice operating method provided in an embodiment of the present invention, process is as shown in Figure 1, include the following steps:
Step S101: the voice command information of user's input is obtained.
User can input voice command information by the speech voice input function module being arranged in fixed cycle operator equipment.Example
Such as: fixed cycle operator equipment is the gas-cooker or electric cooker that can be realized fixed cycle operator, user wants to realize boil half an hour after it is automatic
Stop, then user can input voice command information " closing fire after boiling half an hour ".
Step S102: the voice command information that will acquire is converted into written order information.
Fixed cycle operator equipment realizes the conversion of voice to text, to identify the operational order of user's input.Continue to use top
Example, fixed cycle operator equipment converts written order information for the voice command information that user inputs and " closes after boiling half an hour
Fire ".
For the voice command information of input, the matching highest word sequence of degree is found, realizes voice to text
The conversion of word obtains written order information, and wherein matching degree can be indicated with probability.Such as voice command information, W are indicated with Y
It indicates written order information, is then to find and the highest W of Y matching degree.Selected acoustic model and language model can be used,
It determines the highest written order information of voice command information matches degree with input, it is corresponding for text to obtain voice command information
Command information.
Step S103: identify in the written order information being converted to whether there is number.When there is number, step is executed
S104;When there is no number, step S106 is executed.
Whether there are number, especially time figure in fixed cycle operator equipment identification written order information.Continue to use the example of top
Son, the number for including in written order information are " half an hour ".
Step S104: operational order and clocked command are generated according to the written order information being converted to.
When there is number, illustrate to need fixed cycle operator, then converts operational order and immediately order for text information, at this time
Word segmentation processing can be carried out to written order information, operational order word, clocked command word are found out from the word obtained after participle,
Operational order and clocked command are generated according to the operational order word and clocked command word obtained after participle.
It wherein, include the current command and lag order in operational order, the current command is currently performed order, lag life
Order is the order executed after timing;Include the lag duration information of lag order in clocked command, also may include the current command
Duration information.The number usually identified in written order information.
The example of top is continued to use, after written order information is segmented, the operational order word that can be found out has " boiling " and " closes
Fire ", clocked command word has " half an hour ", and there are also the hysteretic operation deictic words " rear " for characterizing hysteretic operation, according to this isolated
Incidence relation between a little participles, such as logical relation, time order and function relationship etc., it is known that " half an hour " this clocked command
Word is the lag duration information of operational order word " closing fire ", it may also be said to be the duration information of operational order word " boiling ", lead to
Sequence word distinguishes the current command and lag order when crossing as " rear ".Therefore, available the current command " boiling ", lag order
" closing fire " indicates the clocked command " half an hour " of lag order lag duration information or the current command duration information.
Step S105: relevant operation is executed according to the operational order of generation and clocked command.
After generating operational order and clocked command, fixed cycle operator equipment can execute the operational order and timing life of generation
It enables, continues to use the example of top, execute the current command " boiling " and clocked command " half an hour ", adjust the size or heating temperature of fire,
To meet the condition boiled, duration is half an hour;Execute lag order " close fire " and clocked command " half an hour ", execution it is stagnant
Fire is closed in a length of half an hour when afterwards, the timing since the processing boiled automatically after half an hour.
Step S106: terminate this fixed cycle operator process.
Optionally, prompt this fixed cycle operator of user failure, please re-enter operational order.
Technical solution provided in an embodiment of the present invention also can be square even if user is unfamiliar with the button or button operation of equipment
Fixed cycle operator is realized in being inputted by simple voice just, and convenient, fast, strong operability operates conveniently.
Embodiment one
The embodiment of the present invention one provides a kind of concrete methods of realizing of timing voice operation, and process is as shown in Fig. 2, include
Following steps:
Step S201: the voice command information that user is inputted by local input interface is obtained.
The module with speech voice input function is locally located in fixed cycle operator equipment, and user can be connect by local input
Mouthful, directly against fixed cycle operator equipment typing voice.
Step S202: the voice command information that will acquire is converted into written order information.
Using selected acoustic model and language model, the highest text of voice command information matches degree with input is determined
Command information can specifically include:
Using selected language model, according to participle each in text to be matched relative to the general of all currently known words
Rate determines the sequence of text to be matched probability itself;
Determine that text to be matched issues the probability of this section of voice of voice command information using selected acoustic model;
Determine that the sequence of text to be matched probability itself issues the general of this section of voice of voice command information with text to be matched
The maximum text to be matched of the product of rate is the highest written order information of voice command information matches degree.
Then it is written order information that available voice command information is corresponding.
Step S203: identify in the written order information being converted to whether there is number.
When there is number, step S204 is executed;When there is no number, step S207 is executed.
Step S204: by the nonnumeric literal and preset operational order word and timing in the written order information being converted to
Order word matches.
Operational order word and clocked command word dictionary can be locally located in advance, convert text for voice command information
It, can be by the operational order word and clocked command word of the nonnumeric part therein obtained after participle and storage after command information
Matched to confirm that whether including operational order word and clocked command word in written order information.
When successful match, step S205 is executed;When non-successful match, step S207 is executed.
Step S205: operational order and clocked command are generated according to the operational order word of successful match and clocked command word.
When successful match, corresponding operation order and clocked command can be generated.
Step S206: relevant operation is executed according to the operational order of generation and clocked command.
Step S207: terminate this fixed cycle operator process.
Optionally, prompt this fixed cycle operator of user failure, please re-enter operational order.
Embodiment two
Second embodiment of the present invention provides a kind of concrete methods of realizing of timing voice operation, and process is as shown in figure 3, include
Following steps:
Step S301: user inputs voice command information by Terminal Server Client.
Such case is suitable for the remote operation of user, such as user stays out or when no longer in front of fixed cycle operator equipment,
Also it can easily be timed operation, realize the defeated of voice command information by equipment such as Terminal Server Clients, such as mobile terminal
Enter.
Step S302: the voice command information of input is sent to fixed cycle operator equipment by Terminal Server Client.
Terminal Server Client, such as mobile terminal network and timing device can establish communication connection by wireless communication, will
The voice command information of user's input is sent to fixed cycle operator equipment.
Step S303: fixed cycle operator equipment obtains the voice command information that Terminal Server Client sends over.
Fixed cycle operator equipment obtains the language that user is inputted by Terminal Server Client and network sends over by wireless communication
Sound command information realizes the acquisition of the order of remote timing operation.
Step S304: the voice command information that will acquire is converted into written order information.
Step S305: identify in the written order information being converted to whether there is number.
When there is number, step S306 is executed;When there is no number, step S312 is executed.
Step S306: by the nonnumeric literal and preset operational order word and timing in the written order information being converted to
Order word matches.
When successful match, step S307 is executed;When there is no successful match, step S312 is executed.
Step S307: the operational order word and clocked command word of successful match in written order information are extracted.
Using the operational order word of successful match in written order information and clocked command word as provincial capital operational order and i.e.
When the keyword ordered, to generate corresponding operational order and clocked command.
Step S308: judge whether operational order word has corresponding clocked command word or hysteretic operation deictic words.If so, holding
Row step S309;If it is not, executing step S310.
Whether there is corresponding hysteretic operation mark word according to operational order, to determine that generating the current command still lags life
It enables.Here by judging whether operational order word has corresponding clocked command word or hysteretic operation deictic words, if need to generate
Lag order, can for there is the operational order word of associated pre-stored hysteretic operation deictic words and/or clocked command word
To generate lag order, the current command is otherwise generated.
Step S309: lag order and corresponding clocked command are generated.
For example, continuing to use the example of top, the operational order just executed for related hysteretic operation deictic words " rear " " is closed
Fire " generates lag order and corresponding clocked command.
Step S310: the current command is generated.
Above-mentioned steps 306- step S310 is realized to be generated according to the operational order word and clocked command word of successful match and be grasped
Make order and clocked command.
Step S311: relevant operation is executed according to the operational order of generation and clocked command.
Step S312: terminate this fixed cycle operator process.
Long-range fixed cycle operator may be implemented in technical solution provided in an embodiment of the present invention, has been more convenient user's realization pair
The fixed cycle operator of fixed cycle operator equipment.
Based on the same inventive concept, the embodiment of the present invention also provides a kind of timing voice operating device, structure such as Fig. 4 institute
Show, comprising: voice obtains module 401, voice conversion module 402, content identifier module 403, order generation module 404 and operation
Execution module 405.
Voice obtains module 401, for obtaining the voice command information of user's input.
Voice conversion module 402, for converting written order information for the voice command information of input.
Whether content identifier module 403 has number in the written order information being converted to for identification;When there is number,
Notification command generation module 404.
Order generation module 404, for generating operational order and clocked command according to the written order information being converted to.
Operation executing module 405, for executing relevant operation according to the operational order and clocked command of generation.
Preferably, mentioned order generation module 404, specifically for by nonnumeric literal in written order information and default
Operational order word and clocked command word match, when successful match, ordered according to the operational order word of successful match and timing
Word is enabled to generate operational order and clocked command.
Preferably, mentioned order generation module 404, the operation specifically for extracting successful match in written order information are ordered
Enable word and clocked command word;Judge whether the operational order word extracted has corresponding clocked command word or hysteretic operation deictic words;
When the judgment is yes, lag order and corresponding clocked command are generated;When the judgment is no, the current command is generated.
Preferably, above-mentioned voice conversion module 402, specifically for determining using selected acoustic model and language model
With the highest written order information of voice command information matches degree of input, it is corresponding for written order to obtain voice command information
Information.
Preferably, above-mentioned voice conversion module 402, specifically for using selected language model, according to text to be matched
In each probability of the participle relative to all currently known words, determine the sequence of text to be matched probability itself;Using selected
Acoustic model determines that text to be matched issues the probability of this section of voice of voice command information;Determine the sequence of text to be matched itself
Probability and text to be matched issue the maximum text to be matched of product of the probability of this section of voice of voice command information as voice life
Enable the highest written order information of information matches degree.
Preferably, above-mentioned voice obtains module 401, the voice inputted specifically for obtaining user by local input interface
Command information;Or it obtains the voice command that user is inputted by Terminal Server Client and network sends over by wireless communication and believes
Breath.
Based on the same inventive concept, for remote input voice operating order the case where, the embodiment of the present invention also provides one
Kind timing voice operating system, the system structure are as shown in Figure 5, comprising: Terminal Server Client 501 and fixed cycle operator equipment 502.
Terminal Server Client 501, for receiving the voice command information of user's input, network sends given by wireless communication
When operate equipment 502.
Fixed cycle operator equipment 502, including timing voice operating device as shown in Figure 4, available user passes through long-range
Client input and the voice command information that network sends over by wireless communication.Fixed cycle operator equipment 502, it is remote for obtaining
The voice command information for user's input that journey client is sent;Written order information is converted by the voice command information of input;
Identify in the written order information being converted to whether there is number;When there is number;It is generated according to the written order information being converted to
Operational order and clocked command;Relevant operation is executed according to the operational order of generation and clocked command.
Preferably, above-mentioned fixed cycle operator equipment 502, specifically for by nonnumeric literal in written order information and default
Operational order word and clocked command word match, when successful match, ordered according to the operational order word of successful match and timing
Word is enabled to generate operational order and clocked command.
Preferably, above-mentioned fixed cycle operator equipment 502, the operation specifically for extracting successful match in written order information are ordered
Enable word and clocked command word;Judge whether operational order word has corresponding clocked command word or hysteretic operation deictic words;Work as judgement
When to be, lag order and corresponding clocked command are generated;When the judgment is no, the current command is generated.
Preferably, above-mentioned fixed cycle operator equipment 502, specifically for determining using selected acoustic model and language model
With the highest written order information of voice command information matches degree of input, it is corresponding for written order to obtain voice command information
Information.
Preferably, above-mentioned fixed cycle operator equipment 502, specifically for using selected language model, according to text to be matched
In each probability of the participle relative to all currently known words, determine the sequence of text to be matched probability itself;Using selected
Acoustic model determines that text to be matched issues the probability of this section of voice of voice command information;Determine the sequence of text to be matched itself
Probability and text to be matched issue the maximum text to be matched of product of the probability of this section of voice of voice command information as voice life
Enable the highest written order information of information matches degree.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.