CN110058835A - Apparatus control method, device and equipment - Google Patents

Apparatus control method, device and equipment Download PDF

Info

Publication number
CN110058835A
CN110058835A CN201910143027.9A CN201910143027A CN110058835A CN 110058835 A CN110058835 A CN 110058835A CN 201910143027 A CN201910143027 A CN 201910143027A CN 110058835 A CN110058835 A CN 110058835A
Authority
CN
China
Prior art keywords
voice messaging
hard key
control instruction
electronic equipment
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910143027.9A
Other languages
Chinese (zh)
Inventor
何桂
郭敬
刘林辉
陈伟亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Apollo Zhilian Beijing Technology Co Ltd
Original Assignee
Baidu International Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Baidu International Technology Shenzhen Co Ltd filed Critical Baidu International Technology Shenzhen Co Ltd
Priority to CN201910143027.9A priority Critical patent/CN110058835A/en
Publication of CN110058835A publication Critical patent/CN110058835A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Abstract

The embodiment of the present invention provides a kind of apparatus control method, device and equipment, this method comprises: obtaining voice messaging, the voice messaging is used for the hard key-press event of analog electronic equipment, and the hard key-press event is that the event of pressing operation triggering is carried out to the hard key in the electronic equipment;Obtain the corresponding control instruction of the voice messaging;The corresponding hard key-press event of the control instruction is executed by the corresponding software interface of the control instruction, the software interface is the software program for realizing the hard key-press event.Improve the flexibility of equipment control.

Description

Apparatus control method, device and equipment
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of apparatus control methods, device and equipment.
Background technique
Currently, being provided with hard key, hard key in many electronic equipments (such as mobile unit, mobile phone, tablet computer etc.) It may include returning to key (back key), homepage key (home key) etc..
In actual application, the part control of electronic equipment is only capable of usually realizing the pressing operation of hard key, For example, showing homepage to controlling electronic devices, user then needs to carry out pressing operation to the home key of electronic equipment.So And in many scenes, user's inconvenience carries out pressing operation to hard key, for example, user passes through when user drives vehicle Hard key controls mobile unit and can bring security risk to driving, so that hard key of user's inconvenience to mobile unit Carry out pressing operation.
From the foregoing, it will be observed that it is poor to the flexibility of the hard key in electronic equipment operate, and then cause to electronic equipment The flexibility controlled is poor.
Summary of the invention
The embodiment of the present invention provides a kind of apparatus control method, device and equipment, improves the flexibility of equipment control.
In a first aspect, the embodiment of the present invention provides a kind of apparatus control method, comprising:
Voice messaging is obtained, the voice messaging is used for the hard key-press event of analog electronic equipment, the hard key-press event For the event for carrying out pressing operation triggering to the hard key in the electronic equipment;
Obtain the corresponding control instruction of the voice messaging;
The corresponding hard key-press event of the control instruction is executed by the corresponding software interface of the control instruction, it is described soft Part interface is the software program for realizing the hard key-press event.
It is described that the control is executed by the corresponding software interface of the control instruction in a kind of possible embodiment Instruct corresponding hard key-press event, comprising:
Determine the corresponding software interface of the control instruction and the corresponding interface parameters of the control instruction;
The corresponding hard key-press event of the control instruction is executed by the software interface and the interface parameters.
It is described that the control is executed by the software interface and the interface parameters in a kind of possible embodiment Instruct corresponding hard key-press event, comprising:
The interface parameters is determined as to the operating parameter of the software interface, and the software interface is called to hold to realize The corresponding hard key-press event of the row control instruction.
It is described to obtain the corresponding control instruction of the voice messaging in a kind of possible embodiment, comprising:
Obtain the corresponding keyword of the voice messaging;
The corresponding control instruction of the voice messaging is determined according to the keyword.
In a kind of possible embodiment, the corresponding control instruction of the voice messaging is determined according to the keyword, Include:
When determining the keyword includes preset keyword, the corresponding contextual information of the voice messaging is obtained;
Determine that the type of the voice messaging, the type of the voice messaging are human-computer dialogue according to the contextual information Type or person to person's dialogue types;
When the type of the voice messaging is man-machine dialogue types, the corresponding instruction of the preset keyword is determined as The control instruction.
In a kind of possible embodiment, it is described obtain the corresponding keyword of the voice messaging before, further includes:
Enabled instruction is received, the enabled instruction is used to indicate the electronic equipment starting hard key-press event of speech simulation Function.
In a kind of possible embodiment, the enabled instruction is the first default voice messaging, the first pre-set image letter It ceases or to any one in the pressing information of the first programmable button.
In a kind of possible embodiment, the method also includes:
Out code is received, the out code is used to indicate the electronic equipment and closes the hard key-press event of speech simulation Function.
In a kind of possible embodiment, the out code is the second default voice messaging, the second pre-set image letter It ceases or to any one in the pressing information of the second programmable button.
In a kind of possible embodiment, the hard key includes at least one returned in key or homepage key Kind.
In a kind of possible embodiment, the electronic equipment is vehicle electronic device.
Second aspect, the embodiment of the present invention provide a kind of plant control unit, including first obtains module, the second acquisition mould Block and execution module, wherein
The first acquisition module is used for, and obtains voice messaging, and the voice messaging is pressed firmly for analog electronic equipment Key events, the hard key-press event are that the event of pressing operation triggering is carried out to the hard key in the electronic equipment;
The second acquisition module is used for, and obtains the corresponding control instruction of the voice messaging;
The execution module is used for, and it is corresponding to execute the control instruction by the corresponding software interface of the control instruction Hard key-press event, the software interface are the software program for realizing the hard key-press event.
In a kind of possible embodiment, the execution module is specifically used for:
Determine the corresponding software interface of the control instruction and the corresponding interface parameters of the control instruction;
The corresponding hard key-press event of the control instruction is executed by the software interface and the interface parameters.
In a kind of possible embodiment, the execution module is specifically used for:
The interface parameters is determined as to the operating parameter of the software interface, and the software interface is called to hold to realize The corresponding hard key-press event of the row control instruction.
In a kind of possible embodiment, the second acquisition module is specifically used for:
Obtain the corresponding keyword of the voice messaging;
The corresponding control instruction of the voice messaging is determined according to the keyword.
In a kind of possible embodiment, the second acquisition module is specifically used for:
When determining the keyword includes preset keyword, the corresponding contextual information of the voice messaging is obtained;
Determine that the type of the voice messaging, the type of the voice messaging are human-computer dialogue according to the contextual information Type or person to person's dialogue types;
When the type of the voice messaging is man-machine dialogue types, the corresponding instruction of the preset keyword is determined as The control instruction.
In a kind of possible embodiment, described device further includes receiving module, wherein
The receiving module is used for, before described second obtains the corresponding keyword of the module acquisition voice messaging, Enabled instruction is received, the enabled instruction is used to indicate the function of the electronic equipment starting hard key-press event of speech simulation.
In a kind of possible embodiment, the enabled instruction is the first default voice messaging, the first pre-set image letter It ceases or to any one in the pressing information of the first programmable button.
In a kind of possible embodiment, the receiving module is also used to, and receives out code, and the out code is used In the function of indicating the electronic equipment closing hard key-press event of speech simulation.
In a kind of possible embodiment, the out code is the second default voice messaging, the second pre-set image letter It ceases or to any one in the pressing information of the second programmable button.
In a kind of possible embodiment, the hard key includes at least one returned in key or homepage key Kind.
In a kind of possible embodiment, the electronic equipment is vehicle electronic device.
The third aspect, the embodiment of the present invention provide a kind of plant control unit, comprising: at least one processor and storage Device;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of memory storage so that it is described at least one Processor executes such as the described in any item apparatus control methods of first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium It is stored with computer executed instructions in matter, when processor executes the computer executed instructions, realizes as first aspect is any Apparatus control method described in.
Apparatus control method, device and equipment provided in an embodiment of the present invention, electronic equipment get voice messaging it Afterwards, the corresponding control instruction of voice messaging is obtained, and corresponding by the corresponding software interface execution control instruction of control instruction Hard key-press event, software interface are the software program for realizing hard key-press event.In above process, when user needs to press When hard key in electronic equipment, can input voice information in the electronic device so that electronic equipment is according to voice messaging mould Intend hard key-press event, in this way, user is not necessarily to carry out pressing operation to the hard key of electronic equipment, that is, may make electronic equipment to execute Hard key-press event, improves the flexibility of the mode of operation to the hard key in electronic equipment, so improve to electronic equipment into The flexibility of row control.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the schematic diagram of electronic equipment provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of apparatus control method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another apparatus control method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another apparatus control method provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of plant control unit provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another plant control unit provided in an embodiment of the present invention;
Fig. 7 is the hardware structural diagram of plant control unit provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is the schematic diagram of electronic equipment provided in an embodiment of the present invention.Referring to Figure 1, electronic equipment includes hard key (for example, hard key M and hard key N), microphone P, speech processing module and software interface etc..User can pass through hard key M Electronic equipment is operated with hard key N, for example, user can make electronic equipment show homepage by pressing hard key M Face, the upper page that user can make electronic equipment return to display by pressing hard key N.Microphone P can acquire use The voice messaging at family, speech processing module can be handled the microphone P voice messaging acquired, and according to voice messaging The call by result software interface of processing, so that software interface simulation hardware button event, hard key-press event is in electronic equipment Hard key carries out the event of pressing operation triggering.
In this application, when user needs to press the hard key in electronic equipment, language can be inputted in the electronic device Message breath, so that electronic equipment is according to voice messaging simulation hardware button event, in this way, user is not necessarily to the hard key to electronic equipment Pressing operation is carried out, that is, may make electronic equipment to execute hard key-press event, improve the operation to the hard key in electronic equipment The flexibility of mode, and then improve the flexibility controlled electronic equipment.
In the following, technical solution shown in the application is described in detail by specific embodiment.Under it should be noted that The several specific embodiments in face can be combined with each other, and for the same or similar content, no longer carry out weight in various embodiments Multiple explanation.
Fig. 2 is the flow diagram of apparatus control method provided in an embodiment of the present invention.Refer to Fig. 2, this method can be with Include:
S201, voice messaging is obtained, voice messaging is used for the hard key-press event of analog electronic equipment.
The executing subject of the embodiment of the present invention can be electronic equipment, or equipment control in the electronic device is arranged Device processed.Optionally, plant control unit can be by software realization, can also being implemented in combination with by software and hardware.
Optionally, electronic equipment can be the equipment such as vehicle electronic device, mobile phone, tablet computer.
Optionally, hard key may include returning at least one of key or homepage key.
It should be noted that hard key can also be including other, the present invention is not especially limit this.
Wherein, hard key-press event is that the event of pressing operation triggering is carried out to the hard key in electronic equipment.
For example, carrying out the event of pressing operation triggering to homepage key are as follows: electronics when hard key is main pages button Equipment shows homepage, correspondingly, the corresponding hard key-press event of homepage key are as follows: electronic equipment shows homepage.
For example, when hard key is to return to key, to the event for returning to key progress pressing operation triggering are as follows: electronic equipment A upper page for display is returned to, correspondingly, returning to the corresponding hard key-press event of key are as follows: electronic equipment returns to upper the one of display A page.
Optionally, microphone is provided in electronic equipment, microphone can carry out voice collecting.Correspondingly, available The voice messaging of microphone acquisition.
S202, the corresponding control instruction of voice messaging is obtained.
Optionally, control instruction can be the instruction of simulation hardware button event.
For example, control instruction may include return instruction, display homepage instruction etc..
Optionally, the corresponding control instruction of voice messaging can be obtained by the feasible implementation of at least the following two kinds.
The first feasible implementation:
Electronic equipment obtains voice messaging in real time, and obtains the corresponding keyword of voice messaging, is determining voice messaging pair When the keyword answered includes preset keyword, the corresponding contextual information of voice messaging is obtained, and contextual information determines The type of the type of voice messaging, voice messaging is man-machine dialogue types or person to person's dialogue types, is determining voice messaging Type be man-machine dialogue types when, by preset keyword it is corresponding instruction be determined as control instruction.
Optionally, human-computer dialogue type refers to the type of the dialogue between user and electronic equipment, everybody is at dialogue types Refer to the type of interpersonal dialogue.
Optionally, it is previously provided with the corresponding relationship of preset keyword and instruction, an instruction can correspond to one or more A preset keyword.
For example, the corresponding relationship between preset keyword and instruction can be as shown in table 1:
Table 1
Preset keyword Instruction
Return, page up, prevpage Return instruction
Homepage, homepage, desktop Homepage instruction
It should be noted that table 1 only illustrates the corresponding relationship between preset keyword and instruction in exemplary fashion, and The non-restriction carried out to the corresponding relationship can be set according to actual needs the corresponding relationship in actual application.
Optionally, contextual information refers to the language before or after the voice messaging Message breath.
In actual application, the voice messaging that electronic equipment collects may be dialogue of the user to electronic equipment (human-computer dialogue type), or the dialogue (person to person's dialogue types) of user and other users.In this kind of feasible realization In mode, only when the type for recognizing voice messaging is man-machine dialogue types, just according to the hard key thing of voice messaging mode Part avoids the voice messaging simulation hardware button event according to person to person's dialogue types, and then electronic equipment is avoided to execute maloperation.
Second of feasible implementation:
When user needs electronic equipment according to voice messaging simulation hardware button event, first input starting in the electronic device Instruction, enabled instruction are used to indicate the function of the electronic equipment starting hard key-press event of speech simulation.It receives and opens in electronic equipment After dynamic instruction, electronic equipment is according to the hard key-press event of voice messaging mode collected.When user does not need electronic equipment When according to voice messaging simulation hardware button event, then out code is inputted in the electronic device, out code is used to indicate electronics The function of the equipment closing hard key-press event of speech simulation.After electronic equipment receives out code, electronic equipment no longer root According to the hard key-press event of voice messaging mode collected.
Optionally, enabled instruction default can press for the first default voice messaging, the first pre-set image information or to first Any one in the pressing information of key.
First default voice messaging can be the voice messaging of wake-up electronic equipment, for example, the first default voice messaging can Think ", small degree ", " the small small degree of degree ", " your good small degree " etc..
For example, the first pre-set image can be image, smiling face's image etc. of " OK gesture ".
Optionally, out code default can press for the second default voice messaging, the second pre-set image information or to second Any one in the pressing information of key.
Second default voice messaging can be the voice messaging of release electronic equipment, for example, the second default voice messaging can Think " the small degree of goodbye ", " having got well small degree ", " can be with small degree ".
For example, the second pre-set image can be image, the face image of crying etc. of " scissors gesture ".
Optionally, the first programmable button and the second programmable button can be identical key, press when user presets to first When key carries out one click operation, then enabled instruction is inputted to electronic equipment, when clicking the first programmable button again, then to electricity Sub- equipment inputs out code, when clicking the first programmable button again, then inputs enabled instruction to electronic equipment, successively class It pushes away.
In this kind of feasible implementation, after user inputs enabled instruction, electronic equipment is according to collecting All voice messaging simulation hardware button operations.After user inputs enabled instruction, user can avoid person to person as far as possible Dialogue, and then electronic equipment is avoided to execute maloperation.
It should be noted that the above-mentioned mode for only illustrating to obtain control instruction in exemplary fashion, not controls acquisition The restriction of the mode of instruction is made, in actual application, control instruction can also be obtained according to other feasible implementations, The present invention is not especially limit this.
It should be noted that according to voice messaging possibly corresponding control instruction can not be acquired, then S203 is not executed.
S203, the corresponding hard key-press event of control instruction is executed by the corresponding software interface of control instruction.
Wherein, software interface is the software program for realizing hard key-press event.
Optionally, the corresponding software interface of control instruction and the corresponding interface parameters of control instruction can be determined, and passed through Software interface and interface parameters execute the corresponding hard key-press event of control instruction.For example, interface parameters can be determined as software The operating parameter of interface, and software interface is called to execute the corresponding hard key-press event of control instruction to realize.
Optionally, the corresponding software interface of different types of control instruction is identical, and different types of control instruction is corresponding Interface parameters is different.
For example, the corresponding interface of control instruction is to be when the system of electronic equipment is android system PerformGlobalAction interface under AccessibilityService service, that is, AccessibilityService. PerformGlobalAction interface.
For example, then interface parameters is AccessibilityService.GLOBAL_ when control instruction is return instruction ACTION_BACK, when control instruction is that homepage instructs, then interface parameters are as follows: AccessibilityService.GLOBAL_ACTION_HOME。
It, can calling interface in the following way for example, when control instruction is return instruction: AccessibilitySe rvice.performGlobalAction(AccessibilityService.GLOBAL_ACTION_BACK).Work as control instruction It, can calling interface in the following way when for homepage instruction: AccessibilityService.performGlobalAc tion(AccessibilityService.GLOBAL_ACTION_HOME)。
Apparatus control method provided in an embodiment of the present invention obtains voice after electronic equipment gets voice messaging The corresponding control instruction of information, and the corresponding hard key-press event of control instruction is executed by the corresponding software interface of control instruction, Software interface is the software program for realizing hard key-press event.In above process, when user needs to press in electronic equipment Hard key when, can input voice information in the electronic device so that electronic equipment is according to voice messaging simulation hardware button thing Part may make electronic equipment to execute hard key thing in this way, user is not necessarily to carry out pressing operation to the hard key of electronic equipment Part, improves the flexibility of the mode of operation to the hard key in electronic equipment, and then improves and to be controlled electronic equipment Flexibility.
Electronic equipment be mobile unit when, user by voice messaging can simulation hardware button event, in this way, in user When driving vehicle, hard key-press event can be realized without carrying out pressing operation to hard key manually, improve the peace of vehicle drive Quan Xing.
On the basis of any one above-mentioned embodiment, in the following, being carried out in conjunction with Fig. 3-Fig. 4 to method shown in the application It is further described.
Fig. 3 is the flow diagram of another apparatus control method provided in an embodiment of the present invention.Refer to Fig. 3, the party Method may include:
S301, voice messaging is obtained.
It should be noted that the implementation procedure of S301 may refer to the implementation procedure of S201, no longer repeated herein.
S302, the corresponding keyword of voice messaging is obtained.
Optionally, word segmentation processing can be carried out to voice messaging, and keyword is determined according to the word segmentation result after participle.
S303, judge in the corresponding keyword of voice messaging whether to include preset keyword.
If so, executing S304.
If it is not, then executing S310.
Optionally, if in the corresponding keyword of voice messaging including preset keyword, illustrating may according to voice messaging It can determine to obtain control instruction.If not including preset keyword in the corresponding keyword of voice messaging, illustrate according to voice Information can not determine to obtain control instruction.
For example, preset keyword can be as shown in table 1, no longer repeated herein.
S304, the corresponding contextual information of voice messaging is obtained.
Optionally, the corresponding contextual information of voice messaging may include: that the voice messaging and electronic equipment are collecting The voice messaging collected in preset duration before or after the voice messaging.
S305, the type that voice messaging is determined according to the contextual information.
Wherein, the type of voice messaging can be man-machine dialogue types or person to person's dialogue types.
For example, it is assumed that voice messaging be " when returning ", contextual information include: " you somewhere, what when Wait and return to Shanghai ", it can determine that the type of voice messaging is person to person's dialogue types according to above-mentioned contextual information.
For example, it is assumed that voice messaging is " returning to page up ", contextual information includes: " the small small degree of degree, return to page up ", The type that voice messaging can be determined according to above-mentioned contextual information is man-machine dialogue types.
Whether S306, the type for judging voice messaging are man-machine dialogue types.
If so, executing S307.
If so, executing S310.
S307, the corresponding instruction of preset keyword is determined as the corresponding control instruction of voice messaging.
It should be noted that the implementation procedure of S307 may refer to the feasible implementation of the first in S202, herein not It is repeated again.
S308, the corresponding software interface of control instruction and interface parameters are determined.
S309, the operating parameter that interface parameters is determined as to software interface, and the software interface is called, control is executed to realize System instructs corresponding hard key-press event.
It should be noted that the implementation procedure of S308-S309 may refer to the implementation procedure of S203, this time no longer go to live in the household of one's in-laws on getting married It states.
S310, hard key-press event is not executed.
It in the embodiment shown in fig. 3, can be in electronic equipment when user needs to press the hard key in electronic equipment Middle input voice information, so that electronic equipment is according to voice messaging simulation hardware button event, in this way, user is not necessarily to electronic equipment Hard key carry out pressing operation, that is, may make electronic equipment to execute hard key-press event, improve in electronic equipment it is hard by The flexibility of the mode of operation of key, and then improve the flexibility controlled electronic equipment.Further, it is only recognizing When the type of voice messaging is man-machine dialogue types, just according to the hard key-press event of voice messaging mode, avoid according to person to person couple The voice messaging simulation hardware button event of call type, and then electronic equipment is avoided to execute maloperation.
Fig. 4 is the flow diagram of another apparatus control method provided in an embodiment of the present invention.Refer to Fig. 4, the party Method may include:
S401, enabled instruction is received, enabled instruction is used to indicate the function of the electronic equipment starting hard key-press event of speech simulation Energy.
It should be noted that the implementation procedure of S401 may refer to second of feasible implementation in S202, this time not It is repeated again.
S402, voice messaging is obtained.
It should be noted that the implementation procedure of S402 may refer to the implementation procedure of S201, no longer repeated herein.
S403, the corresponding keyword of voice messaging is obtained.
S404, judge in the corresponding keyword of voice messaging whether to include preset keyword.
If so, executing S405.
If it is not, then executing S408.
It should be noted that the implementation procedure of S403-S404 may refer to the implementation procedure of S302-S303, herein no longer It is repeated.
S405, the corresponding instruction of preset keyword is determined as the corresponding control instruction of voice messaging.
It should be noted that the implementation procedure of S405 may refer to the feasible implementation of the first in S202, herein not It is repeated again.
S406, the corresponding software interface of control instruction and interface parameters are determined.
S407, the operating parameter that interface parameters is determined as to software interface, and the software interface is called, control is executed to realize System instructs corresponding hard key-press event.
It should be noted that the implementation procedure of S406-S407 may refer to the implementation procedure of S203, this time no longer go to live in the household of one's in-laws on getting married It states.
S408, hard key-press event is not executed.
It should be noted that user is also when user does not need electronic equipment by voice messaging simulation hardware button event Out code can be inputted, out code is used to indicate the function that electronic equipment closes the hard key-press event of speech simulation.
It in the embodiment shown in fig. 4, can be in electronic equipment when user needs to press the hard key in electronic equipment Middle input voice information, so that electronic equipment is according to voice messaging simulation hardware button event, in this way, user is not necessarily to electronic equipment Hard key carry out pressing operation, that is, may make electronic equipment to execute hard key-press event, improve in electronic equipment it is hard by The flexibility of the mode of operation of key, and then improve the flexibility controlled electronic equipment.Further, it is opened in user's input After dynamic instruction, electronic equipment is just according to all voice messaging simulation hardware buttons operation collected.It inputs and starts in user After instruction, user can avoid person to person from talking with as far as possible, and then electronic equipment is avoided to execute maloperation.
Fig. 5 is a kind of structural schematic diagram of plant control unit provided in an embodiment of the present invention.Fig. 5 is referred to, the equipment Control device 10 may include that the first acquisition module 11, second obtains module 12 and execution module 13, wherein
The first acquisition module 11 is used for, and obtains voice messaging, and the voice messaging is hard for analog electronic equipment Key-press event, the hard key-press event are that the event of pressing operation triggering is carried out to the hard key in the electronic equipment;
The second acquisition module 12 is used for, and obtains the corresponding control instruction of the voice messaging;
The execution module 13 is used for, and it is corresponding to execute the control instruction by the corresponding software interface of the control instruction Hard key-press event, the software interface be for realizing the hard key-press event software program.
Plant control unit shown in the embodiment of the present invention can execute technical solution shown in above method embodiment, Realization principle and beneficial effect are similar, are no longer repeated herein.
In a kind of possible embodiment, the execution module 13 is specifically used for:
Determine the corresponding software interface of the control instruction and the corresponding interface parameters of the control instruction;
The corresponding hard key-press event of the control instruction is executed by the software interface and the interface parameters.
In a kind of possible embodiment, the execution module 13 is specifically used for:
The interface parameters is determined as to the operating parameter of the software interface, and the software interface is called to hold to realize The corresponding hard key-press event of the row control instruction.
In a kind of possible embodiment, the second acquisition module 12 is specifically used for:
Obtain the corresponding keyword of the voice messaging;
The corresponding control instruction of the voice messaging is determined according to the keyword.
In a kind of possible embodiment, the second acquisition module 12 is specifically used for:
When determining the keyword includes preset keyword, the corresponding contextual information of the voice messaging is obtained;
Determine that the type of the voice messaging, the type of the voice messaging are human-computer dialogue according to the contextual information Type or person to person's dialogue types;
When the type of the voice messaging is man-machine dialogue types, the corresponding instruction of the preset keyword is determined as The control instruction.
Fig. 6 is the structural schematic diagram of another plant control unit provided in an embodiment of the present invention.Embodiment shown in Fig. 5 On the basis of, Fig. 6 is referred to, plant control unit 10 can also include receiving module 14, wherein
The receiving module 14 is used for, it is described second acquisition module 12 obtain the corresponding keyword of the voice messaging it Before, enabled instruction is received, the enabled instruction is used to indicate the function of the electronic equipment starting hard key-press event of speech simulation.
In a kind of possible embodiment, the enabled instruction is the first default voice messaging, the first pre-set image letter It ceases or to any one in the pressing information of the first programmable button.
In a kind of possible embodiment, the receiving module 14 is also used to, and receives out code, the out code It is used to indicate the function that the electronic equipment closes the hard key-press event of speech simulation.
In a kind of possible embodiment, the out code is the second default voice messaging, the second pre-set image letter It ceases or to any one in the pressing information of the second programmable button.
In a kind of possible embodiment, the hard key includes at least one returned in key or homepage key Kind.
In a kind of possible embodiment, the electronic equipment is vehicle electronic device.
Plant control unit provided in an embodiment of the present invention can execute technical solution shown in above method embodiment, Realization principle and beneficial effect are similar, are no longer repeated herein.
Fig. 7 is the hardware structural diagram of plant control unit provided in an embodiment of the present invention, as shown in fig. 7, the equipment Control device 20 includes: at least one processor 21 and memory 22.Wherein, processor 21 and memory 22 are connected by bus 23 It connects.
Optionally, plant control unit 20 can also include communication component, and communication component may include receiver and/or hair Send device.
During specific implementation, at least one processor 21 executes the computer execution that the memory 22 stores and refers to It enables, so that at least one processor 21 executes apparatus control method as above.
The specific implementation process of processor 21 can be found in above method embodiment, and it is similar that the realization principle and technical effect are similar, Details are not described herein again for the present embodiment.
In above-mentioned embodiment shown in Fig. 7, it should be appreciated that processor can be central processing unit (English: Central Processing Unit, referred to as: CPU), it can also be other general processors, digital signal processor (English: Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional place Manage device etc..Hardware processor can be embodied directly in conjunction with the step of invention disclosed method and executes completion, or with handling Hardware and software module combination in device execute completion.
Memory may include high speed RAM memory, it is also possible to and it further include non-volatile memories NVM, for example, at least one Magnetic disk storage.
Bus can be industry standard architecture (Industry Standard Architecture, ISA) bus, outer Portion's apparatus interconnection (Peripheral Component, PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, EISA) bus etc..Bus can be divided into address bus, data/address bus, control Bus etc..For convenient for indicating, the bus in illustrations does not limit only a bus or a type of bus.
The application also provides a kind of computer readable storage medium, and calculating is stored in the computer readable storage medium Machine executes instruction, and when processor executes the computer executed instructions, realizes apparatus control method as described above.
Above-mentioned computer readable storage medium, above-mentioned readable storage medium storing program for executing can be by any kind of volatibility or non- Volatile storage devices or their combination realize that, such as static random access memory (SRAM), electrically erasable is only It reads memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM) is read-only to deposit Reservoir (ROM), magnetic memory, flash memory, disk or CD.Readable storage medium storing program for executing can be general or specialized computer capacity Any usable medium enough accessed.
A kind of illustrative readable storage medium storing program for executing is coupled to processor, to enable a processor to from the readable storage medium storing program for executing Information is read, and information can be written to the readable storage medium storing program for executing.Certainly, readable storage medium storing program for executing is also possible to the composition portion of processor Point.Processor and readable storage medium storing program for executing can be located at specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC) in.Certainly, processor and readable storage medium storing program for executing can also be used as discrete assembly and be present in equipment In.
The division of the unit, only a kind of logical function partition, there may be another division manner in actual implementation, Such as multiple units or components can be combined or can be integrated into another system, or some features can be ignored, or not hold Row.Another point, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, The indirect coupling or communication connection of device or unit can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention. And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can To be done through the relevant hardware of the program instructions.Program above-mentioned can be stored in a computer readable storage medium. When being executed, execution includes the steps that above-mentioned each method embodiment to the program;And storage medium above-mentioned includes: ROM, RAM, magnetic The various media that can store program code such as dish or CD.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (24)

1. a kind of apparatus control method characterized by comprising
Voice messaging is obtained, the voice messaging is used for the hard key-press event of analog electronic equipment, and the hard key-press event is pair Hard key in the electronic equipment carries out the event of pressing operation triggering;
Obtain the corresponding control instruction of the voice messaging;
The corresponding hard key-press event of the control instruction is executed by the corresponding software interface of the control instruction, the software connects Mouth is the software program for realizing the hard key-press event.
2. the method according to claim 1, wherein described held by the corresponding software interface of the control instruction The corresponding hard key-press event of the row control instruction, comprising:
Determine the corresponding software interface of the control instruction and the corresponding interface parameters of the control instruction;
The corresponding hard key-press event of the control instruction is executed by the software interface and the interface parameters.
3. according to the method described in claim 2, it is characterized in that, described held by the software interface and the interface parameters The corresponding hard key-press event of the row control instruction, comprising:
The interface parameters is determined as to the operating parameter of the software interface, and the software interface is called to execute institute to realize State the corresponding hard key-press event of control instruction.
4. method according to claim 1-3, which is characterized in that described to obtain the corresponding control of the voice messaging System instruction, comprising:
Obtain the corresponding keyword of the voice messaging;
The corresponding control instruction of the voice messaging is determined according to the keyword.
5. according to the method described in claim 4, it is characterized in that, determining that the voice messaging is corresponding according to the keyword Control instruction, comprising:
When determining the keyword includes preset keyword, the corresponding contextual information of the voice messaging is obtained;
Determine that the type of the voice messaging, the type of the voice messaging are man-machine dialogue types according to the contextual information Or person to person's dialogue types;
When the type of the voice messaging is man-machine dialogue types, the corresponding instruction of the preset keyword is determined as described Control instruction.
6. according to the method described in claim 4, it is characterized in that, it is described obtain the corresponding keyword of the voice messaging it Before, further includes:
Enabled instruction is received, the enabled instruction is used to indicate the function of the electronic equipment starting hard key-press event of speech simulation Energy.
7. according to the method described in claim 6, it is characterized in that, the enabled instruction is the first default voice messaging, first Pre-set image information or to any one in the pressing information of the first programmable button.
8. method according to claim 6 or 7, which is characterized in that the method also includes:
Out code is received, the out code is used to indicate the function that the electronic equipment closes the hard key-press event of speech simulation Energy.
9. according to the method described in claim 8, it is characterized in that, the out code is the second default voice messaging, second Pre-set image information or to any one in the pressing information of the second programmable button.
10. -9 described in any item methods according to claim 1, which is characterized in that the hard key includes returning to key or master At least one of pages button.
11. -10 described in any item methods according to claim 1, which is characterized in that the electronic equipment sets for vehicle electronics It is standby.
12. a kind of plant control unit, which is characterized in that module, the second acquisition module and execution module are obtained including first, In,
The first acquisition module is used for, and obtains voice messaging, and the voice messaging is used for the hard key thing of analog electronic equipment Part, the hard key-press event are that the event of pressing operation triggering is carried out to the hard key in the electronic equipment;
The second acquisition module is used for, and obtains the corresponding control instruction of the voice messaging;
The execution module is used for, and is pressed firmly by the way that the control instruction corresponding software interface execution control instruction is corresponding Key events, the software interface are the software program for realizing the hard key-press event.
13. device according to claim 12, which is characterized in that the execution module is specifically used for:
Determine the corresponding software interface of the control instruction and the corresponding interface parameters of the control instruction;
The corresponding hard key-press event of the control instruction is executed by the software interface and the interface parameters.
14. device according to claim 13, which is characterized in that the execution module is specifically used for:
The interface parameters is determined as to the operating parameter of the software interface, and the software interface is called to execute institute to realize State the corresponding hard key-press event of control instruction.
15. the described in any item devices of 2-14 according to claim 1, which is characterized in that the second acquisition module is specifically used for:
Obtain the corresponding keyword of the voice messaging;
The corresponding control instruction of the voice messaging is determined according to the keyword.
16. device according to claim 15, which is characterized in that the second acquisition module is specifically used for:
When determining the keyword includes preset keyword, the corresponding contextual information of the voice messaging is obtained;
Determine that the type of the voice messaging, the type of the voice messaging are man-machine dialogue types according to the contextual information Or person to person's dialogue types;
When the type of the voice messaging is man-machine dialogue types, the corresponding instruction of the preset keyword is determined as described Control instruction.
17. device according to claim 15, which is characterized in that described device further includes receiving module, wherein
The receiving module is used for, and before described second obtains the corresponding keyword of the module acquisition voice messaging, is received Enabled instruction, the enabled instruction are used to indicate the function of the electronic equipment starting hard key-press event of speech simulation.
18. device according to claim 17, which is characterized in that the enabled instruction is the first default voice messaging, the One pre-set image information or to any one in the pressing information of the first programmable button.
19. device described in 7 or 18 according to claim 1, which is characterized in that
The receiving module is also used to, and receives out code, and the out code is used to indicate the electronic equipment and closes voice The function of simulation hardware button event.
20. device according to claim 19, which is characterized in that the out code is the second default voice messaging, the Two pre-set image informations or to any one in the pressing information of the second programmable button.
21. the described in any item devices of 2-20 according to claim 1, which is characterized in that the hard key include return key or At least one of homepage key.
22. the described in any item devices of 2-21 according to claim 1, which is characterized in that the electronic equipment sets for vehicle electronics It is standby.
23. a kind of plant control unit characterized by comprising at least one processor and memory;
The memory stores computer executed instructions;
At least one described processor executes the computer executed instructions of the memory storage, so that at least one described processing Device executes apparatus control method as described in any one of claim 1 to 11.
24. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium It executes instruction, when processor executes the computer executed instructions, realizes equipment as described in any one of claim 1 to 11 Control method.
CN201910143027.9A 2019-02-26 2019-02-26 Apparatus control method, device and equipment Pending CN110058835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910143027.9A CN110058835A (en) 2019-02-26 2019-02-26 Apparatus control method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910143027.9A CN110058835A (en) 2019-02-26 2019-02-26 Apparatus control method, device and equipment

Publications (1)

Publication Number Publication Date
CN110058835A true CN110058835A (en) 2019-07-26

Family

ID=67316626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910143027.9A Pending CN110058835A (en) 2019-02-26 2019-02-26 Apparatus control method, device and equipment

Country Status (1)

Country Link
CN (1) CN110058835A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947256A (en) * 2021-03-31 2021-06-11 中国建设银行股份有限公司 Robot-based computer system control method, device, medium and robot
WO2023000697A1 (en) * 2021-07-23 2023-01-26 北京百度网讯科技有限公司 Method for controlling program by means of speech, and device and program product

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795308A (en) * 2010-03-22 2010-08-04 山东超越数控电子有限公司 Press key design of handset and method for dynamically changing press keys
CN203276835U (en) * 2013-05-29 2013-11-06 丁一号 A tablet display terminal intelligent voice control system
CN105204743A (en) * 2015-09-28 2015-12-30 百度在线网络技术(北京)有限公司 Interaction control method and device for speech and video communication
CN106601244A (en) * 2016-12-08 2017-04-26 深圳市元征科技股份有限公司 Voice control method and system for vehicle diagnosis client
CN107591155A (en) * 2017-08-29 2018-01-16 珠海市魅族科技有限公司 Audio recognition method and device, terminal and computer-readable recording medium
CN108307069A (en) * 2018-01-29 2018-07-20 广东欧珀移动通信有限公司 Navigate operation method, navigation running gear and mobile terminal
CN108492824A (en) * 2018-03-07 2018-09-04 珠海市中粤通信技术有限公司 A kind of voice interactive method that AI is intellectual

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101795308A (en) * 2010-03-22 2010-08-04 山东超越数控电子有限公司 Press key design of handset and method for dynamically changing press keys
CN203276835U (en) * 2013-05-29 2013-11-06 丁一号 A tablet display terminal intelligent voice control system
CN105204743A (en) * 2015-09-28 2015-12-30 百度在线网络技术(北京)有限公司 Interaction control method and device for speech and video communication
CN106601244A (en) * 2016-12-08 2017-04-26 深圳市元征科技股份有限公司 Voice control method and system for vehicle diagnosis client
CN107591155A (en) * 2017-08-29 2018-01-16 珠海市魅族科技有限公司 Audio recognition method and device, terminal and computer-readable recording medium
CN108307069A (en) * 2018-01-29 2018-07-20 广东欧珀移动通信有限公司 Navigate operation method, navigation running gear and mobile terminal
CN108492824A (en) * 2018-03-07 2018-09-04 珠海市中粤通信技术有限公司 A kind of voice interactive method that AI is intellectual

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112947256A (en) * 2021-03-31 2021-06-11 中国建设银行股份有限公司 Robot-based computer system control method, device, medium and robot
WO2023000697A1 (en) * 2021-07-23 2023-01-26 北京百度网讯科技有限公司 Method for controlling program by means of speech, and device and program product

Similar Documents

Publication Publication Date Title
CN111046150B (en) Man-machine interaction processing system and method, storage medium and electronic equipment
CN106887225B (en) Acoustic feature extraction method and device based on convolutional neural network and terminal equipment
CN108538291A (en) Sound control method, terminal device, cloud server and system
CN109785845B (en) Voice processing method, device and equipment
CN104469717B (en) Note transmission method and device
CN101867487A (en) Call out the system and method that connects symbol management association centre with figure
CN107370772A (en) Account login method, device and computer-readable recording medium
CN108701127A (en) Electronic equipment and its operating method
CN103024169A (en) Method and device for starting communication terminal application program through voice
CN110335421A (en) A kind of method, apparatus, server and the storage medium of the troubleshooting of express delivery cabinet
CN107682752A (en) Method, apparatus, system, terminal device and the storage medium that video pictures are shown
CN103116483A (en) Method, device and terminal for invoking microblog
CN110058835A (en) Apparatus control method, device and equipment
CN104111728A (en) Electronic device and voice command input method based on operation gestures
CN104967719A (en) Contact information prompting method and terminal
CN110427134A (en) Data processing method, device, equipment and the readable storage medium storing program for executing of instant messaging
CN106227537A (en) Display packing and device
CN104571781B (en) More application widget display methods and counter management apparatus in Android system
CN107402762A (en) The implementation method and device of finger print navigation
CN104253897B (en) The control method and device of a kind of terminal
CN105898053B (en) A kind of communications records processing equipment, method and mobile terminal
CN105812535A (en) Method of recording speech communication information and terminal
CN105117142B (en) A kind of short message operation and terminal
CN108418979B (en) Telephone traffic continuation prompting method and device, computer equipment and storage medium
CN106897172A (en) System method to set up, device and terminal

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
TA01 Transfer of patent application right

Effective date of registration: 20211021

Address after: 100176 101, floor 1, building 1, yard 7, Ruihe West 2nd Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing

Applicant after: Apollo Zhilian (Beijing) Technology Co.,Ltd.

Address before: Unit D, Unit 3, 301, Productivity Building No. 5, High-tech Secondary Road, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: BAIDU INTERNATIONAL TECHNOLOGY (SHENZHEN) Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190726

RJ01 Rejection of invention patent application after publication