Voice control method and device and electronic equipment

文档序号:154819 发布日期:2021-10-26 浏览:26次 中文

阅读说明:本技术 语音控制方法、装置和电子设备 (Voice control method and device and electronic equipment ) 是由 肖明 于 2021-07-21 设计创作,主要内容包括:本申请公开了一种语音控制方法、装置和电子设备,属于语音控制技术领域。所述方法应用于主设备,所述主设备连接有若干从设备,所述方法包括:获取用户的语音控制指令;对所述语音控制指令进行解析,得到若干子指令;将所述若干子指令下发至至少部分所述从设备中执行。(The application discloses a voice control method, a voice control device and electronic equipment, and belongs to the technical field of voice control. The method is applied to a master device, a plurality of slave devices are connected to the master device, and the method comprises the following steps: acquiring a voice control instruction of a user; analyzing the voice control instruction to obtain a plurality of sub-instructions; and issuing the sub-instructions to at least part of the slave equipment for execution.)

1. A voice control method is applied to a master device, the master device is connected with a plurality of slave devices, and the method comprises the following steps:

acquiring a voice control instruction of a user;

analyzing the voice control instruction to obtain a plurality of sub-instructions;

and issuing the sub-instructions to at least part of the slave equipment for execution.

2. The method of claim 1, wherein parsing the voice control command to obtain a plurality of sub-commands comprises:

carrying out grammar analysis and/or semantic analysis on the voice control instruction to obtain at least one keyword;

and generating a plurality of sub-instructions according to the at least one keyword.

3. The method of claim 2, wherein generating a number of sub-instructions based on the at least one keyword comprises:

performing secondary analysis on the key words, and determining a plurality of instruction elements corresponding to the key words;

and generating a plurality of sub-instructions according to the plurality of instruction elements.

4. The method of claim 3, wherein issuing the sub-instructions to at least some of the slave devices for execution comprises:

determining target slave equipment corresponding to each sub-instruction according to each instruction element and the function of each slave equipment;

and sending each sub-instruction to corresponding target slave equipment for execution.

5. The method of claim 4, wherein before issuing the sub-instructions to at least some of the slave devices for execution, further comprising:

acquiring setting information of a first slave device, wherein the setting information is used for indicating the first slave device to execute the voice control instruction;

the determining the target slave device corresponding to each sub-instruction comprises:

and determining target slave equipment corresponding to each sub-instruction from the first slave equipment according to the setting information.

6. A voice control device is applied to a master device, the master device is connected with a plurality of slave devices, and the device comprises:

the acquisition module is used for acquiring a voice control instruction of a user;

the analysis module is used for analyzing the voice control instruction to obtain a plurality of sub-instructions;

and the issuing module is used for issuing the sub-instructions to at least part of the slave equipment for execution.

7. The apparatus of claim 6, wherein the parsing module comprises:

the analysis unit is used for carrying out grammar analysis and/or semantic analysis on the voice control instruction to obtain at least one keyword;

and the generating unit is used for generating a plurality of sub-instructions according to the at least one keyword.

8. The apparatus of claim 7, wherein the generating unit comprises:

the secondary analysis subunit is used for carrying out secondary analysis on the key words and determining a plurality of instruction elements corresponding to the key words;

and the generating subunit is used for generating a plurality of sub-instructions according to the plurality of instruction elements.

9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the voice control method of any of claims 1-5.

10. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the speech control method according to any one of claims 1-5.

Technical Field

The application belongs to the technical field of voice control, and particularly relates to a voice control method, a voice control device and electronic equipment.

Background

With the gradual development of the concept of interconnection of everything and the gradual improvement of scenes such as smart homes, more and more intelligent devices are used in families, and more devices carrying voice assistants are used, but at present, the devices may originate from different manufacturers, or even the same manufacturer rarely have the realization of interaction scenes among multiple devices, and when a plurality of devices are awakened by using an instruction, problems such as execution disorder or repeated execution can be caused.

Disclosure of Invention

The embodiment of the application aims to provide a voice control method, a voice control device and electronic equipment, and can solve the problems that in the prior art, when a voice instruction is used for controlling equipment, a plurality of pieces of equipment are easy to repeatedly execute the same command, and the plurality of pieces of equipment cannot cooperate with each other to complete more control tasks and control intentions.

In a first aspect, an embodiment of the present application provides a voice control method, which is applied to a master device, where the master device is connected to a plurality of slave devices, and the method includes:

acquiring a voice control instruction of a user;

analyzing the voice control instruction to obtain a plurality of sub-instructions;

and issuing the sub-instructions to at least part of the slave equipment for execution.

In a second aspect, an embodiment of the present application provides a voice control apparatus, which is applied to a master device, where the master device is connected to a plurality of slave devices, and the apparatus includes:

the acquisition module is used for acquiring a voice control instruction of a user;

the analysis module is used for analyzing the voice control instruction to obtain a plurality of sub-instructions;

and the issuing module is used for issuing the sub-instructions to at least part of the slave equipment for execution.

In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.

In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.

In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.

In the embodiment of the application, the voice control instruction is obtained and analyzed by the master device, and the voice control instruction is issued to the corresponding slave device after the sub-instructions are obtained, so that the voice control instruction can be completed by the cooperation of a plurality of slave devices, a plurality of control intents of one voice control instruction can be achieved, and the control logic is enriched and perfected.

Drawings

Fig. 1 is a schematic flowchart of a voice control method according to an embodiment of the present application;

fig. 2 is a schematic diagram illustrating a first device acquiring a voice control command according to an embodiment of the present application;

fig. 3 is a schematic diagram of a master device and a slave device provided in an embodiment of the present application;

FIG. 4 is a diagram illustrating default execution software of a slave device according to an embodiment of the present disclosure;

fig. 5 is a schematic structural diagram of a voice control apparatus according to an embodiment of the present application;

fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;

fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.

The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.

The following describes in detail a voice control method, a voice control device, and an electronic device provided in the embodiments of the present application with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

Please refer to fig. 1, which is a flowchart illustrating a voice control method according to an embodiment of the present disclosure. As shown in fig. 1, the voice control method in the embodiment of the present application is applied to a master device, where the master device is connected to a plurality of slave devices, and the method includes the following steps:

step 101: acquiring a voice control instruction of a user;

the main device may directly or indirectly obtain the voice control instruction of the user, for example, directly collect voice input of the user to obtain the voice control instruction, or receive voice information sent by a third-party device connected to the main device to obtain the voice control instruction of the user.

Step 102: analyzing the voice control instruction to obtain a plurality of sub-instructions;

in this step, when the voice control instruction is analyzed, the voice control instruction may be analyzed by combining semantics, syntax, scenes, the sending time of the voice control instruction, the operation habits of the user on the master device and the slave device, the default settings of the user on the master device and the slave device, and the like to obtain a plurality of sub-instructions, so as to more comprehensively and accurately obtain the control purpose or intention included in the voice control instruction, and achieve the purpose that the user can realize various control effects only through one voice control instruction.

Step 103: and issuing the sub-instructions to at least part of the slave equipment for execution.

In the embodiment of the application, after the main device obtains the plurality of sub-instructions by correctly and comprehensively analyzing the voice control instruction, the sub-instructions are further issued to the corresponding slave devices, so that the corresponding slave devices execute the response instruction, the main device and the plurality of slave devices cooperatively execute the corresponding instruction, a plurality of control purposes are achieved, and the control logic is enriched and perfected. The master device and each slave device can be connected through Bluetooth or a gateway. The sub-instructions may be executed cooperatively by some of all the slave devices, or may be executed cooperatively by all the slave devices

In the embodiment of the application, the voice control instruction is obtained and analyzed by the master device, and the voice control instruction is issued to the corresponding slave device after the sub-instructions are obtained, so that the voice control instruction can be completed by the cooperation of a plurality of slave devices, a plurality of control intents of one voice control instruction can be achieved, and the control logic is enriched and perfected.

In some embodiments of the present application, the obtaining the voice control instruction of the user includes:

and receiving a voice control instruction of a user, which is sent by first equipment, wherein the voice control instruction is acquired by the first equipment through a first application.

That is, the voice control instruction is transmitted by the first device as a third party. For example, the main device is connected to the first device, the voice control instruction is first acquired by the first device through a first application, for example, the first device acquires a voice of a user through a microphone invoked by the first application, and then the first device sends the acquired voice control instruction of the user to the main device, for example, the first application sends the voice control instruction to the main device. Optionally, the first device may be a terminal such as a mobile phone. Gather user's speech control instruction and send for through first equipment main equipment can be in keeping away from by convenience of customers still can pass through first equipment reaches speech control instruction fast main equipment has made things convenient for the user to carry out speech control anytime and anywhere.

In other embodiments of the present application, the obtaining the voice control instruction of the user includes:

and under the condition that the main equipment is awakened by a preset voice awakening instruction, starting voice recognition and acquiring a voice control instruction of a user.

That is to say, the voice control instruction is actively acquired by the master device. For example, before obtaining the voice control instruction of the user, the main device receives a preset voice wake-up instruction of the user, for example, the preset voice wake-up instruction is a certain wake-up word, the main device wakes up from a standby state or a sleep state in response to the preset voice wake-up instruction, and then starts a voice recognition function to start collecting the voice control instruction of the user. Through the mode that the main equipment directly gathers user's speech control instruction, can make things convenient for the user directly to carry out speech control to the main equipment, and need not carry out secondary transmission control through the third party (for example the first equipment among the aforesaid), saved middle operation process.

In some embodiments of the present application, the analyzing the voice control instruction to obtain a plurality of sub-instructions includes:

carrying out grammar analysis and/or semantic analysis on the voice control instruction to obtain at least one keyword;

and generating a plurality of sub-instructions according to the at least one keyword. .

Specifically, when the master device parses the voice control instruction, the master device may parse the voice control instruction by combining semantics and/or syntax to obtain at least one keyword, and optionally, the keyword may be a noun, a verb, or the like; and then, generating a plurality of sub-instructions according to the obtained keywords. When a plurality of sub-commands are generated according to at least one obtained keyword, if the voice control command is a simple control command, for example, the voice control command directly includes a word of a target action and a target instruction, for example, the voice control command is "play music", the keyword obtained by parsing the voice control command may be a verb or a noun such as "play", "music", and the like, and since these keywords may directly indicate a control means, a control target, or a device or the like executing the voice control command, the corresponding sub-commands may be directly generated according to the obtained keywords.

In other embodiments of the present application, the generating a number of sub-instructions according to the at least one keyword includes:

performing secondary analysis on the key words, and determining a plurality of instruction elements corresponding to the key words;

and generating a plurality of sub-instructions according to the plurality of instruction elements.

That is, if the voice control instruction is a complex control instruction, after the voice control instruction is analyzed by combining semantics and/or syntax to obtain at least one keyword, the keyword does not directly indicate a control means, a control purpose, or a device for executing the voice control instruction, and the like, therefore, it is also necessary to determine an instruction element corresponding to the keyword, that is, perform secondary analysis on the obtained keyword to find out a control variable associated with the keyword, then determine a plurality of associated instruction elements, and finally generate a plurality of sub-instructions according to the plurality of instruction elements.

For example, the voice control command is "i want to sleep in the afternoon", the voice control command needs to be parsed in syntax and semantics, the obtained keywords may be "sleep", "noon", and the like, and then, the keyword is further parsed (secondary parsing), and the control variables associated with "sleep" may be obtained by: temperature, humidity, brightness, volume, etc., to determine the associated command elements may be: "control temperature", "control humidity", "control ambient light", "control ambient volume", and the like; and finally, generating a plurality of sub-instructions according to the determined instruction elements, and issuing the sub-instructions to each slave device for execution. Optionally, when the voice control instruction is analyzed and the obtained keyword is analyzed for the second time, in order to obtain a better analysis effect and enable the control effect to meet the control requirement of the user, the voice control instruction can be analyzed comprehensively and accurately by further combining an actual scene, the sending time of the voice control instruction, the operation habits of the user on the master device and the slave device, the default setting of the user on the master device and the slave device, and the like, so that the purpose that the user can realize multiple control effects only through one voice control instruction is achieved. For example, taking the voice control instruction as "i want to sleep in the noon" as an example, after the voice control instruction is analyzed, keywords such as "sleep", "noon" and the like may be obtained, and when the keywords are analyzed for the second time, in addition to the instruction elements such as "control temperature", "control humidity", "control ambient light", "control ambient volume" and the like, the instruction elements such as "play sleep-aid music" and the like may be obtained in combination with the operation habits of the user on the master device and the slave device, the default settings of the user on the master device and the slave device and the like, and finally, a plurality of sub-instructions may be obtained according to the instruction elements.

In the above embodiment of the present application, since in the process of generating the sub-instruction, a syntax analysis and/or a semantic analysis is performed first to obtain the keyword, and then a secondary analysis is performed on the keyword to determine a plurality of corresponding instruction elements, and then a plurality of sub-instructions are generated according to the plurality of instruction elements, in this embodiment of the present application, a complex voice control instruction can be executed after performing a deep analysis, so that the voice control instruction in this embodiment of the present application may not include identification information of the slave device, and the like, that is, may not include identification information of the slave device, such as a device name, a code, and the like, for identifying the identity of the slave device, and the master device can autonomously analyze and determine which slave devices the voice control instruction needs to be cooperatively executed, thereby the embodiment of the present application can improve the execution success rate of the voice control instruction, the method does not need to contain an execution object, and is convenient for a user to send out a voice control instruction which accords with human language characteristics, so that the control process is more intelligent and natural.

In some embodiments of the present application, said issuing the sub-instructions to at least part of the slave devices for execution includes:

determining target slave equipment corresponding to each sub-instruction according to each instruction element and the function of each slave equipment;

and sending each sub-instruction to corresponding target slave equipment for execution.

After obtaining the plurality of sub-instructions, it is necessary to determine a target slave device for executing the corresponding sub-instruction according to the instruction element corresponding to each sub-instruction and the function of each slave device. For example, if the command element corresponding to one sub-command is "control temperature", the target slave device corresponding to the sub-command should have a function of controlling temperature, such as an air conditioner; for another example, if the command element corresponding to one sub-command is "control humidity", the target slave device corresponding to the sub-command should have a function of controlling humidity, such as a humidifier. Therefore, each sub-instruction is sent to the corresponding target slave equipment, so that each target slave equipment executes the corresponding sub-instruction respectively, and finally, each slave equipment is cooperatively matched, and a plurality of control purposes contained in the voice control instruction of the user are achieved.

Optionally, after each sub-instruction is issued to the corresponding slave device, the slave device may further analyze the sub-instruction, and execute the sub-instruction in combination with the operation habit of the user, and the like. For example, if the issued sub-instruction is only "control temperature", the slave device (air conditioner) may set the temperature to the most frequently set 26 ° according to the setting habit of the user.

In some embodiments of the application, before issuing the sub instructions to at least part of the slave devices for execution, the method further includes:

acquiring setting information of a first slave device, wherein the setting information is used for indicating the first slave device to execute the voice control instruction;

the determining the target slave device corresponding to each sub-instruction comprises:

and determining target slave equipment corresponding to each sub-instruction from the first slave equipment according to the setting information.

That is, the user can set the device that executes the voice control instruction. Specifically, before determining the target slave device corresponding to each sub-instruction, the master device acquires setting information of a first slave device selected by a user to execute the voice control instruction, where the first slave device may be part of all slave devices; therefore, when the target slave device corresponding to each sub-instruction is determined, the target slave device corresponding to each sub-instruction is found from the first slave device. By setting the slave device for executing the voice control instruction by the user, the execution subject range of the voice control instruction can be limited, so that the target slave device corresponding to the sub-instruction is better determined, and the occurrence of incorrect instruction execution caused by the master device mismatching the slave device corresponding to the sub-instruction is reduced. Illustratively, when the voice control instruction is "i want to sleep in the noon nap", the first slave device executing the voice control instruction is determined to be two slave devices, namely an air conditioner and a humidifier, by acquiring the setting information of the first slave device selected and executed by the user, without the participation of a slave device, namely a sound device.

In some embodiments of the present application, before issuing the sub instructions to at least part of the slave devices for execution, the method further includes:

acquiring function definition information of the slave device, wherein the function definition information is used for defining functions which can be realized when the slave device works. That is, the user may also define the function of each slave device to define and clarify the instruction execution range of each slave device or to determine the instruction element corresponding to each slave device, so that when the voice control instruction is parsed to obtain the sub-instruction, the target slave device for executing the voice control instruction may be determined according to the function defined by each slave device or the corresponding instruction element. For example, the air conditioner may be defined to control temperature and humidity, and the motorized window shades may be defined to control ambient light.

Referring to fig. 2 to 4, fig. 2 is a schematic diagram of a first device acquiring a voice control instruction according to an embodiment of the present application, fig. 3 is a schematic diagram of a master device and a slave device according to the embodiment of the present application, and fig. 4 is a schematic diagram of default execution software of the slave device according to the embodiment of the present application. As shown in fig. 2 to 4, in some embodiments of the present application, when the voice control instruction is sent by a first device that is a third party, the first device is connected to the master device and the slave device, and a user may set, on the first device, the master device and/or the slave device that executes the voice control instruction of this time and software that is used when each device executes the instruction, and when the user does not set the software, default master device, default slave device, and default software are used. At this time, the way for the master device to acquire the setting information of the first slave device selected by the user for executing the voice control instruction is as follows: the first device sends the setting information to the master device.

In some embodiments, a user may set the software that each device employs when executing instructions. That is, the master device may control the target software employed by the slave device executing the sub-instruction when executing the received sub-instruction by acquiring configuration information of the target software employed by the slave device when executing the sub-instruction. Illustratively, the voice control instruction is "play rock music", the slave device receiving the corresponding sub-instruction is a sound box, and the sound box is internally installed with a plurality of pieces of software, for example, the sound box includes first software and second software, the first type of music in the first software is more, the second type of music in the second software is more, the first type of music may be classical music, and the second type of music may be rock music, and then the user may set the software adopted by the sound box when executing the instruction as the second software, so that the slave device executes the instruction by using the second software, thereby better fitting the requirements of the user and improving the satisfaction degree of voice control.

In some embodiments of the present application, if the number of the sub-instructions is large and the number of the set first slave devices is small, the sub-instructions cannot be completely matched with the first slave devices correspondingly, that is, a part of the sub-instructions existing in the master device cannot be issued to the target slave devices for execution, and the remaining sub-instructions may be distributed to the target slave devices.

In the embodiment of the application, the voice control instruction is obtained and analyzed by the master device, and the voice control instruction is issued to the corresponding slave device after the sub-instructions are obtained, so that the voice control instruction can be completed by the cooperation of a plurality of slave devices, a plurality of control intents of one voice control instruction can be achieved, and the control logic is enriched and perfected.

It should be noted that, in the voice control method provided in the embodiment of the present application, the execution subject may be a voice control device, or a control module in the voice control device for executing the voice control method. The embodiment of the present application takes a voice control device executing a voice control method as an example, and describes a voice control device provided in the embodiment of the present application.

Please refer to fig. 5, which is a schematic structural diagram of a voice control apparatus according to an embodiment of the present application. As shown in fig. 5, another embodiment of the present application further provides a voice control apparatus, which is applied to a master device, where a plurality of slave devices are connected to the master device, and the apparatus 50 includes:

an obtaining module 51, configured to obtain a voice control instruction of a user;

the analysis module 52 is configured to analyze the voice control instruction to obtain a plurality of sub-instructions;

and the issuing module 53 is configured to issue the sub instructions to at least part of the slave devices for execution.

Optionally, the obtaining module includes:

the receiving unit is used for receiving a voice control instruction of a user sent by first equipment, and the voice control instruction is acquired by the first equipment through first application.

Optionally, the obtaining module includes:

and the acquisition unit is used for starting voice recognition and acquiring a voice control instruction of a user under the condition that the main equipment is awakened by a preset voice awakening instruction.

Optionally, the parsing module includes:

the analysis unit is used for carrying out grammar analysis and/or semantic analysis on the voice control instruction to obtain at least one keyword;

and the generating unit is used for generating a plurality of sub-instructions according to the at least one keyword.

Optionally, the generating unit includes:

the secondary analysis subunit is used for carrying out secondary analysis on the key words and determining a plurality of instruction elements corresponding to the key words;

and the generating subunit is used for generating a plurality of sub-instructions according to the plurality of instruction elements.

Optionally, the issuing module includes:

the determining unit is used for determining target slave equipment corresponding to each sub-instruction according to each instruction element and the function of each slave equipment;

and the sending unit is used for sending each sub-instruction to the corresponding target slave equipment for execution.

Optionally, the apparatus further comprises:

the setting module is used for acquiring setting information of first slave equipment, and the setting information is used for indicating the first slave equipment to execute the voice control instruction;

the determination unit includes:

and the determining subunit is configured to determine, according to the setting information, a target slave device corresponding to each sub-instruction from the first slave device.

In the embodiment of the application, the voice control instruction is obtained and analyzed by the master device, and the voice control instruction is issued to the corresponding slave device after the sub-instructions are obtained, so that the voice control instruction can be completed by the cooperation of a plurality of slave devices, a plurality of control intents of one voice control instruction can be achieved, and the control logic is enriched and perfected.

The voice control device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.

The voice control device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.

The voice control device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 4, and is not described here again to avoid repetition.

Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the foregoing voice control method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.

It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.

Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 7010.

Those skilled in the art will appreciate that the electronic device 700 may further comprise a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 7010 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.

The radio frequency unit 701 or the input unit 704 is used for acquiring a voice control instruction of a user;

the processor 7010 is configured to analyze the voice control instruction to obtain a plurality of sub-instructions;

the radio frequency unit 701 is further configured to issue the sub instructions to at least part of the slave devices for execution.

In the embodiment of the application, the voice control instruction is obtained and analyzed by the master device, and the voice control instruction is issued to the corresponding slave device after the sub-instructions are obtained, so that the voice control instruction can be completed by the cooperation of a plurality of slave devices, a plurality of control intents of one voice control instruction can be achieved, and the control logic is enriched and perfected.

Optionally, the radio frequency unit 701 is further configured to receive a voice control instruction of the user sent by the first device, where the voice control instruction is acquired by the first device through the first application.

Optionally, the input unit 704 is further configured to start voice recognition and collect a voice control instruction of the user when the main device is awakened by a preset voice awakening instruction.

The processor 7010 is further configured to perform syntax analysis and/or semantic analysis on the voice control instruction to obtain at least one keyword;

and generating a plurality of sub-instructions according to the at least one keyword.

Optionally, the generating a plurality of sub-instructions according to the at least one keyword includes:

performing secondary analysis on the key words, and determining a plurality of instruction elements corresponding to the key words;

and generating a plurality of sub-instructions according to the plurality of instruction elements.

Optionally, the processor 7010 is further configured to determine, according to each instruction element and the function of each slave device, a target slave device corresponding to each sub-instruction;

the radio frequency unit 701 is further configured to send each sub-instruction to a corresponding target slave device for execution.

Optionally, the radio frequency unit 701 is further configured to obtain setting information of a first slave device, where the setting information is used to instruct the first slave device to execute the voice control instruction;

the processor 7010 is further configured to determine, according to the setting information, a target slave device corresponding to each sub-instruction from the first slave device

In the embodiment of the application, the voice control instruction is obtained and analyzed by the master device, and the voice control instruction is issued to the corresponding slave device after the sub-instructions are obtained, so that the voice control instruction can be completed by the cooperation of a plurality of slave devices, a plurality of control intents of one voice control instruction can be achieved, and the control logic is enriched and perfected.

It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts of a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data, including but not limited to applications and operating systems. The processor 7010 may integrate an application processor, which handles primarily the operating system, user interfaces, application programs, etc., and a modem processor, which handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 7010.

The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing voice control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.

The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing voice control method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.

It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.

While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数字化会话纪要的构建系统、方法及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!