CN112581951B - Voice control execution function method and device applied to sweeper and electronic equipment - Google Patents

Voice control execution function method and device applied to sweeper and electronic equipment Download PDF

Info

Publication number
CN112581951B
CN112581951B CN202011196675.XA CN202011196675A CN112581951B CN 112581951 B CN112581951 B CN 112581951B CN 202011196675 A CN202011196675 A CN 202011196675A CN 112581951 B CN112581951 B CN 112581951B
Authority
CN
China
Prior art keywords
function
retrieval
sequence
text
keyword
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011196675.XA
Other languages
Chinese (zh)
Other versions
CN112581951A (en
Inventor
檀冲
沈荻
张书新
李贝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Puppy Vacuum Cleaner Group Co Ltd
Original Assignee
Beijing Puppy Vacuum Cleaner Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Puppy Vacuum Cleaner Group Co Ltd filed Critical Beijing Puppy Vacuum Cleaner Group Co Ltd
Priority to CN202011196675.XA priority Critical patent/CN112581951B/en
Publication of CN112581951A publication Critical patent/CN112581951A/en
Application granted granted Critical
Publication of CN112581951B publication Critical patent/CN112581951B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • 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/24Floor-sweeping machines, motor-driven
    • 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
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • G10L2015/223Execution procedure of a spoken command

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the disclosure discloses a voice control execution function method, a voice control execution function device and electronic equipment applied to a sweeper. One embodiment of the method comprises the following steps: receiving user voice; keyword retrieval is carried out on the user voice, and a retrieval result is obtained; generating an execution function text based on the search result; and controlling the opening of the function based on the execution function text. According to the embodiment, the user instruction can be obtained by carrying out keyword retrieval on the voice of the user. Thereafter, the execution function text is generated based on the search result. The voice control floor sweeping machine provides convenience for voice control to execute the floor sweeping machine function. Finally, the function of starting the sweeper aiming at the voice of the user is realized, and the user experience is improved.

Description

Voice control execution function method and device applied to sweeper and electronic equipment
Technical Field
The embodiment of the disclosure relates to the technical field of voice control of a sweeper, in particular to a voice control executive function method, a voice control executive function device and electronic equipment applied to the sweeper.
Background
With the rapid development of voice control technology, a large number of voice interaction devices are appeared on the market. The voice interaction equipment is used for being connected with various household appliances (such as a sweeping robot) so that a user can interact with the voice interaction equipment through voice, and then the household appliances are controlled by the voice interaction equipment.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a method, an apparatus, and an electronic device for performing a function by voice control applied to a sweeper, so as to solve the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a voice control performing function method applied to a sweeper, the method including: receiving user voice; keyword retrieval is carried out on the user voice, and a retrieval result is obtained; generating an execution function text based on the search result; and controlling the opening of the function based on the execution function text.
In a second aspect, some embodiments of the present disclosure provide a voice control executive function device for a sweeper, the device comprising: a receiving unit configured to receive a user voice; the retrieval unit is configured to perform keyword retrieval on the user voice to obtain a retrieval result; a generation unit configured to generate an execution function text based on the search result; and the control unit is configured to control the function to be started based on the execution function text.
In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method as described in the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program when executed by a processor implements the method as described in the first aspect.
One of the above embodiments of the present disclosure has the following advantageous effects: by keyword retrieval of the user's voice, various instructions of the user for the target device can be captured. And then, generating an execution function text based on the search result, facilitating target equipment identification and assisting in starting a function. And then, based on the text of the execution function, controlling the corresponding function of the sweeper to be started. The voice control floor sweeping machine executing function is realized, the functional requirement of a user on the floor sweeping machine is met, and the user experience is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a schematic illustration of one application scenario of a voice control executive function method applied to a sweeper in accordance with some embodiments of the present disclosure;
FIG. 2 is a flow chart of some embodiments of a voice control executive function method applied to a sweeper in accordance with the present disclosure;
FIG. 3 is a flow chart of other embodiments of a method of voice control executive function applied to a sweeper in accordance with the present disclosure;
FIG. 4 is a schematic structural view of some embodiments of a voice control executive function device applied to a sweeper according to the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic view of an application scenario of a voice control performing function method applied to a sweeper according to some embodiments of the present disclosure. The method can be applied to a sweeper, intelligent mobile equipment and the like.
In the application scenario of fig. 1, first, computing device 101 may receive user speech 102. The computing device 101 may then perform a keyword search on the user speech 102 to obtain a search result 103. Thereafter, the computing device 101 may generate the execution function text 104 based on the search result 103. Finally, the computing device 101 may control the functionality 105 of the sweeper to be turned on based on the execution function text 104.
The computing device 101 may be hardware or software. When the computing device is hardware, the computing device may be implemented as a distributed cluster formed by a plurality of servers or terminal devices (such as a sweeper, etc.), or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices listed above. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention is not particularly limited herein.
It should be understood that the number of computing devices in fig. 1 is merely illustrative. There may be any number of computing devices, as desired for an implementation.
With continued reference to fig. 2, a flow 200 of some embodiments of a voice-controlled executive function method applied to a sweeper in accordance with the present disclosure is shown. The method may be performed by the computing device 101 in fig. 1. The voice control execution function method applied to the sweeper comprises the following steps:
step 201, user speech is received.
In some embodiments, an execution body (e.g., computing device 101 shown in fig. 1) of a voice control execution function method applied to a sweeper may receive user voice. Here, the user voice may be an instruction voice issued by the user for the target device. The target device may be a multi-function robot. As an example, the user voice may be "turn on the sweeping function".
Step 202, keyword retrieval is carried out on the user voice, and a retrieval result is obtained.
In some embodiments, the executing entity may perform keyword retrieval on the user voice. Here, the keywords may be words for describing functions or sequences. As an example, the keyword may be "sweep," may be "play music," or may be "sweep first.
As an example, the search result may be "play music, followed by sweeping.
And 203, generating an execution function text based on the search result.
In some embodiments, the execution subject may generate the execution function text by: first, the execution body may acquire a search time for each keyword in the search result. Then, the execution subject may reorder the keywords in the search result based on the obtained search time, to obtain a ranked search result. Then, the execution body may combine the keywords for describing the functions and the keywords for describing the sequence in the sorted search results to obtain at least one keyword group. Then, the execution body may number the at least one keyword group. And then, the execution body can combine the numbered key word groups, and the execution body can take the combined result as the execution function text.
As an example, the search result may be "play music, then start sweeping, then turn off music". The execution subject may obtain the search time "play music (13:03:46), first (13:03:45), then (13:03:47), start sweeping (13:03:48), then (13:03:49), turn off music (13:03:50)" of each keyword in the search result. Then, the execution body may reorder the keywords in the search result to obtain an ordered search result, "first (13:03:45), play music (13:03:46), then (13:03:47), start sweeping (13:03:48), then (13:03:49), and turn off music (13:03:50)". Then, the execution subject may combine the keywords to obtain a keyword group "first (13:03:45), play music (13:03:46)", "then (13:03:47), start sweeping (13:03:48)", "then (13:03:49)", turn off music (13:03:50) ". Then, the execution subject may number the key word groups to obtain "1, first (13:03:45), play music (13:03:46) 2, then (13:03:47), start sweeping (13:03:48) 3, then (13:03:49), turn off music (13:03:50)". The execution body may use the result as the execution function text.
Step 204, controlling the opening of the function based on the text of the executing function.
In some embodiments, the execution body may start the functions included in the execution function text one by one based on the execution function text.
One of the above embodiments of the present disclosure has the following advantageous effects: by keyword retrieval of the user's voice, various instructions of the user for the target device can be captured. And then, generating an execution function text based on the search result, facilitating target equipment identification and assisting in starting a function. And then, based on the text of the execution function, controlling the corresponding function of the sweeper to be started. The voice control floor sweeping machine executing function is realized, the functional requirement of a user on the floor sweeping machine is met, and the user experience is improved.
With continued reference to fig. 3, a flowchart 300 of further embodiments of a voice-controlled executive function method applied to a sweeper in accordance with the present disclosure is shown. The method may be performed by the computing device 101 in fig. 1. The voice control execution function method applied to the sweeper comprises the following steps:
Step 301, user speech is received.
In some embodiments, the specific implementation of step 301 and the technical effects thereof may refer to step 201 in those embodiments corresponding to fig. 2, which are not described herein.
Step 302, performing voice recognition on the user voice to obtain a recognition text.
In some embodiments, the executing body may perform voice recognition on the user voice to obtain a recognition text. Here, the voice recognition may be a technology of converting a voice signal into a corresponding text through a recognition and understanding process using a machine.
Step 303, performing functional keyword retrieval on the identification text based on a preset functional keyword set to obtain a functional retrieval result sequence.
In some embodiments, the execution body may perform a function keyword search on the identified text based on a preset function keyword set, to obtain a function search result sequence. Here, the preset function keyword may be an instruction word for describing a function included in a user voice for the target device, which is preset. As an example, the function keyword may be "sweep" and may be "play music".
And step 304, based on a preset sequence keyword set, performing sequence keyword search on the identification text to obtain a sequence of sequence search results.
In some embodiments, the execution body may perform keyword search on the recognition text based on a preset sequential keyword set to obtain a sequential search result sequence. Here, the preset may be an instruction word for describing the order contained in a user voice for the target device, which is set in advance. As an example, the order keyword may be "first", may be "then", or may be "after".
And 305, combining the function search result sequence and the sequence search result sequence to obtain a search result.
In some embodiments, the execution body may combine the function search result sequence and the sequential search result sequence to obtain a search result.
In some optional implementations of some embodiments, the executing entity may obtain the search result through the following steps: the first step, the execution subject can record the retrieval time of each function retrieval result in the function retrieval result sequence to obtain a function retrieval time sequence; the second step, the execution subject can record the retrieval time of each sequential retrieval result in the sequential retrieval result sequence to obtain a sequential retrieval time sequence; third, the execution body may sort the function search result in the function search result sequence and the sequential search result in the sequential search result sequence based on the function search time sequence and the sequential search time sequence, and the execution body may use the sorted result as the search result.
And 306, generating an execution function text based on the search result.
In some embodiments, the execution body may generate the execution function text by: first, the execution body may sort and combine the function search time series and the sequence search time series according to time sequence, thereby obtaining a function time series. Then, the execution subject may rearrange the function search result and the sequential search result among the search results based on the function time series, and use the arranged result as an execution function text.
Step 307, performing functional analysis on the execution function text to obtain a set of to-be-executed function names.
In some embodiments, the execution body may perform a function analysis on the execution function text to obtain a set of names of functions to be executed. Here, the function analysis may be extracting the function keyword in the execution function text.
Step 308, based on the to-be-executed function name set, selecting a function with the same name as the to-be-executed function from the target function set as a target to-be-executed function, thereby obtaining a target to-be-executed function set.
In some embodiments, the executing entity may select, from the target function set, a function that is the same as the to-be-executed function name based on the to-be-executed function name set. Here, the target function set may be a name set of functions supported by the target device described above.
And step 309, controlling each target function to be executed in the target function set to be started based on the execution function text.
In some embodiments, the execution body may control each target to-be-executed function in the target to-be-executed function set to be turned on based on the execution function text.
In some optional implementations of some embodiments, the executing entity may control each target to-be-executed function in the target to-be-executed function set to be turned on by: firstly, the executing body may acquire an interface corresponding to each target to-be-executed function in the target to-be-executed function set, so as to obtain an interface set. Then, the execution body may control the code block corresponding to each interface in the interface set to run based on the interface set.
As can be seen from fig. 3, compared with the description of some embodiments corresponding to fig. 2, the flow 300 of the voice control execution function method applied to the sweeper in some embodiments corresponding to fig. 3 reflects the steps of expanding how to generate the search result and control function opening. Therefore, the schemes of the embodiments can generate more complete search result information through searching the preset function keywords and the preset sequence keywords. Thereby facilitating the control of the operation of the functions required by the user.
With further reference to fig. 4, as an implementation of the method described above for each of the above figures, the present disclosure provides some embodiments of a voice control executive function device for a sweeper, which device embodiments correspond to those described above for fig. 2, and which device is particularly applicable to various electronic devices.
As shown in fig. 4, a voice control performing function apparatus 400 applied to a sweeper of some embodiments includes: a receiving unit 401, a retrieving unit 402, a generating unit 403 and a control unit 404. Wherein the receiving unit 401 is configured to receive a user voice; a search unit 402, configured to perform keyword search on the user voice to obtain a search result; a generating unit 403 configured to generate an execution function text based on the search result; a control unit 404 configured to control the opening of a function based on the execution function text.
In some optional implementations of some embodiments, the retrieval unit 402 of the voice control executive function device 400 applied to the sweeper includes: a recognition subunit configured to perform speech recognition on the user speech to obtain a recognition text; the first retrieval subunit is configured to perform functional keyword retrieval on the identification text based on a preset functional keyword set to obtain a functional retrieval result sequence; the second retrieval subunit is configured to perform sequential keyword retrieval on the identification text based on a preset sequential keyword set to obtain a sequential retrieval result sequence; and the combining subunit is configured to combine the functional search result sequence and the sequential search result sequence to obtain a search result.
In some optional implementations of some embodiments, the retrieval unit 402 of the voice control executive function device 400 applied to the sweeper is further configured to: recording the retrieval time of each function retrieval result in the function retrieval result sequence to obtain a function retrieval time sequence; recording the retrieval time of each sequential retrieval result in the sequential retrieval result sequence to obtain a sequential retrieval time sequence; the search result is generated based on the function search time series and the sequential search time series.
In some optional implementations of some embodiments, the generating unit 403 of the voice control performing function apparatus 400 applied to the sweeper is further configured to: combining the function retrieval time sequence and the sequence retrieval time sequence to obtain a function time sequence; and rearranging the function search result and the sequential search result in the search results based on the function time sequence to generate an execution function text.
In some optional implementations of some embodiments, the control unit 403 of the voice control executive function device 400 applied to the sweeper is further configured to: performing functional analysis on the execution function text to obtain a to-be-executed function name set; selecting a function with the same name as the function to be executed from a target function set based on the function name set to be executed as a target function to be executed, so as to obtain a target function set to be executed; and controlling each target function to be executed in the target function set to be started based on the execution function text.
In some optional implementations of some embodiments, the control unit 403 of the voice control executive function device 400 applied to the sweeper is further configured to: acquiring interfaces corresponding to each target to-be-executed function in the target to-be-executed function set to obtain an interface set; and controlling the code blocks corresponding to each interface in the interface set to run based on the interface set.
It will be appreciated that the elements described in the apparatus 400 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting benefits described above with respect to the method are equally applicable to the apparatus 400 and the units contained therein, and are not described in detail herein.
Referring now to FIG. 5, a schematic diagram of an electronic device (e.g., computing device 101 of FIG. 1) 500 suitable for use in implementing some embodiments of the disclosure is shown. The server illustrated in fig. 5 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 5, the electronic device 500 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 501, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM503, various programs and data required for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM503 are connected to each other via a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
In general, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 508 including, for example, magnetic tape, hard disk, etc.; and communication means 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 shows an electronic device 500 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 5 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via the communications device 509, or from the storage device 508, or from the ROM 502. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 501.
It should be noted that, in some embodiments of the present disclosure, the computer readable medium may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be embodied in the apparatus; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving user voice; keyword retrieval is carried out on the user voice, and a retrieval result is obtained; generating an execution function text based on the search result; and controlling the opening of the function based on the execution function text.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a receiving unit, a retrieving unit, a generating unit, and a control unit. The names of these units do not constitute a limitation on the unit itself in some cases, for example, the receiving unit may also be described as "unit receiving user speech".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (7)

1. A voice control executive function method applied to a sweeper comprises the following steps:
receiving user voice;
Keyword retrieval is carried out on the user voice, and a retrieval result is obtained;
Generating an execution function text based on the search result;
based on the execution function text, controlling the opening of a function;
The keyword retrieval is performed on the user voice to obtain a retrieval result, and the keyword retrieval method comprises the following steps:
Performing voice recognition on the user voice to obtain a recognition text;
Based on a preset function keyword set, performing function keyword retrieval on the identification text to obtain a function retrieval result sequence;
recording the retrieval time of each function retrieval result in the function retrieval result sequence to obtain a function retrieval time sequence;
Based on a preset sequence keyword set, performing sequence keyword retrieval on the identification text to obtain a sequence of sequence retrieval results;
recording the retrieval time of each sequential retrieval result in the sequential retrieval result sequence to obtain a sequential retrieval time sequence;
The search result is generated based on the function search time series and the sequential search time series.
2. The method of claim 1, wherein the generating execution function text based on the search result comprises:
Combining the function retrieval time sequence and the sequence retrieval time sequence to obtain a function time sequence;
and rearranging the function search result and the sequential search result in the search results based on the function time sequence to generate an execution function text.
3. The method of claim 1, wherein the controlling function opening based on the execution function text comprises:
performing functional analysis on the execution function text to obtain a to-be-executed function name set;
Selecting a function with the same name as the function to be executed from a target function set based on the function name set to be executed as a target function to be executed, so as to obtain a target function set to be executed;
And controlling each target function to be executed in the target function set to be started based on the execution function text.
4. A method according to claim 3, wherein said controlling each target to perform function of the set of target to perform functions to be turned on comprises:
Acquiring interfaces corresponding to each target to-be-executed function in the target to-be-executed function set to obtain an interface set;
And controlling the code blocks corresponding to each interface in the interface set to run based on the interface set.
5. A voice control executive function device for a sweeper, comprising:
a receiving unit configured to receive a user voice;
the retrieval unit is configured to perform keyword retrieval on the user voice to obtain a retrieval result;
a generation unit configured to generate an execution function text based on the search result;
a control unit configured to control a function to be turned on based on the execution function text;
Wherein the retrieval unit includes:
a recognition subunit configured to perform speech recognition on the user speech to obtain a recognition text;
the first retrieval subunit is configured to perform functional keyword retrieval on the identification text based on a preset functional keyword set to obtain a functional retrieval result sequence;
the second retrieval subunit is configured to perform sequential keyword retrieval on the identification text based on a preset sequential keyword set to obtain a sequential retrieval result sequence;
The retrieval unit is further configured to: recording the retrieval time of each function retrieval result in the function retrieval result sequence to obtain a function retrieval time sequence; recording the retrieval time of each sequential retrieval result in the sequential retrieval result sequence to obtain a sequential retrieval time sequence; the search result is generated based on the function search time series and the sequential search time series.
6. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-4.
7. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-4.
CN202011196675.XA 2020-10-30 2020-10-30 Voice control execution function method and device applied to sweeper and electronic equipment Active CN112581951B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011196675.XA CN112581951B (en) 2020-10-30 2020-10-30 Voice control execution function method and device applied to sweeper and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011196675.XA CN112581951B (en) 2020-10-30 2020-10-30 Voice control execution function method and device applied to sweeper and electronic equipment

Publications (2)

Publication Number Publication Date
CN112581951A CN112581951A (en) 2021-03-30
CN112581951B true CN112581951B (en) 2024-06-21

Family

ID=75120383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011196675.XA Active CN112581951B (en) 2020-10-30 2020-10-30 Voice control execution function method and device applied to sweeper and electronic equipment

Country Status (1)

Country Link
CN (1) CN112581951B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103472990A (en) * 2013-08-27 2013-12-25 小米科技有限责任公司 Appliance, and method and device for controlling same
CN108320747A (en) * 2018-02-08 2018-07-24 广东美的厨房电器制造有限公司 Appliances equipment control method, equipment, terminal and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014006306A (en) * 2012-06-21 2014-01-16 Sharp Corp Display device, television receiver, method of controlling display device, program, and recording medium
CN108305626A (en) * 2018-01-31 2018-07-20 百度在线网络技术(北京)有限公司 The sound control method and device of application program
CN109147801B (en) * 2018-09-30 2021-08-10 深圳市元征科技股份有限公司 Voice interaction method, system, terminal and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103472990A (en) * 2013-08-27 2013-12-25 小米科技有限责任公司 Appliance, and method and device for controlling same
CN108320747A (en) * 2018-02-08 2018-07-24 广东美的厨房电器制造有限公司 Appliances equipment control method, equipment, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN112581951A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN110677711B (en) Video dubbing method and device, electronic equipment and computer readable medium
CN110807515A (en) Model generation method and device
CN109036425A (en) Method and apparatus for operating intelligent terminal
CN112037792B (en) Voice recognition method and device, electronic equipment and storage medium
CN111738010B (en) Method and device for generating semantic matching model
WO2022151915A1 (en) Text generation method and apparatus, and electronic device and computer-readable medium
US11706172B2 (en) Method and device for sending information
CN111968648B (en) Voice recognition method and device, readable medium and electronic equipment
CN111353601A (en) Method and apparatus for predicting delay of model structure
CN112102836B (en) Voice control screen display method and device, electronic equipment and medium
CN112256372B (en) Information processing method and device and electronic equipment
CN113468344A (en) Entity relationship extraction method and device, electronic equipment and computer readable medium
CN111612434B (en) Method, apparatus, electronic device and medium for generating processing flow
CN114116247A (en) Redis-based message processing method, device, system, server and medium
CN112581951B (en) Voice control execution function method and device applied to sweeper and electronic equipment
CN116909539A (en) Visual programming method, device, equipment and storage medium
CN113299285A (en) Device control method, device, electronic device and computer-readable storage medium
CN112614486B (en) Voice control execution function method and device applied to sweeper and electronic equipment
CN116072108A (en) Model generation method, voice recognition method, device, medium and equipment
CN112669816B (en) Model training method, voice recognition method, device, medium and equipment
CN111399902B (en) Client source file processing method and device, readable medium and electronic equipment
CN111666449B (en) Video retrieval method, apparatus, electronic device, and computer-readable medium
CN111754984B (en) Text selection method, apparatus, device and computer readable medium
CN110688529A (en) Method and device for retrieving video and electronic equipment
CN110908867B (en) Task completion judging method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: 7-605, 6th floor, building 1, yard a, Guanghua Road, Chaoyang District, Beijing 100026

Applicant after: Beijing dog vacuum cleaner Group Co.,Ltd.

Address before: 7-605, 6th floor, building 1, yard a, Guanghua Road, Chaoyang District, Beijing 100026

Applicant before: PUPPY ELECTRONIC APPLIANCES INTERNET TECHNOLOGY (BEIJING) Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant