CN108572594A - Generation method, device and the terminal device of smart machine control instruction - Google Patents
Generation method, device and the terminal device of smart machine control instruction Download PDFInfo
- Publication number
- CN108572594A CN108572594A CN201810436202.9A CN201810436202A CN108572594A CN 108572594 A CN108572594 A CN 108572594A CN 201810436202 A CN201810436202 A CN 201810436202A CN 108572594 A CN108572594 A CN 108572594A
- Authority
- CN
- China
- Prior art keywords
- smart machine
- preset
- information
- control instruction
- trigger condition
- 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
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/25—Pc structure of the system
- G05B2219/25257—Microcontroller
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Telephone Function (AREA)
Abstract
The application is suitable for smart machine control technology field, provides generation method, device and the terminal device of smart machine control instruction, including:Obtain voice messaging;Judge whether format and the preset voice input format of the voice messaging are identical, the preset voice input format includes that preset conditional statement, preset smart machine trigger condition, preset result sentence and preset smart machine execute action, or, action is executed including preset conditional statement and preset smart machine trigger condition, or including preset result sentence and preset smart machine;If the format of the voice messaging is identical as preset voice input format, the voice messaging is identified as corresponding text information;The control instruction of smart machine is generated according to the text information.By the above method, the time cost of user can be reduced.
Description
Technical field
The application belongs to the generation method of smart machine control technology field more particularly to smart machine control instruction, dress
It sets and terminal device.
Background technology
Currently, smart home technology is scarcely out of swaddling-clothes.For example, realizing the long-range distant of home equipment by terminal device
Control.Such as utilize air-conditioning, the water heater of mobile phone open family.
Since every secondary control home equipment is required for user to execute following steps:Terminal device is found, the intelligence is opened and sets
Standby screen, and the application icon for controlling home equipment is searched out in numerous application icons of the smart machine, then look for again
The home equipment being remotely controlled to needs, sends out control instruction, therefore, increases the operation complexity of user.
Invention content
In view of this, the embodiment of the present application provides generation method, device and the terminal device of smart machine control instruction,
Operation to solve the problems, such as home equipment in the prior art is excessively complicated.
The first aspect of the embodiment of the present application provides a kind of generation method of smart machine control instruction, including:
Obtain voice messaging;
Judge whether format and the preset voice input format of the voice messaging are identical, the preset voice input
Format includes that preset conditional statement, preset smart machine trigger condition, preset result sentence and preset intelligence are set
It is standby to execute action, alternatively, include preset conditional statement and preset smart machine trigger condition, or including preset knot
Fruit sentence and preset smart machine execute action;
If the format of the voice messaging is identical as preset voice input format, the voice messaging is identified as corresponding to
Text information;
The control instruction of smart machine is generated according to the text information.
The second aspect of the embodiment of the present application provides a kind of generating means of smart machine control instruction, including:
Voice messaging acquiring unit, for obtaining voice messaging;
Voice input format judging unit, for judging that the format of the voice messaging is with preset voice input format
No identical, the preset voice input format includes preset conditional statement, preset smart machine trigger condition, preset
As a result sentence and preset smart machine execute action, alternatively, including preset conditional statement and preset smart machine
Trigger condition, or execute action including preset result sentence and preset smart machine;
Voice messaging recognition unit will if the format for the voice messaging is identical as preset voice input format
The voice messaging is identified as corresponding text information;
Control instruction generation unit, the control instruction for generating smart machine according to the text information.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
The step of realizing the generation method such as the smart machine control instruction.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage
Media storage has computer program, is realized such as the smart machine control instruction when computer program is executed by processor
The step of generation method.
Existing advantageous effect is the embodiment of the present application compared with prior art:
Since the voice messaging of acquisition can be generated to the control instruction of smart machine, generating smart machine
After control instruction, the smart machine is if desired used, is executed without user and finds terminal device, open the screen of the terminal device
The operations such as curtain, to greatly simplify the operating procedure of user, also, the control for generating by way of voice smart machine refers to
It enables, is greatly reduced the complexity of user's operation, reduce and repeat configurability operation, to reduce the time cost of user.
Description of the drawings
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application
Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the flow diagram of the generation method of the first smart machine control instruction provided by the embodiments of the present application;
Fig. 2 is the flow diagram of the generation method of second of smart machine control instruction provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of the generating means of smart machine control instruction provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of terminal device provided by the embodiments of the present application.
Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc
Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific
The application can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, illustrated below by specific embodiment.
It should be appreciated that ought use in this specification and in the appended claims, the instruction of term " comprising " is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this present specification is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the application.As present specification and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is
Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, the mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch
Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other
Portable device.It is to be further understood that in certain embodiments, above equipment is not portable communication device, but is had
The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the mobile terminal including display and touch sensitive surface is described.However, should manage
Solution, mobile terminal may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects
Jaws equipment.
Mobile terminal supports various application programs, such as one of the following or multiple:Drawing application program, demonstration application
Program, word-processing application, website establishment application program, disk imprinting application program, spreadsheet applications, game are answered
With program, telephony application, videoconference application, email application, instant messaging applications, forging
Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer
With program, digital music player application and/or video frequency player application program.
The various application programs that can be executed on mobile terminals can use at least one of such as touch sensitive surface
Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick
Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example,
Touch sensitive surface) it can support the various application programs with intuitive and transparent user interface for a user.
In addition, in the description of the present application, term " first ", " second ", " third " etc. are only used for distinguishing description, and cannot
It is interpreted as indicating or implying relative importance.
Embodiment one:
Fig. 1 shows the flow signal of the generation method of the first smart machine control instruction provided by the embodiments of the present application
Figure, details are as follows:
Step S11 obtains voice messaging.
It is corresponding in the equipment that opens a terminal (such as mobile phone) to answer when user needs to create a control instruction in the step
With sending out the generation instruction (such as being sent out by the voice enter key of pressing interface display) of control instruction, terminal device is according to connecing
The generation of the control instruction of receipts instructs, and the microphone of control terminal equipment obtains the voice messaging around the terminal device, corresponding
Ground stops obtaining voice messaging after user stops pressing voice enter key.
Step S12 judges whether the format of the voice messaging and preset voice input format are identical, described preset
Voice input format includes preset conditional statement, preset smart machine trigger condition, preset result sentence and presets
Smart machine execute action, alternatively, include preset conditional statement and preset smart machine trigger condition, or including
Preset result sentence and preset smart machine execute action.
It should be pointed out that the content that preset voice input format includes does not limit sequencing, for example, no matter voice
The format of information is preset conditional statement+preset smart machine trigger condition, or triggers item for preset smart machine
Part+preset conditional statement all judges that it is identical as preset voice input format.
Wherein, above-mentioned smart machine includes following any:Temperature Humidity Sensor, switch, desk lamp, socket etc..
In the step, preset conditional statement includes following any word:If if as long as if,, assume etc.
Deng.Preset result sentence includes following any word:Just, so, then etc..
Optionally, the preset smart machine trigger condition includes single smart machine trigger condition or including multigroup intelligence
It can equipment trigger condition.Wherein, single smart machine trigger condition is the trigger condition of smart machine composition;Multigroup intelligence
Equipment trigger condition is the trigger condition of the single smart machine composition of at least two.
Optionally, the single smart machine trigger condition includes having bound the device name of smart machine and described having tied up
The operating status of smart machine is determined, alternatively, including having bound the device name of smart machine, the fortune for having bound smart machine
Row state and the first preset time configuration item.
Wherein, the device name of smart machine is such as switch, Temperature Humidity Sensor, certainly, it is assumed that same intelligence is set
When having multiple, corresponding device name answers its corresponding smart machine of unique mark that can be used for example, when switch has 2
Switch 1, switch 2 are distinguished as device name.
Wherein, above-mentioned smart machine of having bound refers to the equipment bound with terminal device, when smart machine and terminal device
After binding, which could be with the smart device communication.The operating status for having bound smart machine includes following
It is a kind of:In opening, open, closing, closing, temperature be higher than X degrees Celsius (such as 30 °).
Wherein, the first preset time configuration item includes mainly the temporal informations such as timing, period, it may for example comprise following any
Kind information:Daily 8 points, 13 points to 15 points etc..
Optionally, multigroup smart machine trigger condition includes the single smart machine trigger condition of at least two, and in office
It include the first logic of propositions conjunction between two single smart machine trigger conditions of anticipating.
Wherein, the first logic of propositions conjunction includes following any word:With or simultaneously and or wait.
For example, if multigroup smart machine trigger condition is 2 single smart machine trigger conditions, can be:If opened
Pass 1 opens and 2 temperature of Temperature Humidity Sensor is higher than 30 degrees Celsius.
Optionally, the preset smart machine execution action includes that single smart machine execution acts or including multigroup intelligence
Energy equipment executes action.
Optionally, the single smart machine execution action includes having bound the device name of smart machine and described having tied up
The operating status of smart machine is determined, alternatively, including having bound the device name of smart machine, the fortune for having bound smart machine
Row state and the second preset time configuration item.
Wherein, the operating status for having bound smart machine includes following any:It opens, close, adjusting color and being
Red etc..
Wherein, the second preset time configuration item includes mainly the temporal informations such as delay, period, for example, after five minutes, 13 points
To 15 points etc..
Optionally, the multigroup smart machine execution action includes that the single smart machine of at least two executes action, and in office
Include the second logic of propositions conjunction between the single smart machine execution action of meaning two.
Wherein, which can be identical as the first logic of propositions conjunction, but is generated to improve
Control instruction accuracy, then preferably limit the second logic of propositions conjunction as the corresponding word " with operation ", for example, packet
Include following any word:With and simultaneously etc..
In step S12, set if preset voice input format includes preset conditional statement and preset intelligence
Standby trigger condition, the then format of the voice messaging inputted can be:
If switch 1 opens (preset conditional statement and single smart machine trigger condition);If switch 1 opens simultaneously
And 2 temperature of Temperature Humidity Sensor is higher than 30 degrees Celsius (preset conditional statement and 2 single smart machine trigger conditions).
If preset voice input format, which includes preset result sentence and preset smart machine, executes action, defeated
The format of the voice messaging entered can be:
Turn on switch 1 (preset result sentence and single smart machine execute action);It turns on switch 1 and beats
Begin a theatrical performance lamp 2 (preset result sentence and 2 single smart machines execute action).
If preset voice input format includes preset conditional statement, preset smart machine trigger condition, preset
As a result sentence and preset smart machine execute action, then the format of the voice messaging inputted can be:
If the opening of switch 1 is shut off desk lamp 2 (preset conditional statement, single smart machine trigger condition and single
Smart machine executes action);If switch 1 is opened or the opening of switch 2 is shut off desk lamp 3 (preset conditional statement, 2 lists
A smart machine trigger condition and single smart machine execute action).
Step S13 knows the voice messaging if the format of the voice messaging is identical as preset voice input format
It Wei not corresponding text information.
It should be pointed out that the embodiment of the present application and the terminal device of smart machine binding have speech identifying function, i.e.,
Have the function that voice messaging is converted to text information, in this way, terminal device the voice messaging of acquisition is identified as it is corresponding
Text information.
Step S14 generates the control instruction of smart machine according to the text information.
Since smart machine automation refers to including trigger condition (one or more) simultaneously and executing action (one or more
Item) coordinated signals instruction, smart machine scene refer to only comprising the control instruction of action (one or more) is executed, therefore,
Smart machine automation or the establishment of smart machine scene can be realized by the voice messaging of the corresponding format of input.
In the embodiment of the present application, since the voice messaging of acquisition can be generated to the control instruction of smart machine,
After the control instruction for generating smart machine, the smart machine is if desired used, is executed without user and finds terminal device, is opened
The operations such as the screen of the terminal device to greatly simplify the operating procedure of user, also, generate intelligence by way of voice
The control instruction of energy equipment, is greatly reduced the complexity of user's operation, reduces and repeats configurability operation, to reduce user
Time cost.
Optionally, due in a practical situation, newly-generated control instruction may therewith previous existence at control instruction contradiction,
Therefore, it can ask whether to replace the control instruction generated before using newly-generated control instruction, be responded to avoid smart machine
The control instruction of mistake, i.e., after the step S14, including:
The information for the smart machine trigger condition that the control instruction for comparing the smart machine of generation includes and generated control
Whether the information for the smart machine trigger condition that system instruction includes is identical, if identical, is respectively compared the control of the smart machine of generation
Device name, the operating status of smart machine and generated control in the information for the smart machine execution action that system instruction includes
Whether the device name, the operating status of smart machine in the information for the smart machine execution action that system instruction includes are identical, if
Device name is identical but the operating status of smart machine is different, then asks the user whether to have generated the control instruction replacement of generation
Control instruction.
Optionally, since the control instruction of generation may be mistake, in order to ensure the standard of the control instruction generated
True property, after the step S14, including:
Show the control instruction of the smart machine generated.
Optionally, in the embodiment of the present application, in order to accelerate the formation speed of control instruction, if judging the voice letter
The format of breath is differed with preset voice input format, export identical with preset voice input format voice messaging and/
Or text information.In the step, when the format not clock synchronization of voice messaging input by user, in order to accelerate to obtain the correct language of format
Message ceases, then exports example identical with preset voice input format by the form of voice or word.
Embodiment two:
Fig. 2 shows the signals of the flow of the generation method of second of smart machine control instruction provided by the embodiments of the present application
Figure, the step S21 of the present embodiment, step S22, step S23 respectively with the step S11 of embodiment one, step S12, step S13 phases
Together, details are not described herein again:
Step S21 obtains voice messaging.
Step S22 judges whether the format of the voice messaging and preset voice input format are identical, described preset
Voice input format includes preset conditional statement, preset smart machine trigger condition, preset result sentence and presets
Smart machine execute action, alternatively, include preset conditional statement and preset smart machine trigger condition, or including
Preset result sentence and preset smart machine execute action.
Step S23 knows the voice messaging if the format of the voice messaging is identical as preset voice input format
It Wei not corresponding text information.
Step S24 splits the text information according to the format of the voice messaging.
In the step, text information is split as to the information of same format according to the format of voice messaging.For example, it is assumed that language
The format of message breath includes preset conditional statement, preset smart machine trigger condition, preset result sentence and presets
Smart machine execution act this 4 parts, then text information is also split as to preset conditional statement, preset intelligence respectively
Equipment trigger condition, preset result sentence and preset smart machine execution act this 4 parts.
Step S25 is set if the text information includes the information of single smart machine trigger condition from the single intelligence
The device name of smart machine and the operating status of the smart machine described in the information extraction of standby trigger condition, alternatively, carrying
Take the device name of the smart machine, the operating status of the smart machine and the first preset time configuration item.
In the step, since single smart machine trigger condition has 2 kinds of situations, item is triggered from single smart machine
The information of the information extraction of part also includes the corresponding information of 2 kinds of situations.
Step S26, it is default according to described first if the text information includes the information of multigroup smart machine trigger condition
The information of multigroup smart machine trigger condition is split as the letter of multiple single smart machine trigger conditions by logical connective
Breath, then extracted from the information of the multiple single smart machine trigger condition respectively the smart machine device name and
The operating status of the smart machine, alternatively, extracting the device name of the smart machine, the operating status of the smart machine
And the first preset time configuration item.
Step S27 is set if the text information includes the information of single smart machine execution action from the single intelligence
The device name of smart machine and the operating status of the smart machine described in the information extraction of standby execution action, alternatively, carrying
Take the device name of the smart machine, the operating status of the smart machine and the second preset time configuration item.
Step S28, it is default according to described second if the text information includes the information of multigroup smart machine execution action
The information of multigroup smart machine execution action is split as the letter of multiple single smart machine execution actions by logical connective
Breath, then extracted from the information that the multiple single smart machine execution acts respectively the smart machine device name and
The operating status of the smart machine, alternatively, extracting the device name of the smart machine, the operating status of the smart machine
And the second preset time configuration item.
Step S29, according to the extraction knot for the information that the information of smart machine trigger condition and/or smart machine execution act
Fruit combines the control instruction of the smart machine, and the information of the smart machine trigger condition includes single smart machine triggering item
The information of the information of the information of part and multigroup smart machine trigger condition, the smart machine execution action includes that single intelligence is set
The information of the information and multigroup smart machine execution action of standby execution action.
Embodiment three:
Fig. 3 shows a kind of structural representation of the generating means of smart machine control instruction provided by the embodiments of the present application
Figure, for convenience of description, illustrates only and the relevant part of the embodiment of the present application:
The generating means of the smart machine control instruction include:Voice messaging acquiring unit 31, voice input format judge
Unit 32, voice messaging recognition unit 33, control instruction generation unit 34.Wherein:
Voice messaging acquiring unit 31, for obtaining voice messaging.
Specifically, when user needs to create a control instruction, corresponding application in the equipment that opens a terminal (such as mobile phone),
The generation instruction (such as being sent out by pressing the voice enter key of interface display) of control instruction is sent out, terminal device is according to reception
The generation of control instruction instructs, and the microphone of control terminal equipment obtains the voice messaging around the terminal device, accordingly, when
After user stops pressing voice enter key, stop obtaining voice messaging.
Voice input format judging unit 32, the format for judging the voice messaging and preset voice input format
Whether identical, the preset voice input format includes preset conditional statement, preset smart machine trigger condition, presets
Result sentence and preset smart machine execute action, alternatively, being set including preset conditional statement and preset intelligence
Standby trigger condition, or execute action including preset result sentence and preset smart machine.
It should be pointed out that the content that preset voice input format includes does not limit sequencing.
Wherein, above-mentioned smart machine includes following any:Temperature Humidity Sensor, switch, desk lamp, socket etc..
Wherein, preset conditional statement includes following any word:If if as long as if,, assume etc..In advance
If result sentence include following any word:Just, so, then etc..
Optionally, the preset smart machine trigger condition includes single smart machine trigger condition or including multigroup intelligence
It can equipment trigger condition.
Optionally, the single smart machine trigger condition includes having bound the device name of smart machine and described having tied up
The operating status of smart machine is determined, alternatively, including having bound the device name of smart machine, the fortune for having bound smart machine
Row state and the first preset time configuration item.
Wherein, the first preset time configuration item includes mainly the temporal informations such as timing, period.
Optionally, multigroup smart machine trigger condition includes the single smart machine trigger condition of at least two, and in office
It include the first logic of propositions conjunction between two single smart machine trigger conditions of anticipating.
Optionally, the preset smart machine execution action includes that single smart machine execution acts or including multigroup intelligence
Energy equipment executes action.
Optionally, the single smart machine execution action includes having bound the device name of smart machine and described having tied up
The operating status of smart machine is determined, alternatively, including having bound the device name of smart machine, the fortune for having bound smart machine
Row state and the second preset time configuration item.
Wherein, the operating status for having bound smart machine includes following any:It opens, close, adjusting color and being
Red etc..
Wherein, the second preset time configuration item includes mainly the temporal informations such as delay, period.
Optionally, the multigroup smart machine execution action includes that the single smart machine of at least two executes action, and in office
Include the second logic of propositions conjunction between the single smart machine execution action of meaning two.
Wherein, which can be identical as the first logic of propositions conjunction, but is generated to improve
Control instruction accuracy, then preferably limit the second logic of propositions conjunction as the corresponding word " with operation ", for example, packet
Include following any word:With and simultaneously etc..
Voice messaging recognition unit 33, if the format for the voice messaging is identical as preset voice input format,
The voice messaging is identified as corresponding text information.
Control instruction generation unit 34, the control instruction for generating smart machine according to the text information.
Optionally, due in a practical situation, newly-generated control instruction may therewith previous existence at control instruction contradiction,
Therefore, it can ask whether to replace the control instruction generated before using newly-generated control instruction, be responded to avoid smart machine
The generating means of the control instruction of mistake, i.e., the described smart machine control instruction include:
Control instruction replaces inquiry unit, and the smart machine that the control instruction of the smart machine for comparing generation includes touches
Whether the information of clockwork spring part is identical as the information for the smart machine trigger condition that generated control instruction includes, if identical, point
Device name, intelligence in the information for the smart machine execution action that the control instruction for not comparing the smart machine of generation includes are set
Device name, intelligence in the information for the smart machine execution action that standby operating status includes with generated control instruction are set
Whether standby operating status identical, if device name is identical but the operating status of smart machine is different, ask the user whether by
The control instruction of generation replaces generated control instruction.
Optionally, the generating means of the smart machine control instruction further include:
Example output unit, if the format for the voice messaging is differed with preset voice input format, output
Voice messaging identical with preset voice input format and/or text information.
Optionally, since the control instruction of generation may be mistake, in order to ensure the standard of the control instruction generated
True property, the generating means of smart machine control instruction further include:
Control instruction display unit, the control instruction for showing the smart machine generated.
Optionally, due to there are many preset voice input formats, the control instruction of generation also there are many, it is corresponding
Ground, the control instruction generation unit 34 include:
Text information splits module, for splitting the text information according to the format of the voice messaging;
First information extraction module, if including the information of single smart machine trigger condition for the text information, from
The device name of smart machine and the fortune of the smart machine described in the information extraction of the single smart machine trigger condition
Row state, alternatively, extracting the device name of the smart machine, the operating status of the smart machine and described first default
Time configuration item;
Second information extraction modules, if including the information of multigroup smart machine trigger condition, root for the text information
The information of multigroup smart machine trigger condition multiple single intelligence are split as according to the first logic of propositions conjunction to set
The information of standby trigger condition, then from the information of the multiple single smart machine trigger condition extract the smart machine respectively
Device name and the smart machine operating status, alternatively, extracting the device name of the smart machine, the intelligence
The operating status of equipment and the first preset time configuration item;
Third information extraction modules, if including the information of single smart machine execution action for the text information, from
The device name of smart machine and the fortune of the smart machine described in the information extraction of the single smart machine execution action
Row state, alternatively, extracting the device name of the smart machine, the operating status of the smart machine and described second default
Time configuration item;
4th information extraction modules, if including the information of multigroup smart machine execution action, root for the text information
The information of multigroup smart machine execution action multiple single intelligence are split as according to the second logic of propositions conjunction to set
The information of standby execution action, then from the information that the multiple single smart machine execution acts extract the smart machine respectively
Device name and the smart machine operating status, alternatively, extracting the device name of the smart machine, the intelligence
The operating status of equipment and the second preset time configuration item;
Information composite module, the letter for being acted according to the information of smart machine trigger condition and/or smart machine execution
The extraction result of breath combines the control instruction of the smart machine, and the information of the smart machine trigger condition includes single intelligence
The information of the information of equipment trigger condition and multigroup smart machine trigger condition, the information that the smart machine execution acts include
The information of the information and multigroup smart machine execution action of single smart machine execution action.
In the embodiment of the present application, since the voice messaging of acquisition can be generated to the control instruction of smart machine,
After the control instruction for generating smart machine, the smart machine is if desired used, is executed without user and finds terminal device, is opened
The operations such as the screen of the terminal device to greatly simplify the operating procedure of user, also, generate intelligence by way of voice
The control instruction of energy equipment, is greatly reduced the complexity of user's operation, reduces and repeats configurability operation, to reduce user
Time cost.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit
It is fixed.
Example IV:
Fig. 4 is the schematic diagram for the terminal device that one embodiment of the application provides.As shown in figure 4, the terminal of the embodiment is set
Standby 4 include:Processor 40, memory 41 and it is stored in the meter that can be run in the memory 41 and on the processor 40
Calculation machine program 42.The processor 40 realizes the life of above-mentioned each smart machine control instruction when executing the computer program 42
At the step in embodiment of the method, such as step S11 to S14 shown in FIG. 1.Alternatively, the processor 40 executes the calculating
The function of each module/unit in above-mentioned each device embodiment, such as the work(of unit 31 to 34 shown in Fig. 3 are realized when machine program 42
Energy.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the application.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal device 4 is described.For example, the computer program 42 can be divided
Voice messaging acquiring unit 31, voice input format judging unit 32, voice messaging recognition unit 33, control instruction is cut into generate
Unit 34, each unit concrete function are as follows:
Voice messaging acquiring unit 31, for obtaining voice messaging.
Voice input format judging unit 32, the format for judging the voice messaging and preset voice input format
Whether identical, the preset voice input format includes preset conditional statement, preset smart machine trigger condition, presets
Result sentence and preset smart machine execute action, alternatively, being set including preset conditional statement and preset intelligence
Standby trigger condition, or execute action including preset result sentence and preset smart machine.
Voice messaging recognition unit 33, if the format for the voice messaging is identical as preset voice input format,
The voice messaging is identified as corresponding text information.
Control instruction generation unit 34, the control instruction for generating smart machine according to the text information.The end
End equipment 4 can be the computing devices such as desktop PC, notebook, palm PC and cloud server.The terminal device
It may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4 is only terminal device 4
Example, do not constitute the restriction to terminal device 4, may include than illustrating more or fewer components, or combination is certain
Component or different components, such as the terminal device can also include input-output equipment, network access equipment, bus
Deng.
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk of terminal device 4 or interior
It deposits.The memory 41 can also be to be equipped on the External memory equipment of the terminal device 4, such as the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 41 can also both include the storage inside list of the terminal device 4
Member also includes External memory equipment.The memory 41 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 41 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as
Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can be stored in a computer read/write memory medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity
Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned reality
Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Within the protection domain of the application.
Claims (11)
1. a kind of generation method of smart machine control instruction, which is characterized in that including:
Obtain voice messaging;
Judge whether format and the preset voice input format of the voice messaging are identical, the preset voice input format
It is held including preset conditional statement, preset smart machine trigger condition, preset result sentence and preset smart machine
Action is made, alternatively, include preset conditional statement and preset smart machine trigger condition, or including preset result language
Sentence and preset smart machine execute action;
If the format of the voice messaging is identical as preset voice input format, the voice messaging is identified as corresponding text
Word information;
The control instruction of smart machine is generated according to the text information.
2. the generation method of smart machine control instruction as described in claim 1, which is characterized in that
The preset smart machine trigger condition includes single smart machine trigger condition or multigroup smart machine trigger condition;
Multigroup smart machine trigger condition includes the single smart machine trigger condition of at least two, and single in any two
It include the first logic of propositions conjunction between smart machine trigger condition;
The preset smart machine execution action includes single smart machine execution action or is executed including multigroup smart machine
Action;
The multigroup smart machine execution action includes that the single smart machine of at least two executes action, and single in any two
Include the second logic of propositions conjunction between smart machine execution action.
3. the generation method of smart machine control instruction as claimed in claim 2, it is characterised in that:
The single smart machine trigger condition includes having bound the device name of smart machine and described having bound smart machine
Operating status, alternatively, including bound the device name of smart machine, the operating status for having bound smart machine and
First preset time configuration item;
The single smart machine execution action includes having bound the device name of smart machine and described having bound smart machine
Operating status, alternatively, including bound the device name of smart machine, the operating status for having bound smart machine and
Second preset time configuration item.
4. the generation method of smart machine control instruction as claimed in claim 3, which is characterized in that described according to the word
Information generates the control instruction of smart machine, including:
The text information is split according to the format of the voice messaging;
If the text information includes the information of single smart machine trigger condition, from the single smart machine trigger condition
The operating status of the device name of smart machine described in information extraction and the smart machine is set alternatively, extracting the intelligence
The operating status of standby device name, the smart machine and the first preset time configuration item;
It, will according to the first logic of propositions conjunction if the text information includes the information of multigroup smart machine trigger condition
The information of multigroup smart machine trigger condition is split as the information of multiple single smart machine trigger conditions, then respectively from institute
It states in the information of multiple single smart machine trigger conditions and extracts the device name of the smart machine and the smart machine
Operating status, alternatively, it is default to extract the device name of the smart machine, the operating status of the smart machine and first
Time configuration item;
If the text information includes the information of single smart machine execution action, acted from the single smart machine execution
The operating status of the device name of smart machine described in information extraction and the smart machine is set alternatively, extracting the intelligence
The operating status of standby device name, the smart machine and the second preset time configuration item;
If the text information includes the information of multigroup smart machine execution action, will according to the second logic of propositions conjunction
The information of multigroup smart machine execution action is split as the information of multiple single smart machine execution actions, then respectively from institute
It states in the information of multiple single smart machine execution actions and extracts the device name of the smart machine and the smart machine
Operating status, alternatively, extracting the device name of the smart machine, the operating status of the smart machine and described second
Preset time configuration item;
The extraction result of the information acted according to the information of smart machine trigger condition and/or smart machine execution combines the intelligence
The control instruction of energy equipment, the information of the smart machine trigger condition includes the information or more of single smart machine trigger condition
The information of the information of group smart machine trigger condition, the smart machine execution action includes that single smart machine execution acts
Information or the information of multigroup smart machine execution action.
5. the generation method of smart machine control instruction as claimed in claim 4, which is characterized in that described according to the text
After word information generates the control instruction of smart machine, including:
The information for the smart machine trigger condition that the control instruction for comparing the smart machine of generation includes refers to generated control
Whether the information for the smart machine trigger condition that order includes is identical, if identical, the control for being respectively compared the smart machine of generation refers to
Device name, the operating status of smart machine in the information for the smart machine execution action that order includes refer to generated control
Whether the device name, the operating status of smart machine in the information for the smart machine execution action that order includes are identical, if equipment
Title is identical but the operating status of smart machine is different, then asks the user whether the generated control of the control instruction that will be generated replacement
System instruction.
6. such as the generation method of smart machine control instruction described in any one of claim 1 to 5, which is characterized in that described
After the control instruction for generating smart machine according to the text information, including:
Show the control instruction of the smart machine generated.
7. such as the generation method of smart machine control instruction described in any one of claim 1 to 5, which is characterized in that further include:
If the format of the voice messaging is differed with preset voice input format, output and preset voice input format phase
Same voice messaging and/or text information.
8. a kind of generating means of smart machine control instruction, which is characterized in that including:
Voice messaging acquiring unit, for obtaining voice messaging;
Voice input format judging unit, for judge the format of the voice messaging and preset voice input format whether phase
Together, the preset voice input format includes preset conditional statement, preset smart machine trigger condition, preset result
Sentence and preset smart machine execute action, alternatively, being triggered including preset conditional statement and preset smart machine
Condition, or execute action including preset result sentence and preset smart machine;
Voice messaging recognition unit will be described if the format for the voice messaging is identical as preset voice input format
Voice messaging is identified as corresponding text information;
Control instruction generation unit, the control instruction for generating smart machine according to the text information.
9. the generating means of smart machine control instruction as claimed in claim 8, which is characterized in that described device includes:
Control instruction display unit, the control instruction for showing the smart machine generated.
10. a kind of terminal device, including memory, processor and it is stored in the memory and can be on the processor
The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 7 when executing the computer program
The step of any one the method.
11. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In when the computer program is executed by processor the step of any one of such as claim 1 to 7 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810436202.9A CN108572594A (en) | 2018-05-09 | 2018-05-09 | Generation method, device and the terminal device of smart machine control instruction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810436202.9A CN108572594A (en) | 2018-05-09 | 2018-05-09 | Generation method, device and the terminal device of smart machine control instruction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108572594A true CN108572594A (en) | 2018-09-25 |
Family
ID=63572024
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810436202.9A Pending CN108572594A (en) | 2018-05-09 | 2018-05-09 | Generation method, device and the terminal device of smart machine control instruction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108572594A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111352350A (en) * | 2020-03-16 | 2020-06-30 | 青岛海信智慧家居系统股份有限公司 | Method and device for determining execution of smart home scene |
CN111650841A (en) * | 2019-03-04 | 2020-09-11 | 青岛海尔洗衣机有限公司 | Linkage method of household appliance system and household appliance system |
CN112669839A (en) * | 2020-12-17 | 2021-04-16 | 北京百度网讯科技有限公司 | Voice interaction method, device, equipment and storage medium |
CN114898751A (en) * | 2022-06-15 | 2022-08-12 | 中国电信股份有限公司 | Automatic configuration method and system, storage medium and electronic equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051734A (en) * | 2013-01-23 | 2013-04-17 | 广东志高空调有限公司 | Remote voice control method and system for household electrical appliance and communication terminal |
CN104808500A (en) * | 2015-03-31 | 2015-07-29 | 小米科技有限责任公司 | Task setting method and device |
CN104865834A (en) * | 2015-04-24 | 2015-08-26 | 汤伟杰 | Intelligent household Internet of things control system and method |
CN105446146A (en) * | 2015-11-19 | 2016-03-30 | 深圳创想未来机器人有限公司 | Intelligent terminal control method based on semantic analysis, system and intelligent terminal |
CN205721123U (en) * | 2016-03-04 | 2016-11-23 | 橙朴(上海)智能科技有限公司 | A kind of intelligent home control system of decentration |
WO2016206060A1 (en) * | 2015-06-25 | 2016-12-29 | 宇龙计算机通信科技(深圳)有限公司 | Control method and control system, and smart home control center device |
CN106357745A (en) * | 2016-08-29 | 2017-01-25 | 北京小米移动软件有限公司 | Linkage method and device for intelligent terminals |
CN107864174A (en) * | 2017-07-03 | 2018-03-30 | 华南理工大学 | A kind of rule-based internet of things equipment interlock method |
CN108012019A (en) * | 2016-10-31 | 2018-05-08 | 北京搜狗科技发展有限公司 | A kind of control operation triggering method, device and equipment |
-
2018
- 2018-05-09 CN CN201810436202.9A patent/CN108572594A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103051734A (en) * | 2013-01-23 | 2013-04-17 | 广东志高空调有限公司 | Remote voice control method and system for household electrical appliance and communication terminal |
CN104808500A (en) * | 2015-03-31 | 2015-07-29 | 小米科技有限责任公司 | Task setting method and device |
CN104865834A (en) * | 2015-04-24 | 2015-08-26 | 汤伟杰 | Intelligent household Internet of things control system and method |
WO2016206060A1 (en) * | 2015-06-25 | 2016-12-29 | 宇龙计算机通信科技(深圳)有限公司 | Control method and control system, and smart home control center device |
CN105446146A (en) * | 2015-11-19 | 2016-03-30 | 深圳创想未来机器人有限公司 | Intelligent terminal control method based on semantic analysis, system and intelligent terminal |
CN205721123U (en) * | 2016-03-04 | 2016-11-23 | 橙朴(上海)智能科技有限公司 | A kind of intelligent home control system of decentration |
CN106357745A (en) * | 2016-08-29 | 2017-01-25 | 北京小米移动软件有限公司 | Linkage method and device for intelligent terminals |
CN108012019A (en) * | 2016-10-31 | 2018-05-08 | 北京搜狗科技发展有限公司 | A kind of control operation triggering method, device and equipment |
CN107864174A (en) * | 2017-07-03 | 2018-03-30 | 华南理工大学 | A kind of rule-based internet of things equipment interlock method |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111650841A (en) * | 2019-03-04 | 2020-09-11 | 青岛海尔洗衣机有限公司 | Linkage method of household appliance system and household appliance system |
CN111650841B (en) * | 2019-03-04 | 2023-07-07 | 青岛海尔洗衣机有限公司 | Linkage method of household appliance system and household appliance system |
CN111352350A (en) * | 2020-03-16 | 2020-06-30 | 青岛海信智慧家居系统股份有限公司 | Method and device for determining execution of smart home scene |
CN111352350B (en) * | 2020-03-16 | 2023-02-17 | 青岛海信智慧生活科技股份有限公司 | Method and device for determining execution of smart home scene |
CN112669839A (en) * | 2020-12-17 | 2021-04-16 | 北京百度网讯科技有限公司 | Voice interaction method, device, equipment and storage medium |
CN112669839B (en) * | 2020-12-17 | 2023-08-08 | 阿波罗智联(北京)科技有限公司 | Voice interaction method, device, equipment and storage medium |
CN114898751A (en) * | 2022-06-15 | 2022-08-12 | 中国电信股份有限公司 | Automatic configuration method and system, storage medium and electronic equipment |
CN114898751B (en) * | 2022-06-15 | 2024-04-23 | 中国电信股份有限公司 | Automatic configuration method and system, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108572594A (en) | Generation method, device and the terminal device of smart machine control instruction | |
US20210352059A1 (en) | Message Display Method, Apparatus, and Device | |
CN106373570A (en) | Voice control method and terminal | |
CN109471626A (en) | Page logic structure, page generation method, page data processing method and device | |
CN104765845A (en) | Split screen display method and device for terminal | |
CN106484270A (en) | A kind of voice operating event adding method and terminal | |
CN107979515A (en) | A kind of control method of intelligent appliance, terminal device and storage medium | |
CN105426233A (en) | Electronic device having independent screen configuration and application running method thereof | |
KR20200113750A (en) | Method and system for presenting conversation thread | |
CN106843887A (en) | A kind of implementation method of embedded customized development platform automatic creation system | |
CN104184890A (en) | Information processing method and electronic device | |
CN106844182A (en) | Method, system and mobile terminal for recording user behavior | |
CN106850838A (en) | The control method and system of mobile terminal cloud application | |
CN109358927A (en) | The method, apparatus and terminal device that application program is shown | |
CN110262985A (en) | A kind of processing method and electronic equipment | |
CN103037107A (en) | Label editing system and work method thereof for smart touch screen mobile phone | |
CN107272989B (en) | Using starting method, apparatus and terminal device | |
CN108490824B (en) | Intelligent electric appliance control method, device and mobile terminal | |
CN108304135A (en) | A kind of method of adjustment and terminal of virtual modifier key | |
CN106096462B (en) | A kind of reading screen method and device of safety keyboard | |
CN109492249A (en) | Rapid generation, device and the terminal device of design drawing | |
CN104220976B (en) | The soft keyboard implementation method and terminal of terminal | |
CN114296360A (en) | Equipment control method and device, electronic equipment and storage medium | |
CN105912672B (en) | A kind of document reading method and terminal | |
CN112256241A (en) | Framework and interface design scheme of cloud suite |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180925 |
|
RJ01 | Rejection of invention patent application after publication |