CN112581951A - 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
CN112581951A
CN112581951A CN202011196675.XA CN202011196675A CN112581951A CN 112581951 A CN112581951 A CN 112581951A CN 202011196675 A CN202011196675 A CN 202011196675A CN 112581951 A CN112581951 A CN 112581951A
Authority
CN
China
Prior art keywords
function
retrieval
sequence
text
executed
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.)
Granted
Application number
CN202011196675.XA
Other languages
Chinese (zh)
Other versions
CN112581951B (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.)
Xiaogou Electric Internet Technology Beijing Co Ltd
Original Assignee
Xiaogou Electric Internet Technology Beijing 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 Xiaogou Electric Internet Technology Beijing Co Ltd filed Critical Xiaogou Electric Internet Technology Beijing 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

Images

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 and device applied to a sweeper and electronic equipment. One embodiment of the method comprises: receiving user voice; performing keyword retrieval on the user voice to obtain a retrieval result; generating an execution function text based on the retrieval result; and controlling the function to be started based on the execution function text. In the embodiment, the instruction of the user can be obtained by performing keyword retrieval on the voice of the user. Thereafter, an execution function text is generated based on the search result. The voice control floor sweeper provides convenience for voice control to execute the functions of the floor sweeper. Finally, the function of starting the sweeper by aiming at the voice of the user is achieved, 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 execution function method and device applied to the sweeper and electronic equipment.
Background
With the rapid development of voice control technology, a large number of voice interaction devices appear on the market. The voice interaction equipment is used for being connected with various household electrical appliances (such as a sweeping robot) so that a user can interact with the voice interaction equipment through voice, and then the voice interaction equipment controls the household electrical appliances.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary 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 provide a method, an apparatus, and an electronic device for performing a voice control function of 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-controlled executive function method applied to a sweeper, the method including: receiving user voice; performing keyword retrieval on the user voice to obtain a retrieval result; generating an execution function text based on the retrieval result; and controlling the function to be started based on the execution function text.
In a second aspect, some embodiments of the present disclosure provide a voice control executive function device applied to a sweeper, the device including: 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 generating unit configured to generate an execution function text based on the retrieval result; a control unit configured to control a function to be turned on 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 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-described various embodiments of the present disclosure has the following advantageous effects: by performing keyword retrieval on the user voice, various instructions of the user for the target device can be captured. And then, generating an execution function text based on the retrieval result, so as to be beneficial to the identification of the target equipment and assist in starting the function. And then, controlling the corresponding function of the sweeper to be started based on the execution function text. The voice control floor sweeper has the advantages that the voice control floor sweeper execution function is realized, the functional requirements of a user for the floor sweeper are met, and the user experience is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a schematic diagram of one application scenario of a voice-controlled executive function method applied to a sweeper, in accordance with some embodiments of the present disclosure;
figure 2 is a flow diagram of some embodiments of a voice control executive function method applied to a sweeper according to the present disclosure;
FIG. 3 is a flow chart of further embodiments of a voice-controlled executive function method applied to a sweeper according to the present disclosure;
figure 4 is a schematic structural diagram 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 is to be understood that the 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 for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the 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 diagram of an application scenario of a voice control execution 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, a computing device 101 may receive user speech 102. Then, the computing device 101 may perform a keyword search on the user speech 102 to obtain a search result 103. Thereafter, the computing device 101 may generate an execute function text 104 based on the search result 103. Finally, the computing device 101 can control the sweeper function 105 to turn on based on the execute function text 104.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of a plurality of servers or terminal devices (e.g., 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 enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And 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 implementation needs dictate.
Continuing to refer to fig. 2, a flow 200 of some embodiments of a voice control 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 of fig. 1. The voice control execution function method applied to the sweeper comprises the following steps:
step 201, receiving a user voice.
In some embodiments, an execution body (such as the computing device 101 shown in fig. 1) of the voice control execution function method applied to the sweeper can receive user voice. Here, the user voice may be an instruction voice uttered by the user with respect to 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, performing keyword search on the user voice to obtain a search result.
In some embodiments, the execution subject may perform keyword search on the user speech. Here, the keyword may be a word for describing a function or order. As an example, the keyword may be "sweep the floor," may be "play music," or may be "sweep the floor first.
As an example, the search result may be "play music, then sweep floor".
Step 203, generating an execution function text based on the retrieval result.
In some embodiments, the execution subject may generate the execution function text by: first, the execution main body may obtain a search time of each keyword in the search result. Then, the execution subject may reorder the keywords in the search result based on the obtained search time, so as to obtain a ranked search result. Then, the execution subject may combine the keywords for describing the functions and the keywords for describing the order in the sorted search results to obtain at least one keyword group. Then, the execution body may number the at least one keyword group. Then, the execution main body may combine the numbered key phrases, and the execution main body may use the combined result as the execution function text.
As an example, the search result may be "play music, first, then start sweeping, then turn off music". The execution main body may acquire a search time "play music (13: 03: 46)" for each keyword in the search result, first (13: 03: 45), then (13: 03: 47), start sweeping (13: 03: 48), and then (13: 03: 49), turn off music (13: 03: 50) ". The execution agent may then reorder the keywords in the search results to obtain the ordered search results "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)". Thereafter, the execution subject may combine the keywords to obtain a keyword set "first (13: 03: 45), play music (13: 03: 46)", "then (13: 03: 47), start sweeping (13: 03: 48)", "then (13: 03: 49), close music (13: 03: 50)". Thereafter, the executive can number the keyword group to get "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 main body may regard the result as the execution function text.
And step 204, controlling the function to be started based on the execution function text.
In some embodiments, the execution main body may start the functions included in the execution function text one by one based on the execution function text.
One of the above-described various embodiments of the present disclosure has the following advantageous effects: by performing keyword retrieval on the user voice, various instructions of the user for the target device can be captured. And then, generating an execution function text based on the retrieval result, so as to be beneficial to the identification of the target equipment and assist in starting the function. And then, controlling the corresponding function of the sweeper to be started based on the execution function text. The voice control floor sweeper has the advantages that the voice control floor sweeper execution function is realized, the functional requirements of a user for the floor sweeper are met, and the user experience is improved.
With continued reference to fig. 3, a flow chart 300 of further embodiments of voice control executive function methods applied to a sweeper according to the present disclosure is shown. The method may be performed by the computing device 101 of fig. 1. The voice control execution function method applied to the sweeper comprises the following steps:
step 301, receiving a user voice.
In some embodiments, the specific implementation of step 301 and the technical effect brought by the implementation may refer to step 201 in those embodiments corresponding to fig. 2, and are not described herein again.
Step 302, performing voice recognition on the user voice to obtain a recognition text.
In some embodiments, the execution subject may perform speech recognition on the user speech to obtain a recognized text. Here, the voice recognition may be a technique of converting a voice signal into a corresponding text through a recognition and understanding process using a machine.
And 303, performing function keyword retrieval on the identification text based on a preset function keyword set to obtain a function retrieval result sequence.
In some embodiments, the execution main body may perform a function keyword search on the recognition 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 set in advance. As an example, the function keyword may be "sweep the floor" and may be "play music".
And 304, performing sequential keyword retrieval on the identification text based on a preset sequential keyword set to obtain a sequential retrieval result sequence.
In some embodiments, the execution main 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 set in advance. By way of example, the order key may be "first", may be "then", or may be "after".
And 305, combining the function retrieval result sequence and the sequence retrieval result sequence to obtain a retrieval result.
In some embodiments, the execution subject 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 subject may obtain the retrieval result by: step one, the execution main body can record the retrieval time of each function retrieval result in the function retrieval result sequence to obtain a function retrieval time sequence; secondly, the execution main body 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 main body may sort the function retrieval result in the function retrieval result sequence and the sequential retrieval result in the sequential retrieval result sequence based on the function retrieval time sequence and the sequential retrieval time sequence, and the execution main body may take the sorted results as the retrieval results.
And step 306, generating an execution function text based on the retrieval result.
In some embodiments, the execution subject may generate the execution function text based on the search result by: first, the execution main body may sort and combine the function retrieval time series and the sequence retrieval time series according to time sequence to obtain a function time series. Then, the execution main body may rearrange the function search result and the sequential search result in the search results based on the function time series, and use the rearranged result as an execution function text.
And 307, performing function analysis on the execution function text to obtain a name set of the function to be executed.
In some embodiments, the execution main body may perform function analysis on the execution function text to obtain a set of names of functions to be executed. Here, the function analysis may be to extract a function keyword from the execution function text.
And 308, selecting a function with the same name as the name of the function to be executed from the target function set as a target function to be executed based on the name set of the function to be executed to obtain a target function set to be executed.
In some embodiments, the execution agent may select a function having the same name as the name of the function to be executed from a target function set based on the name set of the function to be executed. Here, the target function set may be a name set of functions supported by the above-described target device.
Step 309, controlling each target to-be-executed function in the target to-be-executed function set to be started based on the execution function text.
In some embodiments, the execution main body may control, based on the execution function text, each target to-be-executed function in the target to-be-executed function set to be turned on.
In some optional implementation manners of some embodiments, the executing main body may control each target to-be-executed function in the target to-be-executed function set to be turned on by: first, the execution main body may obtain 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 a 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 embodies steps of how to generate the search result and expand the control function. Therefore, the scheme of the embodiments can generate more complete retrieval result information by retrieving the preset function keywords and the preset sequence keywords. Thus, the operation control of the functions required by the user is facilitated.
With further reference to fig. 4, as an implementation of the above methods for the above drawings, the present disclosure provides some embodiments of a voice control execution function device applied to a sweeper, which correspond to the above method embodiments of fig. 2, and which can be applied to various electronic devices.
As shown in fig. 4, the voice control execution function device 400 applied to the sweeper of some embodiments includes: receiving section 401, retrieving section 402, generating section 403, and control section 404. Wherein, the receiving unit 401 is configured to receive a user voice; a retrieval unit 402 configured to perform keyword retrieval on the user speech to obtain a retrieval result; a generating unit 403 configured to generate an execution function text based on the retrieval result; a control unit 404 configured to control a function to be turned on based on the execution function text.
In some optional implementations of some embodiments, the retrieving unit 402 of the voice control performing function device 400 applied to the sweeper comprises: the recognition subunit is configured to perform voice recognition on the user voice to obtain a recognition text; the first retrieval subunit is configured to perform function keyword retrieval on the identification text based on a preset function keyword set to obtain a function 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 combination subunit is configured to combine the function search result sequence and the sequence search result sequence to obtain a search result.
In some optional implementations of some embodiments, the retrieving unit 402 of the voice control execution function apparatus 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; and generating the retrieval result based on the function retrieval time sequence and the sequence retrieval time sequence.
In some optional implementations of some embodiments, the generating unit 403 of the voice control executive function device 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 retrieval results and the sequential retrieval results in the retrieval 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 execution function device 400 applied to the sweeper is further configured to: performing function analysis on the execution function text to obtain a name set of the function to be executed; selecting a function with the same name as the name of the function to be executed from a target function set as a target function to be executed based on the name set of the function to be executed to obtain a target function set to be executed; and controlling each target to-be-executed function in the target to-be-executed 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 execution function device 400 applied to the sweeper is further configured to: acquiring an interface 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 block corresponding to each interface in the interface set to run based on the interface set.
It will be understood that the elements described in the apparatus 400 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 400 and the units included therein, and will not be described herein again.
Referring now to FIG. 5, a block diagram of an electronic device (e.g., computing device 101 of FIG. 1)500 suitable for use in implementing some embodiments of the present disclosure is shown. The server shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with 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 necessary 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 through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 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 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 5 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams 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 illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program, when executed by the processing device 501, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 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, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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, optical cables, RF (radio frequency), etc., 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 interconnect with any form or medium of digital data communication (e.g., a communications 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 network.
The computer readable medium may be embodied in the apparatus; or may exist separately without being assembled 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; performing keyword retrieval on the user voice to obtain a retrieval result; generating an execution function text based on the retrieval result; and controlling the function to be started based on the execution function text.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, a retrieving unit, a generating unit, and a controlling unit. Where the names of these units do not in some cases constitute a limitation of the unit itself, for example, a receiving unit may also be described as a "unit receiving user speech".
The functions described herein above 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: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology 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-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A voice control execution function method applied to a sweeper comprises the following steps:
receiving user voice;
performing keyword retrieval on the user voice to obtain a retrieval result;
generating an execution function text based on the retrieval result;
and controlling the function to be started based on the execution function text.
2. The method of claim 1, wherein the performing keyword search on the user speech to obtain a search result comprises:
carrying out 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;
based on a preset sequence keyword set, carrying out sequence keyword retrieval on the identification text to obtain a sequence retrieval result sequence;
and combining the function retrieval result sequence and the sequence retrieval result sequence to obtain a retrieval result.
3. The method of claim 2, wherein the performing keyword search on the user speech to obtain a search result comprises:
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;
and generating the retrieval result based on the function retrieval time sequence and the sequence retrieval time sequence.
4. The method of claim 1, wherein generating an execute 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 retrieval results and the sequential retrieval results in the retrieval results based on the function time sequence to generate an execution function text.
5. The method of claim 1, wherein said controlling a function to turn on based on said execute function text comprises:
performing function analysis on the execution function text to obtain a name set of the function to be executed;
selecting a function with the same name as the name of the function to be executed from a target function set as a target function to be executed based on the name set of the function to be executed to obtain a target function set to be executed;
and controlling each target to-be-executed function in the target to-be-executed function set to be started based on the execution function text.
6. The method according to claim 1, wherein the controlling of turning on each target to-be-executed function in the set of target to-be-executed functions comprises:
acquiring an interface 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 block corresponding to each interface in the interface set to run based on the interface set.
7. A voice control executive function device applied to a sweeper comprises:
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 generating unit configured to generate an execution function text based on the retrieval result;
a control unit configured to control a function to be turned on based on the execution function text.
8. A voice control execution function device, wherein the retrieval unit includes:
the recognition subunit is configured to perform voice recognition on the user voice to obtain a recognition text;
the first retrieval subunit is configured to perform function keyword retrieval on the identification text based on a preset function keyword set to obtain a function 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 combination subunit is configured to combine the function search result sequence and the sequence search result sequence to obtain a search result.
9. 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, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
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 true CN112581951A (en) 2021-03-30
CN112581951B 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 (5)

* 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
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
CN108320747A (en) * 2018-02-08 2018-07-24 广东美的厨房电器制造有限公司 Appliances equipment control method, equipment, terminal and computer readable storage medium
CN109147801A (en) * 2018-09-30 2019-01-04 深圳市元征科技股份有限公司 voice interactive method, system, terminal and storage medium

Patent Citations (5)

* 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
CN103472990A (en) * 2013-08-27 2013-12-25 小米科技有限责任公司 Appliance, and method and device for controlling same
CN108305626A (en) * 2018-01-31 2018-07-20 百度在线网络技术(北京)有限公司 The sound control method and device of application program
CN108320747A (en) * 2018-02-08 2018-07-24 广东美的厨房电器制造有限公司 Appliances equipment control method, equipment, terminal and computer readable storage medium
CN109147801A (en) * 2018-09-30 2019-01-04 深圳市元征科技股份有限公司 voice interactive method, system, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王旭勇;: "基于语音分析的智能质检关键词提取方法设计", 电子世界, no. 19, 8 October 2018 (2018-10-08) *

Also Published As

Publication number Publication date
CN112581951B (en) 2024-06-21

Similar Documents

Publication Publication Date Title
US11409425B2 (en) Transactional conversation-based computing system
US11308942B2 (en) Method and apparatus for operating smart terminal
US11270690B2 (en) Method and apparatus for waking up device
CN112037792B (en) Voice recognition method and device, electronic equipment and storage medium
CN109829164B (en) Method and device for generating text
CN111968648B (en) Voice recognition method and device, readable medium and electronic equipment
CN114118076A (en) Text generation method and device, electronic equipment and computer readable medium
CN111949850A (en) Multi-source data acquisition method, device, equipment and storage medium
CN112102836B (en) Voice control screen display method and device, electronic equipment and medium
CN113468344A (en) Entity relationship extraction method and device, electronic equipment and computer readable medium
CN114116247A (en) Redis-based message processing method, device, system, server and medium
CN113299285A (en) Device control method, device, electronic device and computer-readable storage medium
CN112581951B (en) Voice control execution function method and device applied to sweeper and electronic equipment
CN112614486B (en) Voice control execution function method and device applied to sweeper and electronic equipment
CN113709506A (en) Multimedia playing method, device, medium and program product based on cloud mobile phone
CN113064704A (en) Task processing method and device, electronic equipment and computer readable medium
CN112669816A (en) Model training method, speech recognition method, device, medium and equipment
CN112115154A (en) Data processing and data query method, device, equipment and computer readable medium
CN110688529A (en) Method and device for retrieving video and electronic equipment
CN112203113B (en) Video stream structuring method and device, electronic equipment and computer readable medium
CN111930229B (en) Man-machine interaction method and device and electronic equipment
CN116595285B (en) Route generation method, device, computer equipment and storage medium
CN111292766B (en) Method, apparatus, electronic device and medium for generating voice samples
CN114446295A (en) Voice data set generation method, device, equipment and computer readable medium
CN111913737A (en) Method, device, equipment and storage medium for constructing data service interface

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

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

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant