Voice control method, micro-service generation method, device and server
By receiving voice commands from vehicle and machine equipment in the server and generating association relationships, the problems of low voice control efficiency and insufficient global control capabilities in the prior art are solved, and efficient and intelligent voice control capabilities are achieved to meet the needs of modern users.
Patent Information
- Application Number
- CN202411256613.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2024-12-13
AI Technical Summary
In the prior art, voice control efficiency is low, virtual clicking method is programmed to simulate user clicks, recording microservices are fixed and single, and cannot be intelligently learned and optimized, resulting in insufficient global control capabilities and complex and cumbersome operational processes.
Receive voice commands from vehicle and computer equipment in the server, determine the microservices corresponding to the voice command through local microservices, generate the correlation between the page of the service request, the target control and the microservices, generate voice skills based on text description, and transfer them Mapping relationship with microservices is stored to realize the execution of voice instructions.
The voice control efficiency is improved and the global control ability is realized. Users can directly complete any page function operation through voice. The system has intelligent self-learning and optimization capabilities to meet the needs of modern users for efficiency, convenience and intelligence.
Smart Images

Figure CN119132301A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to but is not limited to the field of human-computer interaction technology, and in particular to a voice control method, a microservice generation method, a device and a server. Background Art
[0002] As one of the main ways of human-computer interaction in the next generation, voice control is being promoted in more and more applications. In related technologies, the car computer realizes "seeing is speaking" mostly by using virtual clicks, or by generating microservices by recording, and then using microservices to realize "seeing is speaking". Summary of the invention
[0003] In view of this, the embodiments of the present application at least provide a voice control method, a microservice generation method, a device and a server.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a voice control method, which is applied to a server, comprising:
[0006] Receive voice commands from vehicle equipment;
[0007] Determine a microservice corresponding to the voice command from local microservices; wherein the local microservice is generated based on a received service request; and the service request is a request generated by an operation of a target control on a display interface of the vehicle device;
[0008] Execute voice commands through the microservice corresponding to the voice commands.
[0009] In a second aspect, an embodiment of the present application provides a method for generating a microservice, which is applied to a server and includes:
[0010] In response to receiving a service request, detecting whether there is a corresponding microservice for the service request; wherein the service request is a request generated by an operation of a target control on a display interface of the vehicle machine device; the target control is a control that generates a network request during operation;
[0011] When there is no corresponding microservice for a service request, an association relationship between the service request page, the target control of the service request and the microservice of the service request is generated based on the service request;
[0012] Generate a voice skill for the service request based on the text description on the target control of the service request;
[0013] The association relationship between the voice skill of the service request and the microservice of the service request is added to the mapping relationship between the voice skill and the microservice stored locally.
[0014] In a third aspect, an embodiment of the present application provides a voice control device, which is arranged in a server and includes:
[0015] A receiving module, used for receiving voice commands from the vehicle equipment;
[0016] A determination module is used to determine the microservice corresponding to the voice command from the local microservices; wherein the local microservice is generated based on the received service request; the service request is a request generated by the operation of the target control on the display interface of the vehicle device;
[0017] The execution module is used to execute the voice command through the microservice corresponding to the voice command.
[0018] In a fourth aspect, an embodiment of the present application provides a microservice generation device, which is arranged in a server and includes:
[0019] A detection module, configured to detect whether a corresponding microservice exists for a service request in response to receiving the service request; wherein the service request is a request generated by a touch operation on a target control on a display interface of the vehicle machine device;
[0020] The first generation module is used to generate an association relationship between a page of the service request, a target control of the service request and the microservice of the service request based on the service request when there is no corresponding microservice for the service request;
[0021] A second generation module is used to generate a voice skill for the service request according to a text description on a target control of the service request;
[0022] An adding module is used to add the association relationship between the voice skill of the service request and the microservice of the service request to the mapping relationship between the voice skill and the microservice stored locally.
[0023] In a fifth aspect, an embodiment of the present application provides a server, comprising a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.
[0024] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements some or all of the steps in the above method when executed by a processor.
[0025] In an embodiment of the present application, after receiving the voice command, the server determines the microservice corresponding to the voice command from the local microservices generated based on the received service request. The service request is a request generated by the operation of the target control on the display interface of the vehicle device. That is to say, by receiving the operation of the target control and responding to the operation, a server request is generated and then a microservice is generated, so that the microservice corresponding to the voice in the microservice generated by the service request executes the voice command, that is, the microservice generated by the service request realizes the function of seeing and speaking, thereby improving the efficiency of voice control.
[0026] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0028] Figure 1 A flowchart of an optional voice control method provided in an embodiment of the present application;
[0029] Figure 2 A flowchart of an optional method for generating microservices provided in an embodiment of the present application;
[0030] Figure 3 A flowchart of an optional method for realizing the see-and-speak function provided in an embodiment of the present application;
[0031] Figure 4 A schematic diagram of the structure of an optional voice control device provided in an embodiment of the present application;
[0032] Figure 5 A schematic diagram of the structure of an optional microservice generation device provided in an embodiment of the present application;
[0033] Figure 6 A schematic diagram of the structure of an optional server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application are further elaborated in detail below in conjunction with the drawings and embodiments. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0035] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict. The terms "first / second / third" involved are merely used to distinguish similar objects and do not represent a specific order for the objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing this application and are not intended to limit this application.
[0037] In the related art, the “see-is-say” function is realized in the vehicle-mounted equipment, which is mainly realized by virtual clicking or by recorded microservices.
[0038] However, the above-mentioned virtual click method is a method of simulating user clicks through programming or automation tools, rather than real user manual clicks, which leads to low voice control efficiency. The recording microservice method is adopted, where microservice is a cloud-native architecture method that contains many loosely coupled and independently deployable small components or services in a single application. The microservice is generated by recording the call instance of the target function, and the generated microservice is fixed and single.
[0039] In order to improve the efficiency of voice control, the present application embodiment provides a voice control method, which is applied to a server. Figure 1 A flow chart of an optional voice control method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the voice control method may include:
[0040] S101: receiving a voice command from a vehicle device;
[0041] The voice control method provided in the embodiment of the present application can be applied to the following scenarios: music playback control scenario, vehicle status query scenario, and environment control scenario, etc. For the music control scenario, for example, the user wants to listen to a specific song or playlist without clicking a menu in the music application to select songs. The user says "play my pop music playlist", and the system will directly call the corresponding microservice through the established mapping relationship to start playing the specified music.
[0042] For vehicle status query scenarios, for example, users can directly query the vehicle's operating status, such as remaining fuel, tire pressure, etc., through voice commands. For example, if the user says "check fuel level", the system will call the relevant microservices to read and report the current fuel level information to the user.
[0043] For environmental control scenarios, for example, users control the air conditioner, windows, etc. in the car through voice commands while driving. For example, if the user says "raise the air conditioner temperature to 22 degrees", the system will call the relevant microservices to directly adjust the air conditioner settings without manual operation by the user.
[0044] It should be noted that the voice control method provided in the embodiments of the present application can be applied to the above scenarios, but is not limited to the above scenarios.
[0045] In order to improve the efficiency of voice control, in an embodiment of the present application, first, the server receives the voice command from the vehicle-mounted device, wherein the vehicle-mounted device sends the voice command to the server after receiving the voice command issued by the user, so that the server receives the voice command from the vehicle-mounted device.
[0046] Among them, the vehicle equipment will judge the voice uttered by the user, for example, obtain the voice uttered by the user after the wake-up word as a voice command, and send it to the server.
[0047] S102: Determine a microservice corresponding to the voice command from local microservices;
[0048] The voice command is obtained by the service in S101, and in S102, the server can determine the microservice corresponding to the voice command from the local microservices. In other words, the server stores microservices, which are recorded as local microservices.
[0049] Among them, the local microservice is generated based on the received service request; the service request is a request generated by the operation of the target control on the display interface of the vehicle-mounted device. It can be seen that the local microservice is a service generated by the server based on the request generated by the operation of the target control on the display interface of the vehicle-mounted device. Before receiving the voice command, after the server receives the request generated by the operation of the target control on the display interface of the vehicle-mounted device, it generates a microservice corresponding to the service request based on the service request. Then, different microservices corresponding to different service requests are generated, and then stored locally to obtain local microservices.
[0050] Here, for the received voice command, if there is a microservice corresponding to the voice command, then the microservice corresponding to the voice command can be determined from the local microservice. If there is no microservice corresponding to the voice command, a virtual click method can be used to respond to the voice command, thereby realizing the see-and-speak function.
[0051] Here, the correspondence between voice instructions and microservices can be stored in the server, so as to determine the microservice corresponding to the voice instruction from the local microservices. The correspondence between the voice skills to which the voice instructions belong and the microservices can also be stored in the server, so as to determine the microservice corresponding to the voice instruction from the local microservices. Here, the embodiments of the present application are not specifically limited.
[0052] S103: Execute the voice command through the microservice corresponding to the voice command.
[0053] After the server determines the microservice corresponding to the voice instruction in S102, in S103, the server executes the voice instruction through the determined microservice corresponding to the voice instruction.
[0054] For example, when the voice command is to play my pop music list, the microservice corresponding to the voice command will play the user's pop music list. When the voice command is to check the oil level, the microservice corresponding to the voice command will read and report the current oil level information to the user. When the voice command is to increase the air conditioning temperature to 22 degrees, the microservice corresponding to the voice command will adjust the air conditioning temperature to 22 degrees.
[0055] It can be seen that different voice commands use different microservices to realize the see-and-speak function of the vehicle equipment.
[0056] With respect to the above-mentioned target control, in an optional embodiment, the target control is a control that generates a network request during operation.
[0057] It can be understood that the target control on the above-mentioned vehicle device is a control that will generate a network request during the operation of the vehicle device. That is to say, after the user clicks the target control, the vehicle device will generate a corresponding service request, which needs to be sent through the network to the service device corresponding to the service request.
[0058] In this way, by operating the controls that generate network requests during operation on the display interface of the vehicle equipment, a microservice corresponding to the service request is generated to respond to the corresponding voice command, thereby achieving the purpose of processing voice commands related to network requests through microservices.
[0059] In order to determine the microservice corresponding to the voice command from the local microservice, in an optional embodiment, S102 may include:
[0060] Obtain the voice skill to which the voice command belongs from the locally stored voice skills;
[0061] From the local microservices, determine the microservice corresponding to the voice skill.
[0062] The microservice corresponding to the voice skill is determined as the microservice corresponding to the voice command.
[0063] It can be understood that voice skills are also stored in the local memory of the server, wherein the voice skills are also generated by the server based on the service request. The voice skills are stored in the server, so here the server first obtains the voice skills to which the voice instruction belongs.
[0064] Furthermore, the server determines the microservice corresponding to the voice skill to which the voice command belongs in the local microservice. Here, the microservice corresponding to the voice skill can be determined by a pre-trained model, and the microservice corresponding to the voice skill can also be determined by using the mapping relationship between the voice skill and the microservice. Here, the embodiment of the present application does not make specific limitations on this.
[0065] After determining the microservice corresponding to the voice skill, the server determines the microservice corresponding to the voice skill as the microservice corresponding to the voice command.
[0066] In this way, by determining the voice skill to which the voice instruction belongs, the corresponding microservice is determined by using the voice skill, and the microservice corresponding to the voice instruction is determined, so that the voice instruction can be executed by using the microservice corresponding to the voice instruction.
[0067] In order to determine the microservice corresponding to the voice instruction, in an optional embodiment, determining the microservice corresponding to the voice skill from the local microservice may include:
[0068] From the pre-stored mapping relationship between voice skills and microservices, determine the microservice corresponding to the voice skill.
[0069] It can be understood that the server locally stores the mapping relationship between voice skills and microservices. Then, after obtaining the voice skill to which the voice instruction belongs, the server can find the voice skill based on the mapping relationship, and then determine the microservice corresponding to the voice skill.
[0070] In this way, the microservice corresponding to the corresponding voice skill is determined based on the mapping relationship, so that the microservice can respond to the voice command using the corresponding voice skill, thereby realizing the function of executing the voice command using the microservice.
[0071] The above S103 may include: accessing a target object corresponding to the voice instruction through a microservice corresponding to the voice instruction, and executing the voice instruction.
[0072] The above-mentioned target object may be a device other than the background server and the vehicle-mounted device, for example, a multimedia server accessed by the vehicle-mounted device, or a controller on the vehicle-mounted device, and the like.
[0073] When the voice instruction is a control type instruction, accessing the target object corresponding to the voice instruction through the microservice corresponding to the voice instruction and executing the voice instruction may include: accessing the target object corresponding to the voice instruction through the microservice corresponding to the voice instruction and controlling the target object to execute the voice instruction.
[0074] When the voice command is a data query type command, the target object corresponding to the voice command is accessed through the microservice corresponding to the voice command, and the voice command is executed, which may include: accessing the target object corresponding to the voice command through the microservice corresponding to the voice command, querying the target object to obtain the data queried by the voice command; and sending the queried data to the vehicle device.
[0075] When the voice instruction is a data modification type instruction, a data deletion type instruction, or a data addition type instruction, accessing the target object corresponding to the voice instruction through the microservice corresponding to the voice instruction, and executing the voice instruction may include: accessing the target object corresponding to the voice instruction through the microservice corresponding to the voice instruction, and modifying, deleting, or adding target data in the target object.
[0076] In order to generate a local microservice, the embodiment of the present application also provides a method for generating a microservice, which is applied to a server. Figure 2 A flowchart of an optional microservice generation method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method for generating the microservice may include:
[0077] S201: In response to receiving a service request, detecting whether a corresponding microservice exists for the service request;
[0078] For the above-mentioned voice control method, in order to determine the microservice corresponding to the voice command from the local microservices, it is necessary to pre-generate the microservice corresponding to the voice command to constitute the local microservice. In order to generate the local microservice, in the embodiment of the present application, the server receives a service request from the vehicle device, wherein the service request is a request generated by the operation of the target control on the display interface of the vehicle device; the target control is a control that will generate a network request during operation.
[0079] That is to say, the user's operation of the controls on the display interface that generate network requests during the operation of the vehicle-mounted device will cause the vehicle-mounted device to generate a service request and send the service request to the server. After receiving the service request, the server responds to the service request and detects whether there is a corresponding microservice for the service request.
[0080] After detection, if the service request has a corresponding microservice, it means that the server does not need to generate a microservice based on the service request. If the service request does not have a corresponding microservice, it means that the server needs to generate a microservice based on the service request.
[0081] In this way, it can be known whether a microservice needs to be generated for the service request.
[0082] S202: When there is no corresponding microservice for the service request, an association relationship between a page of the service request, a target control of the service request, and the microservice of the service request is generated based on the service request;
[0083] Through the above S201, it is known whether a microservice needs to be generated for the service request. In S202, if there is no corresponding microservice for the received service request, based on the service request, an association relationship between the service request page, the service request target control and the service request microservice is generated.
[0084] The service request here may include: the vehicle device extracts a token of the service request based on the service request, a uniform resource locator (URL), parameters carried in the service request, and functions related to the service request, etc.
[0085] Then, when the server receives a service request, it can know the service request token, URL, parameters carried in the service request, functions related to the service request, and other data, and based on this data, generate the service request page, the target control of the service request, and the association relationship between the microservice of the service request.
[0086] Among them, a pre-trained model can be used to generate the association relationship, or a preset rule can be used to generate the association relationship. Here, the embodiments of the present application do not make specific limitations on this.
[0087] S203: Generate a voice skill for the service request according to the text description on the target control of the service request;
[0088] After generating the association relationship between the service request page, the target control of the service request and the microservice of the service request in S202, in S203, the server generates the voice skill of the service request according to the text description on the target control of the service request.
[0089] Since an association relationship has been generated in S202, wherein the association relationship includes the target control of the service request, the text description of the target control of the service request can be known, and then the voice skill corresponding to the service request can be generated based on the text description of the target control of the service request.
[0090] Here, designing a voice skill mainly involves clarifying the domain, intent, and slot. The domain means constraining the scope of the voice skill. Generally, a voice skill has a clear domain. The intent is to determine what the user wants to do. The domain can be a large range, and the intent is a small category in the domain. Slots are optional in voice skills and are used for information extraction to complete and improve the user's intent.
[0091] S204: Add the association relationship between the voice skill of the service request and the microservice of the service request to the mapping relationship between the voice skill and the microservice stored locally.
[0092] After generating the voice skill of the service request in S203, the server establishes an association relationship between the voice skill of the service request and the microservice of the service request, and adds the association relationship to the mapping relationship between the voice skill and the microservice stored locally.
[0093] That is to say, after generating the voice skill for the service request, the server builds an association between the voice skill for the service request and the microservice for the service request, and stores it in the mapping relationship between the voice skill and the microservice stored locally. In this way, the server can find the microservice through the voice skill, and after identifying the user's intention, it can select the microservice corresponding to the user's intention and respond to the voice skill through the microservice.
[0094] A method for generating a microservice provided in an embodiment of the present application detects a service request by responding to a request generated by the operation of a control that generates a network request during operation on a display interface of a vehicle-mounted device, and generates a page for the service request, an association relationship between a target control for the service request and the microservice for the service request if there is no corresponding microservice, generates a voice skill for the service request based on the target control, establishes an association relationship between the voice skill for the service request and the microservice for the service request, and stores it in a local mapping relationship. In this way, a microservice is generated through a service request, and the voice skill and the microservice correspond to each other. In voice control, the corresponding microservice can be found by searching for the voice skill, and voice control can be performed using the microservice generated by the service request, thereby improving the control efficiency of voice control.
[0095] In order to generate an association relationship between a service request page, a target control of the service request, and a microservice of the service request, in an optional embodiment, based on the service request, generating an association relationship between a service request page, a target control of the service request, and a microservice of the service request may include:
[0096] The characteristic parameters of the service request are input into a pre-trained neural network model, and the output is the association relationship between the service request page, the target control of the service request and the microservice of the service request.
[0097] It can be understood that the characteristic parameters of the service request are input into the pre-trained neural network model, wherein the characteristic parameters of the service request include one or more of the following: the network address of the service request, the request data carried in the service request, and the token of the service request. The network address of the service request can be the URL of the service request, and the request data carried in the service request can include: the parameters carried in the service request and the functions related to the service request, etc.
[0098] Here, the server inputs the characteristic parameters of these service requests into a pre-trained neural network model, so that the association between the service request page, the target control of the service request and the microservice of the service request can be obtained through the output of the model.
[0099] In this way, a neural network model is used to generate the relationship between the service request page, the target control of the service request and the microservice of the service request. That is, a deep learning model is used to analyze the characteristic parameters of the service request, continuously optimize and adjust the control logic, and realize intelligent self-learning and improvement, so that microservices can meet the needs of different users.
[0100] With respect to the above-mentioned pre-trained neural network model, in an optional embodiment, the pre-trained model is obtained by training a preset neural network model based on training data;
[0101] The training data is the association between the collected characteristic parameters of the service request and the service request; the association between the service request is the association between the page of the service request, the control of the service request and the microservice of the service request.
[0102] It can be understood that in order to obtain a pre-trained neural network model, the training data required is: the association relationship between the characteristic parameters of the collected service requests and the service requests, where the association relationship is the association relationship between the service request page, the service request control and the service request microservice. In other words, the characteristic parameters of the collected service requests are input into the preset neural network model for training to obtain the training results, and the loss function is calculated based on the training results and the association relationship between the characteristic parameters of the collected service requests and the service requests, so as to minimize the loss function to update the parameters of the model.
[0103] In this way, by training the preset neural network model, a pre-trained model can be obtained to generate the association relationship between the service request page, the service request control and the service request microservice, so as to generate the microservice.
[0104] For the case where there is no corresponding microservice for the service request, in an optional embodiment, the above method may further include:
[0105] When a service request has a corresponding microservice, it is prohibited to generate an association relationship between the service request page, the service request target control and the service request microservice based on the service request.
[0106] It can be understood that after detection, it is found that there is a corresponding microservice for the service request, which means that the corresponding microservice has been generated before the service request. Then here, there is no need to generate the service request page based on the service request, the association relationship between the target control of the service request and the microservice of the service request. Therefore, when there is a corresponding microservice for the service request, it is prohibited to generate the service request page based on the service request, the association relationship between the target control of the service request and the microservice of the service request.
[0107] In this way, when a corresponding microservice exists for a service request, it is prohibited to generate a page of the service request based on the service request, and the association relationship between the target control of the service request and the microservice of the service request, thereby reducing unnecessary calculation amount.
[0108] The following examples are used to describe the voice control method and microservice generation method described in one or more of the above embodiments.
[0109] Regarding the use of virtual clicks or recorded microservices in related technologies to achieve the "see and say" function, there is a lack of intelligent learning and optimization: mainly because the system in related technologies cannot intelligently learn and optimize according to the actual user operations, and cannot automatically adjust to meet the needs of different users. Deep learning models can be used to analyze user operation data, continuously optimize and adjust control logic, and achieve intelligent self-learning and improvement.
[0110] Insufficient global control capability: When users operate in the car system, they often need to click on different pages multiple times, the operation process is complicated and cumbersome, and there is a lack of efficient global control capability. By establishing a mapping relationship between pages, controls and microservices, global control of voice commands can be achieved, and users can directly complete the operation of any page function through voice.
[0111] In this example, Figure 3 A flowchart of an optional method for realizing the "see and say" function provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method may include:
[0112] S301: The user clicks a control containing a network request;
[0113] Among them, in S301, the user clicks on the control containing the network request on the vehicle device, so that the vehicle device generates a network request data packet, and the vehicle device captures the token and data packet sequence in the data packet, wherein the data packet sequence may include: URL\function and parameters, etc., forms an operation data set with the captured data, carries the operation data set into the network request data packet, and sends the data packet to the background server.
[0114] S302: Inspection and data collection of microservices;
[0115] Specifically, the backend server checks whether there is a valid microservice (e.g., ServiceA) associated with the data packet. If so, execute S303; if not, execute S304;
[0116] S303: discard; end.
[0117] The data packet corresponding to the control click event is collected and sent to parse the parameters. If the parameter already has a corresponding microservice in the background, the addition is discarded.
[0118] S304: Generate background microservices; execute S305;
[0119] Here, after the operation data set is sent to the backend server, the backend server uses the large model to learn and analyze the collected operation data set, and establishes the association between the page P, the control U and the function call stack {fun1(), fun2(), ...}. Among them, the control U contains the control text description.
[0120] The backend server generates the microservice corresponding to the data packet, generates the corresponding voice skill based on the description on the control, and extracts and generates the corresponding microservice code Service1.
[0121] Generate a mapping relationship between voice skills and microservices, generate unique numbers for different pages and controls, and map them with microservices.
[0122] S305: The front-end engine generates an interface.
[0123] After receiving the voice command from the front end, the backend server determines the voice skill and calls the corresponding microservice. The backend server queries the result and returns the queried data packet to the frontend display engine for display.
[0124] The front-end intercepts the common data return protocol style, automatically formats text, pictures, and video information, and calls the front-end interface to display it to the user.
[0125] This example introduces intelligent data analysis and large model learning to automatically generate and deploy microservice code, significantly improving the intelligence of the vehicle system and user experience. At the same time, through global mapping and enhanced voice control functions, it achieves true "seeing is speaking", improving the system's operating efficiency and user convenience. It realizes the transition from passive operation to intelligent control, making the vehicle system smarter and more efficient, and meeting the needs of modern users for efficient, convenient and intelligent vehicle systems.
[0126] An embodiment of the present application discloses a voice control method, which is applied to a server, including: receiving a voice instruction from a vehicle-mounted device, determining a microservice corresponding to the voice instruction from local microservices, the local microservice being generated based on a received service request, the service request being a request generated for an operation on a target control on a display interface of the vehicle-mounted device, and executing the voice instruction through the microservice corresponding to the voice instruction; that is, in an embodiment of the present application, after receiving the voice instruction, the server determines a microservice corresponding to the voice instruction from local microservices generated based on the received service request, the service request being a request generated for an operation on a target control on a display interface of the vehicle-mounted device, that is, by receiving the operation on the target control and responding to the operation, a server request is generated and then a microservice is generated, so that the voice instruction is executed by the microservice corresponding to the voice in the microservice generated by the service request, that is, the function of visible and audible is realized through the microservice generated by the service request, thereby improving the efficiency of voice control.
[0127] Based on the foregoing embodiments, an embodiment of the present application provides a voice control device, which includes the units included and the modules included in the units, which can be implemented by a processor in a computer device; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0128] The present application embodiment provides a voice control device, which is arranged in a server. Figure 4 A schematic diagram of the structure of a voice control device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the apparatus 400 includes: a receiving module 41, a determining module 42 and an executing module 43, wherein:
[0129] The receiving module 41 is used to receive the voice command from the vehicle equipment;
[0130] A determination module 42 is used to determine the microservice corresponding to the voice command from the local microservices; wherein the local microservice is generated based on the received service request; the service request is a request generated by the operation of the target control on the display interface of the vehicle device;
[0131] The execution module 43 is used to execute the voice command through the microservice corresponding to the voice command.
[0132] In an optional embodiment, the target control is a control that generates a network request during operation.
[0133] In an optional embodiment, the determination module 42 is specifically configured to:
[0134] Obtain the voice skill to which the voice command belongs from the locally stored voice skills;
[0135] From the local microservices, determine the microservice corresponding to the voice skill.
[0136] The microservice corresponding to the voice skill is determined as the microservice corresponding to the voice command.
[0137] In an optional embodiment, the determination module 42 determines the microservice corresponding to the voice skill from the local microservice, including:
[0138] From the pre-stored mapping relationship between voice skills and microservices, determine the microservice corresponding to the voice skill.
[0139] The present application embodiment provides a microservice generation device, which is arranged in a server. Figure 5 A schematic diagram of a microservice generation device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the apparatus 500 includes: a detection module 51, a first generation module 52, a second generation module 53 and an adding module 54, wherein:
[0140] A detection module 51 is used to detect whether there is a corresponding microservice in response to receiving a service request; wherein the service request is a request generated by a touch operation on a target control on a display interface of the vehicle device;
[0141] The first generating module 52 is used to generate, based on the service request, an association relationship between a page of the service request, a target control of the service request, and the microservice of the service request when there is no corresponding microservice for the service request;
[0142] A second generating module 53, configured to generate a voice skill for the service request according to a text description on a target control of the service request;
[0143] The adding module 54 is used to add the association relationship between the voice skill of the service request and the microservice of the service request to the mapping relationship between the voice skill and the microservice stored locally.
[0144] In an optional embodiment, the first generating module 52 generates, based on the service request, an association relationship between a page of the service request, a target control of the service request, and a microservice of the service request, including:
[0145] Input the characteristic parameters of the service request into the pre-trained neural network model, and output the association between the service request page, the target control of the service request and the microservice of the service request;
[0146] The characteristic parameters of the service request include one or more of the following:
[0147] The network address of the service request, the request data carried in the service request, and the token of the service request.
[0148] In an optional embodiment, the pre-trained model is obtained by training a preset neural network model based on training data;
[0149] The training data is the association between the collected characteristic parameters of the service request and the service request; the association between the service request is the association between the page of the service request, the control of the service request and the microservice of the service request.
[0150] In an optional embodiment, the device is also used for:
[0151] When a service request has a corresponding microservice, it is prohibited to generate an association relationship between the service request page, the service request target control and the service request microservice based on the service request.
[0152] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided in the embodiment of the present application can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0153] It should be noted that in the embodiment of the present application, if the above-mentioned voice control method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.
[0154] An embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.
[0155] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.
[0156] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code is run in a computer device, a processor in the computer device executes some or all of the steps for implementing the above method.
[0157] The embodiment of the present application provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK) and the like.
[0158] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.
[0159] Figure 6 A schematic diagram of the structure of a server provided in an embodiment of the present application, such as Figure 6 As shown, the hardware entity of the server 600 includes: a processor 61 and a memory 62, wherein the memory 62 stores a computer program that can be run on the processor 61, and the processor 61 implements the steps in the method of any of the above embodiments when executing the program.
[0160] The memory 62 stores computer programs that can be run on the processor. The memory 62 is configured to store instructions and applications executable by the processor 61. It can also cache data to be processed or processed by the processor 901 and various modules in the server 600 (for example, image data, audio data, voice communication data, and video communication data). This can be achieved through flash memory (FLASH) or random access memory (Random Access Memory, RAM).
[0161] When the processor 61 executes the program, the steps of any of the above-mentioned voice control methods are implemented. Or when the processor 61 executes the program, the steps of any of the above-mentioned microservice generation methods are implemented. The processor 61 generally controls the overall operation of the server 600.
[0162] An embodiment of the present application provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the steps of the voice control method of any of the above embodiments, or the steps of the microservice generation method of any of the above embodiments.
[0163] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0164] The processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that the electronic device that implements the functions of the processor may also be other, and the embodiments of the present application are not specifically limited.
[0165] The above-mentioned computer storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0166] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.
[0167] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0168] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the 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 can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0169] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; 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 present embodiment.
[0170] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0171] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0172] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0173] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A voice control method, characterized in that: Applied to servers, including: Receive voice commands from vehicle equipment; Determine, from local microservices, a microservice corresponding to the voice command; wherein the local microservice is generated based on a received service request; and the service request is a request generated by an operation of a target control on a display interface of a vehicle-mounted device; The voice command is executed through the microservice corresponding to the voice command.
2. The method according to claim 1, characterized in that The target control is a control that generates a network request during operation.
3. The method according to claim 1 or 2, characterized in that: Determining the microservice corresponding to the voice command from the local microservices includes: Acquire the voice skill to which the voice command belongs from the locally stored voice skills; Determine the microservice corresponding to the voice skill from the local microservices; The microservice corresponding to the voice skill is determined as the microservice corresponding to the voice command.
4. The method according to claim 3, characterized in that The step of determining the microservice corresponding to the voice skill from the local microservices includes: The microservice corresponding to the voice skill is determined from the pre-stored mapping relationship between the voice skills and the microservices.
5. A method for generating a microservice, characterized in that: Applied to servers, including: In response to receiving a service request, detecting whether the service request has a corresponding microservice; wherein the service request is a request generated by an operation of a target control on a display interface of the vehicle device; and the target control is a control that generates a network request during operation; When there is no corresponding microservice for the service request, generating, based on the service request, an association relationship between the page of the service request, the target control of the service request and the microservice of the service request; Generate a voice skill for the service request according to a text description on a target control of the service request; The association relationship between the voice skill of the service request and the microservice of the service request is added to the mapping relationship between the voice skill and the microservice stored locally.
6. The method according to claim 5, characterized in that The generating, based on the service request, an association relationship between a page of the service request, a target control of the service request, and a microservice of the service request includes: Input the characteristic parameters of the service request into a pre-trained neural network model, and output the association relationship between the page of the service request, the target control of the service request and the microservice of the service request; The characteristic parameters of the service request include one or more of the following: The network address of the service request, the request data carried in the service request, and the token of the service request.
7. The method according to claim 6, characterized in that The pre-trained model is obtained by training a preset neural network model based on training data; The training data is the association between the collected characteristic parameters of the service request and the service request; the association between the service request is the association between the page of the service request, the control of the service request and the microservice of the service request.
8. The method according to any one of claims 5 to 7, characterized in that: The method further comprises: When there is a corresponding microservice for the service request, it is prohibited to generate an association relationship between the page of the service request, the target control of the service request and the microservice of the service request based on the service request.
9. A voice control device, characterized in that: The device is arranged in a server and includes: A receiving module, used for receiving voice commands from the vehicle equipment; A determination module, used to determine the microservice corresponding to the voice command from local microservices; wherein the local microservice is generated based on the received service request; the service request is a request generated by the operation of a target control on the display interface of the vehicle device; The execution module is used to execute the voice instruction through the microservice corresponding to the voice instruction.
10. A microservice generation device, characterized in that: The device is arranged in a server and includes: A detection module, configured to detect, in response to receiving a service request, whether the service request has a corresponding microservice; wherein the service request is a request generated by a touch operation on a target control on a display interface of the vehicle-mounted device; A first generating module is used to generate, based on the service request, an association relationship between a page of the service request, a target control of the service request, and the microservice of the service request when there is no corresponding microservice for the service request; A second generating module, configured to generate a voice skill for the service request according to a text description on a target control of the service request; An adding module is used to add the association relationship between the voice skill of the service request and the microservice of the service request to the mapping relationship between the voice skill and the microservice stored locally.
11. A server, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the method described in any one of claims 1 to 4 are implemented, or the steps of the method described in any one of claims 5 to 8 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the method described in any one of claims 1 to 4, or implements the steps of the method described in any one of claims 5 to 8.
