Voice Function Configuration Management Method, Device, Electronic Device and Readable Storage Medium
By obtaining device identification and configuration components to generate device function configuration files, the problem of component matching difficulties in the development of smart device voice assistants is solved, and configuration efficiency and reliability of device support are improved.
Patent Information
- Application Number
- CN202111154332.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2041-09-29
AI Technical Summary
The existing method of developing voice assistants for smart devices requires distinguishing whether each functional component is suitable for different types of devices, resulting in excessive labor consumption.
By obtaining the device identification and configuring the component, receiving component selection instructions to generate the device function configuration file, and responding to voice requests based on the file, ensuring that the component selection matches the device.
It reduces the difficulty of matching users when selecting components, reduces the risk that the device does not support functional configuration files, and improves configuration efficiency.
Smart Images

Figure CN113867781B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of device configuration, and specifically relates to a method, device, electronic device and readable storage medium for voice function configuration management. Background Art
[0002] With the development of AI (Artificial Intelligence) technology and the improvement of natural language processing technology, the use of the voice assistant function of smart devices by consumers is gradually increasing. Many companies will choose to develop an intelligent dialogue system as a solution for the voice assistant. However, with the more popularization of the voice assistant, the same set of dialogue systems needs to be used for different types of devices of the same company. One is to reduce the R & D cost, and the other is to empower AI to the entire industrial chain.
[0003] Due to different device types, such as a company's product line including different products such as TVs, refrigerators, air conditioners, range hoods, cars and dishwashers, their corresponding application scenarios are different and the requirements are also different. In addition, for different products, due to their different compositions, the functions that can be realized are also different. For example, there are products with screens and products without screens. Therefore, for developers, when developing an intelligent dialogue system, they also need to distinguish whether each functional component is applicable to the corresponding device, which is labor-consuming and very troublesome. Summary of the Invention
[0004] The present application provides a method, device, electronic device and readable storage medium for voice function configuration management, aiming to solve the problem that the existing development method needs to distinguish whether each functional component is applicable to the corresponding device during development, which is labor-consuming.
[0005] In a first aspect, the present application provides a method for voice function configuration management, and the method includes:
[0006] Obtain the device identifier of the device to be configured, and the configuration components corresponding to the device identifier;
[0007] Receive a component selection instruction, select the component to be configured from the configuration components, and generate a device function configuration file corresponding to the device identifier according to the component to be configured;
[0008] Receive a voice request, and respond to the voice request according to the device function configuration file to obtain an output response result.
[0009] In a possible implementation manner, the obtaining the device identifier of the device to be configured includes:
[0010] Receive a configuration management request, and display the devices to be selected;
[0011] Receive a device selection request, and select a device to be configured from the devices to be selected;
[0012] Generate a device identifier for the device to be configured.
[0013] In a possible implementation, the receiving component selects an instruction, selects a component to be configured from the configuration components, and generates a device function configuration file corresponding to the device identifier according to the component to be configured, including:
[0014] Receive a component selection instruction, extract the component to be configured from the configuration components, and determine the component response priority of each component to be configured;
[0015] Package each component to be configured according to the component response priority to generate a device function configuration file corresponding to the device identifier.
[0016] In a possible implementation, the component selection instruction includes a drag-and-drop selection instruction. The receiving component selection instruction determines multiple components to be configured in the configuration components and the component response priority of each component to be configured, including:
[0017] Display a component configuration form;
[0018] Receive a component selection instruction for the configuration components, and determine each selected component to be configured;
[0019] Receive a matching instruction for the component configuration form, and match each component to be configured with each sub-column corresponding to the matching instruction;
[0020] Obtain the preset response priority of each sub-column, and use the preset response priority of each sub-column as the component response priority of the corresponding component to be configured.
[0021] In a possible implementation, the component selection instruction includes a click selection instruction. The receiving component selection instruction determines multiple components to be configured in the configuration components and the component response priority of each component to be configured, including:
[0022] Receive a click selection instruction for the configuration components, and determine each selected component to be configured;
[0023] Obtain the instruction sending time of each click selection instruction;
[0024] Determine the component response priority of each component to be configured according to the order of the instruction sending times.
[0025] In a possible implementation, the receiving a voice request and responding to the voice request according to the device function configuration file to obtain an output response result includes:
[0026] Receive a voice request;
[0027] Convert the audio information in the voice instruction into text information through a preset voice recognition module;
[0028] Perform semantic recognition on the text information through a preset semantic recognition module to obtain a dialogue request;
[0029] Respond to the dialogue request according to the device function configuration file to obtain an output response result.
[0030] In a possible implementation manner, the responding to the dialogue request according to the device function configuration file to obtain an output response result includes:
[0031] Obtain the component response priority of each to-be-configured component in the device function configuration file;
[0032] Determine the target component with the highest component response priority, and respond to the dialogue request through the target component;
[0033] If the target component generates a response result, use the response result as the output response result;
[0034] If the target component does not generate a response result, obtain alternative components with a component response priority lower than that of the target component, and respond to the request content through the alternative components to obtain an output response result.
[0035] In a second aspect, the present application provides a voice function configuration management device, and the voice function configuration management device includes:
[0036] An acquisition unit, configured to acquire a device identifier of a to-be-configured device and a configuration component corresponding to the device identifier;
[0037] A generation unit, configured to receive a component selection instruction, select a to-be-configured component from the configuration components, and generate a device function configuration file corresponding to the device identifier according to the to-be-configured component;
[0038] An output unit, configured to receive a voice request, respond to the voice request according to the device function configuration file, and obtain an output response result.
[0039] In a possible implementation manner, the acquisition unit is further configured to:
[0040] Receive a configuration management request and display the devices to be selected;
[0041] Receive a device selection request and select a to-be-configured device from the devices to be selected;
[0042] Generate the device identifier of the device to be configured.
[0043] In a possible implementation, the generating unit is further configured to:
[0044] Receive a component selection instruction, extract the components to be configured from the configuration components, and determine the component response priorities of the components to be configured;
[0045] Encapsulate the components to be configured according to the component response priorities to generate a device function configuration file corresponding to the device identifier.
[0046] In a possible implementation, the generating unit is further configured to:
[0047] Display a component configuration form;
[0048] Receive a component selection instruction for the configuration components, and determine the components to be configured that are selected;
[0049] Receive a matching instruction for the component configuration form, and match the components to be configured with the respective sub-columns corresponding to the matching instruction;
[0050] Obtain the preset response priorities of the respective sub-columns, and use the preset response priorities of the respective sub-columns as the component response priorities of the corresponding components to be configured.
[0051] In a possible implementation, the generating unit is further configured to:
[0052] Receive a click selection instruction for the configuration components, and determine the components to be configured that are selected;
[0053] Obtain the instruction sending times of the respective click selection instructions;
[0054] Determine the component response priorities of the components to be configured according to the sequence of the instruction sending times of the respective instructions.
[0055] In a possible implementation, the output unit is further configured to:
[0056] Receive a voice request;
[0057] Convert the audio information in the voice instruction into text information through a preset voice recognition module;
[0058] Perform semantic recognition on the text information through a preset semantic recognition module to obtain a dialogue request;
[0059] Respond to the dialogue request according to the device function configuration file to obtain an output response result.
[0060] In a possible implementation, the output unit is further configured to:
[0061] Obtain the component response priorities of each of the to-be-configured components in the device function configuration file;
[0062] Determine the target component with the highest component response priority, and respond to the conversation request through the target component;
[0063] If the target component generates a response result, use the response result as the output response result;
[0064] If the target component does not generate a response result, obtain alternative components whose component response priorities are lower than that of the target component, and respond to the request content through the alternative components to obtain the output response result.
[0065] In a third aspect, the present application further provides an electronic device, which includes a processor and a memory. A computer program is stored in the memory, and when the processor calls the computer program in the memory, it executes the steps in any of the voice function configuration management methods provided by the present application.
[0066] In a fourth aspect, the present application further provides a readable storage medium, on which a computer program is stored, and the computer program is loaded by a processor to execute the steps in the voice function configuration management method.
[0067] In summary, the voice function configuration management method provided by the present application includes: obtaining the device identifier of the to-be-configured device and the configuration components corresponding to the device identifier; receiving a component selection instruction, selecting the to-be-configured components from the configuration components, and generating a device function configuration file corresponding to the device identifier according to the to-be-configured components; receiving a voice request, and responding to the voice request according to the device function configuration file to obtain an output response result. Therefore, when the user selects the to-be-configured components, there will be no configuration components that do not match the to-be-configured device, and the user no longer needs to distinguish the components. Moreover, it also reduces the possibility that the user configures unsupported to-be-configured components on the to-be-configured device, and reduces the risk that the to-be-configured device does not support the device function configuration file. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, without creative efforts, other drawings can be obtained according to these drawings.
[0069] Figure 1It is a schematic diagram of the application scenario of the voice function configuration management method provided by the embodiments of the present application;
[0070] Figure 2 It is a schematic flowchart of a voice function configuration management method provided by the embodiments of the present application;
[0071] Figure 3 It is a schematic diagram of selecting a device to be configured provided by the embodiments of the present application;
[0072] Figure 4 It is a schematic flowchart of obtaining an output response result provided by the embodiments of the present application;
[0073] Figure 5 It is another schematic flowchart of obtaining an output response result provided by the embodiments of the present application;
[0074] Figure 6 It is a schematic structural diagram of an embodiment of a voice function configuration management device provided by the embodiments of the present application;
[0075] Figure 7 It is a schematic structural diagram of an embodiment of an electronic device provided by the embodiments of the present application. Detailed implementation manners
[0076] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present application.
[0077] In the description of the embodiments of the present application, it should be understood that the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specifically defined.
[0078] The following description is provided to enable any person skilled in the art to implement and use the present application. In the following description, details are set forth for purposes of explanation. It should be understood that those of ordinary skill in the art can recognize that the present application can be implemented without the use of these specific details. In other instances, well-known processes are not elaborated in detail to avoid obscuring the description of the embodiments of the present application with unnecessary details. Therefore, the present application is not intended to be limited to the illustrated embodiments, but rather to be in line with the broadest scope consistent with the principles and features disclosed in the embodiments of the present application.
[0079] Embodiments of the present application provide a method, apparatus, electronic device, and readable storage medium for voice function configuration management. Among them, the voice function configuration management apparatus can be integrated into the electronic device, and the electronic device can operate independently or in a device cluster mode.
[0080] The execution subject of the voice function configuration management method in the embodiments of the present application can be the voice function configuration management apparatus provided in the embodiments of the present application, or it can also be an electronic device. In the following, the electronic device will be used as an example of the execution subject for explanation. It should be noted that using the electronic device as an example of the execution subject is only for convenience of understanding and does not limit the present application.
[0081] See Figure 1 , Figure 1 is a schematic diagram of the scenario of the voice function configuration management system provided by the embodiments of the present application. Among them, the voice function configuration management system can include an electronic device 100, and the voice function configuration management apparatus is integrated in the electronic device 100.
[0082] In addition, as Figure 1 shown, the voice function configuration management system can also include a memory 200 for storing information.
[0083] It should be noted that Figure 1 the schematic diagram of the scenario of the voice function configuration management system shown is only an example. The voice function configuration management system and scenario described in the embodiments of the present application are for more clearly explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those of ordinary skill in the art know that with the evolution of the voice function configuration management system and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present invention are equally applicable to similar technical problems.
[0084] Refer to Figure 2 , Figure 2It is a schematic flowchart of a voice function configuration management method provided by an embodiment of the present application. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here. The voice function configuration management method includes steps 201 to 204, where:
[0085] 201. Obtain the device identifier of the device to be configured, and the configuration component corresponding to the device identifier.
[0086] The device to be configured refers to a device to which a voice function is to be added. The embodiments of the present application do not limit the type of the device to be configured. The device to be configured can be any device in household appliances. For example, it can be a refrigerator, an air conditioner, a dishwasher, or the like. Exemplarily, the device to be configured can be a device that already has a voice function or a device that does not yet have a voice function. For example, in the device to be configured, a voice function may already be set, but the voice function is not perfect, and the user also wants to add more auxiliary functions. At this time, the user can use the voice function configuration management method in the embodiments of the present application to add a new voice function to the device to be configured. Or, the device to be configured can be a device that does not yet have a voice function, and the user wants to add a voice function to this device for control. At this time, the user can also use the voice function configuration management method in the embodiments of the present application to add a voice function to the device to be configured.
[0087] The device identifier can be an identifier used to verify the identity of the device to be configured.
[0088] In some embodiments, for each device to be configured, the electronic device can assign a specific identifier to it. For example, it can be a specific coding identifier. For example, for each electrical appliance in the user's home, the electronic device can, when the electrical appliance is installed, read the preset electrical appliance number therein, and then generate a specific coding identifier.
[0089] In some embodiments, the electronic device can assign a specific identifier to each type of device. For example, the electronic device can assign a specific identifier to a type of device including a display screen, and then assign another specific identifier to a type of device that does not include a display screen. According to the identifier of the device to be configured, the electronic device can determine whether it includes a display screen.
[0090] A configuration component refers to a functional component supported by a device to be configured. For different devices to be configured, since the installed components are different and the application scenarios are also different, the supported functions are also different. For example, a device to be configured without a display screen cannot support functions that require display, such as watching movies and displaying recipes, so watching movies and displaying recipes are not configuration components of these devices to be configured. Another example is that an electrical appliance placed in the toilet does not require the function of displaying recipes, so for the electrical appliance placed in the toilet, displaying recipes is not a configuration component.
[0091] During configuration, the user can select the device to be configured through a visual interface to generate a device identifier. At this time, obtaining the device identifier of the device to be configured includes:
[0092] (1.1) Receive a configuration management request and display the devices to be selected.
[0093] The configuration management request can be used to start the software that executes the voice function configuration management method of the embodiments of the present application in the electronic device, and can be a request sent by the user's operation on the visual interface. For example, the user can click on the software icon in the visual interface to send a configuration management request to open the software for configuring the voice assistant.
[0094] The devices to be selected are the devices pre-stored in the database that support the configuration of the voice assistant. When the electronic device receives the user's click on the software icon for configuring the voice assistant software, it can display the icons corresponding to all the devices to be selected on the visual interface, or classify the devices to be selected by type and display the corresponding text identifiers of the categories on the visual interface. The user can select the corresponding text identifier according to their own needs and enter the display interface corresponding to the category, where the icons of the devices to be selected corresponding to the category are displayed for the user to select.
[0095] (1.2) Receive a device selection request and select the device to be configured from the devices to be selected.
[0096] The device selection request refers to a request for selecting a target device from the devices to be selected, and can also be a request sent by the user's operation on the visual interface. For example, the user can click on the icon of the device to be selected to send a device selection request to obtain the device to be configured.
[0097] Further, for a device to be selected that supports multiple component functions, in addition to the request for the device to be selected, the device selection request may also include a request for selecting components. Suppose there is a type-A refrigerator in the device to be selected that can support a display screen. Then, in addition to the selection request for the type-A refrigerator, the device selection request may also include a selection request for the display screen. If the device selection request issued by the user includes a selection request for the display screen, it indicates that the device to be configured is a type-A refrigerator equipped with a display screen. If the device selection request issued by the user does not include a selection request for the display screen, it indicates that the device to be configured is a type-A refrigerator without a display screen.
[0098] Reference Figure 3 , Figure 3 is the display interface of the device to be selected. It can be seen that Figure 3 on the left side of Figure 3 there is a text identifier corresponding to the display category. The currently selected text identifier by the user is "Refrigerator". On the right side of Figure 3 , there is an icon "X16" corresponding to the refrigerator model, and there is also a selection button for the display screen below "Is there a screen?". When the user clicks this selection button, it is to issue a component selection request in the device selection request. In Figure 3 the component selection request corresponds to the refrigerator "X16" including a display screen. Therefore, the device to be configured is the "X16" refrigerator including a display screen.
[0099] (1.3) Generate the device identifier of the device to be configured.
[0100] Taking Figure 3 as an example, the electronic device can generate a corresponding device identifier according to the selected refrigerator model and whether it includes a display screen. In addition, the device identifier may also include the public key (appkey) and token (apptoken) of the device to be configured. The electronic device stores the information of the device to be configured, the corresponding public key, and the token in the database together.
[0101] 202. Receive a component selection instruction, select a component to be configured from the configuration components, and generate a device function configuration file corresponding to the device identifier according to the component to be configured.
[0102] The component selection instruction is a request for selection from the configuration components. Similarly, the component selection instruction can be a request issued by the user's operation on the visual interface. For example, the user can click on the configuration components on the visual interface to issue a component selection instruction. Or, the user can drag the configuration components on the visual interface and drag them to a preset area. The electronic device takes the configuration components in this area as the components to be configured.
[0103] A device function configuration file refers to a file used to enhance the voice assistant function of a device to be configured. In the device function configuration file, data of each component to be configured is included. For example, in the device function configuration file, interfaces between each component to be configured and a database or a search engine can be included. When responding to a request, the electronic device can perform a search through each interface to obtain a response result.
[0104] When there are multiple components to be configured, the electronic device can either call all the components to be configured in the device function configuration file to respond to the request simultaneously, or respond to the request in a certain order. If the electronic device responds to the request in a certain order, in addition to the interfaces, the function configuration file can also include the response priorities of each component to be configured. At this time, the receiving component selects an instruction, selects a component to be configured from the configured components, and generates a device function configuration file corresponding to the device identifier according to the component to be configured, including:
[0105] (2.1) The receiving component selects an instruction, extracts the component to be configured from the configured components, and determines the component response priorities of each component to be configured.
[0106] (2.2) Package each component to be configured according to the component response priority to generate a device function configuration file corresponding to the device identifier.
[0107] The process of determining the component to be configured can refer to the description in step 202 and will not be elaborated here.
[0108] The component response priority refers to the priority order for the electronic device to call the component to be configured. When the electronic device responds to a request through the device function configuration file, it will first call the component to be configured with a higher component response priority to respond to the request. Assume that the device function configuration file contains two components, "watch a movie" and "query recipe", and the component response priority of "query recipe" is higher than that of "watch a movie". Then when the electronic device responds to a request through the device function configuration file, it will first call the component to be configured "query recipe". Therefore, users can adjust the component response priorities of each component to be configured to change the response capabilities of different devices to be configured according to scenario requirements. For example, users can adjust the component response priority of the component to be configured related to cooking in kitchen appliances, such as "query recipe", to the highest, and adjust the component response priority of "query recipe" in bedroom appliances to the lowest. Thus, the device to be configured will not produce response results that do not match the scenario, and the intelligence of the device to be configured can be improved.
[0109] In some embodiments, the user issues a component selection instruction by dragging, and the electronic device can determine the component response priority according to the preset priority of the area corresponding to the dragging end point. At this time, receiving the component selection instruction and determining multiple to-be-configured components in the configuration components and the component response priority of each to-be-configured component includes:
[0110] (3.1) Display a component configuration form.
[0111] A component configuration form refers to a form used to store information of to-be-configured components. The user can drag the configuration components into the sub-columns of the component configuration form by dragging, and the electronic device will use the configuration components in each sub-column as to-be-configured components. If a display screen is installed on the to-be-configured device, the component configuration form can be displayed on the display screen to show the voice assistant function that has been set for the current to-be-configured device, that is, to show the to-be-configured components.
[0112] Specifically, the electronic device can display the component configuration form in the display interface of the configuration components, or the electronic device can also add a new display interface for displaying the component configuration form.
[0113] (3.2) Receive the component selection instruction for the configuration components and determine the selected to-be-configured components.
[0114] (3.3) Receive the matching instruction for the component configuration form and match each to-be-configured component with the corresponding sub-column of the matching instruction.
[0115] A sub-column is a storage unit in the component configuration form for storing a configuration component, and each sub-column can refer to a row or a column of the component configuration form in the visual interface.
[0116] The matching instruction is an instruction for selecting a sub-column in the component configuration form. Exemplarily, when the user stores the configuration component in the sub-column by dragging, the matching instruction can be the release operation after dragging the configuration component onto the sub-column. For example, when the user grabs the configuration component by holding down the left mouse button and moves the mouse to drag the configuration component onto the sub-column and then releases the left mouse button, this operation is to issue a matching instruction. Or, the matching instruction can be the instruction issued when the user clicks on the sub-column after clicking on the to-be-configured component. For example, the user can first click on one of the configuration components, and the clicked configuration component is used as the to-be-configured component by the electronic device, and then the user clicks on a certain sub-column in the component configuration form, which is to issue a matching instruction.
[0117] Furthermore, if the component configuration form is displayed on the display screen of the to-be-configured device, the electronic device can also display the response result of the to-be-configured component in the corresponding sub-column.
[0118] (3.4) Obtain the preset response priorities of each of the sub-columns, and use the preset response priorities of each of the sub-columns as the component response priorities of the corresponding components to be configured.
[0119] The electronic device can display the preset response priorities of each sub-column to the user in the form of a positional relationship. For example, the sub-column with a higher preset response priority can be displayed above the sub-column with a lower preset response priority. Therefore, the user can intuitively judge the preset response priorities of each sub-column to facilitate adjusting the component response priorities of the components to be configured. Specifically, for a component to be configured that is expected to respond preferentially, it can be dragged to the top sub-column, while for a component to be configured that is not expected to respond preferentially, it can be dragged to the bottom sub-column.
[0120] As can be seen from steps (3.1) - (3.1), when the component selection instruction is a drag selection instruction, the component response priority can be obtained intuitively and effectively by matching the components to be configured and the sub-columns.
[0121] In some other embodiments, the user issues a component selection instruction by clicking, and the electronic device can determine the component response priority based on the time when the component selection instruction is issued. At this time, the component selection instruction includes a click selection instruction, the component selection instruction includes a drag selection instruction, and the receiving the component selection instruction and determining multiple components to be configured in the configuration components and the component response priorities of each of the components to be configured includes:
[0122] (4.1) Receive the click selection instruction for the configuration component, and determine each of the components to be configured that are selected.
[0123] When the component selection instruction is a click selection instruction, every time the user clicks on a configuration component, the electronic device immediately selects the configuration component as a component to be configured. For example, the user moves the mouse to move the mouse cursor in the visual interface to the icon of a certain configuration component, and then clicks the left mouse button, and the electronic device immediately selects the configuration component as a component to be configured.
[0124] (4.2) Obtain the instruction issuance time of each of the click selection instructions.
[0125] The instruction issuance time refers to the time when the click selection instruction is issued. Assuming that the user issues a click selection instruction by clicking the mouse, the time when the user clicks the left mouse button to select the component to be configured can be used as the instruction issuance time.
[0126] (4.3) Determine the component response priorities of each of the components to be configured according to the sequence of the instruction issuance times of each of the instructions.
[0127] The electronic device can set the to-be-configured components with earlier instruction issuance times as high-priority components, and set the to-be-configured components with later instruction issuance times as low-priority components. For example, if the user successively clicks the left mouse button to select the to-be-configured component A, the to-be-configured component B, and the to-be-configured component C, then the component response priorities of the to-be-configured component A, the to-be-configured component B, and the to-be-configured component C from high to low are the to-be-configured component A, the to-be-configured component B, and the to-be-configured component C respectively.
[0128] It can be seen that the method in steps (4.1)-(4.3) is simpler for the user's operation and can also effectively obtain the component response priorities.
[0129] 203. Receive a voice request, and respond to the voice request according to the device function configuration file to obtain an output response result.
[0130] A voice request refers to a request input by the user in a voice manner. After generating the device function configuration file, the electronic device can directly apply it to the corresponding to-be-configured device, or perform a simulation run. The user can judge whether the device function configuration file is successfully generated based on the result of the simulation run.
[0131] The user can input a voice request through a peripheral device connected to the electronic device. For example, the user can input a voice request through a microphone, or input a voice request through an embedded microphone on the electronic device. The embodiments of the present application do not limit this.
[0132] If each to-be-configured component carries a component response priority, when the electronic device generates a device function configuration file, it can connect the interface data corresponding to each to-be-configured component according to the component response priorities of different to-be-configured components to generate a device function configuration file that can respond to requests in a certain order.
[0133] In summary, the voice function configuration management method provided by the embodiments of the present application includes: obtaining the device identifier of the to-be-configured device and the configuration components corresponding to the device identifier; receiving a component selection instruction, selecting to-be-configured components from the configuration components, and generating a device function configuration file corresponding to the device identifier according to the to-be-configured components; receiving a voice request, and responding to the voice request according to the device function configuration file to obtain an output response result. Therefore, when the user selects to-be-configured components, there will be no configuration components that do not match the to-be-configured device, and the user no longer needs to distinguish the components. And it also reduces the possibility that the user configures unsupported to-be-configured components on the to-be-configured device, and reduces the risk that the to-be-configured device does not support the device function configuration file.
[0134] In some embodiments, the electronic device can recognize and semantically understand the voice request to improve the accuracy of instruction recognition. Refer to Figure 4, at this time, receiving the voice request and responding to the voice request according to the device function profile, the obtained output response result includes:
[0135] 301. Receive a voice request.
[0136] For specific descriptions, reference can be made to the descriptions in step 203, and details will not be elaborated here.
[0137] 302. Through a preset voice recognition module, convert the audio information in the voice instruction into text information.
[0138] In the voice recognition module, the electronic device can identify the voice request through an automatic speech recognition model (ASR) such as a statistical language model. The statistical language model is a mathematical model that starts from the perspective of probability statistics to solve the characteristics related to the context of natural language. The core of the statistical language model is to judge the probability of a sentence appearing in the text.
[0139] The text information refers to the text information carried in the audio data of the voice request. For example, when the user inputs the voice "Check recipes" through the microphone, the text information is the information of "Check recipes".
[0140] 303. Through a preset semantic recognition module, perform semantic recognition on the text information to obtain a dialogue request.
[0141] In the semantic recognition module, the electronic device can perform semantic recognition on the text information through a natural language processing model (NLP). The natural language processing model extracts the features in the text information to identify the semantics carried by the text information and processes it to obtain a dialogue request. For example, when the text information is the information of "Check recipes", after semantic processing in the semantic recognition module, the electronic device can obtain a dialogue request of "Query recipes".
[0142] 304. Respond to the dialogue request according to the device function profile to obtain an output response result.
[0143] The embodiment of the present application also provides a specific structure capable of implementing steps 301 - 304:
[0144] The ASR module is used to execute step 302 to convert the audio information in the voice instruction into text information.
[0145] The NLU module is used to execute step 303 to perform semantic recognition on the text information to obtain a dialogue request.
[0146] The Skill module is used to respond according to the text information through the interfaces of each component to be configured.
[0147] The DM module is used to select the component to be configured that finally generates a response according to the text information when there are multiple components to be configured in the Skill module.
[0148] The TTS module is used to convert information into voice when the output response result contains voice.
[0149] In some embodiments, if the component to be configured with the highest component response priority does not generate a response result, the electronic device can process the conversation request through the component to be configured with the second highest component response priority. Refer to Figure 5 , at this time, responding to the conversation request according to the device function configuration file to obtain an output response result includes:
[0150] 401. Obtain the component response priorities of each of the components to be configured in the device function configuration file.
[0151] It should be noted that steps 401 - step 403A / step 403B can either be the processing steps of the electronic device when the user configures the device function configuration file into the device to be configured and then uses the device to be configured, or the processing steps of the electronic device when simulating the device function configuration file after generating the device function configuration file.
[0152] When steps 401 - step 403A / step 403B are the processing steps of the electronic device when simulating the device function configuration file after generating the device function configuration file, the user can first issue a simulation request, such as clicking the "simulation" function key on the visual interface, and then the electronic device reads the device function configuration file in the database through the DevOps (Development - Operations) tool. When reading, the electronic device can initiate a read request to the database through the public key and token to obtain the device function configuration file corresponding to the device to be configured.
[0153] 402. Determine the target component with the highest component response priority, and respond to the conversation request through the target component.
[0154] The target component refers to the component to be configured with the highest component response priority in the device function configuration file. For example, if the device function configuration file contains two components to be configured, "watch a movie" and "query recipes", and the component response priority of the component to be configured "watch a movie" is higher than that of the component "query recipes", the target component refers to the component to be configured "watch a movie". The reason for first responding to the conversation request through the target component is that the target component is the component to be configured with the highest user demand in the current scenario.
[0155] 403A. If the target component generates a response result, use the response result as the output response result.
[0156] 403B. If the target component does not generate a response result, obtain an alternative component whose component response priority is lower than that of the target component, and use the alternative component to respond to the request content to obtain an output response result.
[0157] If the target component does not generate a response result, it indicates that the purpose of the user's dialogue request may not be to let the target component respond. At this time, an alternative component with a component response priority lower than that of the target component can be selected to respond to the dialogue request. For example, the electronic device can select a to-be-configured component whose component response priority is lower than that of the target component as the alternative component. Or the electronic device can select a to-be-configured component with an even lower component response priority as the alternative component. It can be understood that if the alternative component still does not generate a response result, continue to select a to-be-configured component with a component response priority lower than that of the alternative component to respond to the dialogue request.
[0158] In addition, an embodiment of the present application further provides a structure that can execute all the above steps, including:
[0159] A dialogue module, a storage module, and a device configuration module.
[0160] Among them, the dialogue module includes:
[0161] An ASR sub-module, which is used to execute step 302 to convert the audio information in the voice instruction into text information.
[0162] An NLU sub-module, which is used to execute step 303 to perform semantic recognition on the text information to obtain a dialogue request.
[0163] A Skill sub-module, which is used to respond through the interfaces of each to-be-configured component according to the text information.
[0164] A DM sub-module, which is used to select the to-be-configured component that finally generates a response according to the text information when there are multiple to-be-configured components in the Skill module.
[0165] A TTS sub-module, which is used to convert information into voice when the output response result includes voice.
[0166] The storage module can be a memory in the electronic device or a storage server in the cloud. The embodiment of the present application does not limit this.
[0167] The device configuration module includes:
[0168] The device management module is used to create and select devices to be configured, and at the same time adjust information such as the device type / model / whether there is a screen of the devices to be configured.
[0169] The intention weight configuration module is used to determine the component response priorities of different components to be configured.
[0170] The Skill configuration module is used to select components to be configured.
[0171] The dialogue simulation module is used to be able to simulate the device function configuration file or the components to be configured at any time during the development process and observe the configuration effect.
[0172] The output module is used to generate the device function configuration file and information such as the protocol corresponding to the device function configuration file.
[0173] In order to better implement the voice function configuration management method in the embodiments of the present application, on the basis of the voice function configuration management method, an embodiment of the present application also provides a voice function configuration management device, as Figure 6 shown, which is a schematic structural diagram of an embodiment of the voice function configuration management device in the embodiments of the present application. The voice function configuration management device 500 includes:
[0174] An acquisition unit 501, which is used to acquire the device identifier of the device to be configured and the configuration components corresponding to the device identifier;
[0175] A generation unit 502, which is used to receive a component selection instruction, select the components to be configured from the configuration components, and generate a device function configuration file corresponding to the device identifier according to the components to be configured;
[0176] An output unit 503, which is used to receive a voice request and respond to the voice request according to the device function configuration file to obtain an output response result.
[0177] In a possible implementation manner, the acquisition unit 501 is further used for:
[0178] Receiving a configuration management request and displaying the devices to be selected;
[0179] Receiving a device selection request and selecting the device to be configured from the devices to be selected;
[0180] Generating the device identifier of the device to be configured.
[0181] In a possible implementation manner, the generation unit 502 is further used for:
[0182] Receiving a component selection instruction, extracting the components to be configured from the configuration components, and determining the component response priorities of each of the components to be configured;
[0183] Encapsulate each of the components to be configured according to the component response priority to generate a device function configuration file corresponding to the device identifier.
[0184] In a possible implementation, the generating unit 502 is further configured to:
[0185] Display a component configuration form;
[0186] Receive a component selection instruction for the configuration component, and determine each component to be configured that is selected;
[0187] Receive a matching instruction for the component configuration form, and match each of the components to be configured with each sub-column corresponding to the matching instruction;
[0188] Obtain the preset response priority of each sub-column, and use the preset response priority of each sub-column as the component response priority of the corresponding component to be configured.
[0189] In a possible implementation, the generating unit 502 is further configured to:
[0190] Receive a click selection instruction for the configuration component, and determine each component to be configured that is selected;
[0191] Obtain the instruction sending time of each click selection instruction;
[0192] Determine the component response priority of each component to be configured according to the order of the instruction sending times of each.
[0193] In a possible implementation, the output unit 503 is further configured to:
[0194] Receive a voice request;
[0195] Convert the audio information in the voice instruction into text information through a preset voice recognition module;
[0196] Perform semantic recognition on the text information through a preset semantic recognition module to obtain a dialogue request;
[0197] Respond to the dialogue request according to the device function configuration file to obtain an output response result.
[0198] In a possible implementation, the output unit 503 is further configured to:
[0199] Obtain the component response priority of each component to be configured in the device function configuration file;
[0200] Determine a target component with the highest component response priority, and respond to the dialogue request through the target component;
[0201] If the target component generates a response result, use the response result as the output response result.
[0202] If the target component does not generate a response result, obtain an alternative component whose component response priority is lower than that of the target component, and use the alternative component to respond to the request content to obtain an output response result.
[0203] In specific implementation, each of the above units can be implemented as an independent entity, or can be combined arbitrarily to be implemented as the same or several entities. For the specific implementation of each of the above units, reference can be made to the method embodiments described above, which will not be elaborated herein.
[0204] Since the voice function configuration management device can execute the steps in the voice function configuration management method in any embodiment of the present application, the beneficial effects that can be achieved by the voice function configuration management method in any embodiment of the present application can be realized. For details, refer to the previous description, which will not be elaborated herein.
[0205] In addition, in order to better implement the voice function configuration management method in the embodiments of the present application, based on the voice function configuration management method, the embodiments of the present application further provide an electronic device. Refer to Figure 7 , Figure 7 shows a schematic structural diagram of the electronic device in the embodiment of the present application. Specifically, the electronic device provided in the embodiment of the present application includes a processor 601, and the processor 601 is used to implement each step of the voice function configuration management method in any embodiment when executing a computer program stored in a memory 602; or, the processor 601 is used to implement the functions of each unit in the corresponding embodiment when executing the computer program stored in the memory 602. Figure 5 corresponding embodiments.
[0206] Exemplarily, the computer program can be divided into one or more modules / units. One or more modules / units are stored in the memory 602 and executed by the processor 601 to complete the embodiments of the present application. One or more modules / units can be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the computer device.
[0207] The electronic device may include, but is not limited to, a processor 601 and a memory 602. Those skilled in the art can understand that the schematic diagram is only an example of the electronic device and does not constitute a limitation on the electronic device. It may include more or fewer components than shown in the figure, or combine some components, or different components. For example, the electronic device may further include input / output devices, network access devices, a bus, etc. The processor 601, the memory 602, the input / output devices, and the network access devices are connected through the bus.
[0208] The processor 601 may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may also be any conventional processor, etc. The processor is the control center of the electronic device, and connects various parts of the entire electronic device using various interfaces and circuits.
[0209] The memory 602 can be used to store computer programs and / or modules. The processor 601 realizes various functions of the computer device by running or executing the computer programs and / or modules stored in the memory 602, and by calling the information stored in the memory 602. The memory 602 may mainly include a program storage area and an information storage area. Among them, the program storage area may store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the information storage area may store information created according to the use of the electronic device (such as audio information, video information, etc.). In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0210] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the above-described voice function configuration management device, electronic device, and their corresponding units can refer to the description of the voice function configuration management method in any embodiment, and will not be elaborated herein specifically.
[0211] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions. The instructions can be stored in a computer-readable storage medium and loaded and executed by the processor.
[0212] To this end, an embodiment of the present application provides a computer-readable storage medium storing multiple instructions that can be loaded by a processor to execute the steps in the voice function configuration management method in any embodiment of the present application. For specific operations, reference can be made to the description of the voice function configuration management method in any embodiment, which will not be elaborated here.
[0213] Among them, the computer-readable storage medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, etc.
[0214] Since the instructions stored in the computer-readable storage medium can execute the steps in the voice function configuration management method in any embodiment of the present application, the beneficial effects achievable by the voice function configuration management method in any embodiment of the present application can be realized. For details, refer to the previous description, which will not be elaborated here.
[0215] The above has introduced in detail a voice function configuration management method, device, storage medium, and electronic device provided by an embodiment of the present application. Specific examples are used in this article to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those skilled in the art, based on the idea of the present application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A method for managing voice function configuration, characterized in that The method includes: Obtaining the device identifier of the device to be configured, and the configuration components corresponding to the device identifier, where the configuration components include the function components supported by the device to be configured; Receiving a component selection instruction, selecting the components to be configured from the configuration components, and generating a device function configuration file corresponding to the device identifier according to the components to be configured; Receiving a voice request, and responding to the voice request according to the device function configuration file to obtain an output response result; The generating a device function configuration file corresponding to the device identifier according to the components to be configured includes: Determining the component response priority of each of the components to be configured according to the scenario requirements of the device to be configured; Encapsulating each of the components to be configured according to the component response priority to generate a device function configuration file corresponding to the device identifier; The receiving a voice request, and responding to the voice request according to the device function configuration file to obtain an output response result includes: Receiving a voice request; Determining the target component with the highest component response priority, and responding to the voice request through the target component; If the target component generates a response result, using the response result as the output response result; If the target component does not generate a response result, obtaining alternative components whose component response priority is lower than that of the target component, and responding to the voice request through the alternative components to obtain an output response result.
2. The voice function configuration management method according to claim 1, wherein The obtaining the device identifier of the device to be configured includes: Receiving a configuration management request and displaying the devices to be selected; Receiving a device selection request and selecting the device to be configured from the devices to be selected; Generating the device identifier of the device to be configured.
3. The voice function configuration management method according to claim 1, wherein The receiving a component selection instruction, selecting the components to be configured from the configuration components, and generating a device function configuration file corresponding to the device identifier according to the components to be configured includes: Receiving a component selection instruction, extracting the components to be configured from the configuration components, and determining the component response priority of each of the components to be configured; Encapsulating each of the components to be configured according to the component response priority to generate a device function configuration file corresponding to the device identifier.
4. The voice function configuration management method according to claim 3, wherein The receiving a component selection instruction, extracting the components to be configured from the configuration components, and determining the component response priority of each of the components to be configured includes: Displaying a component configuration form; Receiving a component selection instruction for the configuration components and determining the selected components to be configured; Receiving a matching instruction for the component configuration form, and matching each of the components to be configured with each sub-column corresponding to the matching instruction; Obtaining the preset response priority of each of the sub-columns, and using the preset response priority of each of the sub-columns as the component response priority of the corresponding component to be configured.
5. The voice function configuration management method according to claim 3, wherein The component selection instruction includes a click selection instruction, and the component selection instruction includes a drag-and-drop selection instruction. The receiving a component selection instruction, selecting the components to be configured from the configuration components, and generating a device function configuration file corresponding to the device identifier according to the components to be configured includes: Receiving a click selection instruction for the configuration components and determining the selected components to be configured; Obtain the instruction sending time of each of the click selection instructions; Determine the component response priority of each of the components to be configured according to the sequence of the instruction sending times of each of the instructions; 6. The voice function configuration management method according to any one of claims 1-5, characterized in that The receiving the voice request and responding to the voice request according to the device function configuration file to obtain an output response result includes: Receive a voice request; Convert the audio information in the voice request into text information through a preset voice recognition module; Perform semantic recognition on the text information through a preset semantic recognition module to obtain a dialogue request; Respond to the dialogue request according to the device function configuration file to obtain an output response result.
7. A voice function configuration management device, characterized in that, The voice function configuration management device includes: An obtaining unit, configured to obtain a device identifier of a device to be configured, and a configuration component corresponding to the device identifier, where the configuration component includes function components supported by the device to be configured; A generating unit, configured to receive a component selection instruction, select a component to be configured from the configuration components, and generate a device function configuration file corresponding to the device identifier according to the component to be configured; An output unit, configured to receive a voice request, and respond to the voice request according to the device function configuration file to obtain an output response result; The generating the device function configuration file corresponding to the device identifier according to the component to be configured includes: Determine the component response priority of each of the components to be configured according to the scenario requirements of the device to be configured; Package each of the components to be configured according to the component response priority to generate a device function configuration file corresponding to the device identifier; The receiving the voice request and responding to the voice request according to the device function configuration file to obtain an output response result includes: Receive a voice request; Determine a target component with the highest component response priority, and respond to the voice request through the target component; If the target component generates a response result, use the response result as the output response result; If the target component does not generate a response result, obtain an alternative component with a component response priority lower than that of the target component, and respond to the voice request through the alternative component to obtain an output response result.
8. An electronic device, characterized in that, Includes a processor and a memory, where a computer program is stored in the memory, and when the processor calls the computer program in the memory, it executes the voice function configuration management method according to any one of claims 1 to 6.
9. A readable storage medium, characterized in that, A computer program is stored thereon, and the computer program is loaded by a processor to execute the steps in the voice function configuration management method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Vehicle voice wake-up management method and system, electronic equipment and storage medium
CN118280354A