CN113805691A - Control method and device of electronic equipment, electronic equipment and storage medium - Google Patents

Control method and device of electronic equipment, electronic equipment and storage medium Download PDF

Info

Publication number
CN113805691A
CN113805691A CN202011583028.4A CN202011583028A CN113805691A CN 113805691 A CN113805691 A CN 113805691A CN 202011583028 A CN202011583028 A CN 202011583028A CN 113805691 A CN113805691 A CN 113805691A
Authority
CN
China
Prior art keywords
input
input mode
electronic equipment
instruction
control
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
CN202011583028.4A
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.)
Jingdong Technology Holding Co Ltd
Original Assignee
Jingdong Technology Holding 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 Jingdong Technology Holding Co Ltd filed Critical Jingdong Technology Holding Co Ltd
Priority to CN202011583028.4A priority Critical patent/CN113805691A/en
Publication of CN113805691A publication Critical patent/CN113805691A/en
Pending legal-status Critical Current

Links

Images

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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a control method and device of electronic equipment, the electronic equipment and a storage medium, wherein the method comprises the following steps: under the condition that a first input mode of the electronic equipment is in an open state, acquiring first input data in the first input mode; inquiring an input instruction table corresponding to the first input mode to determine a first control instruction corresponding to the first input data; and controlling the electronic equipment to acquire the input data in the second input mode under the condition that the first control instruction is used for starting acquiring the input data in the second input mode. Therefore, under the condition that the first input mode is in the starting state, the first input mode is used for starting to acquire the input data under the second input mode, so that the purpose that the input data can be acquired by triggering of other input modes in a certain input mode is achieved, the control diversity and convenience are improved, and the power consumption is also saved.

Description

Control method and device of electronic equipment, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for controlling an electronic device, and a storage medium.
Background
In recent years, as the technology of voice intelligent assistant is continuously developed, more and more voice intelligent assistant products appear successively, and the products bring great convenience to the life of people by utilizing voice recognition.
In the related art, the voice input of the electronic device usually requires some special voice commands to trigger, so as to ensure that the voice to be recognized is acquired. In addition, the electronic device is always in the detection state of the trigger instruction, so that more electric energy is consumed.
Disclosure of Invention
The application provides a control method and device of electronic equipment, the electronic equipment and a storage medium.
An embodiment of an aspect of the present application provides a method for controlling an electronic device, including:
under the condition that a first input mode of the electronic equipment is in an on state, acquiring first input data in the first input mode;
inquiring an input instruction table corresponding to the first input mode to determine a first control instruction corresponding to the first input data;
and under the condition that the first control instruction is to start to acquire the input data in the second input mode, controlling the electronic equipment to acquire the input data in the second input mode.
In one possible implementation manner of an embodiment of an aspect of the present application, the method further includes:
and under the condition that various input modes of the electronic equipment are closed, responding to the acquired touch operation of a first control associated with the first input mode, and opening the first input mode of the electronic equipment.
In a possible implementation manner of an embodiment of an aspect of the present application, after the determining a first control instruction corresponding to the first input data, the method further includes:
and stopping the operation of the electronic equipment for acquiring the input data in the second input mode under the condition that the first control instruction is to close the second input mode.
In one possible implementation manner of an embodiment of an aspect of the present application, the method further includes:
under the condition that at least two input modes of the electronic equipment are both in an open state, acquiring at least two second input data under the at least two input modes;
querying a mixed input instruction table corresponding to the at least two input modes to determine second control instructions corresponding to the at least two second input data;
and responding to the second control instruction, and controlling the electronic equipment.
In one possible implementation manner of an embodiment of an aspect of the present application,
in a possible implementation manner of an embodiment of an aspect of the present application, before querying the input instruction table corresponding to the first input mode, the method further includes:
acquiring an input configuration instruction, wherein the configuration instruction comprises input data in the first input mode and a corresponding control instruction;
and generating the input instruction list according to the configuration instruction.
In a possible implementation manner of an embodiment of an aspect of the present application, before querying the input instruction table corresponding to the first input mode, the method further includes:
and acquiring an input instruction list corresponding to a first input mode of the electronic equipment according to the type of the electronic equipment.
In a possible implementation manner of an embodiment of an aspect of the present application, before querying the input instruction table corresponding to the first input mode, the method further includes:
and acquiring an input instruction list corresponding to a first input mode of the electronic equipment according to the type of the electronic equipment.
An embodiment of another aspect of the present application provides a control apparatus for an electronic device, including:
the first acquisition module is used for acquiring first input data in a first input mode of the electronic equipment under the condition that the first input mode is in an on state;
the first determining module is used for inquiring an input instruction table corresponding to the first input mode so as to determine a first control instruction corresponding to the first input data;
and the first control module is used for controlling the electronic equipment to acquire the input data in the second input mode under the condition that the first control instruction is used for starting to acquire the input data in the second input mode.
In a possible implementation manner of another embodiment of the present application, the apparatus further includes:
the second control module is used for responding to the acquired touch operation of the first control associated with the first input mode and starting the first input mode of the electronic equipment under the condition that various input modes of the electronic equipment are closed.
In a possible implementation manner of another embodiment of the present application, the apparatus further includes:
and the third control module is used for stopping the electronic equipment from acquiring the input data in the second input mode under the condition that the first control instruction is used for closing the second input mode.
In a possible implementation manner of another embodiment of the present application, the apparatus further includes:
the second acquisition module is used for acquiring at least two second input data under at least two input modes of the electronic equipment under the condition that the at least two input modes are both in an open state;
the second determining module is used for inquiring a mixed input instruction list corresponding to the at least two input modes so as to determine a second control instruction corresponding to the at least two second input data;
and the fourth control module is used for responding to the second control instruction and controlling the electronic equipment.
In a possible implementation manner of another embodiment of the present application, the apparatus further includes:
and the fifth control module is used for stopping the electronic equipment from acquiring the input data in the first input mode under the condition that the first control instruction is used for closing the first input mode.
In a possible implementation manner of another embodiment of the present application, the apparatus further includes:
a third obtaining module, configured to obtain an input configuration instruction, where the configuration instruction includes input data in the first input mode and a corresponding control instruction;
and the generating module is used for generating the input instruction list according to the configuration instruction.
In a possible implementation manner of another embodiment of the present application, the apparatus further includes:
and the fourth acquisition module is used for acquiring an input instruction list corresponding to the first input mode of the electronic equipment according to the type of the electronic equipment.
Another embodiment of the present application provides an electronic device, including a processor and a memory;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to implement the control method of the electronic device according to the embodiment of the above aspect.
Another embodiment of the present application proposes a non-transitory computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements a control method of an electronic device as described in an embodiment of the above aspect.
Another embodiment of the present application provides a computer program product, wherein when the instructions in the computer program product are executed by a processor, the method for controlling an electronic device according to the embodiment of the present application is implemented.
According to the control method and device for the electronic equipment, the electronic equipment and the storage medium, under the condition that the first input mode of the electronic equipment is in the open state, first input data under the first input mode are obtained, an input instruction list corresponding to the first input mode is inquired to determine a first control instruction corresponding to the first input data, and under the condition that the first control instruction is started to obtain input data under the second input mode, the electronic equipment is controlled to obtain the input data under the second input mode. Therefore, under the condition that the first input mode is in the starting state, the first input mode is used for starting to acquire the input data under the second input mode, so that the purpose that the input data can be acquired by triggering of other input modes in a certain input mode is achieved, the control diversity and convenience are improved, and the power consumption is also saved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a control method of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another control method for an electronic device according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another control method for an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another control method for an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a control device of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A control method of an electronic device, an apparatus, an electronic device, and a storage medium according to embodiments of the present application are described below with reference to the accompanying drawings.
In the related art, voice input through the electronic device usually requires some special voice instructions to trigger so as to ensure that the voice to be recognized is acquired. In addition, the electronic device is always in the detection state of the trigger instruction, so that more electric energy is consumed.
In view of the above problem, embodiments of the present application provide a control method for an electronic device, where when a first input mode is in an on state, the first input mode is used to start to acquire input data in a second input mode, so that a certain input mode is realized, and other input modes can be used to trigger to acquire input data, thereby improving control diversity and convenience, and saving power consumption.
Fig. 1 is a flowchart illustrating a control method of an electronic device according to an embodiment of the present disclosure.
As shown in fig. 1, the control method of the electronic device includes:
step 101, acquiring first input data in a first input mode of an electronic device under the condition that the first input mode is in an on state.
In this application, the electronic device may have a plurality of input modes, such as a voice input mode, a gesture input mode, a touch input mode, a remote control device input mode, and the like. When the first input mode of the electronic device is in an on state, first input data of the first input mode can be acquired.
Here, the first input mode may be one of a plurality of input modes. For example, the first input mode is a gesture input mode, and when the gesture input mode is in an on state, the electronic device may acquire a gesture made by the user through a camera device such as a camera. For another example, the first input mode is a voice input mode, and the electronic device may collect voice data input by the user through a sound collection device, such as a microphone or a microphone array, when the voice input mode is in an on state.
Step 102, an input instruction table corresponding to the first input mode is queried to determine a first control instruction corresponding to the first input data.
In the present application, each input mode may have a corresponding input command table. The input instruction list may include control instructions corresponding to input data in the input mode, may include one set of corresponding input data and control instructions, and may also include multiple sets of corresponding input data and control instructions.
After the first input data is acquired, the input instruction list corresponding to the first input mode can be queried to determine a first control instruction corresponding to the first input data. The input instruction list corresponding to the first input mode may include a set of input data and control instructions in the corresponding first input mode, or may include a plurality of sets of input data and control instructions in the corresponding first input mode.
For example, the first input mode is a gesture input mode, the first input data is a gesture a, and the control instruction corresponding to the gesture a is determined by querying an input instruction table corresponding to the gesture input mode.
And 103, controlling the electronic equipment to acquire the input data in the second input mode under the condition that the first control instruction is to start acquiring the input data in the second input mode.
And under the condition that the second input mode of the electronic equipment is in an open state, if the control instruction corresponding to the first input data is to open to acquire the input data in the second input mode, the electronic equipment can be controlled to acquire the input data in the second input mode. The second input mode is different from the first input mode.
For example, the first input mode is a gesture input mode, the second input mode is a voice input mode, and when the gesture input mode is in an on state, if a control instruction corresponding to the acquired gesture input data is to start acquiring data in the voice input mode, the electronic device may be controlled to acquire the voice input data.
Therefore, the voice input data can be acquired through gesture control triggering, the voice input data can be acquired only through voice instruction triggering, the diversification of the triggered voice input is enriched, and a user can start to acquire the input data in the voice input mode according to needs, so that the electronic equipment is prevented from always detecting the triggering instruction and consuming electric quantity.
For another example, the first input mode is a voice input mode, the second input mode is a gesture input mode, and when the voice input mode is in an on state, if the control instruction corresponding to the acquired voice input data is to start acquiring data in the gesture input mode, the electronic device may be controlled to acquire gesture input data.
According to the control method of the electronic equipment, the first input data are obtained under the condition that the first input mode is in the open state, the input instruction list corresponding to the first input mode is inquired, the first control instruction corresponding to the first input data is determined, if the first control instruction is used for obtaining the input data under the second input mode, the electronic equipment is controlled to obtain the input data under the second input mode, therefore, the purpose that certain input mode is achieved, other input modes can be used for triggering and obtaining the input data is achieved, control diversity and convenience are improved, and power consumption is also saved.
In practical applications, various input modes of the electronic device may be in a closed state, and based on this, in an embodiment of the present application, when various input modes of the electronic device are in a closed state, the first input mode of the electronic device may be turned on through a touch operation of a first control associated with the first input mode.
In the application, a first control for controlling the first input mode to be turned on or turned off may be displayed in a display screen of the electronic device. If the current first input mode is in the closed state, a user can trigger a first control associated with the first input mode in the display screen, and the electronic equipment responds to the acquired touch operation of the first control associated with the first input mode to start the first input mode of the electronic equipment, so that the electronic equipment can acquire input data in the first input mode.
Or, the remote control device may have a first control for controlling the first input mode to be turned on or turned off, if the current first input mode is in an off state, the user may also trigger the first control associated with the first input mode on the remote control device, and the electronic device may turn on the first input mode in response to the acquired touch operation of the first control associated with the first input mode.
After the first input mode is started, if a control instruction corresponding to the acquired input data in the first input mode is used for starting to acquire input data in other input modes, the electronic equipment can be controlled to start other input modes, so that mutual control of starting states among different input modes is realized, the electronic equipment can also be started to acquire input data in other input modes, and the acquisition of input data in other input modes is triggered.
It is understood that, in the case that various input modes of the electronic device are all in the off state, the first input mode may be turned on through the first control, and other input modes of the electronic device may also be turned on by using controls associated with the other input modes.
For example, the voice input mode may be started by triggering a control associated with the voice input mode on the display screen of the electronic device, or the gesture input mode may be started by triggering a control associated with the gesture input mode on the display screen of the electronic device.
In the application, the input mode in the opening state can be displayed on the display screen of the electronic equipment, so that a user can conveniently check the state of the input mode.
In the embodiment of the application, under the condition that various input modes of the electronic equipment are closed, the first input mode of the electronic equipment is opened in response to the acquired touch operation of the first control associated with the first input mode. Therefore, when all the input modes of the electronic equipment are closed, the first input mode can be opened by using the control associated with the first input mode.
Fig. 2 is a flowchart illustrating another control method for an electronic device according to an embodiment of the present application.
As shown in fig. 2, the control method of the electronic device includes:
step 201, acquiring first input data in a first input mode of the electronic device when the first input mode is in an on state.
Step 202, an input instruction table corresponding to the first input mode is queried to determine a first control instruction corresponding to the first input data.
And step 203, controlling the electronic equipment to acquire the input data in the second input mode under the condition that the first control instruction is to start acquiring the input data in the second input mode.
In the present application, steps 201 to 203 are similar to steps 101 to 103, and thus are not described herein again.
And step 204, stopping the operation of the electronic equipment for acquiring the input data in the second input mode under the condition that the first control instruction is to close the second input mode.
In this application, the first input mode and the second input mode of the electronic device may both be in an on state. And under the condition that the first control instruction corresponding to the acquired first input data is to close the second input mode, stopping the operation of acquiring the input data in the second input mode by the electronic equipment.
For example, the first input mode is a gesture input mode, the second input mode is a voice input mode, and if the control instruction corresponding to the acquired gesture input data is to turn off the voice input mode, the microphone may be controlled to stop acquiring the voice input data, for example, turn off the microphone or make the microphone in a sleep state.
It will be appreciated that the second input mode may also be enabled using the first input data in the first input mode. For example, the first input mode is a gesture input mode, the second input mode is a voice input mode, and if the control instruction corresponding to the acquired gesture input data is to turn on the voice input mode, the voice input mode can be in a turn-on state. For example, in a live scene, the anchor may perform operation management on the on-off states of all input modes when at least one input mode is turned on.
Therefore, the control method of the electronic equipment can realize mutual control of the switch states among different input modes.
According to the control method of the electronic equipment, the electronic equipment is controlled to acquire the input data in the second input mode under the condition that the first control instruction is to start to acquire the input data in the second input mode, and the electronic equipment is stopped from acquiring the input data in the second input mode under the condition that the first control instruction is to close the second input mode. Therefore, the method and the device not only realize that the input data can be acquired by triggering other input modes for a certain input mode, but also realize the mutual control of closing the input modes among different input modes, and improve the diversity and convenience of closing control of the input modes.
In order to increase the diversity of the electronic device control, in an embodiment of the present application, the electronic device may also be controlled by using input data in multiple input modes. Fig. 3 is a schematic flowchart of another control method for electronic equipment according to an embodiment of the present disclosure.
As shown in fig. 3, the method for controlling the electronic device further includes:
step 301, under the condition that at least two input modes of the electronic device are both in an on state, acquiring at least two second input data in the at least two input modes.
In this application, the electronic device may have a plurality of input modes, and when at least two input modes of the electronic device are both in the on state, the input data in the at least two input modes in the on state may be acquired, which is referred to as second input data for convenience of distinction. For example, the current voice input mode and the gesture input mode are both in an open state, and if a user inputs voice and simultaneously puts out a gesture, the electronic device can acquire voice input data and gesture input data.
Step 302, querying a mixed input instruction table corresponding to at least two input modes to determine a second control instruction corresponding to at least two second input data.
In the application, any two or more input modes can have corresponding mixed input instruction lists, and the mixed input instruction lists can be set by users according to needs and can also be preset by electronic equipment when the electronic equipment leaves a factory. The mixed input instruction list can include input data and corresponding control instructions in multiple input modes. Alternatively, the input data in each input mode in the mixed input instruction list may be in one-to-one correspondence, or may be in one-to-many correspondence.
For example, the voice input mode and the gesture input mode, the mixed command input table corresponding to the two modes may include control commands corresponding to the voice input data and the gesture input data.
In the mixed input instruction list corresponding to the voice input mode and the gesture input mode, one piece of voice input data and one piece of gesture input data can correspond to the control instruction. For example, the "bixin" gesture and the voice input data "love you" correspond to a control instruction, and the control instruction is, for example, rendering a bixin animation.
In practical applications, the same semantic meaning may input different voice data because different users may have different expression habits. Therefore, in order to improve the accuracy of control, in the mixed input instruction list corresponding to the voice input mode and the gesture input mode, one gesture input data and a plurality of voice input data may correspond to one control instruction, that is, one gesture input data and one voice input data set correspond to one control instruction. When the electronic device acquires the gesture input data and any voice input data in the voice input data set, a corresponding control instruction can be determined.
As another example, a "bixin" gesture and voice input data set: "love you", "heart", and the like correspond to control instructions, for example, the control instructions are rendering heart animation.
And step 303, responding to the second control instruction, and controlling the electronic equipment.
The electronic equipment can be controlled according to the second control instruction. For example, if the second control instruction is to render a heart-specific animation, the electronic device may render the heart-specific animation in the display screen.
The control method of the electronic device in the embodiment of the application can be applied to a live broadcast scene, and can be used for rendering some special effects by adopting preset gestures (such as heart gesture, refueling gesture and the like) and/or voice input data, so that the live broadcast effect is improved.
The control method for the electronic device according to the embodiment of the application may further include acquiring at least two second input data in the at least two input modes when the at least two input modes of the electronic device are both in the on state, and querying a mixed input instruction table corresponding to the at least two input modes to determine a second control instruction corresponding to the at least two second input data, and controlling the electronic device in response to the second control instruction. Therefore, the electronic equipment is controlled by utilizing the input data in the multiple input modes, the requirement of a user for mixed input through the multiple input modes can be met, the accuracy of triggering the control instruction is improved by combining the input data in the multiple input modes, and the accuracy of controlling the electronic equipment is further improved.
In an embodiment of the application, after the first control instruction corresponding to the first input data is determined, the first input data may be used to control to close the first input mode.
In this application, when the first control instruction corresponding to the first input data is to close the first input mode, the operation of the electronic device for acquiring the input data in the first input mode may be stopped.
For example, the first input mode is a voice input mode, the user may input voice data for turning off the voice input mode, the electronic device acquires the voice input data, and when it is determined that the control command is to turn off the voice input mode according to the voice input data, the operation of acquiring the voice input data may be stopped, for example, the microphone may be controlled to be turned off or be in a sleep state to stop acquiring the voice data, and the like.
For another example, the first input mode is a gesture input mode, the user may input a gesture for turning off the gesture input mode, the electronic device obtains gesture input data, and when it is determined that the control instruction is the turning off gesture input mode according to the gesture input data, the operation of obtaining the gesture input data may be stopped, for example, the camera is controlled to be turned off or the camera is in a sleep state to stop collecting images, and the like.
The control method of the electronic device in the embodiment of the application may further stop the electronic device from acquiring the input data in the first input mode when the first control instruction is to close the first input mode. Therefore, when each input mode of the electronic equipment is in an open state, the respective input mode can be closed by utilizing the input data in the respective input mode, and the convenience and the diversity of control are improved.
In an embodiment of the application, before querying the input instruction table corresponding to the first input mode, the input instruction table may be configured according to the obtained input configuration instruction. Fig. 4 is a schematic flowchart of another control method for an electronic device according to an embodiment of the present disclosure.
As shown in fig. 4, before querying the input instruction table corresponding to the first input mode, the method further includes:
step 401, an input configuration instruction is obtained, where the configuration instruction includes input data in a first input mode and a corresponding control instruction.
In the application, a user can configure input data and a corresponding control instruction in the first input mode as required, and the electronic device obtains the input configuration instruction. The configuration instruction comprises input data in a first input mode and a corresponding control instruction.
In the configuration, the configuration may be performed one by one, or a plurality of configurations may be performed simultaneously. For example, a user may input one or more sets of input data and control instructions in a configuration page, and the electronic device may obtain the corresponding configuration instructions.
For example, the first input mode is a gesture input mode, and the user can input a user-defined gesture or a set fixed gesture and a corresponding control instruction for starting the voice input mode, and can also input the user-defined gesture or the set fixed gesture and a corresponding control instruction for closing the voice input mode.
Or, a corresponding relationship between any gesture and a control instruction for starting the voice input mode may also be set, and if the voice input mode is not in the start state, the voice input mode may be started when the electronic device recognizes any gesture. Or, the corresponding relation between any gesture and the control instruction for closing the voice input mode can be set, and if the voice input mode is in the opening state, the voice input mode can be closed when any gesture is recognized.
Step 402, generating an input instruction list according to the configuration instruction.
After the electronic device obtains the configuration instruction, the corresponding relationship between each input data and the control instruction can be established according to the input data and the corresponding control instruction in the first input mode in the configuration instruction, so that an input instruction list corresponding to the first input mode is obtained.
And under the condition that the first input mode is in an open state, acquiring first input data in the first input mode, determining a first control instruction corresponding to the first input data by inquiring the configured input instruction list, and controlling the electronic equipment according to the first control instruction.
For example, a corresponding relationship between the gesture c and a control instruction of "trigger voice assistant" is set, and in a state that the gesture assistant is turned on, the user swings out the gesture c in a camera acquisition area of the electronic device, so that the electronic device can trigger the voice assistant according to the acquired gesture c to start a voice input and recognition function.
According to the control method and the control device for the electronic equipment, before the input instruction list corresponding to the first input mode is inquired, the input configuration instruction can be obtained, and the input instruction list is generated according to the configuration instruction, so that the control instruction corresponding to the input data in the first input mode can be determined according to the input instruction list. Therefore, the user can set the first input data and the corresponding control instruction, and the personalized requirements of the user can be met.
In an embodiment of the present application, the input instruction table corresponding to the first input mode may also be preset before the electronic device leaves the factory.
When the input instruction list is preset, the input instruction list of the first input mode may be preset according to the type of the electronic device, and may be different types of electronic devices corresponding to different input instruction lists. For example, the corresponding input instruction list of the mobile phone is different from that of the wearable device. Before querying the input instruction list corresponding to the first input mode, the input instruction list corresponding to the first input mode of the electronic device may also be obtained according to the type of the electronic device.
In the embodiment of the application, before the input instruction list corresponding to the first input mode is queried, the input instruction list corresponding to the first input mode of the electronic equipment can be obtained according to the type of the electronic equipment, so that the input instruction list can be obtained according to the type of the electronic equipment, and the obtaining mode of the input instruction list is enriched.
In order to implement the foregoing embodiments, an embodiment of the present application further provides a control device for an electronic device. Fig. 5 is a schematic structural diagram of a control device of an electronic device according to an embodiment of the present application.
As shown in fig. 5, the control device 500 of the electronic apparatus includes: a first acquisition module 510, a first determination module 520, and a first control module 530.
A first obtaining module 510, configured to obtain first input data in a first input mode of an electronic device when the first input mode is in an on state;
a first determining module 520, configured to query an input instruction table corresponding to the first input mode to determine a first control instruction corresponding to the first input data;
the first control module 530 is configured to control the electronic device to acquire the input data in the second input mode when the first control instruction is to start acquiring the input data in the second input mode.
In a possible implementation manner of the embodiment of the present application, the apparatus may further include:
the second control module is used for responding to the acquired touch operation of the first control associated with the first input mode and starting the first input mode of the electronic equipment under the condition that various input modes of the electronic equipment are closed.
In a possible implementation manner of the embodiment of the present application, the apparatus may further include:
and the third control module is used for stopping the electronic equipment from acquiring the input data in the second input mode under the condition that the first control instruction is used for closing the second input mode.
In a possible implementation manner of the embodiment of the present application, the apparatus may further include:
the second acquisition module is used for acquiring at least two kinds of second input data in at least two input modes under the condition that the at least two input modes of the electronic equipment are both in an open state;
the second determining module is used for inquiring a mixed input instruction list corresponding to at least two input modes so as to determine a second control instruction corresponding to at least two second input data;
and the fourth control module is used for responding to the second control instruction and controlling the electronic equipment.
In a possible implementation manner of the embodiment of the present application, the apparatus may further include:
and the fifth control module is used for stopping the electronic equipment from acquiring the input data in the first input mode under the condition that the first control instruction is used for closing the first input mode.
In a possible implementation manner of the embodiment of the present application, the apparatus may further include:
the third acquisition module is used for acquiring an input configuration instruction, wherein the configuration instruction comprises input data in the first input mode and a corresponding control instruction;
and the generating module is used for generating an input instruction list according to the configuration instruction.
In a possible implementation manner of the embodiment of the present application, the apparatus may further include:
and the fourth acquisition module is used for acquiring an input instruction list corresponding to the first input mode of the electronic equipment according to the type of the electronic equipment.
It should be noted that the above explanation of the embodiment of the control method for electronic equipment is also applicable to the control device for electronic equipment in this embodiment, and therefore, the explanation is not repeated here.
The control device of the electronic device in the embodiment of the application obtains the first input data in the first input mode when the first input mode of the electronic device is in the on state, and queries the input instruction table corresponding to the first input mode to determine the first control instruction corresponding to the first input data, and controls the electronic device to obtain the input data in the second input mode when the first control instruction is to start obtaining the input data in the second input mode. Therefore, under the condition that the first input mode is in the starting state, the first input mode is used for starting to acquire the input data under the second input mode, so that the purpose that the input data can be acquired by triggering of other input modes in a certain input mode is achieved, the control diversity and convenience are improved, and the power consumption is also saved.
In order to implement the foregoing embodiments, an electronic device is further provided in an embodiment of the present application, including a processor and a memory;
wherein, the processor runs the program corresponding to the executable program code by reading the executable program code stored in the memory, so as to realize the control method of the electronic device according to the above embodiment.
In order to implement the above embodiments, the present application also proposes a non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the control method of the electronic device as described in the above embodiments.
In order to implement the foregoing embodiments, the present application further provides a computer program product, and when instructions in the computer program product are executed by a processor, the method for controlling an electronic device according to the foregoing embodiments is implemented.
In the description of the present specification, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (16)

1. A method of controlling an electronic device, comprising:
under the condition that a first input mode of the electronic equipment is in an on state, acquiring first input data in the first input mode;
inquiring an input instruction table corresponding to the first input mode to determine a first control instruction corresponding to the first input data;
and under the condition that the first control instruction is to start to acquire the input data in the second input mode, controlling the electronic equipment to acquire the input data in the second input mode.
2. The method of claim 1, further comprising:
and under the condition that various input modes of the electronic equipment are closed, responding to the acquired touch operation of a first control associated with the first input mode, and opening the first input mode of the electronic equipment.
3. The method of claim 1, wherein after the determining the first control directive to which the first input data corresponds, further comprising:
and stopping the operation of the electronic equipment for acquiring the input data in the second input mode under the condition that the first control instruction is to close the second input mode.
4. The method of claim 1, further comprising:
under the condition that at least two input modes of the electronic equipment are both in an open state, acquiring at least two second input data under the at least two input modes;
querying a mixed input instruction table corresponding to the at least two input modes to determine second control instructions corresponding to the at least two second input data;
and responding to the second control instruction, and controlling the electronic equipment.
5. The method of any of claims 1-4, wherein after the determining the first control directive that corresponds to the first input data, further comprising:
and stopping the operation of the electronic equipment for acquiring the input data in the first input mode under the condition that the first control instruction is to close the first input mode.
6. The method according to any one of claims 1-4, further comprising, prior to said querying the input instruction list corresponding to the first input mode:
acquiring an input configuration instruction, wherein the configuration instruction comprises input data in the first input mode and a corresponding control instruction;
and generating the input instruction list according to the configuration instruction.
7. The method according to any one of claims 1-4, further comprising, prior to said querying the input instruction list corresponding to the first input mode:
and acquiring an input instruction list corresponding to a first input mode of the electronic equipment according to the type of the electronic equipment.
8. A control apparatus of an electronic device, comprising:
the first acquisition module is used for acquiring first input data in a first input mode of the electronic equipment under the condition that the first input mode is in an on state;
the first determining module is used for inquiring an input instruction table corresponding to the first input mode so as to determine a first control instruction corresponding to the first input data;
and the first control module is used for controlling the electronic equipment to acquire the input data in the second input mode under the condition that the first control instruction is used for starting to acquire the input data in the second input mode.
9. The apparatus of claim 8, further comprising:
the second control module is used for responding to the acquired touch operation of the first control associated with the first input mode and starting the first input mode of the electronic equipment under the condition that various input modes of the electronic equipment are closed.
10. The apparatus of claim 8, further comprising:
and the third control module is used for stopping the electronic equipment from acquiring the input data in the second input mode under the condition that the first control instruction is used for closing the second input mode.
11. The apparatus of claim 8, further comprising:
the second acquisition module is used for acquiring at least two second input data under at least two input modes of the electronic equipment under the condition that the at least two input modes are both in an open state;
the second determining module is used for inquiring a mixed input instruction list corresponding to the at least two input modes so as to determine a second control instruction corresponding to the at least two second input data;
and the fourth control module is used for responding to the second control instruction and controlling the electronic equipment.
12. The apparatus of any of claims 8-11, further comprising:
and the fifth control module is used for stopping the electronic equipment from acquiring the input data in the first input mode under the condition that the first control instruction is used for closing the first input mode.
13. The apparatus of any of claims 8-11, further comprising:
a third obtaining module, configured to obtain an input configuration instruction, where the configuration instruction includes input data in the first input mode and a corresponding control instruction;
and the generating module is used for generating the input instruction list according to the configuration instruction.
14. The apparatus of any of claims 8-11, further comprising:
and the fourth acquisition module is used for acquiring an input instruction list corresponding to the first input mode of the electronic equipment according to the type of the electronic equipment.
15. An electronic device comprising a processor and a memory;
wherein the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for implementing the control method of the electronic device according to any one of claims 1 to 7.
16. A non-transitory computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing a control method of an electronic device according to any one of claims 1 to 7.
CN202011583028.4A 2020-12-28 2020-12-28 Control method and device of electronic equipment, electronic equipment and storage medium Pending CN113805691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011583028.4A CN113805691A (en) 2020-12-28 2020-12-28 Control method and device of electronic equipment, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011583028.4A CN113805691A (en) 2020-12-28 2020-12-28 Control method and device of electronic equipment, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113805691A true CN113805691A (en) 2021-12-17

Family

ID=78943599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011583028.4A Pending CN113805691A (en) 2020-12-28 2020-12-28 Control method and device of electronic equipment, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113805691A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885596A (en) * 2014-03-24 2014-06-25 联想(北京)有限公司 Information processing method and electronic device
CN107544271A (en) * 2017-09-18 2018-01-05 广东美的制冷设备有限公司 Terminal control method, device and computer-readable recording medium
CN107544272A (en) * 2017-09-18 2018-01-05 广东美的制冷设备有限公司 terminal control method, device and storage medium
CN109741738A (en) * 2018-12-10 2019-05-10 平安科技(深圳)有限公司 Sound control method, device, computer equipment and storage medium
CN110164440A (en) * 2019-06-03 2019-08-23 清华大学 Electronic equipment, method and medium are waken up based on the interactive voice for sealing mouth action recognition

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103885596A (en) * 2014-03-24 2014-06-25 联想(北京)有限公司 Information processing method and electronic device
CN107544271A (en) * 2017-09-18 2018-01-05 广东美的制冷设备有限公司 Terminal control method, device and computer-readable recording medium
CN107544272A (en) * 2017-09-18 2018-01-05 广东美的制冷设备有限公司 terminal control method, device and storage medium
CN109741738A (en) * 2018-12-10 2019-05-10 平安科技(深圳)有限公司 Sound control method, device, computer equipment and storage medium
CN110164440A (en) * 2019-06-03 2019-08-23 清华大学 Electronic equipment, method and medium are waken up based on the interactive voice for sealing mouth action recognition

Similar Documents

Publication Publication Date Title
US20150058651A1 (en) Method and apparatus for saving battery of portable terminal
CN105049923A (en) Method and apparatus for waking up electronic device
CN104503691A (en) Equipment control method and device
CN109308159B (en) Intelligent device control method, device and system, electronic device and storage medium
EP2953003A1 (en) Touch screen terminal and working method thereof
CN105740020A (en) Application starting method and starting apparatus, and terminal
CN106488019B (en) A kind of starting-up method of mobile terminal and mobile terminal
CN111665938A (en) Application starting method and electronic equipment
CN112908321A (en) Device control method, device, storage medium, and electronic apparatus
CN112201242A (en) Method and device for waking up equipment, electronic equipment and storage medium
CN111158512A (en) Electronic pen control method, device, equipment and readable storage medium
CN113050863A (en) Page switching method and device, storage medium and electronic equipment
CN112578967B (en) Chart information reading method and mobile terminal
CN111885447B (en) Electronic device, control method thereof, control device thereof, and readable storage medium
CN108509036A (en) It is a kind of based on all touch screen curtain and the electronic equipment without button and its control method
CN113805691A (en) Control method and device of electronic equipment, electronic equipment and storage medium
CN108415572B (en) Module control method and device applied to mobile terminal and storage medium
CN109213349A (en) Exchange method and device, computer readable storage medium based on touch screen
CN103019607A (en) Gesture screen locking method of touch mobile terminal, and mobile terminal
CN113573184B (en) Control method of intelligent sound box and intelligent sound box
CN113446717B (en) Smart page display method and device and electronic equipment
CN104822017A (en) Photographing control method and apparatus
CN107436718A (en) Touch-control system and method
CN113489627A (en) Intelligent device voice awakening method and system, readable storage medium and electronic device
CN105182760A (en) Intelligent household equipment remote control method, 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