Voice control method, device, server, terminal equipment and storage medium
By receiving and processing the semantic information of the voice command recognition results in the voice control system, and directly transmitting and executing the instructions to the second terminal, the problem of prolonged response time of dialogue management in multi-device joint dialogue is solved, and a faster system response is achieved. .
Patent Information
- Application Number
- CN201911417229.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2039-12-31
AI Technical Summary
When multi-device joint dialogue occurs, dialogue management in the existing technology requires multiple stages of repeated processing, resulting in prolonged system response time and increased dialogue delay.
By receiving the voice instruction recognition result sent by the first terminal and performing semantic processing, the operation information is obtained and sent to the first terminal. The first terminal executes the first semantic instruction and sends the second semantic instruction to the second terminal directly. Receive and process the execution command fed back by the second terminal, eliminating the need to process the second semantic instruction and shortening the conversation delay.
The response time of the dialogue system is improved, the dialogue delay is reduced, and the user experience is improved.
Smart Images

Figure CN113127609B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of terminal technology, and in particular, relates to a voice control method, apparatus, server, terminal device and storage medium. Background Art
[0002] In the human-computer natural language dialogue system, the voice assistant is an intelligent application that can be installed on smart terminal devices such as mobile phones, TVs, tablets, computers or speakers. It receives the user's audio signal, performs voice recognition, and makes judgments or responses. The dialogue process of the voice assistant being awakened, voice recognition and response requires cloud support from the voice database. The Dialog Manager (DM) can be used as a cloud service to maintain and update the process and status of the dialogue. Its input is the utterance and related context, and after understanding the dialogue, it outputs the system response.
[0003] With the development of the Internet and the Internet of Things, based on the network connection between multiple devices, they can control each other through voice, use multiple devices to conduct cross-device joint dialogues, and form a full-scene conversation scenario; for example, voice interaction with a mobile phone, controlling the TV through the mobile phone to perform corresponding task operations, etc.
[0004] Currently, when using multiple devices for cross-device joint dialogue, the dialogue management will repeatedly process the user's task instructions for multiple devices in multiple stages, which prolongs the system's response time and increases the delay of the dialogue. Summary of the invention
[0005] The embodiments of the present application provide a voice control method, apparatus, server, terminal device and storage medium, which can solve the problem that when multiple devices have a joint dialogue, the dialogue management will repeatedly process the user's task instructions in multiple stages, thereby prolonging the system response time and increasing the dialogue delay.
[0006] In a first aspect, an embodiment of the present application provides a voice control method, comprising:
[0007] Receive a voice command recognition result sent by a first terminal; perform semantic processing on the voice command recognition result to obtain operation information, wherein the operation information includes a first semantic instruction and a second semantic instruction; send the first semantic instruction and the second semantic instruction to the first terminal, wherein the first semantic instruction is used to instruct the first terminal to send the second semantic instruction to the second terminal; receive an execution command fed back by the second terminal after the second terminal recognizes the second semantic instruction, and send the business logic corresponding to the second semantic instruction to the second terminal according to the execution command.
[0008] By adopting the voice control method provided in the present application, a server is used as the execution subject. By receiving the voice command recognition result sent by the first terminal, the voice command recognition result is semantically processed to obtain the operation information to be executed in the voice command recognition result, and the operation information is sent to the first terminal; the first terminal executes the first semantic instruction in the operation information, and sends the second semantic instruction in the operation information to the second terminal; after the second terminal recognizes the second semantic instruction, the server can directly receive the execution command fed back by the second terminal, call the business logic corresponding to the second semantic instruction according to the execution command, and send the business logic to the second terminal, thereby eliminating the processing flow of the second semantic instruction, shortening the dialogue delay, and improving the response time of the dialogue system.
[0009] In a possible implementation manner of the first aspect, performing semantic processing on the voice instruction recognition result to obtain the operation information includes:
[0010] Identify the voice command recognition result, and obtain the target intent and target sub-intention of the voice command recognition result; pre-verify the target sub-intention based on the target intent, and obtain the response logic of the target intent and the trial operation result of the target sub-intention; use the response logic as the first semantic instruction of the operation information, and use the target sub-intention and the trial operation result as the second semantic instruction of the operation information.
[0011] By adopting this possible implementation method, after receiving the voice command recognition result sent by the first terminal (i.e., the text information corresponding to the voice command input by the user), semantic recognition is performed on the voice command recognition result to obtain the target intent and target sub-intention in the voice command recognition result; by pre-verifying the target sub-intention according to the target intent, the response logic of the target intent and the trial operation result of the pre-verified target sub-intention are obtained, and while sending the response logic as the first semantic instruction to the first terminal, the target sub-intention and the trial operation result are also sent to the first terminal as the second semantic instruction; by executing the first semantic instruction on the first terminal, the second semantic instruction is sent to the second terminal, thereby providing an information basis for the dialogue system and improving the response speed of the dialogue system.
[0012] In a possible implementation manner of the first aspect, sending the first semantic instruction and the second semantic instruction to the first terminal includes:
[0013] The first semantic instruction and the second semantic instruction are sent to the first terminal in the form of semantic representation.
[0014] In a possible implementation manner of the first aspect, sending the service logic corresponding to the second semantic instruction to the second terminal according to the execution command includes:
[0015] According to the execution command, the trial operation result is parsed; according to the parsed trial operation result, the business logic is called, and the business logic is sent to the second terminal in the form of semantic representation.
[0016] By adopting this possible implementation method, after receiving the execution command sent by the second terminal, the corresponding command can be directly executed, the trial run results can be parsed, and the corresponding business logic can be directly called according to the parsed results of the trial run results. There is no need to perform semantic processing on the target sub-intention, select the corresponding execution method, etc.; the response time of the dialogue system is shortened.
[0017] In a second aspect, an embodiment of the present application provides a voice control method, including:
[0018] Receive a voice command input by a user, and perform voice recognition on the voice command to obtain a voice command recognition result; send the voice command recognition result to a server; receive operation information fed back by the server after semantic processing of the voice command recognition result, wherein the operation information includes a first semantic instruction and a second semantic instruction; execute the first semantic instruction, and send the second semantic instruction to a second terminal; the second semantic instruction is used to instruct the second terminal to send an execution command to the server, and receive the business logic corresponding to the second semantic instruction fed back by the server.
[0019] The voice control method provided in the present application is adopted, with the first terminal as the execution subject. After the first terminal performs voice recognition on the voice command input by the user, the obtained voice command recognition result is sent to the server, and the operation information is received after the server performs semantic processing on the voice command recognition result, the first semantic instruction in the operation information is executed, and the second semantic instruction is sent to the second terminal; the first semantic instruction and the second semantic instruction fed back by the server in response to the voice command recognition result are received; the first semantic instruction is executed, and the second semantic instruction is sent to the second terminal, so that the second terminal directly calls the execution interface of the server according to the second semantic instruction, sends the execution command to the server, and receives the business logic corresponding to the second semantic instruction fed back by the server; an information basis is provided for the dialogue system to further respond to the second voice command, saving the processing flow of the second semantic instruction, thereby shortening the response time of the dialogue system.
[0020] In a possible implementation manner of the second aspect, the receiving operation information fed back by the server after semantic processing of the voice instruction recognition result includes:
[0021] Receive the response logic of the server for the target intent feedback in the voice instruction recognition result, and receive the trial operation result of the server for the target sub-intent feedback in the voice instruction recognition result.
[0022] In a possible implementation manner of the second aspect, the first semantic instruction is a response logic of the server to the target intent feedback in the voice instruction recognition result, and the second semantic instruction is a trial operation result and the target sub-intention fed back by the server to the target sub-intention in the voice instruction recognition result;
[0023] Correspondingly, executing the first semantic instruction and sending the second semantic instruction to the second terminal includes:
[0024] Execute the response logic fed back by the server, and send the target sub-intention and the trial operation result fed back by the server to the second terminal.
[0025] By adopting this possible implementation method, while receiving the response logic fed back by the server for the target intent in the voice command recognition result, the trial run result fed back by the server for the target sub-intent in the voice command recognition result is also received, and the trial run result of the target sub-intent is transmitted to the second terminal as intermediate data to provide a data basis for the second terminal; by executing the response logic fed back by the server, while sending the target sub-intent to the second terminal, the trial run result is also sent to the second terminal, so that the second terminal can directly call the server's execution interface according to the trial run result, and there is no need to upload the target sub-intent to the server for semantic processing and judgment execution and other processes, which saves the data processing process and shortens the response time of the dialogue system.
[0026] In a third aspect, an embodiment of the present application provides a voice control method, including:
[0027] Receive a second semantic instruction sent when the first terminal executes the first semantic instruction; the first semantic instruction and the second semantic instruction are after the first terminal sends the voice instruction recognition result to the server, and receives the operation information fed back by the server according to the voice instruction recognition result; identify the second semantic instruction and obtain the recognition result of the second semantic instruction; send an execution command to the server according to the recognition result; receive the business logic corresponding to the second semantic instruction fed back by the server according to the execution command, and execute the business logic.
[0028] By adopting the voice control method provided in the present application, the second terminal is used as the execution subject to identify the received second semantic instruction, and the execution interface of the server is directly called according to the identified result, instructing the server to feedback the business logic corresponding to the second semantic instruction. There is no need to perform semantic processing on the second semantic instruction through the server, which saves the data processing flow, improves the response speed of the second terminal, and shortens the delay of the conversation system.
[0029] In a possible implementation manner of the third aspect, the operation information includes a response logic of the server to the target intent feedback in the voice command recognition result, and a trial operation result of the server to the target sub-intent feedback in the voice command recognition result;
[0030] Correspondingly, the receiving of the second semantic instruction sent when the first terminal executes the first semantic instruction includes: receiving the target sub-intention and the trial operation result sent when the first terminal executes the response logic.
[0031] In a possible implementation manner of the third aspect, the second semantic instruction includes a trial run result obtained by the server pre-verifying the target sub-intent in the voice instruction recognition result;
[0032] Correspondingly, identifying the second semantic instruction and obtaining the recognition result of the second semantic instruction includes: identifying the second semantic instruction and obtaining the trial operation result of the target sub-intention.
[0033] In a possible implementation manner of the third aspect, sending the execution command to the server according to the recognition result includes:
[0034] According to the recognition result, an execution command corresponding to the trial operation result is sent to the server.
[0035] Exemplarily, the trial run result includes a skill identifier, an intent identifier, and a slot list, wherein a slot includes a slot name, a slot type, and a slot value.
[0036] It should be understood that the server, the first terminal, and the second terminal can be interconnected with each other in a networked state, and realize data transmission between each other through a data transmission protocol; or the three terminals are respectively connected to a cloud-side service to realize data interaction through the cloud-side service.
[0037] Exemplarily, the server, the first terminal, and the second terminal can be connected to each other through wireless WiFi or cellular network, through mutual confirmation of addresses and interfaces between the terminals, to form a device circle of the dialogue system, and realize mutual control through voice commands.
[0038] Exemplarily, the server sends the first semantic instruction in the operation information to the first terminal, and directly sends the second semantic instruction to the second terminal.
[0039] In a fourth aspect, an embodiment of the present application provides a voice control device, including:
[0040] A first receiving module, used to receive a voice command recognition result sent by the first terminal;
[0041] A semantic processing module, used for performing semantic processing on the voice instruction recognition result to obtain operation information, wherein the operation information includes a first semantic instruction and a second semantic instruction;
[0042] A first sending module, used for sending the first semantic instruction and the second semantic instruction to the first terminal, wherein the first semantic instruction is used for instructing the first terminal to send the second semantic instruction to the second terminal;
[0043] A command execution module is used to receive an execution command fed back by the second terminal after the second terminal recognizes the second semantic instruction, and send the business logic corresponding to the second semantic instruction to the second terminal according to the execution command.
[0044] In a possible implementation, the semantic processing module includes:
[0045] A semantic recognition submodule, used to recognize the voice command recognition result, and obtain the target intent and target sub-intent of the voice command recognition result;
[0046] The task execution submodule is used to pre-verify the target sub-intention according to the target intention, obtain the response logic of the target intention and the trial operation result of the target sub-intention; use the response logic as the first semantic instruction of the operation information, and use the target sub-intention and the trial operation result as the second semantic instruction of the operation information.
[0047] In a possible implementation manner, the first sending module is further configured to send the first semantic instruction and the second semantic instruction to the first terminal in the form of semantic representation.
[0048] In a possible implementation manner, the first sending module includes:
[0049] A first submodule is used to analyze the test run result according to the execution command;
[0050] The second submodule is used to call the business logic according to the parsed trial operation result, and send the business logic to the second terminal in the form of semantic representation.
[0051] In a fifth aspect, an embodiment of the present application provides a voice control device, including:
[0052] A voice recognition module is used to receive a voice command input by a user, and perform voice recognition on the voice command to obtain a voice command recognition result;
[0053] A second sending module, used for sending the voice command recognition result to a server;
[0054] A second receiving module is used to receive operation information fed back by the server after semantic processing of the voice instruction recognition result, wherein the operation information includes a first semantic instruction and a second semantic instruction;
[0055] An instruction execution module is used to execute the first semantic instruction and send the second semantic instruction to the second terminal; the second semantic instruction is used to instruct the second terminal to send an execution command to the server and receive the business logic corresponding to the second semantic instruction fed back by the server.
[0056] In a possible implementation, the second receiving module is also used to receive the response logic of the server for the target intent feedback in the voice instruction recognition result, and to receive the trial operation result of the server for the target sub-intent feedback in the voice instruction recognition result.
[0057] In a possible implementation, the first semantic instruction is the response logic of the server to the target intent feedback in the voice instruction recognition result, and the second semantic instruction is the trial run result and the target sub-intention feedback of the server to the target sub-intention in the voice instruction recognition result; the instruction execution module is also used to execute the response logic fed back by the server, and send the target sub-intention and the trial run result fed back by the server to the second terminal.
[0058] In a sixth aspect, an embodiment of the present application provides a voice control device, including:
[0059] A third receiving module is used to receive a second semantic instruction sent by the first terminal when executing the first semantic instruction; the first semantic instruction and the second semantic instruction are operation information fed back by the server according to the voice instruction recognition result after the first terminal sends the voice instruction recognition result to the server;
[0060] An instruction recognition module, used for recognizing the second semantic instruction and obtaining a recognition result of the second semantic instruction;
[0061] A third sending module, used for sending an execution command to a server according to the recognition result;
[0062] The business execution module is used to receive the business logic corresponding to the second semantic instruction fed back by the server according to the execution command, and execute the business logic.
[0063] In one possible implementation, the operation information includes the server's response logic to the target intent feedback in the voice command recognition result, and the trial operation result of the server's feedback to the target sub-intention in the voice command recognition result; the third receiving module is also used to receive the target sub-intention and the trial operation result sent by the first terminal when executing the response logic.
[0064] In one possible implementation, the second semantic instruction includes a trial run result obtained by the server pre-verifying the target sub-intention in the voice instruction recognition result; the instruction recognition module is also used to recognize the second semantic instruction and obtain the trial run result of the target sub-intention.
[0065] In a possible implementation, the third sending module is further configured to send an execution command corresponding to the trial operation result to the server according to the identification result.
[0066] In the seventh aspect, an embodiment of the present application provides a server, which includes a memory, a processor, a natural language understanding module and a dialogue management module, wherein the memory is used to store a computer program, and the computer program includes instructions, which, when executed by the server, enable the server to execute the voice control method.
[0067] In an eighth aspect, an embodiment of the present application provides a terminal device, which includes a memory, a processor, and a voice assistant, wherein the memory is used to store a computer program, and the computer program includes instructions, which, when executed by the terminal device, enable the terminal device to execute the voice control method.
[0068] In the ninth aspect, an embodiment of the present application provides a terminal device, which includes a memory and a processor, wherein the memory is used to store a computer program, and the computer program includes instructions. When the instructions are executed by the terminal device, the terminal device executes the voice control method.
[0069] In the tenth aspect, an embodiment of the present application provides a computer storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes instructions, and when the instructions are executed on a terminal device, the terminal device executes the voice control method.
[0070] In an eleventh aspect, an embodiment of the present application provides a computer program product comprising instructions, and when the computer program product is run on a terminal device, the terminal device executes the voice control method described in any one of the above-mentioned first aspects.
[0071] It can be understood that the beneficial effects of the above-mentioned second to eleventh aspects can be referred to the technical effects of the above-mentioned first aspect or each implementation method of the first aspect, and will not be repeated here.
[0072] Compared with the prior art, the embodiments of the present application have the following beneficial effects: by adopting the voice control method provided by the present application, by receiving the voice instruction recognition result sent by the first terminal, the voice instruction recognition result is semantically processed to obtain the operation information to be executed in the voice instruction recognition result, and the operation information is sent to the first terminal; the first terminal executes the first semantic instruction in the operation information, and sends the second semantic instruction in the operation information to the second terminal; after the second terminal recognizes the second semantic instruction, it can directly receive the execution command fed back by the second terminal, call the business logic corresponding to the second semantic instruction according to the execution command, and send the business logic to the second terminal; through this embodiment, after the second terminal receives the second semantic instruction, it can directly receive the execution command fed back by the second terminal according to the task information contained in the second semantic instruction, without the need to perform semantic processing again on the second semantic instruction received by the second terminal, and can call the corresponding business logic according to the fed-back execution command, and send it to the second terminal through the execution interface, thereby saving the processing flow of the second semantic instruction, shortening the delay of the dialogue, and improving the response time of the dialogue system. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0074] Figure 1 This is a schematic diagram of the system architecture of multi-device interconnected voice control provided by an embodiment of the present application;
[0075] Figure 2 This is a schematic diagram of a system architecture for multi-device interconnected voice control provided by another embodiment of the present application;
[0076] Figure 3 is a flow chart of a voice control method provided by an embodiment of the present application;
[0077] Figure 4 is a flow chart of a voice control method provided by another embodiment of the present application;
[0078] Figure 5 is a flow chart of a voice control method provided by another embodiment of the present application;
[0079] Figure 6 This is a schematic diagram of device interaction of a voice control method provided by an embodiment of the present application;
[0080] Figure 7 This is a schematic diagram of an application scenario of a voice control method provided by an embodiment of the present application;
[0081] Figure 8 is a schematic diagram of an application scenario of a voice control method provided by another embodiment of the present application;
[0082] Fig. 9 This is a schematic diagram of an application scenario of a voice control method provided by another embodiment of the present application.
[0083] Fig.10 is a structural schematic diagram of a voice control device provided by an embodiment of the present application;
[0084] Fig.11 is a structural schematic diagram of a voice control device provided by another embodiment of the present application;
[0085] Fig.12 is a structural schematic diagram of a voice control device provided by another embodiment of the present application;
[0086] Fig.13 It is a structural diagram of a server provided in an embodiment of the present application;
[0087] Fig.14 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0088] Fig.15 It is a structural diagram of a terminal device provided in another embodiment of the present application. DETAILED DESCRIPTION
[0089] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0090] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0091] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0092] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0093] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0094] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0095] The voice control method provided in this application can be applied to full-scenario conversation scenarios in which multiple devices control each other through voice when conducting cross-device joint dialogues, such as voice interaction with a mobile phone, controlling a TV through a mobile phone to execute corresponding business logic, etc.
[0096] At present, the full-scene conversation scene formed by multiple devices controlling each other through voice requires that each device in the scene has the function of networking. Each device can communicate with each other in a wired or wireless manner through mutual confirmation of addresses and interfaces, or each device is connected to a cloud-side service to achieve communication through the cloud-side service. Among them, the wireless method includes the Internet, WiFi network or mobile network; the mobile network can include the existing 2G (such as the Global System for Mobile Communication (English: Global System for Mobile Communication, GSM)), 3G (such as the Universal Mobile Telecommunications System (English: Universal Mobile Telecommunications System, UMTS)), 4G (such as FDD LTE, TDD LTE) and 4.5G, 5G, etc. The data transmission is realized between each device through a transmission protocol, such as communication protocols such as http. The various devices described can be mobile phones, TVs, tablets, speakers, computers, etc., and the devices can have functions such as networking and voice assistants.
[0097] In actual application scenarios, when multiple devices conduct cross-device joint dialogues and control each other through voice, a dialogue manager (DM) is required as a cloud service to maintain and update the flow and status of the dialogue, input the utterance corresponding to the voice command and combine it with the relevant context, understand the dialogue, and output the system response.
[0098] The Dialog Manager (DM) obtains the task corresponding to the voice command based on the semantics of the input voice command, clarifies the information required for the task, and then connects to the business platform to complete the task, or requires further input of more voice command information, or obtains the business logic of the corresponding task from the business platform, and finally returns the execution result to the user.
[0099] Among them, DMs with different functions can be connected to different business platforms, which can be system-preset business platforms or third-party platforms. For example, the semantics of listening to music or e-books can be connected to platforms such as NetEase Cloud Music or Himalaya, and the semantics of watching videos can be connected to third-party platforms such as iQiyi or Bilibili.
[0100] See also Figure 1, is a schematic diagram of the system architecture of multi-device interconnected voice control provided by an embodiment of the present application. When the devices are connected to the network or determine the addresses and interfaces with each other, mutual control is achieved through voice. The first terminal 11 is provided with a voice assistant, which can receive an audio signal input by a user through a microphone; the first terminal 11 performs voice recognition ASR on the received audio signal to obtain text information corresponding to the audio signal; the first terminal 11 transmits the text information to the server 12; the server 12 can be a dialogue management server, which performs semantic recognition on the received text information through natural language understanding (NLU), and can obtain the target intent and target sub-intent after semantic recognition; business docking is performed according to the semantic representation output after semantic recognition, the business logic corresponding to the semantic representation is obtained, and finally the execution result is returned to the first terminal 11; after receiving the execution result, the first terminal 11 sends the execution result to the second terminal 13; or the server 12 directly sends the execution result to the second terminal 13; the second terminal 13 recognizes the received execution result, obtains the trial operation result of the target sub-intent in the execution result, and directly sends the execution command to the server 12 according to the trial operation result, and calls the execution interface of the server 12; after receiving the execution command, the server 12 docks the business logic according to the trial operation result, and feeds the business logic back to the second terminal 13; finally, the second terminal 12 executes the corresponding business logic.
[0101] like Figure 1 As shown, the first terminal 11 can be a mobile phone; the server 12 can be a dialogue management cloud service or a local physical server; the second terminal 13 can be a TV; through voice interaction with the mobile phone and dialogue management with the server, the TV can be controlled by the mobile phone; for example, the user says to the mobile phone: Play the movie Nezha on TV, and the mobile phone displays: Switching to TV for you (pre-verifying that the TV supports playback during the interaction with the dialogue management server), and finally the TV displays: Play the movie Nezha (actually starts playing).
[0102] It should be noted that the multi-device interconnected voice control system may include multiple devices, and the voice control implemented may include any category of voice commands for cross-device control, such as cross-device control of TV playback commands, cross-device control of air conditioner temperature adjustment commands, or cross-device control of cooking mode commands for cooking tools, etc.
[0103] In the human-computer natural language dialogue system, dialogue management is responsible for controlling the flow and status of the dialogue. By inputting the words and related context, and after multiple parallel skill discovery, trial run, sorting selection, execution and conversation continuation, the system outputs the response.
[0104] See also Figure 2, is a schematic diagram of the system architecture of multi-device interconnected voice control provided by another embodiment of the present application; currently in the full-scene conversation process of mutual control through voice, the first terminal 11 receives the voice command input by the user, such as "play the movie Nezha on TV"; the first terminal 11 performs voice recognition on the voice command to obtain a voice command recognition result, that is, the text information corresponding to the voice command; the first terminal 11 sends the voice command recognition result to the server 12, and the server performs multiple stages of parallel processing on the voice command recognition result.
[0105] like Figure 2 As shown in , taking the first terminal as a mobile phone, the second terminal as a TV, and the server as a dialogue management server as an example; the parallel processing of multiple stages includes: skill discovery, trial run, selection, execution, and session continuation based on the mobile phone context, and skill discovery, trial run, and selection based on the simulated TV context. The dialogue management server combines the mobile phone context to perform semantic recognition on the voice command recognition results, search for multiple skills with corresponding semantics, conduct a trial run for each skill, aggregate the trial run results, filter out the results of failed trial runs, and select the first trial run result as the only most ideal skill based on the sorting rules or sorting models (such as LambdaMART or the sorting models commonly used by search engines) for the successful trial run results. Then, it is executed based on the trial run results, and finally the session is continued to return the execution results to the client (i.e., the mobile phone).
[0106] For example, when the user says "play the movie Nezha on TV" to the mobile phone, the dialogue management server performs semantic recognition based on the mobile phone context and determines that it is a "switch" skill. When executing the "switch" skill, it is necessary to pre-verify whether the TV supports "play the movie Nezha"; the dialogue management server performs the skill discovery, trial run and selection process based on the simulated TV context recognition speech "play the movie Nezha"; if a skill can be selected, it means that the TV supports it; otherwise, it means that the TV does not support the task and needs to return the corresponding semantic processing result or ask the user for further confirmation.
[0107] When the verification result is support, the dialogue management server returns the response logic after semantic processing, that is, returns skill = switch, target = TV, and speech = play movie Nezha to the mobile phone; when the mobile phone receives the response logic of "switch", it executes the switching logic: send "play movie Nezha" to the TV. After receiving "play movie Nezha", the TV recognizes the text information of "play movie Nezha", calls the dialogue management server again, and performs semantic processing on "play movie Nezha" based on the real TV context: skill discovery, trial run, selection, and then calls the server's execution interface according to the selected trial run result, and sends the execution command to the server; the server connects to the business logic of "play movie Nezha" according to the execution command, and feeds back the business logic to the TV, returning: skill = play movie, name = Nezha; the TV completes the movie playback.
[0108] Currently, in the dialogue management server, the context information of the simulated target terminal (TV) can be set to pre-verify whether the target terminal supports the intention of the current speech, and only the verification result is obtained without executing the task.
[0109] It can be seen from the above process that during the semantic processing relative to the mobile phone and TV, the dialogue management server repeatedly processed the "skill discovery, trial operation and selection" process for "playing the movie Nezha", which caused the dialogue system to have a long delay in the voice interaction process, prolonged the system's response time, increased the operating load of the dialogue management server, and made the user experience poor.
[0110] Based on the above problems, the voice control method provided in the present application, in a full-scene multi-device collaborative dialogue, controls the information interaction between devices. When a switching device is identified, the pre-verified trial operation result of the target device is used as intermediate data and transmitted to the target terminal by the intermediate device, or directly transmitted to the target terminal through the dialogue management server.
[0111] For example Figure 1In the system architecture of multi-device interconnected voice control shown in , the first terminal receives the voice command input by the user, the first terminal performs voice recognition on the voice command, and sends the recognized voice command recognition result to the server; after the server receives the voice command recognition result, it processes the voice command recognition result in multiple stages, mainly including recognition task, execution task and result reply. The operation information obtained by processing the voice command recognition result is fed back to the first terminal as the result reply. Among them, the operation information includes the response logic based on the context of the first terminal and the trial operation result based on the simulated context of the second terminal, and the trial operation result and the response logic of the first terminal are sent to the first terminal at the same time; or the response logic is sent to the first terminal, and the trial operation result is directly sent to the second terminal. When the first terminal receives the response logic and the trial operation result fed back by the server at the same time, the second terminal is called, and the trial operation result is sent to the second terminal, and the second terminal directly calls the execution interface of the server according to the trial operation result, and the second terminal sends an execution command to the server; the server connects to the business platform according to the execution command, calls the corresponding business logic, and feeds the business logic back to the second terminal, and the second terminal executes the corresponding business logic.
[0112] When the server feeds back the response logic to the first terminal and sends the trial run result directly to the second terminal, the first terminal can respond to the user that it is switching or executing a command. The server calls the second terminal and sends the trial run result directly to the second terminal. The second terminal recognizes the trial run result, directly calls the server's execution interface, and sends an execution command to the server; the server connects to the business platform according to the instruction command, calls the corresponding business logic, and feeds back the business logic to the second terminal, which executes the business logic. This saves the server from repeatedly processing the dialogue, thereby improving the response speed of the target device, shortening the response time of the dialogue system, and reducing the delay of human-computer voice interaction.
[0113] See also Figure 3 , a flow chart of a voice control method provided by an embodiment of the present application, as an embodiment of the voice control method provided by the present application, with Figure 1 The server in the example is used as the execution subject. The server may be a cloud service or a local physical server for conversation management, which is not specifically limited here. The specific implementation principle of the method includes the following steps:
[0114] Step S301, receiving a voice command recognition result sent by a first terminal.
[0115] In this embodiment, the server receives the voice command recognition result sent by the first terminal; the voice command recognition result is the text information of the voice command obtained by the first terminal after receiving the voice command input by the user and performing voice recognition on the voice command audio information, and the text information of the voice command is used as the voice command recognition result. The first terminal can be a terminal device equipped with a voice assistant, such as a mobile phone, computer, tablet, TV or speaker, etc., and the user's audio information is received through the microphone of the first terminal, for example, the user says to the voice assistant of the mobile phone "play the movie Nezha on TV".
[0116] Specifically, after the first terminal recognizes the voice command, it obtains text information corresponding to the voice command, and transmits the text information to the server via wireless WiFi or cellular mobile network; the server performs semantic recognition and processing.
[0117] The voice command can be a task-based voice control command, and the voice command recognition result can include the target intent and target sub-intent. For example, "play the movie Nezha on TV" or "play the songs of the Beatles on speakers", etc. "play the movie Nezha on TV" or "play the songs of the Beatles" correspond to the target intent, and "play the movie Nezha" or "play the songs of the Beatles" can be identified as the target sub-intent.
[0118] It should be noted that, when both the server and the first terminal are connected to the network, the first terminal and the server can communicate with each other through mutual confirmation of addresses and interfaces, or can communicate with each other through a gateway or a router. The information transmission between the server and the first terminal complies with the data transmission protocol, such as the HTTP protocol.
[0119] Step S302: semantically process the voice instruction recognition result to obtain operation information, where the operation information includes a first semantic instruction and a second semantic instruction.
[0120] In this embodiment, the server, as a dialogue management system in the voice interaction process, can perform semantic recognition on the voice command recognition result through natural language understanding to obtain a machine-recognizable semantic representation. According to the semantic representation, the target intent and target sub-intent in the voice command recognition result are obtained, and after multiple stages of parallel processing, the operation information of the first terminal is obtained to respond to the voice command recognition result.
[0121] Among them, the operation information can be the execution result of the server completing the target intention in the voice command recognition result, that is, the response logic, such as the business logic called according to the voice command recognition result; it can also be further requiring the client to input more information to complete the target intention.
[0122] Exemplarily, when the server receives the message "play the movie Nezha on TV" sent by the mobile phone, the server performs skill discovery, trial operation and selection based on the set mobile phone context to determine the "switch" skill; based on semantic recognition, the target intent can be determined to be "switch" and the target sub-intent is "play the movie Nezha". According to semantic recognition, it is necessary to switch to the target device TV, so whether the TV supports "play the movie Nezha" is pre-verified to avoid the TV display not supporting or not understanding after switching to the TV. Simulated TV context information is set on the server side, including the domain, target object in the current conversation, and the slot information, order, pronouns, etc. mentioned in the previous conversation. Based on the simulated TV context information, the speech of "play the movie Nezha" is pre-verified, that is, the processing flow of skill discovery, trial operation, and selection to determine the skill is performed. If the playing skill can be determined, it means that the TV side supports it; then the "switch" action that the mobile phone needs to perform and the trial operation result of the pre-verification process are generated into corresponding operation information, and the conversation is continued and the mobile phone is replied.
[0123] Specifically, when the "switching" action of cross-device control is determined based on the mobile phone context information, the operation information can be divided into the operation instructions that the current mobile phone needs to execute and the operation instructions that the target device needs to execute, that is, the operation information of the reply mobile phone is divided into the first semantic instruction and the second semantic instruction. The first semantic instruction corresponds to the reply logic of the current mobile phone and corresponds to the target intent in the voice instruction recognition result; the second semantic instruction is the logic that the target device needs to execute and corresponds to the target sub-intent in the voice instruction recognition result.
[0124] It should be noted that, in the process of identifying tasks, executing tasks and replying to results based on the voice command recognition results, the dialogue management server can also set up multiple slots to conduct multiple rounds of voice interactions with the client to clarify the target intention or target sub-intention; for example, after receiving the "play on TV" words sent by a mobile phone, the server can return the question "what to play", and then receive "the movie Nezha"; through multiple rounds of dialogue, the task of the target words is clarified, so that the dialogue system can make accurate replies or responses.
[0125] In a possible implementation, the performing semantic processing on the voice command recognition result to obtain the operation information includes:
[0126] 3.1. Identify the voice command recognition result, and obtain the target intent and target sub-intent of the voice command recognition result;
[0127] 3.2. The target intent, pre-verify the target sub-intent, obtain the response logic of the target intent and the test run result of the target sub-intent;
[0128] 3.3. Use the response logic as the first semantic instruction of the operation information, and use the target sub-intention and the trial operation result as the second semantic instruction of the operation information.
[0129] In this embodiment, the server performs semantic processing on the voice command recognition result, identifies the semantic information in its text information, and obtains the target intent and target sub-intention of the voice command recognition result. The target intent can be the operation that the first terminal needs to perform according to the voice command recognition result, and the target sub-intention can be the operation that the target device needs to perform when the voice command recognition result controls the target device across devices. The server determines the target intent of the voice command recognition result based on the mobile phone context, such as the determined "switch" intent; the server pre-verifies and trial runs the target sub-intention to determine whether the target terminal supports the execution of the target sub-intention. Through the execution process, the response logic of the target intent {skill = switch, target = TV, narration = play the movie Nezha}, as well as the verification result and trial run result of the target sub-intention are determined; the verification result is used to indicate whether the target terminal supports the execution of the target sub-intention, and the trial run result is used to indicate the processing result obtained by simulating the operation of the target sub-intention.
[0130] Specifically, the response logic and trial run results may include skill identification, intent identification and slot information. The skill identification identifies a skill. A skill is a collection of capabilities that can support several intents. For example, the weather skill supports the intents of checking the weather and checking PM2.5. The intent identification identifies the unique intent within the skill. The slot information is a list of parameters required for the intent to execute. The number of parameters in the slot information can be arbitrary, zero or multiple. The slot information includes the slot name, slot type and slot value. The slot name determines the parameter name of the slot, and the slot type determines the type of the slot parameter, such as date, number, string, etc. The slot value is the parameter value.
[0131] Exemplarily, the server uses the response logic and the trial run result as the result reply, uses the response logic as the first semantic instruction of the operation information, and uses the words corresponding to the target sub-intention and the run result as the second semantic instruction of the operation information.
[0132] Step S303: Send the first semantic instruction and the second semantic instruction to the first terminal, where the first semantic instruction is used to instruct the first terminal to send the second semantic instruction to the second terminal.
[0133] In this embodiment, the server sends the first semantic instruction and the second semantic instruction as result replies to the first terminal at the same time through a wired or wireless method.
[0134] Specifically, the first semantic instruction includes the response logic for replying to the first terminal. For example, in the above scenario, the response logic corresponding to the first terminal may be {skill = switch, target = TV, speech = play movie Nezha}. The second semantic instruction includes the words corresponding to the target sub-intention in the voice instruction recognition result and the trial run result of the target sub-intention. For example, the trial run result may be {skill = play movie, name = Nezha}. The first terminal executes the first semantic instruction and sends the second semantic instruction to the second terminal; the second terminal recognizes the second semantic instruction, and can recognize the target sub-intention in the second semantic instruction while also recognizing the trial run result of the target sub-intention, without the need to perform skill discovery, trial run, and selection processing on the words of the target sub-intention through the server.
[0135] In addition, in another possible implementation, the server can also send the first semantic instruction to the first terminal via wired or wireless means, and send the second semantic instruction directly to the second terminal (i.e., the target terminal) via wired or wireless means. The first terminal executes the skill switching and determines to switch to the second terminal (target terminal); the second terminal (target terminal) directly obtains the second semantic instruction sent by the server. The second semantic instruction includes the trial run result of the target sub-intention; the second terminal can identify the trial run result in the second semantic instruction, and directly send an execution command to the server according to the trial run result, calling the server's execution interface. The server calls the business logic corresponding to the target sub-intention according to the execution command, eliminating the server's processing of skill discovery, trial run, and selection of the target sub-intention in the second semantic instruction, thereby improving the response speed of the dialogue system.
[0136] It should be noted that, when the server, the first terminal and the second terminal are all connected to the network, the server and the first terminal, the server and the second terminal, and the first terminal and the second terminal can communicate with each other through mutual confirmation of addresses and interfaces; mutual communication can also be achieved through a gateway or a router. Therefore, the test run result in the second semantic control instruction can be transmitted from the first terminal to the second terminal as an intermediate result, and can also be sent directly from the server to the second terminal to call the second terminal.
[0137] In a possible implementation manner, sending the first semantic instruction and the second semantic instruction to the first terminal includes:
[0138] The first semantic instruction and the second semantic instruction are sent to the first terminal in the form of semantic representation.
[0139] In the embodiment itself, the form of semantic representation is a machine-readable language representation, and the server uses the speech instruction recognition result after semantic processing as the reply result of the first terminal or the second terminal in the form of semantic representation.
[0140] Correspondingly, the server can also send the first semantic instruction to the first terminal in the form of semantic representation, such as the form of semantic representation is {skill = switch, target = TV, narration = play movie Nezha}; the server can also send the trial run result in the second semantic instruction to the second terminal in the form of semantic representation, such as the semantic representation form of the trial run result is {skill = play movie, name = Nezha}.
[0141] Step S304: receiving an execution command fed back by the second terminal after the second terminal recognizes the second semantic instruction, and sending the business logic corresponding to the second semantic instruction to the second terminal according to the execution command.
[0142] In this embodiment, the second semantic instruction includes the target sub-intention and the trial run result obtained by pre-verifying the target sub-intention; after receiving the second semantic instruction, the second terminal obtains the trial run result by identifying the second semantic instruction; the second terminal directly calls the execution interface of the server according to the trial run result, and sends an execution command to the server. The server receives the execution command sent by the second terminal, connects to the business logic corresponding to the second semantic instruction according to the execution command, and sends the business logic to the second terminal device; for example, calls the movie data in the server, and sends the movie data to the second terminal as the response logic. The response logic can be {skill = play movie, name = Nezha}. The corresponding business logic is executed by the second terminal, that is, the movie Nezha is played.
[0143] In a possible implementation manner, sending the service logic corresponding to the second semantic instruction to the second terminal according to the execution command includes:
[0144] 3.4. Analyze the test run result according to the execution command;
[0145] 3.5. According to the analyzed trial operation result, the service logic is called, and the service logic is sent to the second terminal in the form of semantic representation.
[0146] In this embodiment, the server receives an execution command sent by the second terminal, parses the trial run results of the target sub-intention, calls the business logic corresponding to the target sub-intention according to the parsing results, and sends the business logic in the form of semantic representation to the second terminal. For example, the server returns {Skill = Play Movie, Name = Nezha} to the second terminal.
[0147] It should be noted that the conversation management server corresponding to the first terminal and the conversation management server corresponding to the second terminal may be the same server, or two servers with the same function.
[0148] The voice control method provided in the present application is adopted, with the server as the execution subject, and by receiving the voice command recognition result sent by the first terminal, the voice command recognition result is semantically processed to obtain the operation information to be executed in the voice command recognition result, and the operation information is sent to the first terminal; the first terminal executes the first semantic instruction in the operation information, and sends the second semantic instruction in the operation information to the second terminal; after the second terminal recognizes the second semantic instruction, it can directly receive the execution command fed back by the second terminal, call the business logic corresponding to the second semantic instruction according to the execution command, and send the business logic to the second terminal; through this embodiment, after the second terminal receives the second semantic instruction, it can directly receive the execution command fed back by the second terminal according to the task information contained in the second semantic instruction, without the need to perform semantic processing again on the second semantic instruction received by the second terminal, and can call the corresponding business logic according to the fed-back execution command and send it to the second terminal through the execution interface, thereby eliminating the processing flow of the second semantic instruction, shortening the delay of the dialogue, and improving the response time of the dialogue system.
[0149] See also Figure 4 , is a flow chart of a voice control method provided by another embodiment of the present application. As an embodiment of the voice control method provided by the present application, Figure 1 The first terminal in the method is used as the execution subject, and the first terminal can be a mobile phone, a computer, a tablet, a speaker, etc., which is not specifically limited here; the specific implementation principle of the method includes the following steps:
[0150] Step S401, receiving a voice command input by a user, and performing voice recognition on the voice command to obtain a voice command recognition result;
[0151] Step S402: sending the voice command recognition result to a server;
[0152] Step S403, receiving operation information fed back by the server after semantic processing of the voice command recognition result, the operation information including a first semantic command and a second semantic command;
[0153] Step S404, execute the first semantic instruction, and send the second semantic instruction to the second terminal; the second semantic instruction is used to instruct the second terminal to send an execution command to the server, and receive the business logic corresponding to the second semantic instruction fed back by the server.
[0154] In some embodiments of the present application, the first terminal may be provided with a voice assistant, which receives the voice command input by the user through a microphone, performs voice recognition ASR on the voice command, and obtains the voice command recognition result, that is, the text information corresponding to the voice command. The voice command recognition result is sent to the server by wired or wireless means, and the operation information fed back by the server is received; the operation information may include the first semantic instruction corresponding to the first terminal and the second semantic instruction corresponding to the second terminal. The first terminal executes the first semantic instruction in the operation information, calls and switches to the second terminal, and sends the second semantic instruction to the second terminal at the same time. The second semantic instruction may include the trial operation result of the target sub-intention in the voice command recognition result. The second terminal can identify the trial operation result in the second semantic instruction, directly send an execution command to the server according to the trial operation result, and call the execution interface of the server; the server connects to the business logic corresponding to the target sub-intention according to the execution command, and feeds back the business logic to the second terminal; the business logic is completed by the second terminal. The process of the server repeatedly processing the words of the target sub-intention is saved, thereby improving the response speed of the target device, shortening the response time of the dialogue system, and reducing the delay of human-computer voice interaction.
[0155] In a possible implementation, the receiving operation information fed back by the server after semantic processing of the voice instruction recognition result includes:
[0156] Receive the response logic of the server for the target intent feedback in the voice instruction recognition result, and receive the trial operation result of the server for the target sub-intent feedback in the voice instruction recognition result.
[0157] In a possible implementation, the first semantic instruction is the response logic of the server to the target intent in the voice instruction recognition result, and the second semantic instruction is the trial operation result and the target sub-intention fed back by the server to the target sub-intention in the voice instruction recognition result;
[0158] Correspondingly, executing the first semantic instruction and sending the second semantic instruction to the second terminal includes:
[0159] Execute the response logic fed back by the server, and send the target sub-intention and the trial operation result fed back by the server to the second terminal.
[0160] By adopting the embodiments of the present application, while the first terminal obtains the response logic of the server based on the context feedback of the first terminal, the trial run result of the target sub-intention in the voice command recognition result is obtained, and when the second terminal is called, the trial run result is also sent to the second terminal, so that the second terminal can directly obtain the trial run result of the target sub-intention in the voice command recognition result, without the need to perform a series of semantic processing on the target sub-intention through the server, thereby optimizing the data processing flow of the dialogue system and improving the response speed of the dialogue system.
[0161] See also Figure 5 , is a flow chart of a voice control method provided by another embodiment of the present application. As an embodiment of the voice control method provided by the present application, Figure 1 The second terminal in the method is used as the execution subject, and the second terminal can be a mobile phone, a tablet, a computer, a speaker, a TV and other devices, which are not specifically limited here; the specific implementation principle of the method includes the following steps:
[0162] Step S501, receiving a second semantic instruction sent by the first terminal when executing the first semantic instruction; the first semantic instruction and the second semantic instruction are operation information fed back by the server according to the voice instruction recognition result after the first terminal sends the voice instruction recognition result to the server;
[0163] Step S502: identifying the second semantic instruction and obtaining a recognition result of the second semantic instruction;
[0164] Step S503: Send an execution command to the server according to the recognition result;
[0165] Step S504: receiving the business logic corresponding to the second semantic instruction fed back by the server according to the execution command, and executing the business logic.
[0166] In some embodiments of the present application, after receiving the second semantic instruction fed back by the server through the first terminal, the second terminal recognizes the second semantic instruction, and can obtain the trial operation result of the target sub-intention in the voice instruction recognition result. According to the trial operation result, there is no need to perform semantic recognition processing on the speech of the target sub-intention, and directly send an execution command to the server, call the execution interface of the server, so that the server connects to the corresponding business platform according to the trial operation result and calls the corresponding business logic. The second terminal receives the business logic fed back by the server and executes the business logic.
[0167] In a possible implementation, the operation information includes the response logic of the server to the target intent feedback in the voice command recognition result, and the trial operation result of the server to the target sub-intent feedback in the voice command recognition result;
[0168] Correspondingly, the receiving of the second semantic instruction sent by the first terminal when executing the first semantic instruction includes:
[0169] The target sub-intention and the trial operation result sent by the first terminal when receiving the response logic.
[0170] In a possible implementation, the second semantic instruction includes a test run result obtained by the server pre-verifying the target sub-intent in the voice instruction recognition result;
[0171] Correspondingly, the identifying the second semantic instruction and obtaining a recognition result of the second semantic instruction includes:
[0172] Identify the second semantic instruction and obtain the trial run result of the target sub-intention.
[0173] Through the embodiment of the present application, when the second terminal receives the trial run result of the target sub-intention in the voice command recognition result, the execution interface of the server can be directly called according to the trial run result, without the need to perform semantic recognition processing on the target sub-intention. After the server receives the execution command of the second terminal, it connects to the business platform corresponding to the target sub-intention, calls the corresponding business logic, and feeds back the business logic to the second terminal, which executes the business logic. This saves the process of repeated semantic processing of the speech corresponding to the target sub-intention in the voice command recognition result, and improves the response speed of the dialogue system.
[0174] See also Figure 6 , a schematic diagram of device interaction of a voice control method provided by an embodiment of the present application, which realizes cross-device voice control through network interconnection of multiple devices. The interaction process includes the following steps:
[0175] 1. The first terminal receives a voice command input by a user, and performs voice recognition on the voice command to obtain a voice command recognition result;
[0176] 2. The first terminal sends the voice command recognition result to the server;
[0177] 3. The server performs semantic processing on the voice command recognition result to obtain operation information;
[0178] 4. The server sends the operation information to the first terminal; the operation information includes a first semantic instruction and a second semantic instruction;
[0179] 5. The first terminal executes the first semantic instruction;
[0180] 6. The first terminal sends the second semantic instruction to the second terminal;
[0181] 7. The second terminal recognizes the second semantic instruction;
[0182] 8. The second terminal sends an execution command to the server and calls the execution interface of the server;
[0183] 9. The server calls the business logic corresponding to the second semantic instruction according to the execution command;
[0184] 10. The server sends the service logic to the second terminal;
[0185] 11. The second terminal executes the service logic.
[0186] The execution principle of the steps in this embodiment is the same as that of the above embodiments, and will not be repeated again.
[0187] See also Figure 7 , is a schematic diagram of an application scenario of a voice control method provided in an embodiment of the present application, taking a mobile phone as an example of the first terminal, a dialogue management server as an example of the server, and a television as an example of the second terminal, and all devices are in a networked state, and can communicate with each other by confirming the address and interface.
[0188] As shown in the figure, the mobile phone receives the voice command "play the movie Nezha on TV" input by the user, performs voice recognition on the voice command, obtains the text information of the voice command, and the mobile phone sends the text information to the dialogue management server via wired or wireless means. The dialogue management server performs semantic recognition of "play the movie Nezha on TV" based on the mobile phone context, and through skill discovery, trial operation, and selection of the optimal skill "switch", determines the target as "TV" and the script as "play the movie Nezha"; when it is determined that the intention is to switch, it is necessary to pre-verify whether the TV supports the playback, and after a series of processing such as skill discovery, trial operation, and selection based on the simulated TV context, the verification result is support, and the trial operation result is "target object Object"; the skill "switch", the target determination, "TV", and the script "play the movie Nezha" are fed back to the mobile phone as the response logic; the mobile phone receives the response logic, executes the switching instruction, sends "play the movie Nezha" to the TV, and sends the trial operation result "Object" to the TV; the TV recognizes the trial operation result "Object", directly sends an execution command to the dialogue management server, and calls the execution interface of the dialogue management server; the dialogue management server connects to the business logic corresponding to "play the movie Nezha", and feeds the business logic back to the TV, and the TV executes the operation of playing the movie Nezha according to the fed-back business logic.
[0189] In one possible implementation, Figure 8As shown, a schematic diagram of an application scenario of a voice control method provided by another embodiment of the present application; after the dialogue management server performs semantic processing on "Play the movie Nezha" based on a simulated TV context and obtains a trial run result, the trial run result can be sent directly to the TV via the network, and the words "Play the movie Nezha" can be sent to the TV via a mobile phone; the TV directly calls the execution interface of the server according to the trial run result, and sends an execution command to the dialogue management server; the dialogue management server connects to the business logic corresponding to "Play the movie Nezha", and feeds back the business logic to the TV, and the TV executes the operation of playing the movie Nezha according to the fed-back business logic.
[0190] In another possible implementation, after the server executes based on the mobile phone context, it obtains the response logic corresponding to the target intent and the trial run result of the target sub-intent; the server can directly call the TV and send the target sub-intent's words "play the movie Nezha" and the trial run result to the TV at the same time. The TV identifies the words and trial run results corresponding to the target sub-intent, and the TV directly calls the execution interface of the dialogue management server according to the trial run results, and sends the execution command to the dialogue management server; the dialogue management server connects to the business logic corresponding to "play the movie Nezha" and feeds back the business logic to the TV, and the TV executes the operation of playing the movie Nezha according to the fed-back business logic.
[0191] See also Fig. 9 , is a schematic diagram of an application scenario of a voice control method provided in another embodiment of the present application, taking a mobile phone as the first terminal, a dialogue management server as the server, and a television as the second terminal as an example, and all devices are in a networked state, and can communicate with each other by confirming the address and interface.
[0192] like Fig. 9As shown, the mobile phone receives the voice command "switch to TV to play the movie The Return of the Great Sage" input by the user, performs voice recognition on the voice command, and obtains the text information corresponding to the voice command; the mobile phone calls the dialogue management server, performs voice recognition on the text information of the voice command, and recognizes that it is the skill and intention of switching devices, the target device is the TV, and the target sub-intent is "play the movie The Return of the Great Sage"; the dialogue management server verifies whether the TV supports "play the movie The Return of the Great Sage", and based on the simulated TV context, performs the "skill discovery → trial run → selection" semantic processing flow, and obtains the verification result: support, and the trial run result "{skill (skill) = video (play), intent (intent) = play (play), slots (slots) = {name (name) = The Return of the Great Sage}". The dialogue management server returns skill = switch, intent = switch, target = TV, target statement = play the movie The Return of the Great Sage, and trial run result = {skill = video, intent = play, slots = {name = The Return of the Great Sage}" to the mobile phone. After receiving the result, the mobile phone recognizes that it is a switch, so it calls the TV and sends the target script "Play the movie The Return of the Great Sage" and the trial run result "{skill=video, intent=play, slots={name=The Return of the Great Sage}" to the TV. After receiving the switch command, the TV recognizes the trial run result and directly calls the execution interface of the dialogue management server to execute "{skill=video, intent=play, slots={name=The Return of the Great Sage}". After receiving the execution command, the dialogue management server interprets "{skill=video, intent=play, slots={name=The Return of the Great Sage}", directly calls the corresponding business logic, and returns skill=video, intent=play, name=The Return of the Great Sage to the TV. After receiving it, the TV plays the movie "The Return of the Great Sage".
[0193] Through the embodiments of the present application, the first half of the process of the target device is reduced, the response delay of the dialogue system is significantly shortened (in actual applications, the shortened delay can be more than 50%), and the dialogue experience is improved.
[0194] Corresponding to the embodiments of the voice control method and application scenarios described in the above embodiments, Fig.10 A structural block diagram of a voice control device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0195] Reference Fig.10 The device includes a first receiving module 101, a semantic processing module 102, a first sending module 103 and a command execution module 104. The functions of each module are as follows:
[0196] A first receiving module 101 is used to receive a voice command recognition result sent by a first terminal;
[0197] A semantic processing module 102, configured to perform semantic processing on the voice command recognition result to obtain operation information, wherein the operation information includes a first semantic command and a second semantic command;
[0198] A first sending module 103, used for sending the first semantic instruction and the second semantic instruction to the first terminal, wherein the first semantic instruction is used for instructing the first terminal to send the second semantic instruction to the second terminal;
[0199] The command execution module 104 is used to receive the execution command fed back by the second terminal after the second terminal recognizes the second semantic instruction, and send the business logic corresponding to the second semantic instruction to the second terminal according to the execution command.
[0200] In a possible implementation, the semantic processing module includes:
[0201] A semantic recognition submodule, used to recognize the voice command recognition result, and obtain the target intent and target sub-intent of the voice command recognition result;
[0202] The task execution submodule is used to pre-verify the target sub-intention according to the target intention, obtain the response logic of the target intention and the trial operation result of the target sub-intention; use the response logic as the first semantic instruction of the operation information, and use the target sub-intention and the trial operation result as the second semantic instruction of the operation information.
[0203] In a possible implementation manner, the first sending module is further configured to send the first semantic instruction and the second semantic instruction to the first terminal in the form of semantic representation.
[0204] In a possible implementation manner, the first sending module includes:
[0205] A first submodule is used to analyze the test run result according to the execution command;
[0206] The second submodule is used to call the business logic according to the parsed trial operation result, and send the business logic to the second terminal in the form of semantic representation.
[0207] Corresponding to the embodiments of the voice control method and application scenarios described in the above embodiments, Fig.11 A structural block diagram of a voice control device provided in another embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0208] Reference Fig.11 The device includes a speech recognition module 111, a second sending module 112, a second receiving module 113 and an instruction execution module 114. The functions of each module are as follows:
[0209] The voice recognition module 111 is used to receive a voice command input by a user, and perform voice recognition on the voice command to obtain a voice command recognition result;
[0210] A second sending module 112, used to send the voice command recognition result to a server;
[0211] A second receiving module 113 is used to receive operation information fed back by the server after semantic processing of the voice command recognition result, wherein the operation information includes a first semantic command and a second semantic command;
[0212] The instruction execution module 114 is used to execute the first semantic instruction and send the second semantic instruction to the second terminal; the second semantic instruction is used to instruct the second terminal to send an execution command to the server and receive the business logic corresponding to the second semantic instruction fed back by the server.
[0213] In a possible implementation, the second receiving module is also used to receive the response logic of the server for the target intent feedback in the voice instruction recognition result, and to receive the trial operation result of the server for the target sub-intent feedback in the voice instruction recognition result.
[0214] In a possible implementation, the first semantic instruction is the response logic of the server to the target intent feedback in the voice instruction recognition result, and the second semantic instruction is the trial run result and the target sub-intention feedback of the server to the target sub-intention in the voice instruction recognition result; the instruction execution module is also used to execute the response logic fed back by the server, and send the target sub-intention and the trial run result fed back by the server to the second terminal.
[0215] Corresponding to the embodiments of the voice control method and application scenarios described in the above embodiments, Fig.12 A structural block diagram of a voice control device provided in another embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0216] Reference Fig.12 The device includes a third receiving module 121, an instruction recognition module 122, a third sending module 123 and a service execution module 124. The functions of each module are as follows:
[0217] The third receiving module 121 is used to receive a second semantic instruction sent by the first terminal when executing the first semantic instruction; the first semantic instruction and the second semantic instruction are operation information fed back by the server according to the voice instruction recognition result after the first terminal sends the voice instruction recognition result to the server;
[0218] An instruction recognition module 122, used for recognizing the second semantic instruction and obtaining a recognition result of the second semantic instruction;
[0219] A third sending module 123, used to send an execution command to the server according to the recognition result;
[0220] The business execution module 124 is used to receive the business logic corresponding to the second semantic instruction fed back by the server according to the execution command, and execute the business logic.
[0221] In one possible implementation, the operation information includes the server's response logic to the target intent feedback in the voice command recognition result, and the trial operation result of the server's feedback to the target sub-intention in the voice command recognition result; the third receiving module is also used to receive the target sub-intention and the trial operation result sent by the first terminal when executing the response logic.
[0222] In one possible implementation, the second semantic instruction includes a trial run result obtained by the server pre-verifying the target sub-intention in the voice instruction recognition result; the instruction recognition module is also used to recognize the second semantic instruction and obtain the trial run result of the target sub-intention.
[0223] In a possible implementation, the third sending module is further configured to send an execution command corresponding to the trial operation result to the server according to the identification result.
[0224] Through this embodiment, a voice control method is adopted, by receiving the voice instruction recognition result sent by the first terminal, semantically processing the voice instruction recognition result, obtaining the operation information to be executed in the voice instruction recognition result, and sending the operation information to the first terminal; the first terminal executes the first semantic instruction in the operation information, and sends the second semantic instruction in the operation information to the second terminal; after the second terminal recognizes the second semantic instruction, it can directly receive the execution command fed back by the second terminal, call the business logic corresponding to the second semantic instruction according to the execution command, and send the business logic to the second terminal; through this embodiment, after the second terminal receives the second semantic instruction, it can directly receive the execution command fed back by the second terminal according to the task information contained in the second semantic instruction, without the need to perform semantic processing again on the second semantic instruction received by the second terminal, and can call the corresponding business logic according to the fed-back execution command, and send it to the second terminal through the execution interface, eliminating the processing flow of the second semantic instruction, shortening the delay of the dialogue, and improving the response time of the dialogue system.
[0225] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0226] Fig.13 This is a schematic diagram of the structure of a server provided in an embodiment of the present application. Fig.13 As shown, the server 13 of this embodiment includes: at least one processor 131 ( Fig.13 Only one is shown in the figure), a memory 132, a computer program 133 stored in the memory 132 and executable on the at least one processor 131, a natural language processing module 134, and a dialogue management module 135. The memory 132, the natural language understanding module 134, and the dialogue management module 135 are coupled to the processor 131, the memory 132 is used to store the computer program 133, the computer program 133 includes instructions, and the processor 131 reads the instructions from the memory 132, so that the server 13 performs the following operations:
[0227] Receive a voice command recognition result sent by a first terminal; perform semantic processing on the voice command recognition result to obtain operation information, wherein the operation information includes a first semantic instruction and a second semantic instruction; send the first semantic instruction and the second semantic instruction to the first terminal, wherein the first semantic instruction is used to instruct the first terminal to send the second semantic instruction to the second terminal; receive an execution command fed back by the second terminal after the second terminal recognizes the second semantic instruction, and send the business logic corresponding to the second semantic instruction to the second terminal according to the execution command.
[0228] Fig.14 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Fig.14 As shown, the terminal device 14 of this embodiment includes: at least one processor 141 ( Fig.14 Only one is shown in the figure), a memory 142, a computer program 143 stored in the memory 142 and executable on the at least one processor 141, and a voice assistant 144. The memory 142 and the voice assistant 144 are coupled to the processor 141, the memory 142 is used to store the computer program 143, the computer program 143 includes instructions, and the processor 141 reads the instructions from the memory 142, so that the terminal device 14 performs the following operations:
[0229] Receive a voice command input by a user, and perform voice recognition on the voice command to obtain a voice command recognition result; send the voice command recognition result to a server; receive operation information fed back by the server after semantic processing of the voice command recognition result, wherein the operation information includes a first semantic instruction and a second semantic instruction; execute the first semantic instruction, and send the second semantic instruction to a second terminal; the second semantic instruction is used to instruct the second terminal to send an execution command to the server, and receive the business logic corresponding to the second semantic instruction fed back by the server.
[0230] Fig.15 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Fig.15 As shown, the terminal device 15 of this embodiment includes: at least one processor 151 ( Fig.15 Only one is shown), a memory 152, and a computer program 153 stored in the memory 152 and executable on the at least one processor 151. The memory 152 is coupled to the processor 151, and the memory 152 is used to store the computer program 153. The computer program 153 includes instructions. The processor 151 reads instructions from the memory 152, so that the terminal device 15 performs the following operations:
[0231] Receive a second semantic instruction sent when the first terminal executes the first semantic instruction; the first semantic instruction and the second semantic instruction are after the first terminal sends the voice instruction recognition result to the server, and receives the operation information fed back by the server according to the voice instruction recognition result; identify the second semantic instruction and obtain the recognition result of the second semantic instruction; send an execution command to the server according to the recognition result; receive the business logic corresponding to the second semantic instruction fed back by the server according to the execution command, and execute the business logic.
[0232] The server 13 may be a cloud server or a local physical server; the terminal device 14 and the terminal device 15 may be a desktop computer, a notebook, a PDA, a mobile phone, a television, a speaker, etc. The server 13, the terminal device 14 and the terminal device 15 may include, but are not limited to, a processor and a memory. Those skilled in the art will understand that Fig.13 , Fig.14 and Fig.15 These are merely examples of servers and terminal devices and do not constitute limitations on the servers and terminal devices. They may include more or fewer components than those shown in the figures, or a combination of certain components, or different components, and may also include input and output devices, network access devices, etc.
[0233] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0234] In some embodiments, the memory may be an internal storage unit of the server 13, the terminal device 14 or the terminal device 15, such as a hard disk or a memory. In other embodiments, the memory may also be an external storage device of the server 13, the terminal device 14 or the terminal device 15, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Further, the memory may also include both an internal storage unit of the server 13, the terminal device 14 or the terminal device 15 and an external storage device. The memory is used to store an operating system, an application, a boot loader (BootLoader), data and other programs, such as the program code of the computer program, etc. The memory may also be used to temporarily store data that has been output or is to be output.
[0235] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes instructions, and when the instructions are executed on a terminal device, the terminal device executes the skin detection method.
[0236] An embodiment of the present application provides a computer program product comprising instructions. When the computer program product is executed on a terminal device, the terminal device executes the skin detection method described in any one of the first aspects above.
[0237] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0238] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0239] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0240] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0241] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0242] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A voice control method, characterized in that: include: Receiving a voice command recognition result sent by the first terminal; The voice instruction recognition result is semantically processed to obtain operation information, wherein the operation information includes a first semantic instruction and a second semantic instruction, including: identifying the voice instruction recognition result to obtain a target intent and a target sub-intention of the voice instruction recognition result; pre-verifying the target sub-intention according to the target intent to obtain a response logic of the target intent and a trial operation result of the target sub-intention; using the response logic as the first semantic instruction of the operation information, and using the target sub-intention and the trial operation result as the second semantic instruction of the operation information; wherein the target sub-intention is an operation that needs to be performed by the voice instruction recognition result to control the target device across devices, and the trial operation result is used to represent the processing result obtained by simulating the operation of the target sub-intention; Sending the first semantic instruction and the second semantic instruction to the first terminal, wherein the first semantic instruction is used to instruct the first terminal to send the second semantic instruction to the second terminal; Receive an execution command fed back by the second terminal after the second terminal recognizes the second semantic instruction, and send the business logic corresponding to the second semantic instruction to the second terminal according to the execution command.
2. The voice control method according to claim 1, characterized in that: The sending the first semantic instruction and the second semantic instruction to the first terminal includes: The first semantic instruction and the second semantic instruction are sent to the first terminal in the form of semantic representation.
3. The voice control method according to claim 1, characterized in that: The sending, according to the execution command, the service logic corresponding to the second semantic instruction to the second terminal comprises: Analyzing the test run result according to the execution command; According to the analyzed trial operation result, the business logic is called, and the business logic is sent to the second terminal in the form of semantic representation.
4. A voice control method, characterized in that: include: Receiving a voice command input by a user, and performing voice recognition on the voice command to obtain a voice command recognition result; Sending the voice command recognition result to a server; Receive operation information fed back by the server after semantic processing of the voice instruction recognition result, the operation information including a first semantic instruction and a second semantic instruction; perform semantic processing on the voice instruction recognition result to obtain operation information, the operation information including a first semantic instruction and a second semantic instruction, including: identifying the voice instruction recognition result to obtain a target intent and a target sub-intention of the voice instruction recognition result; pre-verifying the target sub-intention according to the target intent to obtain a response logic of the target intent and a trial run result of the target sub-intention; using the response logic as the first semantic instruction of the operation information, and using the target sub-intention and the trial run result as the second semantic instruction of the operation information; wherein the target sub-intention is the operation that needs to be performed by the voice instruction recognition result to control the target device across devices, and the trial run result is used to represent the processing result obtained by simulating the operation of the target sub-intention; Execute the first semantic instruction and send the second semantic instruction to the second terminal; the second semantic instruction is used to instruct the second terminal to send an execution command to the server and receive the business logic corresponding to the second semantic instruction fed back by the server.
5. The voice control method according to claim 4, characterized in that: The receiving operation information fed back by the server after semantic processing of the voice command recognition result includes: Receive the response logic of the server for the target intent feedback in the voice instruction recognition result, and receive the trial operation result of the server for the target sub-intent feedback in the voice instruction recognition result.
6. The voice control method according to claim 4, characterized in that: The first semantic instruction is the response logic of the server to the target intent in the voice instruction recognition result, and the second semantic instruction is the trial operation result and the target sub-intention fed back by the server to the target sub-intention in the voice instruction recognition result; Correspondingly, executing the first semantic instruction and sending the second semantic instruction to the second terminal includes: Execute the response logic fed back by the server, and send the target sub-intention and the trial operation result fed back by the server to the second terminal.
7. A voice control method, characterized in that: include: Receiving a second semantic instruction sent by the first terminal when executing the first semantic instruction; the first semantic instruction and the second semantic instruction are operation information fed back by the server according to the voice instruction recognition result after the first terminal sends the voice instruction recognition result to the server; The operation information fed back by the server according to the voice instruction recognition result includes: identifying the voice instruction recognition result to obtain the target intent and target sub-intention of the voice instruction recognition result; pre-verifying the target sub-intention according to the target intent to obtain the response logic of the target intent and the trial operation result of the target sub-intention; using the response logic as the first semantic instruction of the operation information, and using the target sub-intention and the trial operation result as the second semantic instruction of the operation information; wherein the target sub-intention is the operation that needs to be performed by the voice instruction recognition result to control the target device across devices, and the trial operation result is used to represent the processing result obtained by simulating the operation of the target sub-intention; Recognize the second semantic instruction and obtain a recognition result of the second semantic instruction; According to the recognition result, sending an execution command to the server; Receive the business logic corresponding to the second semantic instruction fed back by the server according to the execution command, and execute the business logic.
8. The voice control method according to claim 7, characterized in that: The operation information includes the response logic of the server to the target intent feedback in the voice command recognition result, and the trial operation result of the server to the target sub-intent feedback in the voice command recognition result; Correspondingly, the receiving of the second semantic instruction sent by the first terminal when executing the first semantic instruction includes: The target sub-intention and the trial operation result sent by the first terminal when receiving the response logic.
9. The voice control method according to claim 7, characterized in that: The second semantic instruction includes a test run result obtained by the server pre-verifying the target sub-intent in the voice instruction recognition result; Correspondingly, the identifying the second semantic instruction and obtaining a recognition result of the second semantic instruction includes: Identify the second semantic instruction and obtain the trial run result of the target sub-intention.
10. The voice control method according to claim 9, characterized in that: The sending of the execution command to the server according to the recognition result includes: According to the recognition result, an execution command corresponding to the trial operation result is sent to the server.
11. A voice control device, characterized in that: include: A first receiving module, used to receive a voice command recognition result sent by the first terminal; A semantic processing module, used for performing semantic processing on the voice instruction recognition result to obtain operation information, wherein the operation information includes a first semantic instruction and a second semantic instruction, including: identifying the voice instruction recognition result to obtain a target intent and a target sub-intention of the voice instruction recognition result; pre-verifying the target sub-intention according to the target intent to obtain a response logic of the target intent and a trial operation result of the target sub-intention; using the response logic as the first semantic instruction of the operation information, and using the target sub-intention and the trial operation result as the second semantic instruction of the operation information; wherein the target sub-intention is an operation that needs to be performed by the voice instruction recognition result to control the target device across devices, and the trial operation result is used to represent the processing result obtained by simulating the operation of the target sub-intention; A first sending module, used for sending the first semantic instruction and the second semantic instruction to the first terminal, wherein the first semantic instruction is used for instructing the first terminal to send the second semantic instruction to the second terminal; A command execution module is used to receive an execution command fed back by the second terminal after the second terminal recognizes the second semantic instruction, and send the business logic corresponding to the second semantic instruction to the second terminal according to the execution command.
12. A voice control device, characterized in that: include: A voice recognition module is used to receive a voice command input by a user, and perform voice recognition on the voice command to obtain a voice command recognition result; A second sending module, used for sending the voice command recognition result to a server; A second receiving module is used to receive operation information fed back by the server after semantic processing of the voice instruction recognition result, the operation information including a first semantic instruction and a second semantic instruction; semantic processing is performed on the voice instruction recognition result to obtain operation information, the operation information including a first semantic instruction and a second semantic instruction, including: identifying the voice instruction recognition result to obtain a target intent and a target sub-intention of the voice instruction recognition result; pre-verifying the target sub-intention according to the target intent to obtain a response logic of the target intent and a trial run result of the target sub-intention; using the response logic as the first semantic instruction of the operation information, and using the target sub-intention and the trial run result as the second semantic instruction of the operation information; wherein the target sub-intention is the operation that needs to be performed by the voice instruction recognition result to control the target device across devices, and the trial run result is used to represent the processing result obtained by simulating the operation of the target sub-intention; An instruction execution module is used to execute the first semantic instruction and send the second semantic instruction to the second terminal; the second semantic instruction is used to instruct the second terminal to send an execution command to the server and receive the business logic corresponding to the second semantic instruction fed back by the server.
13. A voice control device, characterized in that: include: A third receiving module is used to receive a second semantic instruction sent by the first terminal when executing the first semantic instruction; the first semantic instruction and the second semantic instruction are operation information fed back by the server according to the voice instruction recognition result after the first terminal sends the voice instruction recognition result to the server; The operation information fed back by the server according to the voice instruction recognition result includes: identifying the voice instruction recognition result to obtain the target intent and target sub-intention of the voice instruction recognition result; pre-verifying the target sub-intention according to the target intent to obtain the response logic of the target intent and the trial operation result of the target sub-intention; using the response logic as the first semantic instruction of the operation information, and using the target sub-intention and the trial operation result as the second semantic instruction of the operation information; wherein the target sub-intention is the operation that needs to be performed by the voice instruction recognition result to control the target device across devices, and the trial operation result is used to represent the processing result obtained by simulating the operation of the target sub-intention; An instruction recognition module, used for recognizing the second semantic instruction and obtaining a recognition result of the second semantic instruction; A third sending module, used for sending an execution command to a server according to the recognition result; The business execution module is used to receive the business logic corresponding to the second semantic instruction fed back by the server according to the execution command, and execute the business logic.
14. A server, characterized in that: The server includes a memory, a processor, a natural language understanding module and a dialogue management module, the memory is used to store a computer program, and the computer program includes instructions. When the instructions are executed by the server, the server executes the voice control method described in any one of claims 1 to 3.
15. A terminal device, characterized in that: The terminal device includes a memory, a processor and a voice assistant, the memory is used to store a computer program, and the computer program includes instructions. When the instructions are executed by the terminal device, the terminal device executes the voice control method described in any one of claims 4 to 6.
16. A terminal device, characterized in that: The terminal device includes a memory and a processor, the memory is used to store a computer program, and the computer program includes instructions. When the instructions are executed by the terminal device, the terminal device executes the voice control method according to any one of claims 7 to 10.
17. A computer storage medium, characterized in that: The computer-readable storage medium stores a computer program, which includes instructions. When the instructions are executed on a terminal device, the terminal device executes the voice control method as described in any one of claims 1 to 3, 4 to 6, or 7 to 10.
18. A computer program product comprising instructions, characterized in that When the computer program product is executed on a terminal device, the terminal device executes the voice control method according to any one of claims 1 to 3, 4 to 6 or 7 to 10.
Citation Information
Patent Citations
Method and device for voice control of electrical equipment
CN102736536A
Intelligent equipment control system and method supporting natural language information interaction
CN107085463A
Method and device for remote control of television by voice, electronic device and readable medium
CN109451338A
Voice control method, related device and storage medium
CN109493851A
System and method for expanding voice interactive function of equipment
CN110265033A
