Voice interaction method, server and computer readable storage medium
Through gateway services, the vehicle voice requests are subject to permission authentication, security checking and traffic restrictions, and the target voice interaction service is determined, which solves the problems of complexity and update difficulty of voice interaction functions, realizes the robustness and high availability of voice interaction services, and reduces the Operating costs.
Patent Information
- Application Number
- CN202411267761.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-10
- Publication Date
- 2024-12-27
AI Technical Summary
With the improvement of vehicle intelligence level, the iteration speed of the voice control function version is fast, and microservices have become complex and bloated, resulting in the increasing difficulty of implementing and updating voice interaction functions.
Through gateway services, the target voice requests are subject to permission authentication, security checking and traffic restrictions, and the target voice interaction service is determined, so as to avoid each voice interaction service being designed and included separately, thereby reducing the difficulty of implementation and update.
It simplifies the implementation and update of voice interactive services, ensures the robust processing and reliability of voice requests, reduces operational costs, and improves user experience and system security.
Smart Images

Figure CN119207400A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of voice interaction technology, and in particular to a voice interaction method, a server, and a computer-readable storage medium. Background Art
[0002] In related technologies, in order to ensure the user's convenient use of the vehicle, the vehicle may have a voice control function, allowing the user to control the vehicle through voice commands. However, with the rapid improvement of the vehicle's intelligence level, the version of the voice control function is rapidly iterating, and the function is becoming more and more complex. It is becoming more and more difficult to implement the vehicle voice control function through microservices, and the microservices will become more and more bloated. Summary of the invention
[0003] The present application provides a voice interaction method, a server and a computer-readable storage medium.
[0004] A voice interaction method provided in an embodiment of the present application includes:
[0005] Receive voice requests forwarded by the vehicle;
[0006] According to a predetermined gateway service, target processing is performed on the voice request and a target voice interaction service corresponding to the voice request is determined, wherein the target processing includes at least one of authority authentication, security verification and traffic restriction;
[0007] The target voice interaction service is called to complete the voice interaction.
[0008] In the voice interaction method provided in the embodiment of the present application, the server can receive a voice request forwarded by a vehicle, and according to a predetermined gateway service, perform at least one of authority authentication, security verification and traffic restriction on the voice request, determine the target voice interaction service corresponding to the voice request, and call the target voice interaction service to process the voice request, thereby completing the voice interaction.
[0009] Thus, in the implementation manner of the present application, the gateway service can be used to perform at least one of authority authentication, security verification and traffic restriction on the received voice request, and determine the target voice interaction service corresponding to the voice request, so that the authority authentication, security verification, traffic restriction and routing in each voice interaction service can be completed through the gateway service, avoiding the situation where each voice interaction service needs to be separately designed and include functions such as authority authentication, security verification, traffic restriction and routing, thereby reducing the difficulty of implementing and updating each voice interaction service to a certain extent.
[0010] In certain embodiments of the present application, the target processing of the voice request and determining the target voice interaction service corresponding to the voice request according to the predetermined gateway service includes:
[0011] According to the gateway service, performing the target processing on the voice request;
[0012] In a case where the target processing is passed, the target voice interaction service is determined according to the voice request.
[0013] Thus, in the implementation mode of the present application, the voice request can be targeted for processing through the gateway service, and the target voice interaction service to which the voice request is routed can be determined if the target processing passes, thereby ensuring the robust processing of the voice request to a certain extent.
[0014] In certain embodiments of the present application, performing the target processing on the voice request according to the gateway service includes:
[0015] According to the gateway service, read the pre-stored configuration data, wherein the configuration data includes the execution parameters of the authority authentication, the execution parameters of the security verification and the execution parameters of the flow restriction;
[0016] The target processing is performed on the voice request according to the configuration data.
[0017] Thus, in the implementation mode of the present application, the execution parameters of the authority authentication, the execution parameters of the security verification and the execution parameters of the traffic restriction can be determined through the pre-configured and stored configuration data, and the processing of the voice request can be completed according to the execution parameters.
[0018] In certain embodiments of the present application, the method further comprises:
[0019] In response to an update instruction for the configuration data, the configuration data is updated.
[0020] Thus, in the implementation manner of the present application, the configuration data can be updated in response to an update instruction for the configuration data, so that the configuration data can be updated according to actual conditions, which can ensure the stable operation of the gateway service to a certain extent.
[0021] In certain embodiments of the present application, when the target processing is passed, determining the target voice interaction service according to the voice request includes:
[0022] When the target processing is passed, the target service call address parameter corresponding to the first vehicle identification parameter is determined according to the pre-stored routing data and the first vehicle identification parameter in the voice request, wherein the first vehicle identification parameter includes a vehicle model parameter and a vehicle model version parameter, and the routing data is used to associate the first vehicle identification data with the service call address data.
[0023] Thus, in the implementation mode of the present application, the target service call address parameters corresponding to the vehicle model parameters and vehicle model version parameters can be determined through the pre-stored routing data, as well as the vehicle model parameters and vehicle model version parameters in the voice request.
[0024] In certain embodiments of the present application, calling the target voice interaction service to complete the voice interaction includes:
[0025] The target voice interaction service is called according to the target service call address parameter to complete the voice interaction.
[0026] Thus, in the implementation mode of the present application, the target voice interaction service indicated by the target service call address parameter can be called to complete the processing of the voice request, which ensures the robustness and reliability of the voice request processing to a certain extent.
[0027] In certain embodiments of the present application, performing the target processing on the voice request according to the gateway service includes:
[0028] In the case where the target processing includes the authority identification, determining the authority corresponding to the voice request according to the second vehicle identification parameter in the voice request; and / or,
[0029] In the case where the target processing includes the security check, verifying the key parameter in the voice request; and / or,
[0030] In the case where the target processing includes the flow restriction, flow restriction is performed on the currently received voice request according to a predetermined upper limit of the number of requests and the number of the currently received voice requests.
[0031] Thus, in an embodiment of the present application, when the target processing includes authority authentication, the authority corresponding to the voice request is determined according to the second vehicle identification parameter in the voice request; and / or when the target processing includes security verification, the key parameter in the voice request is verified; and / or when the target processing includes traffic limitation, the traffic of the currently received voice request is limited according to a predetermined upper limit on the number of requests and the number of currently received voice requests.
[0032] In certain embodiments of the present application, the method further comprises:
[0033] The voice request is saved, and a running log of the target voice interaction service is generated.
[0034] In this way, in the implementation mode of the present application, the received voice request can be saved, and an operation log of the target voice interaction service can be generated, thereby providing support for subsequent data analysis and data monitoring.
[0035] An embodiment of the present application provides a server, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the above-mentioned voice interaction method is implemented.
[0036] An embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the above-mentioned voice interaction method is implemented.
[0037] The embodiments of the present application provide a server and a computer-readable storage medium, which can perform at least one of authority authentication, security verification and traffic restriction on a received voice request through a gateway service, and determine a target voice interaction service corresponding to the voice request, so that the authority authentication, security verification, traffic restriction and routing in each voice interaction service can be completed through the gateway service, avoiding the situation where each voice interaction service needs to be separately designed and includes functions such as authority authentication, security verification, traffic restriction and routing, thereby reducing the difficulty of implementing and updating each voice interaction service to a certain extent.
[0038] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0040] Figure 1 A flowchart of a voice interaction method in certain implementation modes of the present application;
[0041] Figure 2 A flowchart of a voice interaction method in certain implementation modes of the present application;
[0042] Figure 3 A flowchart of a voice interaction method in certain implementation modes of the present application;
[0043] Figure 4 A schematic diagram of application scenarios in certain embodiments of the present application;
[0044] Figure 5 A schematic diagram of application scenarios in certain embodiments of the present application;
[0045] Figure 6 A schematic diagram of an application scenario in certain embodiments of the present application. DETAILED DESCRIPTION
[0046] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions from beginning to end. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the embodiments of the present application.
[0047] With the rapid improvement of the level of automobile intelligence and electrification, the number of vehicles in use has increased rapidly, and the number of vehicle models and versions has also continued to increase. Correspondingly, in order to adapt to the model version, the version of the vehicle's voice interaction function has also been updated and iterated. However, due to user needs and various phonemes in program development, the iteration speed of the voice interaction function version will be very fast, and the voice interaction function will become more and more complex. When the voice interaction function is implemented through a microservice architecture, the bloatedness of the microservice will become more and more serious with the continuous iteration of the function.
[0048] Based on the above problems you may encounter, please refer to Figure 1 , the present application embodiment provides a voice interaction method, including:
[0049] 01: Receive the voice request forwarded by the vehicle;
[0050] 02: According to the predetermined gateway service, target processing is performed on the voice request and a target voice interaction service corresponding to the voice request is determined, wherein the target processing includes at least one of authority identification, security verification and traffic restriction;
[0051] 03: Call the target voice interaction service to complete the voice interaction.
[0052] The embodiment of the present application provides a voice interaction device. The voice interaction method of the embodiment of the present application can be implemented by the voice interaction device of the embodiment of the present application. Specifically, the voice interaction device includes a receiving module, a processing module and an interaction module. Among them, the receiving module is used to receive a voice request forwarded by a vehicle. The processing module is used to perform target processing on the voice request and determine the target voice interaction service corresponding to the voice request according to a predetermined gateway service, and the target processing includes at least one of authority authentication, security verification and traffic restriction. The interaction module is used to call the target voice interaction service to complete the voice interaction.
[0053] The embodiment of the present application also provides a server, which includes a memory and a processor. The voice interaction method of the embodiment of the present application can be implemented by the server of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is used to receive a voice request forwarded by a vehicle, and according to a predetermined gateway service, perform target processing on the voice request and determine a target voice interaction service corresponding to the voice request, and is used to call the target voice interaction service to complete the voice interaction, and the target processing includes at least one of authority authentication, security verification and traffic restriction.
[0054] Specifically, in an embodiment of the present application, after receiving a voice request forwarded by a vehicle, the server may perform unified target processing and target service determination on the received voice request according to a pre-deployed gateway service to determine a target voice interaction service for the voice request, and then call the target voice interaction service to respond to the voice request, thereby completing the voice interaction.
[0055] For example, if a user says "turn on the air conditioner" at one moment and "navigate to a restaurant" at another moment, the vehicle can convert the sound data captured at these two moments into voice requests and forward the voice requests to the server. When the gateway service in the server receives any voice request forwarded by the vehicle, it can perform at least one of authority authentication, security verification and traffic restriction on the voice request, and determine whether the target voice interaction service corresponding to the voice request is "Service A" or "Service B", so as to call Service A to control the vehicle to start the air conditioner, or call Service B to obtain navigation information for the restaurant.
[0056] Thus, in the implementation manner of the present application, the gateway service can be used to perform at least one of authority authentication, security verification and traffic restriction on the received voice request, and determine the target voice interaction service corresponding to the voice request, so that the authority authentication, security verification, traffic restriction and routing in each voice interaction service can be completed through the gateway service, avoiding the situation where each voice interaction service needs to be separately designed and include functions such as authority authentication, security verification, traffic restriction and routing, thereby reducing the difficulty of implementing and updating each voice interaction service to a certain extent.
[0057] It can be understood that in the implementation of the present application, the target voice interaction service or voice interaction service can be understood as a microservice. In one example, since the versions of the voice interaction service supported by each vehicle model are different, the voice interaction service in the server may include services corresponding to each vehicle model for voice recognition, slot recognition, and API (Application Programming Interface) prediction of voice requests.
[0058] It can also be understood that in the implementation mode of the present application, the common capabilities of each microservice, such as user security verification, authentication, current limiting, routing and other functions, are extracted into a common service, namely the gateway service.
[0059] Furthermore, in the implementation mode of the present application, the gateway service, as a key middleware platform, can provide standardized APIs (Application Programming Interfaces) for various types of vehicle-mounted hardware and software systems, shield the underlying differences, simplify the docking and integration of upper-layer services, and be responsible for coordinating and choreographing the interaction and data flow between different services, realize the dynamic combination and orchestration of services, and improve the reusability of services. At the same time, it can provide operational support functions such as user management, billing settlement, monitoring and operation and maintenance to ensure the high availability and controllability of voice interaction services. In addition, it can implement unified security mechanisms such as identity authentication, authorization control, and encrypted transmission to protect vehicle-mounted systems and user data from various security threats. In addition, it can also collect and analyze user behavior data of vehicle-mounted services, provide data support for service optimization and business decisions, and manage and monitor various voice interaction services, improve the availability and reliability of voice interaction services, and reduce customer complaints and service interruptions.
[0060] Furthermore, based on the design of gateway services, voice interaction services can be centrally managed and monitored, so as to better optimize service resource allocation and reduce duplication of construction and maintenance costs. At the same time, it can also improve the energy efficiency of voice interaction services and reduce operating costs. In addition, by centrally managing various in-vehicle services, gateway services can provide users with an integrated and seamless service experience, thereby enhancing user stickiness and loyalty. Not only that, gateway services can collect and analyze data on users' use of voice interaction services to provide a basis for operational decisions, and can also provide user insights to service providers, bringing potential data monetization opportunities. In addition, gateway services can centrally manage and monitor the security of various in-vehicle services, thereby improving system security, and can promptly discover and repair security vulnerabilities and reduce security risks. In addition, since the gateway service is responsible for providing unified access, management, operation and other public services, each voice interaction service provider can focus on the innovation of its own business logic and user experience, and the design difficulty and maintenance cost of voice interaction services can be reduced.
[0061] See also Figure 2 In certain embodiments of the present application, step 02 includes:
[0062] 020: Perform target processing on the voice request according to the gateway service;
[0063] 021: When the target processing is successful, determine the target voice interaction service according to the voice request.
[0064] The determination module of the implementation mode of the present application is also used to perform target processing on the voice request according to the gateway service, and to determine the target voice interaction service according to the voice request when the target processing is passed.
[0065] The processor of the implementation mode of the present application is also used to perform target processing on the voice request according to the gateway service, and to determine the target voice interaction service according to the voice request when the target processing is passed.
[0066] Specifically, in an embodiment of the present application, when the server receives a voice request forwarded by the vehicle, it may first perform target processing on the voice request, or in other words, first perform at least one of authority authentication, security verification and traffic restriction on the voice request, and when the target processing passes, that is, when at least one of authority authentication, security verification and traffic restriction passes, the server may then determine the voice interaction service to which the voice request is routed, that is, the target voice interaction service.
[0067] Thus, in the implementation mode of the present application, the voice request can be targeted for processing through the gateway service, and the target voice interaction service to which the voice request is routed can be determined if the target processing passes, thereby ensuring the robust processing of the voice request to a certain extent.
[0068] See also Figure 3 In some implementations of the present application, step 020 includes:
[0069] 0200: Reading pre-stored configuration data according to the gateway service, wherein the configuration data includes execution parameters of authority authentication, execution parameters of security verification, and execution parameters of flow restriction;
[0070] 0201: Perform target processing on the voice request according to the configuration data.
[0071] The determination module of the implementation mode of the present application is also used to read pre-stored configuration data according to the gateway service, and to perform target processing on the voice request according to the configuration data, wherein the configuration data includes execution parameters for authority authentication, execution parameters for security verification, and execution parameters for traffic limitation.
[0072] The processor of the implementation mode of the present application is also used to read pre-stored configuration data according to the gateway service, and to perform target processing on the voice request according to the configuration data, wherein the configuration data includes execution parameters for authority authentication, execution parameters for security verification, and execution parameters for traffic limitation.
[0073] Specifically, in the implementation manner of the present application, the server can read the pre-stored configuration information to determine the execution parameters of the authority authentication, the execution parameters of the security check and the execution parameters of the traffic restriction, and use these execution parameters to perform the authority authentication, security check and traffic restriction of each voice request.
[0074] To more clearly illustrate the implementation of this application, please refer to Figure 4 , Figure 4 Schematic diagram of application scenarios in certain embodiments of the present application. That is, in the embodiments of the present application, a developer can publish a service designed by himself to the gateway for another developer to configure and use in the internal configuration platform of the gateway. For example, permissions can be configured for different users. As another example, a security key for security verification is configured so that when the client (i.e., the vehicle) sends a voice request and the voice request carries a key, the gateway service verifies according to the previously configured security key. As another example, the flow limit can be configured in the internal configuration platform of the gateway. As another example, the routing relationship between voice requests from different vehicles and different voice interaction services can be configured.
[0075] Furthermore, after completing the above configuration, the corresponding configuration information can be persisted to the database layer and stored in the cache for easy reading by the server.
[0076] Furthermore, after the gateway service receives the voice request, the gateway core in the gateway service can obtain the corresponding configuration from the database or cache according to the pre-set interface, and perform security verification, current limiting and other processing on the voice request according to the parameters in the configuration information.
[0077] Thus, in the implementation mode of the present application, the execution parameters of the authority authentication, the execution parameters of the security verification and the execution parameters of the traffic restriction can be determined through the pre-configured and stored configuration data, and the processing of the voice request can be completed according to the execution parameters.
[0078] In some embodiments of the present application, the voice interaction method further includes:
[0079] In response to the update instruction for the configuration data, the configuration data is updated.
[0080] The voice interaction device of the embodiment of the present application further includes an updating module. The updating module is used to update the configuration data in response to an updating instruction for the configuration data.
[0081] The processor according to the embodiment of the present application is further configured to update the configuration data in response to an update instruction for the configuration data.
[0082] Specifically, in the implementation manner of the present application, the server may also respond to an update instruction for updating the configuration data to complete the update of the configuration data. Figure 4 ,Users can modify different user configuration permissions through the gateway's internal configuration platform, and / or change the security keys used for security verification, and / or configure restricted traffic for different voice interaction services.
[0083] Thus, in the implementation manner of the present application, the configuration data can be updated in response to an update instruction for the configuration data, so that the configuration data can be updated according to actual conditions, which can ensure the stable operation of the gateway service to a certain extent.
[0084] In some embodiments of the present application, step 021 includes:
[0085] When the target processing is passed, the target service call address parameter corresponding to the first vehicle identification parameter is determined according to the pre-stored routing data and the first vehicle identification parameter in the voice request, wherein the first vehicle identification parameter includes a vehicle model parameter and a vehicle model version parameter, and the routing data is used to associate the first vehicle identification data with the service call address data.
[0086] The determination module of the implementation mode of the present application is also used to determine the target service call address parameter corresponding to the first vehicle identification parameter based on the pre-stored routing data and the first vehicle identification parameter in the voice request when the target processing is passed, wherein the first vehicle identification parameter includes a vehicle model parameter and a vehicle model version parameter, and the routing data is used to associate the first vehicle identification data with the service call address data.
[0087] The processor of the embodiment of the present application is also used to determine the target service call address parameter corresponding to the first vehicle identification parameter based on pre-stored routing data and the first vehicle identification parameter in the voice request when the target processing is passed, wherein the first vehicle identification parameter includes a vehicle model parameter and a vehicle model version parameter, and the routing data is used to associate the first vehicle identification data with the service call address data.
[0088] Specifically, in the implementation manner of the present application, routing data is pre-stored in the gateway service, and the routing data is used to associate the service call address data of the voice interaction service with the vehicle model and vehicle model version. Therefore, the gateway service can determine the service call address of the target voice interaction service corresponding to the voice request through the routing data and the vehicle model parameters and vehicle model version parameters in the voice request.
[0089] To more clearly illustrate the implementation of this application, please refer to Figure 5 , Figure 5 Schematic diagram of application scenarios in certain embodiments of the present application. Figure 5As shown, when a user such as a driver makes a sound in the vehicle cabin, and the vehicle (i.e., the client) obtains the sound data and generates a voice request, in order to ensure the safe operation of the voice interaction service, a layer of gateway service can be added before the voice interaction service call to perform some work such as security verification on the voice request. Then, after the security verification is passed, the vehicle can forward the voice request to the server. The gateway service in the server can perform at least one of authority authentication, security verification, and traffic restriction on the voice request. Finally, according to the requested vehicle model parameters and vehicle model version parameters, as well as the pre-stored routing data, it is routed to the vehicle model service IP corresponding to the voice request, that is, the service call address of the target voice interaction service.
[0090] Thus, in the implementation mode of the present application, the target service call address parameters corresponding to the vehicle model parameters and vehicle model version parameters can be determined through the pre-stored routing data, as well as the vehicle model parameters and vehicle model version parameters in the voice request.
[0091] In certain embodiments of the present application, step 03 includes:
[0092] According to the target service call address parameters, the target voice interaction service is called to complete the voice interaction.
[0093] The interaction module of the implementation mode of the present application is also used to call the target voice interaction service according to the target service call address parameters to complete the voice interaction.
[0094] The processor of the implementation mode of the present application is also used to call the target voice interaction service according to the target service call address parameters to complete the voice interaction.
[0095] Specifically, when the gateway service routes to the vehicle model service IP corresponding to the voice request, or in other words, when the gateway service obtains the target service call address parameters corresponding to the vehicle model parameters and vehicle model version parameters, the server can call the voice interaction service corresponding to the voice request according to the target service call address parameters, so that the "called voice interaction service" can match the "vehicle model parameters and vehicle model version parameters in the voice request", and thus the processing of the voice request can run stably.
[0096] Thus, in the implementation mode of the present application, the target voice interaction service indicated by the target service call address parameter can be called to complete the processing of the voice request, which ensures the robustness and reliability of the voice request processing to a certain extent.
[0097] In some embodiments of the present application, step 020 includes:
[0098] In the case where the target processing includes authority identification, determining the authority corresponding to the voice request according to the second vehicle identification parameter in the voice request; and / or,
[0099] Where the target processing includes security verification, verifying the key parameters in the voice request; and / or,
[0100] In the case where the target processing includes flow restriction, flow restriction is performed on the currently received voice request according to a predetermined upper limit of the number of requests and the number of currently received voice requests.
[0101] The determination module of the implementation mode of the present application is also used to determine the authority corresponding to the voice request according to the second vehicle identification parameter in the voice request when the target processing includes authority authentication, and / or to verify the key parameters in the voice request when the target processing includes security verification, and / or to limit the traffic of the currently received voice request according to a predetermined upper limit on the number of requests and the number of currently received voice requests when the target processing includes traffic limitation.
[0102] The processor of the implementation mode of the present application is also used to determine the authority corresponding to the voice request according to the second vehicle identification parameter in the voice request when the target processing includes authority authentication, and / or to verify the key parameters in the voice request when the target processing includes security verification, and / or to limit the traffic of the currently received voice request according to a predetermined upper limit on the number of requests and the number of currently received voice requests when the target processing includes traffic limitation.
[0103] Specifically, in an implementation manner of the present application, when an authority authentication function is configured in the gateway service, the gateway service in the server can determine the authority corresponding to the voice request, that is, the callable voice interaction service, through the second vehicle identification parameter in the voice request. If there is at least one voice interaction service that can be called, the authority authentication passes; otherwise, if there is no callable voice interaction service, the authority authentication fails.
[0104] In one example, the second vehicle identification parameter is a vehicle ID model parameter and a model version parameter.
[0105] Also, when a security verification function is configured in the gateway service, the gateway service in the server can parse to obtain the key parameters carried in the voice request, and compare the key parameters with the verification key pre-stored in the gateway service, and determine that the security verification has passed when the key parameters are the same as the verification key, and determine that the security verification has failed when there is a difference between the key parameters and the verification key.
[0106] In addition, when the traffic limit function is configured in the gateway service, the gateway service in the server can determine whether the number of voice requests currently received exceeds the traffic limit based on the pre-configured traffic limit (i.e. the upper limit on the number of requests). If so, it is determined that the current traffic exceeds the upper limit and the voice request is ignored. If not, the traffic limit is passed.
[0107] Thus, in an embodiment of the present application, when the target processing includes authority authentication, the authority corresponding to the voice request is determined according to the second vehicle identification parameter in the voice request; and / or when the target processing includes security verification, the key parameter in the voice request is verified; and / or when the target processing includes traffic limitation, the traffic of the currently received voice request is limited according to a predetermined upper limit on the number of requests and the number of currently received voice requests.
[0108] In some embodiments of the present application, the voice interaction method further includes:
[0109] Save the voice request and generate the running log of the target voice interaction service.
[0110] The saving module of the implementation mode of the present application is used to save the voice request and generate the operation log of the target voice interaction service.
[0111] The processor of the implementation mode of the present application is also used to save the voice request and generate an operation log of the target voice interaction service.
[0112] Specifically, in the implementation manner of the present application, the gateway service may persist the received request data so that the data monitoring service in the gateway service can issue service abnormality alarms by monitoring abnormal information, and enable the data analysis service in the gateway service to perform analysis.
[0113] To more clearly illustrate the implementation of this application, please refer to Figure 6 , Figure 6 This is a schematic diagram of application scenarios in certain embodiments of the present application. Figure 6 As shown, in the implementation mode of the present application, the gateway service can store various voice requests received persistently for post-analysis, troubleshooting, and supervision. In addition, the gateway service can also monitor the operating status and abnormal information of various voice interaction services in real time, and notify the relevant service provider to handle it when an abnormality is found. In addition, the gateway service will collect and summarize the log information such as user access and usage data of the voice interaction service, so that the data analysis service can conduct in-depth analysis of these data, thereby realizing user demand mining and user behavior insights.
[0114] It is understandable that persistent request data can be used for problem diagnosis and resolution, and abnormal monitoring can quickly discover and fix service failures. The results of user behavior analysis can be used to continuously improve service design and functionality. In addition, data analysis results based on user requests can provide data support for service operations and product strategies. In addition, persistent request records help meet regulatory requirements.
[0115] In this way, in the implementation mode of the present application, the received voice request can be saved, and an operation log of the target voice interaction service can be generated, thereby providing support for subsequent data analysis and data monitoring.
[0116] The embodiment of the present application also provides a computer-readable storage medium storing a computer program, which implements the above-mentioned voice interaction method when the computer program is executed by one or more processors.
[0117] In the description of this specification, the descriptions with reference to the terms "specifically", "further", "particularly", "understandably", etc. are intended to mean that the specific features, structures, materials or characteristics described in conjunction with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not intended to refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0118] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.
[0119] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A voice interaction method, characterized in that: include: Receive voice requests forwarded by the vehicle; According to a predetermined gateway service, target processing is performed on the voice request and a target voice interaction service corresponding to the voice request is determined, wherein the target processing includes at least one of authority authentication, security verification and traffic restriction; The target voice interaction service is called to complete the voice interaction.
2. The method according to claim 1, characterized in that The step of performing target processing on the voice request and determining a target voice interaction service corresponding to the voice request according to a predetermined gateway service includes: According to the gateway service, performing the target processing on the voice request; In a case where the target processing is passed, the target voice interaction service is determined according to the voice request.
3. The method according to claim 2, characterized in that The performing the target processing on the voice request according to the gateway service includes: According to the gateway service, read the pre-stored configuration data, wherein the configuration data includes the execution parameters of the authority authentication, the execution parameters of the security verification and the execution parameters of the flow restriction; The target processing is performed on the voice request according to the configuration data.
4. The method according to claim 3, characterized in that The method further comprises: In response to an update instruction for the configuration data, the configuration data is updated.
5. The method according to claim 2, characterized in that: In the case where the target processing is passed, determining the target voice interaction service according to the voice request includes: When the target processing is passed, the target service call address parameter corresponding to the first vehicle identification parameter is determined according to the pre-stored routing data and the first vehicle identification parameter in the voice request, wherein the first vehicle identification parameter includes a vehicle model parameter and a vehicle model version parameter, and the routing data is used to associate the first vehicle identification data with the service call address data.
6. The method according to claim 5, characterized in that The calling of the target voice interaction service to complete the voice interaction includes: The target voice interaction service is called according to the target service call address parameter to complete the voice interaction.
7. The method according to claim 2, characterized in that The performing the target processing on the voice request according to the gateway service includes: In the case where the target processing includes the authority identification, determining the authority corresponding to the voice request according to the second vehicle identification parameter in the voice request; and / or, In the case where the target processing includes the security check, verifying the key parameter in the voice request; and / or, In the case where the target processing includes the flow restriction, flow restriction is performed on the currently received voice request according to a predetermined upper limit of the number of requests and the number of the currently received voice requests.
8. The method according to claim 1, characterized in that The method further comprises: The voice request is saved, and a running log of the target voice interaction service is generated.
9. A server, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 8 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Flow limiting method and system for private cloud service cluster supporting weight
CN110971470A
Method for managing application interface, computing device and computer storage medium
CN111741016A
Micro-service authentication method, electronic device and storage medium
CN113505382A
Interface authority verification method and system, electronic equipment, and storage medium
CN113672896A
Gateway traffic control method and device, electronic equipment and storage medium
CN114827246A
