WO2023273898A1 - 语音指令的执行方法及装置、存储介质及电子装置 - Google Patents

语音指令的执行方法及装置、存储介质及电子装置 Download PDF

Info

Publication number
WO2023273898A1
WO2023273898A1 PCT/CN2022/099073 CN2022099073W WO2023273898A1 WO 2023273898 A1 WO2023273898 A1 WO 2023273898A1 CN 2022099073 W CN2022099073 W CN 2022099073W WO 2023273898 A1 WO2023273898 A1 WO 2023273898A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
area
cleaning
target cleaning
instruction
Prior art date
Application number
PCT/CN2022/099073
Other languages
English (en)
French (fr)
Inventor
崔凌
Original Assignee
追觅创新科技(苏州)有限公司
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 追觅创新科技(苏州)有限公司 filed Critical 追觅创新科技(苏州)有限公司
Publication of WO2023273898A1 publication Critical patent/WO2023273898A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0259Control of position or course in two dimensions specially adapted to land vehicles using magnetic or electromagnetic means
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L11/00Machines for cleaning floors, carpets, furniture, walls, or wall coverings
    • A47L11/40Parts or details of machines not provided for in groups A47L11/02 - A47L11/38, or not restricted to one of these groups, e.g. handles, arrangements of switches, skirts, buffers, levers
    • A47L11/4011Regulation of the cleaning machine by electric means; Control systems and remote control systems therefor
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0276Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle
    • G05D1/028Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle using a RF signal
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/02Control of position or course in two dimensions
    • G05D1/021Control of position or course in two dimensions specially adapted to land vehicles
    • G05D1/0276Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle
    • G05D1/0285Control of position or course in two dimensions specially adapted to land vehicles using signals provided by a source external to the vehicle using signals transmitted via a public communication network, e.g. GSM network
    • AHUMAN NECESSITIES
    • A47FURNITURE; DOMESTIC ARTICLES OR APPLIANCES; COFFEE MILLS; SPICE MILLS; SUCTION CLEANERS IN GENERAL
    • A47LDOMESTIC WASHING OR CLEANING; SUCTION CLEANERS IN GENERAL
    • A47L2201/00Robotic cleaning machines, i.e. with automatic control of the travelling movement or the cleaning operation
    • A47L2201/06Control of the cleaning action for autonomous devices; Automatic detection of the surface condition before, during or after cleaning

Definitions

  • the present application relates to the field of communications, and in particular, to a voice command execution method and device, a storage medium, and an electronic device.
  • sweeping robots are becoming more and more common in daily life.
  • the interaction between users and sweeping robots is mainly through APP, that is, users send control instructions to sweeping robots through APP, and sweeping robots send request information.
  • To the APP display the requested information to the user through the APP.
  • the user needs to be familiar with how to use the APP, and every time the sweeping robot is controlled to clean the ground, the user needs to open the mobile phone APP, find the control page, and then download it. Sending control commands, the process is very cumbersome, and the user experience is low.
  • the method of controlling the sweeping robot to clean the ground through the APP has the problem of low control efficiency of the sweeping robot, and no effective solution has been proposed yet.
  • the purpose of the present application is to provide a voice command execution method and device, a storage medium and an electronic device, so as to at least solve the problem of low control efficiency of the sweeping robot in the related art of controlling the sweeping robot to clean the ground through an APP.
  • a method for executing a voice command comprising: receiving a target cleaning command sent by a smart device, wherein the target cleaning command is the smart device's target object Instructions obtained by converting voice instructions; determining the target cleaning area corresponding to the target cleaning instruction, wherein the target cleaning area is the area to be cleaned by the target cleaning equipment; and cleaning the target cleaning area according to the target cleaning instruction Perform a cleanup operation.
  • the determining the target cleaning area corresponding to the target cleaning instruction includes: extracting a first area name from the target cleaning instruction, wherein the first area name is the area name of the area to be cleaned; If the target area map of the target area is stored in the target cleaning device, and the first partition identified by the first area name exists in the target area map, the first partition is determined as the target Clean up the area.
  • the method further includes: the target area map is stored in the target cleaning device, and the target area map In the case where there is no first subregion identified with the first region name, determine a second region name, wherein the second region name is the region name of at least one subregion included in the target region map, an area name with the greatest similarity to the first area name, or an area name with a similarity to the first area name greater than a preset threshold; sending a first request message to the target object through the smart device, Wherein, the first request message is used to request the target object to determine whether the partition identified by the second area name is an area to be cleaned; if the first response message sent by the smart device is received, the The partition identified by the second area name is determined as the target cleaning area, wherein the first response message is used to instruct the target object to determine that the partition identified by the second area name is an area to be cleaned.
  • the method further includes: if the first response message is not received, through the smart device Sending a second request message to the target object, where the second request message carries the area name of the at least one partition, and the second request message is used to request the target object to request from the at least one partition Select the area name of the area to be cleaned from the area names; in the case of receiving the second response message sent by the smart device, determine the partition identified by the third area name carried in the second response message as the selected area The target cleaning area, wherein the second response message is used to indicate that the area name of the area to be cleaned selected by the target object is the third area name.
  • the method further includes: if the target area map of the target area is not stored in the target cleaning device , sending a third request message to the target object through the smart device, wherein the third request message is used to request the target object to determine whether to perform a comprehensive cleaning of the target area; In a case where a third response message is sent, the target area is determined as the target cleaning area, wherein the third response message is used to instruct the target object to determine to perform a comprehensive cleaning on the target area.
  • the determining the target cleaning area corresponding to the target cleaning instruction includes: extracting a fourth area name from the target cleaning instruction, wherein the fourth area name is the target cleaning equipment The area name of the avoidance area; in the case where the target area map of the target area is stored in the target cleaning device, and there is a second partition identified by the fourth area name in the target area map, the In the target area map, other areas except the second subregion are determined as the target cleaning area.
  • a voice command execution method comprising: receiving a target voice command from a target object; converting the target voice command into a target cleaning command; Sending the target cleaning instruction to control the target cleaning device to determine a target cleaning area corresponding to the target cleaning instruction, and perform a cleaning operation on the target cleaning area according to the target cleaning instruction.
  • the method further includes: receiving a first request message from the target cleaning device, wherein the first request message is used to request that the target The object determines whether the subregion identified by the area name carried in the first request message is an area to be cleaned; sends the first request message to the target object; in the case of receiving the first voice instruction of the target object Next, sending a first response message to the target cleaning device, where the first response message is used to instruct the target object to determine that the partition identified by the area name carried in the first request message is an area to be cleaned, The target cleaning area is the partition identified by the area name carried in the first request message.
  • the method further includes: if the first voice instruction is not received, receiving a second voice instruction sent by the target cleaning device.
  • a request message wherein the second request message carries the area name of at least one partition in the target area map stored in the target cleaning device, and the second request message is used to request the target object from the at least Select the area name of the area to be cleaned from the area names of a partition; send the second request message to the target object; in the case of receiving the second voice instruction of the target object, send the message to the target cleaning device
  • Second response information wherein the second response information is used to indicate that the target object selects the zone identified by the zone name selected from the zone names of at least one zone carried in the second request message as the zone to be cleaned , the target cleaning area is the partition identified by the area name of the area to be cleaned selected by the target object.
  • the method further includes: receiving a third request message from the target cleaning device, wherein the third request message is used to request that the target The object determines whether to use the target cleaning device to fully clean the target area; in the case of receiving the third voice command of the target object, a third response message is sent to the target cleaning device, wherein, The third response message is used to instruct the target object to determine to use the target cleaning device to clean the target area comprehensively.
  • an apparatus for executing voice instructions including: a first receiving module, configured to receive a target cleaning instruction sent by a smart device, wherein the target cleaning instruction is An instruction obtained by converting the target voice instruction of the target object by the smart device; a determination module configured to determine a target cleaning area corresponding to the target cleaning instruction, wherein the target cleaning area is the target cleaning device to be cleaned Area: a cleaning module, configured to perform a cleaning operation on the target cleaning area according to the target cleaning instruction.
  • a device for executing voice commands comprising: a second receiving module, configured to receive a target voice command of a target object; a conversion module, configured to convert the target The voice command is converted into a target cleaning command; the sending module is used to send the target cleaning command to the target cleaning device, so as to control the target cleaning device to determine the target cleaning area corresponding to the target cleaning command, and according to the target The cleaning instruction executes a cleaning operation on the target cleaning area.
  • a computer-readable storage medium is provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute any of the above-mentioned The execution method of the voice command.
  • an electronic device including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to perform any of the above How to execute voice commands as described in .
  • the target cleaning instruction sent by the smart device is received, wherein the target cleaning instruction is an instruction obtained by converting the target voice command of the target object by the smart device; and the target cleaning corresponding to the target cleaning instruction is determined Area: perform a cleaning operation on the target cleaning area according to the target cleaning instruction. That is to say, the target cleaning device receives the target cleaning instruction corresponding to the target voice instruction of the target object through the smart device, determines the target cleaning area according to the target cleaning instruction, and cleans the target cleaning area.
  • the smart device receives the user's target voice command, converts the target language command into the target cleaning command, and sends the target cleaning command to the sweeping robot, so that the sweeping robot cleans the ground according to the target cleaning command, which improves the user's ability to control the sweeping robot. efficiency.
  • FIG. 1 is a block diagram of the hardware structure of a mobile terminal or a mobile robot for an execution method of a voice command according to an embodiment of the present application;
  • FIG. 2 is a flow chart (1) of a voice command execution method according to an embodiment of the present application
  • FIG. 3 is a flow chart (2) of a method for executing a voice command according to an embodiment of the present application
  • FIG. 4 is a flow chart (3) of a voice command execution method according to an embodiment of the present application.
  • FIG. 5 is a structural block diagram (1) of a voice instruction execution device according to an embodiment of the present application.
  • FIG. 6 is a structural block diagram (2) of an apparatus for executing voice instructions according to an embodiment of the present application.
  • FIG. 1 is a block diagram of a hardware structure of a mobile terminal or a mobile robot according to a voice command execution method according to an embodiment of the present application.
  • a mobile terminal or a mobile robot may include one or more (only one is shown in FIG.
  • processors 102 may include but not limited to a microprocessor (Microprocessor Unit, MPU for short) or A processing device such as a programmable logic device (Programmable logic device, referred to as PLD) and a memory 104 for storing data.
  • the above-mentioned mobile terminal or mobile robot may also include a transmission device 106 for communication functions and input and output Device 108.
  • the mobile terminal or mobile robot can also include Show more or less components, or have the same function as shown in Figure 1 or a different configuration with more functions than shown in Figure 1.
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the voice command execution method in the embodiment of the present application, and the processor 102 runs the computer program stored in the memory 104, thereby Executing various functional applications and data processing is to realize the above-mentioned method.
  • the memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to a mobile terminal or a mobile robot through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is used to receive or transmit data via the network.
  • the specific example of the above-mentioned network may include a wireless network provided by a communication provider of a mobile terminal or a mobile robot.
  • the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 2 is a flow chart (1) of a method for executing a voice command according to an embodiment of the present application. As shown in FIG. 2 , The process includes the following steps:
  • Step S202 receiving the target cleaning instruction sent by the smart device, wherein the target cleaning instruction is an instruction obtained by converting the target voice command of the target object by the smart device;
  • the voice instruction execution method in the embodiment of the present application may be executed by a target cleaning device, and the target cleaning device may be a sweeping robot or other devices with cleaning functions. Since the target cleaning device generally does not have a voice recognition module, the smart device can convert the target voice command of the target object into an instruction that the target cleaning device can recognize, that is, the target cleaning command, and send the target cleaning command to the target cleaning device.
  • the target object refers to the sound source that issues the target cleaning instruction, which may be the user using the target cleaning device or other devices, which is not limited in this embodiment.
  • the smart device can convert the target voice instruction of the target object collected after the wake-up word. For example: the target object utters the voice "xxx, clean the living room", after the smart device recognizes the "xxx" wake-up word, it extracts the target voice command "clean the living room”, and turns on the conversion function to convert the above target voice command is the corresponding binary code, and then the binary code will be sent to the target cleaning device, and the target cleaning device will perform corresponding operations according to the binary code.
  • the smart device mentioned above may be a smart speaker equipped with a voice module, or may be other devices equipped with a voice module.
  • Step S204 determining a target cleaning area corresponding to the target cleaning instruction, wherein the target cleaning area is an area to be cleaned by the target cleaning device;
  • Step S206 performing a cleaning operation on the target cleaning area according to the target cleaning instruction.
  • the target cleaning instruction is an instruction obtained by converting the target voice instruction of the target object by the smart device; determine the target cleaning corresponding to the target cleaning instruction Area: perform a cleaning operation on the target cleaning area according to the target cleaning instruction. That is to say, the target cleaning device receives the target cleaning instruction corresponding to the target voice instruction of the target object through the smart device, determines the target cleaning area according to the target cleaning instruction, and cleans the target cleaning area.
  • the smart device receives the user's target voice command, converts the target language command into the target cleaning command, and sends the target cleaning command to the sweeping robot, so that the sweeping robot cleans the ground according to the target cleaning command, which improves the user's ability to control the sweeping robot. efficiency.
  • the target cleaning area corresponding to the target cleaning instruction can be determined in the following manner: extracting the first area name from the target cleaning instruction, wherein the first area name is the area name of the area to be cleaned; If the target area map of the target area is stored in the target cleaning device, and the first partition identified by the first area name exists in the target area map, the first partition is determined as the target cleaning area.
  • the target cleaning device needs to analyze the target cleaning command to extract The first zone name of the zone the target object wants to clean.
  • the target area map of the entire target area is stored in the storage space of the target cleaning device. After the target cleaning device obtains the name of the first area, it will search in the map of the target area to determine whether the first partition identified by the first area name exists in the map of the target area, and if so, determine the first partition as the target Sweep the area of the equipment to be cleaned.
  • the target cleaning device can obtain the name of the first zone as room 1 from the target cleaning command. Further, it is searched in the target area map to see if there is a partition identified by room 1, and if so, the target cleaning device determines the room 1 partition as the target cleaning area. Through the above solution, the target cleaning device can quickly determine the target cleaning area, and then clean the target cleaning area.
  • the target area map is stored in the target cleaning device, and the target area map If there is no first subregion identified by the first region name, determine a second region name, wherein the second region name is the region name of at least one subregion included in the target region map, and The area name with the highest similarity to the first area name, or the area name with a similarity with the first area name greater than a preset threshold; sending a first request message to the target object through the smart device, wherein , the first request message is used to request the target object to determine whether the partition identified by the second area name is an area to be cleaned; if the first response message sent by the smart device is received, the The partition identified by the second area name is determined as the target cleaning area, wherein the first response message is used to instruct the target object to determine that the partition identified by the second area name is an area to be cleaned.
  • the target cleaning device will search for a zone name corresponding to the first region name from the region names corresponding to all partitions in the target region map.
  • the region name with the greatest similarity Or the name of the area whose similarity degree of the first area name is greater than a preset threshold.
  • the area names corresponding to all partitions in the target area map are room 2, bathroom, and living room. Then the target cleaning device will select an area name with the greatest similarity with the first area name "room 1" from the three area names, that is, room 2, and determine room 2 as the second area name.
  • the target cleaning device will send a first request message to the target object through the smart device, to determine whether the partition identified by the second area name is an area to be cleaned to the target object.
  • the smart device can inform the target object of the first request message by voice, or display it to the user through the screen on the smart device.
  • the following first request message is the same as the second request message, and the to repeat. If the target object responds to the first request information and determines that the partition identified by the second area name is the area to be cleaned, the smart device will send the first response message to the target cleaning device, so that the target cleaning device determines that the area identified by the second area name
  • the identified partition is the target cleaning area.
  • the target cleaning device when the target cleaning device judges that there is no cleaning area indicated by the target object in the target area map stored by itself, it can send the area name of the cleaning area indicated by the target object in the target area map to the target object The closest region name for the target audience to choose and improve user experience.
  • the method further includes: if the first response message is not received, send the smart device to the target object
  • the target object sends a second request message, wherein the second request message carries the area name of the at least one partition, and the second request message is used to request the target object from the area name of the at least one partition Select the area name of the area to be cleaned in the name; in the case of receiving the second response message sent by the smart device, determine the partition identified by the third area name carried in the second response message as the target The area to be cleaned, wherein the second response message is used to indicate that the area name of the area to be cleaned selected by the target object is the third area name.
  • the smart device will not send the first response message to the target cleaning device, so that the target cleans
  • the device will send a second request message to the target object through the smart device, wherein the second request message carries the area names corresponding to all the subdivisions in the target area map, so that the target cleaning device can make the target object obtain from the second request message through the second request message.
  • the area name of the area to be cleaned is selected from all the partitions carried in the message.
  • the smart device will send a second response message to the target cleaning device, so that the target cleaning device will carry in the second response message
  • the partition identified by the third area name is determined as the target cleaning area.
  • the target cleaning device extracts the first area name from the target cleaning instruction
  • the following steps are further included: in the case where the target area map is not stored in the target cleaning device, through the The smart device sends a third request message to the target object, wherein the third request message is used to request the target object to determine whether to perform a comprehensive cleaning of the target area; after receiving the third request message sent by the smart device In the case of a response message, the target area is determined as the target cleaning area, wherein the third response message is used to instruct the target object to determine to perform a comprehensive cleaning of the target area.
  • the target area map of the target area is not stored in the storage space of the target cleaning device.
  • the target cleaning device needs to construct a target area map.
  • the target object sends a third request message, asking the target object whether to perform a comprehensive cleaning of the target area, so as to build a target area map of the target area. If the target object determines to conduct a comprehensive cleaning of the target area, the smart device will send a third response message to the target cleaning device, and after entering the target cleaning device to receive the third response message, it will perform a comprehensive cleaning of the target area to build the target area. Area map.
  • the above technical solution solves the problem that the target cleaning device cannot perform cleaning according to the target voice command of the target object when there is no target area map, and improves the intelligence of the target cleaning device.
  • determining the target cleaning area corresponding to the target cleaning instruction further includes: extracting a fourth area name from the target cleaning instruction, wherein the fourth area name is The area name of the avoidance area of the target cleaning equipment; the target area map of the target area is stored in the target cleaning equipment, and there is a second partition matching the fourth area name in the target area map Next, determine other areas in the target area map except the second partition as the target cleaning area.
  • the target voice command of the target object may not be a specific cleaning command for an area, but an avoidance command for an area. If it is an avoidance command, the target cleaning device will extract the target object's thought from the target cleaning command The fourth area name of the area to be avoided, if the target area map of the target area is stored in the target cleaning device, and there is a second partition identified by the fourth area name in the target area map, the target area map will be deleted Areas other than the second partition are determined as target cleaning areas.
  • the target area map of the target cleaning device has the following partitions: room 1 partition, living room partition, and bathroom partition.
  • the target cleaning command sent by the smart device to the target cleaning device is "avoid toilet", then the target cleaning device extracts the name of the fourth area "toilet” from the target cleaning command, and then considers the partition marked by the toilet as the second partition.
  • the target cleaning equipment only cleans the room 1 partition and the living room partition.
  • FIG. 3 is a flowchart (2) of a method for executing a voice command according to an embodiment of the present application. As shown in Figure 3, the process includes the following steps:
  • the smart device receives the target voice command of the target object, converts the target voice command into a target cleaning command, and sends the target cleaning command to the target cleaning device, so as to control the target cleaning device to determine the target cleaning area corresponding to the target cleaning command, And perform a cleaning operation on the target cleaning area according to the target cleaning instruction. It solves the problem of low control efficiency of the sweeping robot in the method of controlling the sweeping robot to clean the ground through an APP in the related art.
  • the smart device receives the user's target voice command, converts the target language command into the target cleaning command, and sends the target cleaning command to the sweeping robot, so that the sweeping robot cleans the ground according to the target cleaning command, which improves the user's ability to control the sweeping robot. efficiency.
  • the method further includes: receiving a first request message from the target cleaning device, wherein the first request message is used to request the target object to determine the target cleaning device. Whether the subregion identified by the area name carried in the first request message is an area to be cleaned; send the first request message to the target object; in the case of receiving the first voice instruction of the target object, send The target cleaning device sends a first response message, wherein the first response message is used to instruct the target object to determine that the partition identified by the area name carried in the first request message is an area to be cleaned, and the target The cleaning area is the partition identified by the area name carried in the first request message.
  • the smart device is also used to realize the interaction between the target cleaning device and the target object, and will send the first request message of the target cleaning device to the target object, and when the target object responds to the first request message, determine the first request message
  • the first language command is sent, and the smart device receives the first voice command of the target object, and converts the first voice command into the first voice command that the target cleaning device can recognize.
  • a response message is sent to the target cleaning device.
  • the zone identified by the area name carried in the first request message is a zone in the target area map.
  • the method further includes: if the first voice instruction is not received, receiving a second voice instruction sent by the target cleaning device.
  • a request message wherein the second request message carries the area name of at least one partition in the target area map stored in the target cleaning device, and the second request message is used to request the target object from the at least Select the area name of the area to be cleaned from the area names of a partition; send the second request message to the target object; in the case of receiving the second voice instruction of the target object, send the message to the target cleaning device
  • Second response information wherein the second response information is used to indicate that the target object selects the zone identified by the zone name selected from the zone names of at least one zone carried in the second request message as the zone to be cleaned , the target cleaning area is the partition identified by the area name of the area to be cleaned selected by the target object.
  • the target object if the target object does not respond to the first request message, or if the target object determines that the area identified by the area name carried in the first request message is not an area to be cleaned, the target object will not send the first language instruction to the smart device , at this time, the target cleaning device does not receive the instruction from the smart device, it will send a second request message to the smart device, and the smart device forwards the second request message to the target object, requesting the target object to select from the area names of at least one partition.
  • the area name of the area to be cleaned if the target object selects the area name of the area to be cleaned from the area names of at least one partition, the target object sends a second voice command to the smart device, so that the smart device converts the second voice command into the target cleaning
  • the device can recognize the second response message, and send the second response message to the target cleaning device, and then the target cleaning device can use the zone identified by the area name carried in the second response message as the target cleaning area.
  • the method further includes: receiving a third request message from the target cleaning device, wherein the third request message is used to request that the target The object determines whether to use the target cleaning device to fully clean the target area; in the case of receiving the third voice command of the target object, a third response message is sent to the target cleaning device, wherein, The third response message is used to instruct the target object to determine to use the target cleaning device to clean the target area comprehensively.
  • the smart device may also send a third request message to the target object, in which the target cleaning device requests the target object whether to perform a comprehensive cleaning of the target area.
  • the target object determines to clean the target area comprehensively, receive the third voice command sent by the target object, and convert the third voice command into a third response message that the target cleaning device can recognize, so that the target cleaning device can clean the target area Do a full sweep.
  • the smart device can allow the target cleaning device to determine whether to fully clean the target area.
  • FIG. 4 is a flow chart (3) of a method for executing a voice command according to an embodiment of the present application; the specific steps are as follows:
  • Step S402 the user (equivalent to the target object in the above embodiment) sends a voice
  • Step S404 Internet of Things (Internet of Things, referred to as IOT) (equivalent to the language module of the smart device in the above embodiment) converts the user's voice into a machine instruction;
  • IOT Internet of Things
  • Step S406 The sweeping robot (equivalent to the target cleaning device in the above embodiment) judges whether there is an AI partition map (equivalent to the target area map in the above embodiment), if so, execute step S408, otherwise, execute step S416;
  • Step S408 The sweeping robot judges whether there is a partition name given by the user, if so, execute step S410, otherwise, execute step S412;
  • Step S410 The sweeping robot goes to the designated area for cleaning
  • Step S412 The sweeping robot searches for the closest partition to the user for confirmation, if the user confirms, execute step S410, otherwise, execute step S414;
  • Step S414 Let the user select the partition that he wants to focus on cleaning on the app (equivalent to the screen of the target cleaning device in the above embodiment);
  • Step S416 Ask if you want to open a store for a new cleaning, if yes, go to step S418, otherwise, go to step S420;
  • Step S418 start a new cleaning
  • the sweeping robot is connected to the smart speaker (equivalent to the smart device in the above-mentioned embodiment), and the user wakes up the smart speaker, and sends a voice command to focus on cleaning the designated area and to avoid the designated area (equivalent to the target in the above-mentioned embodiment) Voice commands), such as "clean the living room", "avoid the bathroom” and other voice commands.
  • the voice command is processed by the IOT module and converted into a command for the machine, such as the "clean the living room” command (equivalent to the target cleaning command in the above embodiment), which is converted into the machine's cleaning operation for the selected area of the living room.
  • the sweeping robot receives the instruction, it judges whether there is a multiplexed map after AI partition.
  • the AI partition map includes the classification of room types, including living room, kitchen, bedroom, bathroom, etc. If there is no reuse map after the AI partition, ask the user whether to start a new cleaning. If necessary, the user selects Yes, and the sweeping robot starts a new cleaning, otherwise the user does not need to respond. If there is an AI partition map, but the region name given by the user does not exist, select the region with the closest name and give it to the user for confirmation. If yes, the sweeping robot will start cleaning. If not, let the user select the region that they want to focus on cleaning. Area. If there is an AI partition map and there is a partition given in the user's voice, then respond to the user's language instructions and focus on cleaning the mentioned partitions.
  • the above-mentioned technical solution of the embodiment of the present application uses voice control to focus on cleaning certain rooms or areas, or to avoid certain rooms, which can simplify the user operation process and optimize user experience.
  • the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as a read-only memory (Read-Only Memory, abbreviated as ROM), random access memory (Random Access Memory, abbreviated as RAM), magnetic disk, optical disk), including several instructions to make a terminal device (which can be a mobile phone, computer, server, or network device) etc.) to implement the methods described in the various embodiments of the present application.
  • a storage medium such as a read-only memory (Read-Only Memory, abbreviated as ROM), random access memory (Random Access Memory, abbreviated as RAM), magnetic disk, optical disk
  • a terminal device which can be a mobile phone, computer, server, or network device
  • a device for executing voice commands is also provided.
  • the device for executing voice commands is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated here.
  • the term "module” may be a combination of software and/or hardware that realizes a predetermined function.
  • the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
  • Fig. 5 is a structural block diagram (1) of an execution device for a voice command according to an embodiment of the present application, as shown in Fig. 5:
  • the first receiving module 52 is configured to receive the target cleaning instruction sent by the smart device, wherein the target cleaning instruction is an instruction obtained by converting the target voice command of the target object by the smart device;
  • the smart device can convert the target voice command of the target object into an command that the target cleaning device can recognize, that is, the target cleaning command, and send the target cleaning command to the target Sweep equipment.
  • the target object refers to the sound source that issues the target cleaning instruction, which may be the user using the target cleaning device or other devices, which is not limited in this embodiment.
  • the smart device can convert the target voice instruction of the target object collected after the wake-up word. For example: the target object utters the voice "xxx, clean the living room", after the smart device recognizes the "xxx" wake-up word, it extracts the target voice command "clean the living room”, and turns on the conversion function to convert the above target voice command is the corresponding binary code, and then the binary code will be sent to the target cleaning device, and the target cleaning device will perform corresponding operations according to the binary code.
  • the smart device mentioned above may be a smart speaker equipped with a voice module, or may be other devices equipped with a voice module.
  • a determining module 54 configured to determine a target cleaning area corresponding to the target cleaning instruction, wherein the target cleaning area is an area to be cleaned by the target cleaning device;
  • the cleaning module 56 is configured to perform a cleaning operation on the target cleaning area according to the target cleaning instruction.
  • the target cleaning instruction is an instruction obtained by converting the target voice instruction of the target object by the smart device; determine the target cleaning corresponding to the target cleaning instruction Area: perform a cleaning operation on the target cleaning area according to the target cleaning instruction. That is to say, the target cleaning device receives the target cleaning instruction corresponding to the target voice instruction of the target object through the smart device, and determines the target cleaning area according to the target cleaning instruction, and cleans the target cleaning area.
  • the smart device receives the user's target voice command, converts the target language command into the target cleaning command, and sends the target cleaning command to the sweeping robot, so that the sweeping robot cleans the ground according to the target cleaning command, which improves the user's ability to control the sweeping robot. efficiency.
  • the determination module 54 is also used to extract the first area name from the target cleaning instruction, wherein the first area name is the area name of the area to be cleaned; the target area is stored in the target cleaning device If there is a target area map of the target area map and the first subregion identified by the first area name exists in the target area map, the first subregion is determined as the target cleaning area.
  • the target cleaning device needs to analyze the target cleaning command to extract The first zone name of the zone the target object wants to clean.
  • the target area map of the entire target area is stored in the storage space of the target cleaning device. After the target cleaning device obtains the name of the first area, it will search in the map of the target area to determine whether the first partition identified by the first area name exists in the map of the target area, and if so, determine the first partition as the target Sweep the area of the equipment to be cleaned.
  • the target cleaning device can obtain the name of the first zone as room 1 from the target cleaning command. Further, it is searched in the target area map to see if there is a partition identified by room 1, and if so, the target cleaning device determines the room 1 partition as the target cleaning area. Through the above solution, the target cleaning device can quickly determine the target cleaning area, and then clean the target cleaning area.
  • the determining module 54 is further configured to: in the case where the target area map is stored in the target cleaning device and the first partition identified by the first area name does not exist in the target area map, Determining a second area name, wherein the second area name is the area name that has the greatest similarity with the first area name among the area names of at least one partition contained in the target area map, or the area name that is most similar to the first area name.
  • An area name whose similarity degree is greater than a preset threshold sending a first request message to the target object through the smart device, wherein the first request message is used to request the target object to determine the second Whether the partition identified by the area name is an area to be cleaned; in the case of receiving the first response message sent by the smart device, the partition identified by the second area name is determined as the target cleaning area, wherein, The first response message is used to instruct the target object to determine that the partition identified by the second area name is an area to be cleaned.
  • the target cleaning device will search for a region name corresponding to the first region name from the region names corresponding to all subregions in the target area map.
  • the region name with the greatest similarity Or the name of the area whose similarity degree of the first area name is greater than a preset threshold.
  • the area names corresponding to all partitions in the target area map are room 2, bathroom, and living room. Then the target cleaning device will select an area name with the greatest similarity with the first area name "room 1" from the three area names, that is, room 2, and determine room 2 as the second area name.
  • the target cleaning device will send a first request message to the target object through the smart device, to determine to the target object whether the partition identified by the second area name is an area to be cleaned.
  • the smart device can inform the target object of the first request message by voice, or display it to the user through the screen on the smart device.
  • the following first request message is the same as the second request message, and the to repeat. If the target object responds to the first request information and determines that the partition identified by the second area name is the area to be cleaned, the smart device will send the first response message to the target cleaning device, so that the target cleaning device determines that the area identified by the second area name
  • the identified partition is the target cleaning area.
  • the target cleaning device judges that there is no cleaning area indicated by the target object in the target area map stored by itself, the area name of the cleaning area indicated by the target object in the target area map can be sent to the target object The closest region name for the target audience to choose and improve user experience.
  • the determining module 54 is further configured to send a second request message to the target object through the smart device if the first response message is not received, wherein the second request message carries The area name of the at least one partition, the second request message is used to request the target object to select the area name of the area to be cleaned from the area names of the at least one partition; after receiving the first message sent by the smart device In the case of two response messages, the partition identified by the third area name carried in the second response message is determined as the target cleaning area, wherein the second response message is used to instruct the target object to select The area name of the area to be cleaned is the third area name.
  • the smart device will not send the first response message to the target cleaning device, so that the target cleans
  • the device will send a second request message to the target object through the smart device, wherein the second request message carries the area names corresponding to all the subdivisions in the target area map, so that the target cleaning device can make the target object obtain from the second request message through the second request message.
  • the area name of the area to be cleaned is selected from all the partitions carried in the message.
  • the smart device will send a second response message to the target cleaning device, so that the target cleaning device will carry in the second response message
  • the partition identified by the third area name is determined as the target cleaning area.
  • the determining module 54 is further configured to send a third request message to the target object through the smart device when the target cleaning device does not store the area map of the target area, wherein the The third request message is used to request the target object to determine whether to perform a comprehensive cleaning of the target area; in the case of receiving the third response message sent by the smart device, determine the target area as the target cleaning area, wherein the third response message is used to indicate that the target object determines to perform a comprehensive cleaning on the target area.
  • the target area map of the target area is not stored in the storage space of the target cleaning device.
  • the target cleaning device needs to construct a target area map.
  • the target object sends a third request message, asking the target object whether to perform a comprehensive cleaning of the target area, so as to build a target area map of the target area. If the target object determines to conduct a comprehensive cleaning of the target area, the smart device will send a third response message to the target cleaning device, and after entering the target cleaning device to receive the third response message, it will perform a comprehensive cleaning of the target area to build the target area. Area map.
  • the above technical solution solves the problem that the target cleaning device cannot clean according to the target voice command of the target object when there is no target area map, and improves the intelligence of the target cleaning device.
  • the determining module 54 is further configured to extract a fourth area name from the target cleaning instruction, wherein the fourth area name is an area name of an avoidance area of the target cleaning device; If the target area map of the target area is stored in the target cleaning device, and there is a second partition matching the name of the fourth area in the target area map, the target area map is deleted from the target area map. Areas other than the second partition are determined as the target cleaning area.
  • the target voice command of the target object may not be a specific cleaning command for an area, but an avoidance command for an area. If it is an avoidance command, the target cleaning device will extract the target object's thought from the target cleaning command The fourth area name of the area to be avoided, if the target area map of the target area is stored in the target cleaning device, and there is a second partition identified by the fourth area name in the target area map, the target area map will be deleted Areas other than the second partition are determined as target cleaning areas.
  • the target area map of the target cleaning device has the following partitions: room 1 partition, living room partition, and bathroom partition.
  • the target cleaning command sent by the smart device to the target cleaning device is "avoid toilet", then the target cleaning device extracts the name of the fourth area "toilet” from the target cleaning command, and then considers the partition marked by the toilet as the second partition.
  • the target cleaning equipment only cleans the room 1 partition and the living room partition.
  • Fig. 6 is a structural block diagram (2) of an execution device for a voice command according to an embodiment of the present application, as shown in Fig. 6:
  • the second receiving module 62 is used to receive the target voice instruction of the target object
  • Transformation module 64 is used for converting described target voice instruction into target cleaning instruction
  • the sending module 66 is configured to send the target cleaning instruction to the target cleaning device, so as to control the target cleaning device to determine the target cleaning area corresponding to the target cleaning instruction, and to clean the target according to the target cleaning instruction. Sweeping Area Performs sweeping operations.
  • the smart device receives the target voice command of the target object, converts the target voice command into a target cleaning command, and sends the target cleaning command to the target cleaning device to control the target cleaning device to determine the target cleaning area corresponding to the target cleaning command, And perform a cleaning operation on the target cleaning area according to the target cleaning instruction. It solves the problem of low control efficiency of the sweeping robot in the method of controlling the sweeping robot to clean the ground through an APP in the related art. Then, the smart device receives the user's target voice command, converts the target language command into the target cleaning command, and sends the target cleaning command to the sweeping robot, so that the sweeping robot cleans the ground according to the target cleaning command, which improves the user's ability to control the sweeping robot. efficiency.
  • the sending module 66 is also configured to receive a first request message from the target cleaning device, wherein the first request message is used to request the target object to determine the area identified by the area name carried in the first request message. Whether the partition of the target object is an area to be cleaned; Send the first request message to the target object; In the case of receiving the first voice instruction of the target object, send a first response message to the target cleaning device, wherein The first response message is used to instruct the target object to determine that the partition identified by the area name carried in the first request message is an area to be cleaned, and the target cleaning area is the area to be cleaned in the first request message.
  • the partition identified by the region name is also configured to receive a first request message from the target cleaning device, wherein the first request message is used to request the target object to determine the area identified by the area name carried in the first request message. Whether the partition of the target object is an area to be cleaned; Send the first request message to the target object; In the case of receiving the first voice instruction of the target object, send a first response message to
  • the smart device is also used to realize the interaction between the target cleaning device and the target object, and will send the first request message of the target cleaning device to the target object, and when the target object responds to the first request message, determine the first request message
  • the first language command is sent, and the smart device receives the first voice command of the target object, and converts the first voice command into the first voice command that the target cleaning device can recognize.
  • a response message is sent to the target cleaning device.
  • the zone identified by the area name carried in the first request message is a zone in the target area map.
  • the sending module 66 is also configured to receive a second request message sent by the target cleaning device when the first voice instruction is not received, wherein the second request message carries the target The area name of at least one partition in the target area map stored in the cleaning device, the second request message is used to request the target object to select the area name of the area to be cleaned from the area names of the at least one partition;
  • the target object sends the second request message; in the case of receiving the second voice instruction of the target object, sends second response information to the target cleaning device, where the second response information is used to indicate the The partition identified by the region name selected by the target object from the region names of at least one partition carried in the second request message is the region to be cleaned, and the target cleaning region is the region to be cleaned selected by the target object The partition identified by the region name of .
  • the target object if the target object does not respond to the first request message, or if the target object determines that the area identified by the area name carried in the first request message is not an area to be cleaned, the target object will not send the first language instruction to the smart device , at this time, the target cleaning device does not receive the instruction from the smart device, it will send a second request message to the smart device, and the smart device forwards the second request message to the target object, requesting the target object to select from the area names of at least one partition.
  • the area name of the area to be cleaned if the target object selects the area name of the area to be cleaned from the area names of at least one partition, the target object sends a second voice command to the smart device, so that the smart device converts the second voice command into the target cleaning
  • the device can recognize the second response message, and send the second response message to the target cleaning device, and then the target cleaning device can use the zone identified by the area name carried in the second response message as the target cleaning area.
  • the sending module 66 is also configured to receive a third request message from the target cleaning device, wherein the third request message is used to request the target object to determine whether to clean the target area through the target cleaning device. Comprehensive cleaning; in the case of receiving the third voice command of the target object, sending a third response message to the target cleaning device, wherein the third response message is used to indicate that the target object has determined to pass The target cleaning device performs comprehensive cleaning on the target area.
  • the smart device may also send a third request message to the target object, in which the target cleaning device requests the target object whether to perform a comprehensive cleaning of the target area.
  • the target object determines to clean the target area comprehensively, receive the third voice command sent by the target object, and convert the third voice command into a third response message that the target cleaning device can recognize, so that the target cleaning device can clean the target area Do a full sweep.
  • the smart device can allow the target cleaning device to determine whether to fully clean the target area.
  • the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
  • Embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
  • the above-mentioned storage medium may be configured to store a computer program for performing the following steps:
  • S1 Receive a target cleaning instruction sent by a smart device, wherein the target cleaning instruction is an instruction obtained by converting a target voice command of a target object by the smart device;
  • the above-mentioned storage medium may include but not limited to: various media capable of storing computer programs such as USB flash drive, read-only memory ROM, random access memory RAM, mobile hard disk, magnetic disk or optical disk.
  • various media capable of storing computer programs such as USB flash drive, read-only memory ROM, random access memory RAM, mobile hard disk, magnetic disk or optical disk.
  • An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
  • the above-mentioned electronic device may further include a transmission device and an input-output device, wherein the transmission device is connected to the above-mentioned processor, and the input-output device is connected to the above-mentioned processor.
  • the above-mentioned processor may be configured to execute the following steps through a computer program:
  • S1 Receive a target cleaning instruction sent by a smart device, wherein the target cleaning instruction is an instruction obtained by converting a target voice command of a target object by the smart device;
  • Embodiments of the present application also provide a robot, including a main body, a motion component, and a controller, where the controller is configured to execute the steps in any one of the above method embodiments.
  • each module or each step of the above-mentioned application can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here
  • the steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation.
  • the present application is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Electromagnetism (AREA)
  • Electric Vacuum Cleaner (AREA)

Abstract

一种语音指令的执行方法及装置、存储介质及电子装置,包括:接收智能设备发送的目标清扫指令,其中,目标清扫指令为智能设备对目标对象的目标语音指令进行转换所得到的指令(S202);确定与目标清扫指令对应的目标清扫区域,其中,目标清扫区域为目标清扫设备的待清扫区域(S204);按照目标清扫指令对目标清扫区域执行清扫操作(S206)。解决了相关技术中通过APP控制扫地机器人对地面进行清扫的方式存在扫地机器人的控制效率较低的问题。

Description

语音指令的执行方法及装置、存储介质及电子装置
本申请要求如下专利申请的优先权:于2021年07月02日提交中国专利局、申请号为202110753668.3、发明名称为“语音指令的执行方法及装置、存储介质及电子装置”的中国专利申请,上述专利申请的全部内容通过引用结合在本申请中。
【技术领域】
本申请涉及通信领域,具体而言,涉及一种语音指令的执行方法及装置、存储介质及电子装置。
【背景技术】
随着科技的发展,扫地机器人在日常生活中越来越普遍,而目前用户与扫地机器人的交互主要是通过APP来进行,即用户通过APP将控制指令下发至扫地机器人,扫地机器人将请求信息发送至APP,通过APP向用户展示请求信息。但通过APP实现用户和扫地机器人的交互会存在诸多不便,如用户需要熟悉APP如何使用,并且每次控制扫地机器人进行对地面进行清扫的时候,都需要用户打开手机APP,找到控制页面,进而下发控制指令,流程十分的繁琐,用户体验感低。
针对相关技术中,相关技术中通过APP控制扫地机器人对地面进行清扫的方式存在扫地机器人的控制效率较低的问题,目前尚未提出有效的解决方案。
【发明内容】
本申请的目的在于提供一种语音指令的执行方法及装置、存储介质及电子装置,以至少解决相关技术中通过APP控制扫地机器人对地面进行清扫的方式存在扫地机器人的控制效率较低的问题。
本申请的目的是通过以下技术方案实现:
根据本申请实施例的一方面,提供了一种语音指令的执行方法,所述 方法包括:接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;确定与所述目标清扫指令对应的目标清扫区域,其中,所述目标清扫区域为目标清扫设备的待清扫区域;按照所述目标清扫指令对所述目标清扫区域执行清扫操作。
进一步地,所述确定与所述目标清扫指令对应的目标清扫区域包括:从所述目标清扫指令中提取出第一区域名称,其中,所述第一区域名称为待清扫区域的区域名称;在所述目标清扫设备中存储有目标区域的目标区域地图、且所述目标区域地图中存在所述第一区域名称所标识的第一分区的情况下,将所述第一分区确定为所述目标清扫区域。
进一步地,在所述从所述目标清扫指令中提取出所述第一区域名称之后,所述方法还包括:在所述目标清扫设备中存储有所述目标区域地图、且所述目标区域地图中不存在与所述第一区域名称所标识的第一分区的情况下,确定第二区域名称,其中,所述第二区域名称为所述目标区域地图包含的至少一个分区的区域名称中,与所述第一区域名称的相似度最大的区域名称、或者与所述第一区域名称的相似度大于预设阈值的区域名称;通过所述智能设备向所述目标对象发送第一请求消息,其中,所述第一请求消息用于请求所述目标对象确定所述第二区域名称所标识的分区是否为待清扫区域;在接收到所述智能设备发送的第一响应消息的情况下,将所述第二区域名称所标识的分区确定为所述目标清扫区域,其中,所述第一响应消息用于指示所述目标对象确定所述第二区域名称所标识的分区为待清扫区域。
进一步地,在所述通过所述智能设备向所述目标对象发送所述第一请求消息之后,所述方法还包括:在未接收到所述第一响应消息的情况下,通过所述智能设备向所述目标对象发送第二请求消息,其中,所述第二请求消息中携带有所述至少一个分区的区域名称,所述第二请求消息用于请求所述目标对象从所述至少一个分区的区域名称中选取待清扫区域的区域名称;在接收到所述智能设备发送的第二响应消息的情况下,将所述第二响应消息中携带的第三区域名称所标识的分区确定为所述目标清扫区域, 其中,所述第二响应消息用于指示所述目标对象选取出的待清扫区域的区域名称为所述第三区域名称。
进一步地,在所述从所述目标清扫指令中提取出所述第一区域名称之后,所述方法还包括:在所述目标清扫设备中未存储有所述目标区域的目标区域地图的情况下,通过所述智能设备向所述目标对象发送第三请求消息,其中,所述第三请求消息用于请求所述目标对象确定是否对所述目标区域进行全面清扫;在接收到所述智能设备发送的第三响应消息的情况下,将所述目标区域确定为所述目标清扫区域,其中,所述第三响应消息用于指示所述目标对象确定对所述目标区域进行全面清扫。
进一步地,所述确定与所述目标清扫指令对应的所述目标清扫区域,包括:从所述目标清扫指令中提取出第四区域名称,其中,所述第四区域名称为所述目标清扫设备的避让区域的区域名称;在所述目标清扫设备中存储有目标区域的目标区域地图、且所述目标区域地图中存在与所述第四区域名称所标识的第二分区的情况下,将所述目标区域地图中除所述第二分区以外的其他区域确定为所述目标清扫区域。
根据本申请实施例的另一方面,还提供了一种语音指令的执行方法,所述方法包括:接收目标对象的目标语音指令;将所述目标语音指令转化为目标清扫指令;向目标清扫设备发送所述目标清扫指令,以控制所述目标清扫设备确定与所述目标清扫指令对应的目标清扫区域,并根据按照所述目标清扫指令,对所述目标清扫区域执行清扫操作。
进一步地,在所述向目标清扫设备发送所述目标清扫指令之后,所述方法还包括:接收所述目标清扫设备的第一请求消息,其中,所述第一请求消息用于请求所述目标对象确定所述第一请求消息中携带的区域名称所标识的分区是否为待清扫区域;向所述目标对象发送所述第一请求消息;在接收到所述目标对象的第一语音指令的情况下,向所述目标清扫设备发送第一响应消息,其中,所述第一响应消息用于指示所述目标对象确定所述第一请求消息中携带的区域名称所标识的分区为待清扫区域,所述目标清扫区域为所述第一请求消息中携带的区域名称所标识的分区。
进一步地,在所述向所述目标对象发送所述第一请求消息之后,所述 方法还包括:在未接收到所述第一语音指令的情况下,接收所述目标清扫设备发送的第二请求消息,其中,所述第二请求消息中携带有所述目标清扫设备中存储的目标区域地图中至少一个分区的区域名称,所述第二请求消息用于请求所述目标对象从所述至少一个分区的区域名称中选取待清扫区域的区域名称;向所述目标对象发送所述第二请求消息;在接收到所述目标对象的第二语音指令的情况下,向所述目标清扫设备发送第二响应信息,其中,所述第二响应信息用于指示所述目标对象从所述第二请求消息中携带的至少一个分区的区域名称中选取出的区域名称所标识的分区为待清扫区域,所述目标清扫区域为所述目标对象选取出的待清扫区域的区域名称所标识的分区。
进一步地,在所述向目标清扫设备发送所述目标清扫指令之后,所述方法还包括:接收所述目标清扫设备的第三请求消息,其中,所述第三请求消息用于请求所述目标对象确定是否通过所述目标清扫设备对所述目标区域进行全面清扫;在接收到所述目标对象的第三语音指令的情况下,将所向所述目标清扫设备发送第三响应消息,其中,所述第三响应消息用于指示所述目标对象确定通过所述目标清扫设备对所述目标区域进行全面清扫。
根据本申请实施例的又一方面,还提供了一种语音指令的执行装置,所述装置包括:第一接收模块,用于接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;确定模块,用于确定与所述目标清扫指令对应的目标清扫区域,其中,所述目标清扫区域为目标清扫设备的待清扫区域;清扫模块,用于按照所述目标清扫指令对所述目标清扫区域执行清扫操作。
根据本申请实施例的又一方面,还提供了一种语音指令的执行装置,所述装置包括:第二接收模块,用于接收目标对象的目标语音指令;转化模块,用于将所述目标语音指令转化为目标清扫指令;发送模块,用于向目标清扫设备发送所述目标清扫指令,以控制所述目标清扫设备确定与所述目标清扫指令对应的目标清扫区域,并根据按照所述目标清扫指令,对所述目标清扫区域执行清扫操作。
根据本申请实施例的又一方面,提供了一种计算机可读的存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行以上任一项中所述的语音指令的执行方法。
根据本申请实施例的又一方面,提供了一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行以上任一项中所述的语音指令的执行方法。
通过本申请,接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;确定与所述目标清扫指令对应的目标清扫区域;按照所述目标清扫指令对目标清扫区域执行清扫操作。也就是说,目标清扫设备通过智能设备接收目标对象的目标语音指令对应的目标清扫指令,并根据目标清扫指令确定目标清扫区域,对目标清扫区域进行清扫。采用上述技术方案,解决了相关技术中通过APP控制扫地机器人对地面进行清扫的方式存在扫地机器人的控制效率较低的问题。进而通过智能设备接收用户的目标语音指令,将目标语言指令转化为目标清扫指令后,将目标清扫指令下发扫地机器人,使得扫地机器人根据目标清扫指令对地面进行清扫,提高了用户控制扫地机器人的效率。
【附图说明】
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1是本申请实施例的一种语音指令的执行方法的移动终端或移动机器人的硬件结构框图;
图2是根据本申请实施例的一种语音指令的执行方法的流程图(一);
图3是根据本申请实施例的一种语音指令的执行方法的流程图(二);
图4是根据本申请实施例的一种语音指令的执行方法的流程图(三);
图5是根据本申请实施例的一种语音指令的执行装置的结构框图(一);
图6是根据本申请实施例的一种语音指令的执行装置的结构框图(二)。
【具体实施方式】
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本申请实施例所提供的方法实施例可以在移动终端或移动机器人或者类似的运算装置中执行。以运行在移动终端或移动机器人上为例,图1是本申请实施例的一种语音指令的执行方法的移动终端或移动机器人的硬件结构框图。如图1所示,移动终端或移动机器人可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器(Microprocessor Unit,简称是MPU)或可编程逻辑器件(Programmable logic device,简称是PLD)等的处理装置和用于存储数据的存储器104,可选地,上述移动终端或移动机器人还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端或移动机器人的结构造成限定。例如,移动终端或移动机器人还可包括比图1中所示更多或者更少的组件,或者具有与图1所示等同功能或比图1所示功能更多的不同的配置。
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本申请实施例中的语音指令的执行方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端或移动机器人。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输设备106用于经由网络接收或者发送数据。上述的网络具体实例可 包括移动终端或移动机器人的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。
在本实施例中提供了一种语音指令的执行方法,应用于目标清扫设备,图2是根据本申请实施例的一种语音指令的执行方法的流程图(一),如图2所示,该流程包括如下步骤:
步骤S202,接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;
需要说明的是,本申请实施例中的语音指令的执行方法可以是由目标清扫设备执行的,该目标清扫设备可以是扫地机器人,也可以是其他具备清扫功能的设备。由于目标清扫设备一般没有语音识别模块,故智能设备可以将目标对象的目标语音指令转化为目标清扫设备可以识别的指令,即,目标清扫指令,并将目标清扫指令发送给目标清扫设备。目标对象是指发出该目标清扫指令的声音源,可以为使用目标清扫设备的用户,也可以为其他的设备等,本实施例中对此不做限定。
但智能设备可以在接收到唤醒词以后,对唤醒词之后采集到的该目标对象的目标语音指令进行转化。例如:目标对象发出语音“xxx,对客厅进行清扫”,智能设备在识别到“xxx”唤醒词以后,提取出目标语音指令“对客厅进行清扫”,并开启转换功能,将上述目标语音指令转化为对应的二进制码,进而将向目标清扫设备发送二进制码,目标清扫设备根据二进制码执行对应的操作。补充说明的是,上述智能设备可以是搭载了语音模块的智能音响,也可以是搭载了语音模块的其他设备。
步骤S204,确定与所述目标清扫指令对应的目标清扫区域,其中,所述目标清扫区域为目标清扫设备的待清扫区域;
步骤S206,按照所述目标清扫指令对所述目标清扫区域执行清扫操作。
通过上述步骤,接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指 令;确定与所述目标清扫指令对应的目标清扫区域;按照所述目标清扫指令对目标清扫区域执行清扫操作。也就是说,目标清扫设备通过智能设备接收目标对象的目标语音指令对应的目标清扫指令,并根据目标清扫指令确定目标清扫区域,对目标清扫区域进行清扫。采用上述技术方案,解决了相关技术中通过APP控制扫地机器人对地面进行清扫的方式存在扫地机器人的控制效率较低的问题。进而通过智能设备接收用户的目标语音指令,将目标语言指令转化为目标清扫指令后,将目标清扫指令下发扫地机器人,使得扫地机器人根据目标清扫指令对地面进行清扫,提高了用户控制扫地机器人的效率。
进一步地,可以通过以下方式确定与目标清扫指令对应的目标清扫区域:从所述目标清扫指令中提取出第一区域名称,其中,所述第一区域名称为待清扫区域的区域名称;在所述目标清扫设备中存储有目标区域的目标区域地图、且所述目标区域地图中存在所述第一区域名称所标识的第一分区的情况下,将所述第一分区确定为所述目标清扫区域。
也就是说,在智能设备将目标对象的目标语音指令转化为目标清扫设备可以识别的目标清扫指令,并向目标清扫设备发送目标清扫指令以后,目标清扫设备需要对目标清扫指令进行解析,从而提取目标对象想要清扫的区域的第一区域名称。需要说明的是,目标清扫设备的存储空间中存储有整个目标区域的目标区域地图。目标清扫设备在获取到第一区域名称以后,会在目标区域地图中去搜索,确定目标区域地图中是否存在第一区域名称所标识的第一分区,如果存在,则将第一分区确定为目标清扫设备的待清扫区域。假设目标区域地图中有多个分区:房间1分区,客厅分区,卫生间分区,目标清扫指令为“清扫房间1”,则目标清扫设备可以从目标清扫指令中获取到第一区域名称为房间1,进而在目标区域地图中搜索,是否存在房间1所标识的分区,如果存在,则目标清扫设备将房间1分区确定为目标清扫区域。通过上述方案,可以使得目标清扫设备快速的确定目标清扫区域,进而对目标清扫区域进行清扫。
进一步地,在目标清扫设备从目标清扫指令中提取出所述第一区域名称之后,还会执行以下步骤:在所述目标清扫设备中存储有所述目标区域 地图、且所述目标区域地图中不存在与所述第一区域名称所标识的第一分区的情况下,确定第二区域名称,其中,所述第二区域名称为所述目标区域地图包含的至少一个分区的区域名称中,与所述第一区域名称的相似度最大的区域名称、或者与所述第一区域名称的相似度大于预设阈值的区域名称;通过所述智能设备向所述目标对象发送第一请求消息,其中,所述第一请求消息用于请求所述目标对象确定所述第二区域名称所标识的分区是否为待清扫区域;在接收到所述智能设备发送的第一响应消息的情况下,将所述第二区域名称所标识的分区确定为所述目标清扫区域,其中,所述第一响应消息用于指示所述目标对象确定所述第二区域名称所标识的分区为待清扫区域。
也就是说,如果目标清扫设备从目标区域地图中没有找到与第一区域名称所标识的第一分区,目标清扫设备会从目标区域地图中所有分区对应的区域名称中寻找一个与第一区域名称的相似度最大的区域名称。或者第一区域名称的相似度大于预设阈值的区域名称。例如目标区域地图所有分区对应的区域名称为房间2,卫生间,客厅。则目标清扫设备会从这三个区域名称中挑选一个与第一区域名称“房间1”的相似度最大的区域名称,即为房间2,将房间2确定为第二区域名称。随后目标清扫设备会通过智能设备向目标对象发送第一请求消息,用来向目标对象确定第二区域名称所标识的分区是否为待清扫区域。需要说明的是,智能设备可以将第一请求消息通过语音的方式告知目标对象,也可通过智能设备上的屏幕显示给用户,下面的第一请求消息与第二请求消息同理,在此不进行赘述。如果目标对象响应第一请求信息,确定第二区域名称所标识的分区为待清扫区域的情况下,则智能设备会向目标清扫设备发送第一响应消息,从而目标清扫设备确定第二区域名称所标识的分区为目标清扫区域。采用上述技术方案,可以在目标清扫设备判断自身存储的目标区域地图中没有目标对象所指示的清扫区域的情况下,向目标对象发送一个目标区域地图中与目标对象所指示的清扫区域的区域名称最为接近的区域名称,以供目标对象进行选择,提高用户体验。
进一步地,在通过所述智能设备向所述目标对象发送所述第一请求消 息之后,所述方法还包括:在未接收到所述第一响应消息的情况下,通过所述智能设备向所述目标对象发送第二请求消息,其中,所述第二请求消息中携带有所述至少一个分区的区域名称,所述第二请求消息用于请求所述目标对象从所述至少一个分区的区域名称中选取待清扫区域的区域名称;在接收到所述智能设备发送的第二响应消息的情况下,将所述第二响应消息中携带的第三区域名称所标识的分区确定为所述目标清扫区域,其中,所述第二响应消息用于指示所述目标对象选取出的待清扫区域的区域名称为所述第三区域名称。
需要说明的是,如果目标对象没有响应第一请求消息,或者确定第二区域名称所标识的区域不是待清扫的区域,则智能设备就不会向目标清扫设备发送第一响应消息,从而目标清扫设备会通过智能设备向目标对象发送第二请求消息,其中,第二请求消息中携带有目标区域地图中所有分区对应的区域名称,从而目标清扫设备通过第二请求消息让目标对象从第二请求消息中携带的所有分区中选取待清扫区域的区域名称。如果目标对象从第二请求消息中携带的所有分区中选取了一个待清扫区域的区域名称,则智能设备会向目标清扫设备发送第二响应消息,从而目标清扫设备会将第二响应消息中携带的第三区域名称所标识的分区确定为所述目标清扫区域。采用上述技术方案,可以将目标清扫设备的目标区域地图中所有的区域名称都发送给目标对象,以供目标对象快速的选择,提高了用户的体验感,同时也提高了目标机器人确定目标清扫区域的效率。
进一步地,目标清扫设备从目标清扫指令中提取出所述第一区域名称之后,还具有以下步骤:在所述目标清扫设备中未存储有所述目标区域的区域地图的情况下,通过所述智能设备向所述目标对象发送第三请求消息,其中,所述第三请求消息用于请求所述目标对象确定是否对所述目标区域进行全面清扫;在接收到所述智能设备发送的第三响应消息的情况下,将所述目标区域确定为所述目标清扫区域,其中,所述第三响应消息用于指示所述目标对象确定对所述目标区域进行全面清扫。
也就是说,存在一种情况:目标清扫设备的存储空间中并没有存储有目标区域的目标区域地图,此时目标清扫设备就需要构建一个目标区域地 图,因此,目标清扫设备会通过智能设备向目标对象发送第三请求消息,询问目标对象是否对目标区域进行一次全面的清扫,以构建目标区域的目标区域地图。如果目标对象确定对目标区域进行一次全面的清扫,则智能设备会向目标清扫设备发送第三响应消息,进入目标清扫设备接收到第三响应消息以后,对目标区域进行全面的清扫,以构建目标区域地图。采用上述技术方案,解决了目标清扫设备在不存在目标区域地图的情况下,不能根据目标对象的目标语音指令进行清扫的问题,提高了目标清扫设备的智能性。
在一个可选的实施例中,确定与所述目标清扫指令对应的所述目标清扫区域,还包括:从所述目标清扫指令中提取出第四区域名称,其中,所述第四区域名称为所述目标清扫设备的避让区域的区域名称;在所述目标清扫设备中存储有目标区域的目标区域地图、且所述目标区域地图中存在与所述第四区域名称匹配的第二分区的情况下,将所述目标区域地图中除所述第二分区以外的其他区域确定为所述目标清扫区域。
需要说明的是,目标对象的目标语音指令有可能不是专门对一个区域的清扫指令,而是对一个区域的避让指令,如果是避让指令,则目标清扫设备会从目标清扫指令中提取目标对象想要避让区域的第四区域名称,如果目标清扫设备中存储有目标区域的目标区域地图、且目标区域地图中存在与第四区域名称所标识的第二分区的情况下,将目标区域地图中除所述第二分区以外的其他区域确定为目标清扫区域。
例如,目标清扫设备的目标区域地图中有如下分区:房间1分区,客厅分区,卫生间分区。智能设备发送给目标清扫设备的目标清扫指令为“避让卫生间”,则目标清扫设备从目标清扫指令中提取第四区域名称“卫生间”,进而将卫生间所标识的分区认为是第二分区,此时目标清扫设备只对房间1分区和客厅分区进行清扫。通过上述技术方案,可以使得目标清扫设备避让某一个区域进行清扫,提高了清扫效率。
为了更好的理解,在本实施例中还提供了一种语音指令的执行方法,应用于智能设备,图3是根据本申请实施例的一种语音指令的执行方法的流程图(二),如图3所示,该流程包括如下步骤:
S302,接收目标对象的目标语音指令;
S304,将所述目标语音指令转化为目标清扫指令;
S306,向目标清扫设备发送所述目标清扫指令,以控制所述目标清扫设备确定与所述目标清扫指令对应的目标清扫区域,并根据按照所述目标清扫指令,对所述目标清扫区域执行清扫操作。
通过上述步骤,智能设备接收目标对象的目标语音指令,将目标语音指令转化为目标清扫指令,并向目标清扫设备发送目标清扫指令,以控制目标清扫设备确定与目标清扫指令对应的目标清扫区域,并根据所述目标清扫指令,对所述目标清扫区域执行清扫操作。解决了相关技术中通过APP控制扫地机器人对地面进行清扫的方式存在扫地机器人的控制效率较低的问题。进而通过智能设备接收用户的目标语音指令,将目标语言指令转化为目标清扫指令后,将目标清扫指令下发扫地机器人,使得扫地机器人根据目标清扫指令对地面进行清扫,提高了用户控制扫地机器人的效率。
进一步地,智能设备向目标清扫设备发送目标清扫指令之后,所述方法还包括:接收所述目标清扫设备的第一请求消息,其中,所述第一请求消息用于请求所述目标对象确定所述第一请求消息中携带的区域名称所标识的分区是否为待清扫区域;向所述目标对象发送所述第一请求消息;在接收到所述目标对象的第一语音指令的情况下,向所述目标清扫设备发送第一响应消息,其中,所述第一响应消息用于指示所述目标对象确定所述第一请求消息中携带的区域名称所标识的分区为待清扫区域,所述目标清扫区域为所述第一请求消息中携带的区域名称所标识的分区。
也就是说,智能设备还用于实现目标清扫设备与目标对象之间的交互,会将目标清扫设备的第一请求消息发送至目标对象,在目标对象响应第一请求消息,确定第一请求消息中携带的区域名称所标识的分区为待清扫区域的情况下,发送第一语言指令,智能设备接收目标对象的第一语音指令,并将第一语音指令转化为目标清扫设备可以识别的第一响应消息发送至目标清扫设备。需要说明的是,第一请求消息中携带的区域名称所标识的分区为目标区域地图中的一个分区。通过上述技术方案,智能设备可以让目标清扫设备快速的确定待清扫的区域。
进一步地,在所述向所述目标对象发送所述第一请求消息之后,所述方法还包括:在未接收到所述第一语音指令的情况下,接收所述目标清扫设备发送的第二请求消息,其中,所述第二请求消息中携带有所述目标清扫设备中存储的目标区域地图中至少一个分区的区域名称,所述第二请求消息用于请求所述目标对象从所述至少一个分区的区域名称中选取待清扫区域的区域名称;向所述目标对象发送所述第二请求消息;在接收到所述目标对象的第二语音指令的情况下,向所述目标清扫设备发送第二响应信息,其中,所述第二响应信息用于指示所述目标对象从所述第二请求消息中携带的至少一个分区的区域名称中选取出的区域名称所标识的分区为待清扫区域,所述目标清扫区域为所述目标对象选取出的待清扫区域的区域名称所标识的分区。
需要说明的是,如果目标对象没有响应第一请求消息,或者目标对象确定第一请求消息中携带的区域名称所标识的分区不是待清扫区域,则目标对象不会向智能设备发送第一语言指令,此时,目标清扫设备没有接收到智能设备的指令,会向智能设备发送的第二请求消息,智能设备将第二请求信息转发给目标对象,请求目标对象从至少一个分区的区域名称中选取待清扫区域的区域名称,如果目标对象从至少一个分区的区域名称中选取待清扫区域的区域名称,则目标对象向智能设备发送第二语音指令,从而智能设备将第二语音指令转化为目标清扫设备可以识别的第二响应消息,将第二响应消息发送至目标清扫设备,进而目标清扫设备可以将第二响应消息中携带的区域名称所标识的分区为目标清扫区域。采用上述技术方案,智能设备可以将目标清扫设备的目标地图中的分区对应的区域名称提供给目标对象选择,提高确定目标清扫区域的效率,使得目标清扫设备快速的进行清扫。
进一步地,在所述向目标清扫设备发送所述目标清扫指令之后,所述方法还包括:接收所述目标清扫设备的第三请求消息,其中,所述第三请求消息用于请求所述目标对象确定是否通过所述目标清扫设备对所述目标区域进行全面清扫;在接收到所述目标对象的第三语音指令的情况下,将所向所述目标清扫设备发送第三响应消息,其中,所述第三响应消息用于 指示所述目标对象确定通过所述目标清扫设备对所述目标区域进行全面清扫。
也就是说,智能设备还可以将目标清扫设备向目标对象请求是否对目标区域进行全面清扫的第三请求消息发送至目标对象。在目标对象确定对目标区域进行全面清扫的情况下,接收目标对象发送的第三语音指令,并将第三语音指令转化为目标清扫设备可以识别的第三响应消息,使得目标清扫设备对目标区域进行全面清扫。通过上述步骤,智能设备可以让目标清扫设备确定是否对目标区域进行全面清扫。
显然,上述所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。为了更好的理解上述语音指令的执行方法,以下结合实施例对上述过程进行说明,但不用于限定本申请实施例的技术方案,具体地:
在一个可选的实施例中,图4是根据本申请实施例的一种语音指令的执行方法的流程图(三);具体步骤如下:
步骤S402:用户(相当于上述实施例中的目标对象)发送语音;
步骤S404:物联网(Internet of Things,简称为IOT)(相当于上述实施例中的智能设备的语言模块)将用户语音转化为机器指令;
步骤S406:扫地机器人(相当于上述实施例中的目标清扫设备)判断是否存在AI分区地图(相当于上述实施例中的目标区域地图),若是,执行步骤S408,否则,执行步骤S416;
步骤S408:扫地机器人判断是否存在用户给出的分区名称,若是,执行步骤S410,否则,执行步骤S412;
步骤S410:扫地机器人前往指定分区清扫;
步骤S412:扫地机器人查找最为接近的分区找用户确定,若用户确定,执行步骤S410,否则,执行步骤S414;
步骤S414:让用户在app(相当于上述实施例中的目标清扫设备的屏幕)上选择想要重点清扫的分区;
步骤S416:询问是否要开店一次全新的清扫,若是,执行步骤S418,否则,执行步骤S420;
步骤S418:开始一次全新的清扫;
步骤S420:退出。
具体的,扫地机器人与智能音响(相当于上述实施例中的智能设备)连接,用户唤醒智能音响,并且发送对指定区域重点清扫以及对指定区域避让的语音指令(相当于上述实施例中的目标语音指令),例如“清扫客厅”,“避让卫生间”等语音指令。通过IOT模块处理语音指令,转化为对机器的指令,比如“清扫客厅”指令(相当于上述实施例中的目标清扫指令),转化为机器对于客厅的选区清扫操作等。扫地机器人收到指令后,判断当前是否存在AI分区后的复用地图,其中,AI分区地图包括对房间类型的分类,包括客厅,厨房,卧室,卫生间等。如果不存在AI分区后的复用地图,询问用户是否要开始一次全新的清扫,如果需要,用户选择是,则扫地机器人开始一次全新清扫,否则用户就不需要响应。如果存在AI分区地图,但是不存在用户给定的区域名称,选出名称最相近的区域给用户确认,如果是,那么扫地机器人开始清扫,如果不是,让用户在分区中选定想要重点清扫的区域。如果存在AI分区地图,并且存在用户语音中给出的分区,那么对用户的语言指令进行响应,对提及分区进行重点清扫。
此外,本申请实施例的上述技术方案,通过语音控制对某些房间或者区域进行重点清扫,或者对某些房间进行避让,可以简化用户操作流程,优化用户体验。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
在本实施例中还提供了一种语音指令的执行装置,该语音指令的执行装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。 如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图5是根据本申请实施例的一种语音指令的执行装置的结构框图(一),如图5所示:
第一接收模块52,用于接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;
需要说明的是,由于目标清扫设备一般没有语音识别模块,故智能设备可以将目标对象的目标语音指令转化为目标清扫设备可以识别的指令,即,目标清扫指令,并将目标清扫指令发送给目标清扫设备。目标对象是指发出该目标清扫指令的声音源,可以为使用目标清扫设备的用户,也可以为其他的设备等,本实施例中对此不做限定。
但智能设备可以在接收到唤醒词以后,对唤醒词之后采集到的该目标对象的目标语音指令进行转化。例如:目标对象发出语音“xxx,对客厅进行清扫”,智能设备在识别到“xxx”唤醒词以后,提取出目标语音指令“对客厅进行清扫”,并开启转换功能,将上述目标语音指令转化为对应的二进制码,进而将向目标清扫设备发送二进制码,目标清扫设备根据二进制码执行对应的操作。补充说明的是,上述智能设备可以是搭载了语音模块的智能音响,也可以是搭载了语音模块的其他设备。
确定模块54,用于确定与所述目标清扫指令对应的目标清扫区域,其中,所述目标清扫区域为目标清扫设备的待清扫区域;
清扫模块56,用于按照所述目标清扫指令对所述目标清扫区域执行清扫操作。
通过上述模块,接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;确定与所述目标清扫指令对应的目标清扫区域;按照所述目标清扫指令对目标清扫区域执行清扫操作。也就是说,目标清扫设备通过智能设备接收目标对象的目标语音指令对应的目标清扫指令,并根据目标清扫指令 确定目标清扫区域,对目标清扫区域进行清扫。采用上述技术方案,解决了相关技术中通过APP控制扫地机器人对地面进行清扫的方式存在扫地机器人的控制效率较低的问题。进而通过智能设备接收用户的目标语音指令,将目标语言指令转化为目标清扫指令后,将目标清扫指令下发扫地机器人,使得扫地机器人根据目标清扫指令对地面进行清扫,提高了用户控制扫地机器人的效率。
进一步地,确定模块54还用于从所述目标清扫指令中提取出第一区域名称,其中,所述第一区域名称为待清扫区域的区域名称;在所述目标清扫设备中存储有目标区域的目标区域地图、且所述目标区域地图中存在所述第一区域名称所标识的第一分区的情况下,将所述第一分区确定为所述目标清扫区域。
也就是说,在智能设备将目标对象的目标语音指令转化为目标清扫设备可以识别的目标清扫指令,并向目标清扫设备发送目标清扫指令以后,目标清扫设备需要对目标清扫指令进行解析,从而提取目标对象想要清扫的区域的第一区域名称。需要说明的是,目标清扫设备的存储空间中存储有整个目标区域的目标区域地图。目标清扫设备在获取到第一区域名称以后,会在目标区域地图中去搜索,确定目标区域地图中是否存在第一区域名称所标识的第一分区,如果存在,则将第一分区确定为目标清扫设备的待清扫区域。假设目标区域地图中有多个分区:房间1分区,客厅分区,卫生间分区,目标清扫指令为“清扫房间1”,则目标清扫设备可以从目标清扫指令中获取到第一区域名称为房间1,进而在目标区域地图中搜索,是否存在房间1所标识的分区,如果存在,则目标清扫设备将房间1分区确定为目标清扫区域。通过上述方案,可以使得目标清扫设备快速的确定目标清扫区域,进而对目标清扫区域进行清扫。
进一步地,确定模块54还用于在所述目标清扫设备中存储有所述目标区域地图、且所述目标区域地图中不存在与所述第一区域名称所标识的第一分区的情况下,确定第二区域名称,其中,所述第二区域名称为所述目标区域地图包含的至少一个分区的区域名称中,与所述第一区域名称的相似度最大的区域名称、或者与所述第一区域名称的相似度大于预设阈值的 区域名称;通过所述智能设备向所述目标对象发送第一请求消息,其中,所述第一请求消息用于请求所述目标对象确定所述第二区域名称所标识的分区是否为待清扫区域;在接收到所述智能设备发送的第一响应消息的情况下,将所述第二区域名称所标识的分区确定为所述目标清扫区域,其中,所述第一响应消息用于指示所述目标对象确定所述第二区域名称所标识的分区为待清扫区域。
也就是说,如果目标清扫设备从目标区域地图中没有找到与第一区域名称所标识的第一分区,目标清扫设备会从目标区域地图中所有分区对应的区域名称中寻找一个与第一区域名称的相似度最大的区域名称。或者第一区域名称的相似度大于预设阈值的区域名称。例如目标区域地图所有分区对应的区域名称为房间2,卫生间,客厅。则目标清扫设备会从这三个区域名称中挑选一个与第一区域名称“房间1”的相似度最大的区域名称,即为房间2,将房间2确定为第二区域名称。随后目标清扫设备会通过智能设备向目标对象发送第一请求消息,用来向目标对象确定第二区域名称所标识的分区是否为待清扫区域。需要说明的是,智能设备可以将第一请求消息通过语音的方式告知目标对象,也可通过智能设备上的屏幕显示给用户,下面的第一请求消息与第二请求消息同理,在此不进行赘述。如果目标对象响应第一请求信息,确定第二区域名称所标识的分区为待清扫区域的情况下,则智能设备会向目标清扫设备发送第一响应消息,从而目标清扫设备确定第二区域名称所标识的分区为目标清扫区域。采用上述技术方案,可以在目标清扫设备判断自身存储的目标区域地图中没有目标对象所指示的清扫区域的情况下,向目标对象发送一个目标区域地图中与目标对象所指示的清扫区域的区域名称最为接近的区域名称,以供目标对象进行选择,提高用户体验。
进一步地,确定模块54还用于在未接收到所述第一响应消息的情况下,通过所述智能设备向所述目标对象发送第二请求消息,其中,所述第二请求消息中携带有所述至少一个分区的区域名称,所述第二请求消息用于请求所述目标对象从所述至少一个分区的区域名称中选取待清扫区域的区域名称;在接收到所述智能设备发送的第二响应消息的情况下,将所述第二 响应消息中携带的第三区域名称所标识的分区确定为所述目标清扫区域,其中,所述第二响应消息用于指示所述目标对象选取出的待清扫区域的区域名称为所述第三区域名称。
需要说明的是,如果目标对象没有响应第一请求消息,或者确定第二区域名称所标识的区域不是待清扫的区域,则智能设备就不会向目标清扫设备发送第一响应消息,从而目标清扫设备会通过智能设备向目标对象发送第二请求消息,其中,第二请求消息中携带有目标区域地图中所有分区对应的区域名称,从而目标清扫设备通过第二请求消息让目标对象从第二请求消息中携带的所有分区中选取待清扫区域的区域名称。如果目标对象从第二请求消息中携带的所有分区中选取了一个待清扫区域的区域名称,则智能设备会向目标清扫设备发送第二响应消息,从而目标清扫设备会将第二响应消息中携带的第三区域名称所标识的分区确定为所述目标清扫区域。采用上述技术方案,可以将目标清扫设备的目标区域地图中所有的区域名称都发送给目标对象,以供目标对象快速的选择,提高了用户的体验感,同时也提高了目标机器人确定目标清扫区域的效率。
进一步地,确定模块54还用于在所述目标清扫设备中未存储有所述目标区域的区域地图的情况下,通过所述智能设备向所述目标对象发送第三请求消息,其中,所述第三请求消息用于请求所述目标对象确定是否对所述目标区域进行全面清扫;在接收到所述智能设备发送的第三响应消息的情况下,将所述目标区域确定为所述目标清扫区域,其中,所述第三响应消息用于指示所述目标对象确定对所述目标区域进行全面清扫。
也就是说,存在一种情况:目标清扫设备的存储空间中并没有存储有目标区域的目标区域地图,此时目标清扫设备就需要构建一个目标区域地图,因此,目标清扫设备会通过智能设备向目标对象发送第三请求消息,询问目标对象是否对目标区域进行一次全面的清扫,以构建目标区域的目标区域地图。如果目标对象确定对目标区域进行一次全面的清扫,则智能设备会向目标清扫设备发送第三响应消息,进入目标清扫设备接收到第三响应消息以后,对目标区域进行全面的清扫,以构建目标区域地图。采用上述技术方案,解决了目标清扫设备在不存在目标区域地图的情况下,不 能根据目标对象的目标语音指令进行清扫的问题,提高了目标清扫设备的智能性。
在一个可选的实施例中,确定模块54还用于从所述目标清扫指令中提取出第四区域名称,其中,所述第四区域名称为所述目标清扫设备的避让区域的区域名称;在所述目标清扫设备中存储有目标区域的目标区域地图、且所述目标区域地图中存在与所述第四区域名称匹配的第二分区的情况下,将所述目标区域地图中除所述第二分区以外的其他区域确定为所述目标清扫区域。
需要说明的是,目标对象的目标语音指令有可能不是专门对一个区域的清扫指令,而是对一个区域的避让指令,如果是避让指令,则目标清扫设备会从目标清扫指令中提取目标对象想要避让区域的第四区域名称,如果目标清扫设备中存储有目标区域的目标区域地图、且目标区域地图中存在与第四区域名称所标识的第二分区的情况下,将目标区域地图中除所述第二分区以外的其他区域确定为目标清扫区域。
例如,目标清扫设备的目标区域地图中有如下分区:房间1分区,客厅分区,卫生间分区。智能设备发送给目标清扫设备的目标清扫指令为“避让卫生间”,则目标清扫设备从目标清扫指令中提取第四区域名称“卫生间”,进而将卫生间所标识的分区认为是第二分区,此时目标清扫设备只对房间1分区和客厅分区进行清扫。通过上述技术方案,可以使得目标清扫设备避让某一个区域进行清扫,提高了清扫效率。
图6是根据本申请实施例的一种语音指令的执行装置的结构框图(二),如图6所示:
第二接收模块62,用于接收目标对象的目标语音指令;
转化模块64,用于将所述目标语音指令转化为目标清扫指令;
发送模块66,用于向目标清扫设备发送所述目标清扫指令,以控制所述目标清扫设备确定与所述目标清扫指令对应的目标清扫区域,并根据按照所述目标清扫指令,对所述目标清扫区域执行清扫操作。
通过上述模块,智能设备接收目标对象的目标语音指令,将目标语音指令转化为目标清扫指令,并向目标清扫设备发送目标清扫指令,以控制 目标清扫设备确定与目标清扫指令对应的目标清扫区域,并根据按照所述目标清扫指令,对所述目标清扫区域执行清扫操作。解决了相关技术中通过APP控制扫地机器人对地面进行清扫的方式存在扫地机器人的控制效率较低的问题。进而通过智能设备接收用户的目标语音指令,将目标语言指令转化为目标清扫指令后,将目标清扫指令下发扫地机器人,使得扫地机器人根据目标清扫指令对地面进行清扫,提高了用户控制扫地机器人的效率。
进一步地,发送模块66还用于接收所述目标清扫设备的第一请求消息,其中,所述第一请求消息用于请求所述目标对象确定所述第一请求消息中携带的区域名称所标识的分区是否为待清扫区域;向所述目标对象发送所述第一请求消息;在接收到所述目标对象的第一语音指令的情况下,向所述目标清扫设备发送第一响应消息,其中,所述第一响应消息用于指示所述目标对象确定所述第一请求消息中携带的区域名称所标识的分区为待清扫区域,所述目标清扫区域为所述第一请求消息中携带的区域名称所标识的分区。
也就是说,智能设备还用于实现目标清扫设备与目标对象之间的交互,会将目标清扫设备的第一请求消息发送至目标对象,在目标对象响应第一请求消息,确定第一请求消息中携带的区域名称所标识的分区为待清扫区域的情况下,发送第一语言指令,智能设备接收目标对象的第一语音指令,并将第一语音指令转化为目标清扫设备可以识别的第一响应消息发送至目标清扫设备。需要说明的是,第一请求消息中携带的区域名称所标识的分区为目标区域地图中的一个分区。通过上述技术方案,智能设备可以让目标清扫设备快速的确定待清扫的区域。
进一步地,发送模块66还用于在未接收到所述第一语音指令的情况下,接收所述目标清扫设备发送的第二请求消息,其中,所述第二请求消息中携带有所述目标清扫设备中存储的目标区域地图中至少一个分区的区域名称,所述第二请求消息用于请求所述目标对象从所述至少一个分区的区域名称中选取待清扫区域的区域名称;向所述目标对象发送所述第二请求消息;在接收到所述目标对象的第二语音指令的情况下,向所述目标清扫设 备发送第二响应信息,其中,所述第二响应信息用于指示所述目标对象从所述第二请求消息中携带的至少一个分区的区域名称中选取出的区域名称所标识的分区为待清扫区域,所述目标清扫区域为所述目标对象选取出的待清扫区域的区域名称所标识的分区。
需要说明的是,如果目标对象没有响应第一请求消息,或者目标对象确定第一请求消息中携带的区域名称所标识的分区不是待清扫区域,则目标对象不会向智能设备发送第一语言指令,此时,目标清扫设备没有接收到智能设备的指令,会向智能设备发送的第二请求消息,智能设备将第二请求信息转发给目标对象,请求目标对象从至少一个分区的区域名称中选取待清扫区域的区域名称,如果目标对象从至少一个分区的区域名称中选取待清扫区域的区域名称,则目标对象向智能设备发送第二语音指令,从而智能设备将第二语音指令转化为目标清扫设备可以识别的第二响应消息,将第二响应消息发送至目标清扫设备,进而目标清扫设备可以将第二响应消息中携带的区域名称所标识的分区为目标清扫区域。采用上述技术方案,智能设备可以将目标清扫设备的目标地图中的分区对应的区域名称提供给目标对象选择,提高确定目标清扫区域的效率,使得目标清扫设备快速的进行清扫。
进一步地,发送模块66还用于接收所述目标清扫设备的第三请求消息,其中,所述第三请求消息用于请求所述目标对象确定是否通过所述目标清扫设备对所述目标区域进行全面清扫;在接收到所述目标对象的第三语音指令的情况下,将所向所述目标清扫设备发送第三响应消息,其中,所述第三响应消息用于指示所述目标对象确定通过所述目标清扫设备对所述目标区域进行全面清扫。
也就是说,智能设备还可以将目标清扫设备向目标对象请求是否对目标区域进行全面清扫的第三请求消息发送至目标对象。在目标对象确定对目标区域进行全面清扫的情况下,接收目标对象发送的第三语音指令,并将第三语音指令转化为目标清扫设备可以识别的第三响应消息,使得目标清扫设备对目标区域进行全面清扫。通过上述步骤,智能设备可以让目标清扫设备确定是否对目标区域进行全面清扫。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
本申请的实施例还提供了一种计算机可读的存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:
S1,接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;
S2,确定与所述目标清扫指令对应的目标清扫区域,其中,所述目标清扫区域为目标清扫设备的待清扫区域;
S3,按照所述目标清扫指令对所述目标清扫区域执行清扫操作。
或被设置为存储用于执行以下步骤的计算机程序:
S1,接收目标对象的目标语音指令;
S2,将所述目标语音指令转化为目标清扫指令;
S3,向目标清扫设备发送所述目标清扫指令,以控制所述目标清扫设备确定与所述目标清扫指令对应的目标清扫区域,并根据按照所述目标清扫指令,对所述目标清扫区域执行清扫操作。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器ROM、随机存取存储器RAM、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
本申请的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
可选地,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
S1,接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;
S2,确定与所述目标清扫指令对应的目标清扫区域,其中,所述目标清扫区域为目标清扫设备的待清扫区域;
S3,按照所述目标清扫指令对所述目标清扫区域执行清扫操作。
或被设置为通过计算机程序执行以下步骤:
S1,接收目标对象的目标语音指令;
S2,将所述目标语音指令转化为目标清扫指令;
S3,向目标清扫设备发送所述目标清扫指令,以控制所述目标清扫设备确定与所述目标清扫指令对应的目标清扫区域,并根据按照所述目标清扫指令,对所述目标清扫区域执行清扫操作。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
本申请的实施例还提供了一种机器人,包括主体、运动组件及控制器,该控制器被设置为执行上述任一项方法实施例中的步骤。
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (14)

  1. 一种语音指令的执行方法,其特征在于,所述方法包括:
    接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;
    确定与所述目标清扫指令对应的目标清扫区域,其中,所述目标清扫区域为目标清扫设备的待清扫区域;
    按照所述目标清扫指令对所述目标清扫区域执行清扫操作。
  2. 根据权利要求1所述的方法,其特征在于,所述确定与所述目标清扫指令对应的目标清扫区域包括:
    从所述目标清扫指令中提取出第一区域名称,其中,所述第一区域名称为待清扫区域的区域名称;
    在所述目标清扫设备中存储有目标区域的目标区域地图、且所述目标区域地图中存在所述第一区域名称所标识的第一分区的情况下,将所述第一分区确定为所述目标清扫区域。
  3. 根据权利要求2所述的方法,其特征在于,在所述从所述目标清扫指令中提取出所述第一区域名称之后,所述方法还包括:
    在所述目标清扫设备中存储有所述目标区域地图、且所述目标区域地图中不存在与所述第一区域名称所标识的第一分区的情况下,确定第二区域名称,其中,所述第二区域名称为所述目标区域地图包含的至少一个分区的区域名称中,与所述第一区域名称的相似度最大的区域名称、或者与所述第一区域名称的相似度大于预设阈值的区域名称;
    通过所述智能设备向所述目标对象发送第一请求消息,其中,所述第一请求消息用于请求所述目标对象确定所述第二区域名称所标识的分区是否为待清扫区域;
    在接收到所述智能设备发送的第一响应消息的情况下,将所述第二区域名称所标识的分区确定为所述目标清扫区域,其中,所述第一响应消息用于指示所述目标对象确定所述第二区域名称所标识的分区为待清扫区域。
  4. 根据权利要求3所述的方法,其特征在于,在所述通过所述智能设备向所述目标对象发送所述第一请求消息之后,所述方法还包括:
    在未接收到所述第一响应消息的情况下,通过所述智能设备向所述目标对象发送第二请求消息,其中,所述第二请求消息中携带有所述至少一个分区的区域名称,所述第二请求消息用于请求所述目标对象从所述至少一个分区的区域名称中选取待清扫区域的区域名称;
    在接收到所述智能设备发送的第二响应消息的情况下,将所述第二响应消息中携带的第三区域名称所标识的分区确定为所述目标清扫区域,其中,所述第二响应消息用于指示所述目标对象选取出的待清扫区域的区域名称为所述第三区域名称。
  5. 根据权利要求2所述的方法,其特征在于,在所述从所述目标清扫指令中提取出所述第一区域名称之后,所述方法还包括:
    在所述目标清扫设备中未存储有所述目标区域的目标区域地图的情况下,通过所述智能设备向所述目标对象发送第三请求消息,其中,所述第三请求消息用于请求所述目标对象确定是否对所述目标区域进行全面清扫;
    在接收到所述智能设备发送的第三响应消息的情况下,将所述目标区域确定为所述目标清扫区域,其中,所述第三响应消息用于指示所述目标对象确定对所述目标区域进行全面清扫。
  6. 根据权利要求1所述的方法,其特征在于,所述确定与所述目标清扫指令对应的所述目标清扫区域包括:
    从所述目标清扫指令中提取出第四区域名称,其中,所述第四区域名称为所述目标清扫设备的避让区域的区域名称;
    在所述目标清扫设备中存储有目标区域的目标区域地图、且所述目标区域地图中存在与所述第四区域名称所标识的第二分区的情况下,将所述目标区域地图中除所述第二分区以外的其他区域确定为所述目标清扫区域。
  7. 一种语音指令的执行方法,其特征在于,所述方法包括:
    接收目标对象的目标语音指令;
    将所述目标语音指令转化为目标清扫指令;
    向目标清扫设备发送所述目标清扫指令,以控制所述目标清扫设备确定与所述目标清扫指令对应的目标清扫区域,并根据按照所述目标清扫指令,对所述目标清扫区域执行清扫操作。
  8. 根据权利要求7所述的方法,其特征在于,在所述向目标清扫设备发送所述目标清扫指令之后,所述方法还包括:
    接收所述目标清扫设备的第一请求消息,其中,所述第一请求消息用于请求所述目标对象确定所述第一请求消息中携带的区域名称所标识的分区是否为待清扫区域;
    向所述目标对象发送所述第一请求消息;
    在接收到所述目标对象的第一语音指令的情况下,向所述目标清扫设备发送第一响应消息,其中,所述第一响应消息用于指示所述目标对象确定所述第一请求消息中携带的区域名称所标识的分区为待清扫区域,所述目标清扫区域为所述第一请求消息中携带的区域名称所标识的分区。
  9. 根据权利要求8所述的方法,其特征在于,在所述向所述目标对象发送所述第一请求消息之后,所述方法还包括:
    在未接收到所述第一语音指令的情况下,接收所述目标清扫设备发送的第二请求消息,其中,所述第二请求消息中携带有所述目标清扫设备中存储的目标区域地图中至少一个分区的区域名称,所述第二请求消息用于请求所述目标对象从所述至少一个分区的区域名称中选取待清扫区域的区域名称;
    向所述目标对象发送所述第二请求消息;
    在接收到所述目标对象的第二语音指令的情况下,向所述目标清扫设备发送第二响应信息,其中,所述第二响应信息用于指示所述目标对象从所述第二请求消息中携带的至少一个分区的区域名称中选取出的区域名称所标识的分区为待清扫区域,所述目标清扫区域为所述目标对象选取出的 待清扫区域的区域名称所标识的分区。
  10. 根据权利要求7所述的方法,其特征在于,在所述向目标清扫设备发送所述目标清扫指令之后,所述方法还包括:
    接收所述目标清扫设备的第三请求消息,其中,所述第三请求消息用于请求所述目标对象确定是否通过所述目标清扫设备对所述目标区域进行全面清扫;
    在接收到所述目标对象的第三语音指令的情况下,将所向所述目标清扫设备发送第三响应消息,其中,所述第三响应消息用于指示所述目标对象确定通过所述目标清扫设备对所述目标区域进行全面清扫。
  11. 一种语音指令的执行装置,其特征在于,包括:
    第一接收模块,用于接收智能设备发送的目标清扫指令,其中,所述目标清扫指令为所述智能设备对目标对象的目标语音指令进行转换所得到的指令;
    确定模块,用于确定与所述目标清扫指令对应的目标清扫区域,其中,所述目标清扫区域为目标清扫设备的待清扫区域;
    清扫模块,用于按照所述目标清扫指令对所述目标清扫区域执行清扫操作。
  12. 一种语音指令的执行装置,其特征在于,包括:
    第二接收模块,用于接收目标对象的目标语音指令;
    转化模块,用于将所述目标语音指令转化为目标清扫指令;
    发送模块,用于向目标清扫设备发送所述目标清扫指令,以控制所述目标清扫设备确定与所述目标清扫指令对应的目标清扫区域,并根据按照所述目标清扫指令,对所述目标清扫区域执行清扫操作。
  13. 一种计算机可读的存储介质,其特征在于,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至6任一项中所述的方法,或所述权利要求7至10任一项中所述的方法。
  14. 一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至6任一项中所述的方法,或所述权利要求7至10任一项中所述的方法。
PCT/CN2022/099073 2021-07-02 2022-06-16 语音指令的执行方法及装置、存储介质及电子装置 WO2023273898A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110753668.3A CN113485335A (zh) 2021-07-02 2021-07-02 语音指令的执行方法及装置、存储介质及电子装置
CN202110753668.3 2021-07-02

Publications (1)

Publication Number Publication Date
WO2023273898A1 true WO2023273898A1 (zh) 2023-01-05

Family

ID=77940720

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099073 WO2023273898A1 (zh) 2021-07-02 2022-06-16 语音指令的执行方法及装置、存储介质及电子装置

Country Status (2)

Country Link
CN (1) CN113485335A (zh)
WO (1) WO2023273898A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113485335A (zh) * 2021-07-02 2021-10-08 追觅创新科技(苏州)有限公司 语音指令的执行方法及装置、存储介质及电子装置

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108742332A (zh) * 2018-05-30 2018-11-06 上海与德通讯技术有限公司 一种清扫方法和机器人
CN109920424A (zh) * 2019-04-03 2019-06-21 北京石头世纪科技股份有限公司 机器人语音控制方法、装置、机器人和介质
CN110265004A (zh) * 2019-06-27 2019-09-20 青岛海尔科技有限公司 智能家居操作系统中目标终端的控制方法及装置
US20200152187A1 (en) * 2018-11-14 2020-05-14 International Business Machines Corporation Relaying voice commands between artificial intelligence (ai) voice response systems
CN111493745A (zh) * 2019-01-31 2020-08-07 北京奇虎科技有限公司 控制机器人工作的方法、电子设备及计算机可读存储介质
CN111562777A (zh) * 2019-01-29 2020-08-21 北京奇虎科技有限公司 一种扫地机器人的清扫路径规划方法和装置
CN111568307A (zh) * 2019-02-19 2020-08-25 北京奇虎科技有限公司 机器人执行清扫工作方法、设备及计算机可读存储介质
CN111920353A (zh) * 2020-07-17 2020-11-13 江苏美的清洁电器股份有限公司 清扫控制方法、清扫区域划分方法、装置、设备、存储介质
CN113485335A (zh) * 2021-07-02 2021-10-08 追觅创新科技(苏州)有限公司 语音指令的执行方法及装置、存储介质及电子装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102255273B1 (ko) * 2019-01-04 2021-05-24 삼성전자주식회사 청소 공간의 지도 데이터를 생성하는 장치 및 방법

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108742332A (zh) * 2018-05-30 2018-11-06 上海与德通讯技术有限公司 一种清扫方法和机器人
US20200152187A1 (en) * 2018-11-14 2020-05-14 International Business Machines Corporation Relaying voice commands between artificial intelligence (ai) voice response systems
CN111562777A (zh) * 2019-01-29 2020-08-21 北京奇虎科技有限公司 一种扫地机器人的清扫路径规划方法和装置
CN111493745A (zh) * 2019-01-31 2020-08-07 北京奇虎科技有限公司 控制机器人工作的方法、电子设备及计算机可读存储介质
CN111568307A (zh) * 2019-02-19 2020-08-25 北京奇虎科技有限公司 机器人执行清扫工作方法、设备及计算机可读存储介质
CN109920424A (zh) * 2019-04-03 2019-06-21 北京石头世纪科技股份有限公司 机器人语音控制方法、装置、机器人和介质
CN110265004A (zh) * 2019-06-27 2019-09-20 青岛海尔科技有限公司 智能家居操作系统中目标终端的控制方法及装置
CN111920353A (zh) * 2020-07-17 2020-11-13 江苏美的清洁电器股份有限公司 清扫控制方法、清扫区域划分方法、装置、设备、存储介质
CN113485335A (zh) * 2021-07-02 2021-10-08 追觅创新科技(苏州)有限公司 语音指令的执行方法及装置、存储介质及电子装置

Also Published As

Publication number Publication date
CN113485335A (zh) 2021-10-08

Similar Documents

Publication Publication Date Title
CN108683574B (zh) 一种设备控制方法、服务器和智能家居系统
CN107133094B (zh) 应用管理方法、移动终端及计算机可读存储介质
US20210315034A1 (en) Wireless connection establishment method, apparatus, device, and storage medium
RU2651164C2 (ru) Способ и устройство для настройки режима сценария интеллектуального устройства
JP6645438B2 (ja) 情報処理装置、情報処理方法およびコンピュータプログラム
CN105405442B (zh) 语音的识别方法、装置和设备
CN105340011A (zh) 链接设备的无线控制
JP7410166B2 (ja) サービス要求の処理方法及び関連装置
CN110932953A (zh) 智能家居控制方法、装置、计算机设备及存储介质
CN109556229B (zh) 空气调节设备的控制方法及空气调节设备
WO2023273898A1 (zh) 语音指令的执行方法及装置、存储介质及电子装置
US9509756B2 (en) Content storing device query
CN111161522B (zh) 处理遥控数据的方法、存储介质、计算机设备及遥控系统
CN106251873A (zh) 语音控制方法及语音控制系统
EP4280567A1 (en) Communication method and device
CN105229994A (zh) 并行接口选择
EP2770701A1 (en) Apparatus and method for providing a wireless communication in a portable terminal
CN110488626A (zh) 一种设备控制方法、控制装置、信号转换装置及存储介质
CN103648001A (zh) 一种切换方法及装置
CN112908321A (zh) 设备控制方法、装置、存储介质及电子装置
CN112751734A (zh) 基于清洁机器人的家电控制方法、清洁机器人及芯片
CN112671572B (zh) 智能设备配网的方法、装置、存储介质及电子装置
WO2014190487A1 (zh) 一种会话连接建立的方法、装置和系统
CN105828253A (zh) 音频播放系统中的无线连接控制方法及装置
CN106330985B (zh) 点对点设备及其搜索匹配方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22831717

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE