Interactive interface generation method, device, computer equipment and storage medium

By receiving session interaction requests and obtaining target interface functional modules and functional components, generating interactive interfaces and setting corresponding relationships, the problem of low efficiency in interaction interface generation in the prior art is solved, and the effect of rapid generation and functional implementation is achieved.

CN113691595BActive Publication Date: 2025-05-30SHENZHEN ZHUIYI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110923041.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2025-05-30
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

In the prior art, the interactive interface generation efficiency is low, and it is difficult to quickly generate an interface that conforms to the conversation topic.

Method used

By receiving session interaction requests, the target interface function module and functional components corresponding to the session topic identification are obtained, the interactive interface is generated, and the corresponding relationship between the functional module and the functional components is set to realize the call of functions.

Benefits of technology

It improves the efficiency of interface generation, can quickly generate interactive interfaces that match the conversation topic, and realizes calls to corresponding functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113691595B_ABST
    Figure CN113691595B_ABST
Patent Text Reader

Abstract

The present application relates to an interactive interface generation method, apparatus, computer device, and storage medium. The method includes: receiving a session interaction request, where the session interaction request carries a session topic identifier; obtaining one or more target interface function modules corresponding to the session topic identifier from a set of candidate interface function modules; obtaining target function components corresponding to each of the target interface function modules and text description information corresponding to the target function components; using the target function components and the text description information as display content of an interactive interface, generating a target interactive interface, and setting a correspondence between the target interface function modules and the target function components, so that when a trigger operation for the target function components is received through the target interactive interface, the target interface function modules are called to execute corresponding functions. Using this method can improve the efficiency of interactive interface generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technologies, and in particular, to an interactive interface generation method, apparatus, computer device, and storage medium. Background Art

[0002] With the development of front-end development technologies, interactive technologies have also developed rapidly. Interactive technology refers to the technology by which a client and a server cooperate to complete a certain task. Specifically, an intelligent robot running on a session terminal needs to implement the functions of intelligent robot interface components by means of a front-end module and a back-end module. The front-end module refers to a module that enables the page where the interface is located on the session terminal to run, and the back-end module refers to an underlying module that enables the functions of the interface components on the interface to be implemented. The front-end module and the back-end module interact with each other so that the interface components on the intelligent robot interface can implement functions.

[0003] However, the current interactive interface generation method has the problem of low interface generation efficiency. Summary of the Invention

[0004] Based on this, it is necessary to provide an interactive interface generation method, apparatus, computer device, and storage medium that can improve the interface generation efficiency for the above technical problems.

[0005] An interactive interface generation method, the method includes: receiving a session interaction request, where the session interaction request carries a session topic identifier; obtaining one or more target interface function modules corresponding to the session topic identifier from a candidate interface function module set; obtaining target function components corresponding to each of the target interface function modules and text description information corresponding to the target function components; using the target function components and the text description information as display content of an interactive interface, generating a target interactive interface, and setting a correspondence between the target interface function module and the target function component, so that when a trigger operation for the target function component is received through the target interactive interface, the target interface function module is called to execute a corresponding function.

[0006] In one embodiment, the obtaining one or more target interface function modules corresponding to the session topic identifier from the candidate interface function module set includes: obtaining a module combination identifier corresponding to the session topic identifier; obtaining, from the candidate interface function module set, a pre-combined function module combination corresponding to the module combination identifier as the target interface function module corresponding to the session topic identifier.

[0007] In one embodiment, the target interface function module includes a connection gateway module and a session service module. The target function component corresponding to the session service module includes a session start component. The method further includes: receiving a session interaction request, where the session interaction request carries the session topic identifier, and the session interaction request is triggered by a trigger operation received for the session start component; calling the session service module to generate a corresponding target session identifier in response to the session interaction request, obtaining session-related data corresponding to the session topic identifier, and establishing a correspondence between the target session identifier and the session-related data. The session-related data includes session content information and standard reply content for the session content information; calling the connection gateway module to establish a data transmission channel with the session terminal based on the target session identifier, and sending robot session information corresponding to the session content information to the session terminal through the data transmission channel; calling the connection gateway module to receive user voice information and the target session identifier sent by the session terminal through the data transmission channel; calling the session service module to obtain a user reply content obtained based on the user voice information, and obtaining the standard reply content based on the target session identifier, so as to compare the user reply content with the standard reply content to obtain a session evaluation result.

[0008] In one embodiment, the method further includes: calling a session control module to obtain the session content information in text form from the session service module, performing voice conversion on the session content information to obtain the robot session information in voice form, and sending the robot session information to the connection gateway module; calling the session control module to obtain the user voice information received by the connection gateway module, performing text conversion on the user voice information to obtain the user reply content, and sending the user reply content to the session service module.

[0009] In one embodiment, the converting the session content information into speech to obtain the robot session information in speech form and sending the robot session information to the connection gateway module includes: converting the session content information into speech to obtain the session speech information corresponding to the robot; segmenting the session speech information and arranging the segmented speech segments in speech order to obtain a speech segment sequence, and using the speech segment sequence as the robot session information; sending the speech segment sequence to the session terminal through the connection gateway module, so that the session terminal respectively adds speech playback format information to each speech segment in the speech segment sequence to obtain speech playback units corresponding to each speech segment that meet the playback conditions; the session terminal displays speech prompt information corresponding to the session speech information on the session interface, and when the speech playback conditions of the speech prompt information are met, plays the speech playback units corresponding to the speech segments in the order of the speech segment sequence.

[0010] In one embodiment, the establishing a data transmission channel with the session terminal based on the target session identifier includes: establishing a real-time session voice channel and an additional message transmission channel with the session terminal based on the target session identifier; the sending the robot session information corresponding to the session content information to the session terminal through the data transmission channel includes: sending the robot session information corresponding to the session content information to the session terminal through the real-time conversation voice channel; the connection gateway module is further configured to: send the session evaluation result to the session terminal through the additional message transmission channel.

[0011] In one embodiment, the segmenting the session speech information and arranging the segmented speech segments in speech order to obtain a speech segment sequence includes: obtaining the playback duration of the currently segmented speech segment corresponding to the session speech information; determining the segment duration of the next speech segment corresponding to the current speech segment according to the playback duration, where the speech transmission duration corresponding to the segment duration is less than the playback duration; segmenting the next speech segment corresponding to the current speech segment from the session speech information based on the segment duration.

[0012] An interactive interface generation device, the device comprising: a session interaction request receiving module, configured to receive a session interaction request, the session interaction request carrying a session topic identifier; a target interface function module obtaining module, configured to obtain one or more target interface function modules corresponding to the session topic identifier from a candidate interface function module set; a component and information obtaining module, configured to obtain target function components corresponding to each of the target interface function modules and text description information corresponding to the target function components; a target interactive interface generation module, configured to use the target function components and the text description information as display content of an interactive interface, generate a target interactive interface, and set a corresponding relationship between the target interface function module and the target function components, so that when a trigger operation for the target function component is received through the target interactive interface, the target interface function module is called to execute a corresponding function.

[0013] In one embodiment, the target interface function module is configured to obtain a module combination identifier corresponding to the session topic identifier; and obtain, from the candidate interface function module set, a pre-combined function module combination corresponding to the module combination identifier as the target interface function module corresponding to the session topic identifier.

[0014] In one embodiment, the interactive interface generation device is configured to receive a session interaction request, the session interaction request carrying the session topic identifier, the session interaction request being triggered by a trigger operation received for the session start component; call the session service module to generate a corresponding target session identifier in response to the session interaction request, obtain session-related data corresponding to the session topic identifier, and establish a corresponding relationship between the target session identifier and the session-related data, the session-related data including session content information and a standard reply content for the session content information; call the connection gateway module to establish a data transmission channel with the session terminal based on the target session identifier, and send robot session information corresponding to the session content information to the session terminal through the data transmission channel; call the connection gateway module to receive user voice information and the target session identifier sent by the session terminal through the data transmission channel; call the session service module to obtain a user reply content obtained based on the user voice information, and obtain the standard reply content based on the target session identifier, so as to compare the user reply content with the standard reply content to obtain a session evaluation result.

[0015] In one embodiment, the device is configured to call the session control module to obtain the session content information in text form from the session service module, perform speech conversion on the session content information to obtain the robot session information in speech form, and send the robot session information to the connection gateway module; call the session control module to obtain the user speech information received by the connection gateway module, perform text conversion on the user speech information to obtain the user reply content, and send the user reply content to the session service module.

[0016] In one embodiment, the device is configured to perform speech conversion on the session content information to obtain the session speech information corresponding to the robot; segment the session speech information, and arrange the segmented speech segments in speech order to obtain a speech segment sequence, and use the speech segment sequence as the robot session information; send the speech segment sequence to the session terminal through the connection gateway module, so that the session terminal adds speech playback format information to each speech segment in the speech segment sequence to obtain a speech playback unit corresponding to each speech segment that meets the playback condition; the session terminal displays a speech prompt message corresponding to the session speech information on the session interface, and when the speech playback condition of the speech prompt message is met, plays the speech playback unit corresponding to the speech segment in the order of the speech segment sequence.

[0017] In one embodiment, the device is configured to establish a real-time session voice channel and an additional message transmission channel with the session terminal based on the target session identifier; send the robot session information corresponding to the session content information to the session terminal through the real-time conversation voice channel; send the session evaluation result to the session terminal through the additional message transmission channel.

[0018] In one embodiment, the device is configured to obtain the playback duration of the currently played speech segment obtained by segmenting the session speech information; determine the segment duration of the next speech segment corresponding to the current speech segment according to the playback duration, and the speech transmission duration corresponding to the segment duration is less than the playback duration; segment the next speech segment corresponding to the current speech segment from the session speech information based on the segment duration.

[0019] A computer device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, the following steps are implemented: receiving a session interaction request carrying a session topic identifier; obtaining one or more target interface function modules corresponding to the session topic identifier from a candidate interface function module set; obtaining target function components corresponding to each of the target interface function modules and text description information corresponding to the target function components; using the target function components and the text description information as display content of an interaction interface, generating a target interaction interface, and setting a corresponding relationship between the target interface function module and the target function component, so that when a trigger operation for the target function component is received through the target interaction interface, the target interface function module is called to execute a corresponding function.

[0020] In one embodiment, when the processor executes the computer program, the following steps are implemented: obtaining a module combination identifier corresponding to the session topic identifier; obtaining, from the candidate interface function module set, a pre-combined function module combination corresponding to the module combination identifier as the target interface function module corresponding to the session topic identifier.

[0021] In one embodiment, when the processor executes the computer program, the following steps are implemented: receiving a session interaction request carrying the session topic identifier, where the session interaction request is triggered by a trigger operation received for a session start component; calling a session service module to respond to the session interaction request, generating a corresponding target session identifier, obtaining session-related data corresponding to the session topic identifier, and establishing a corresponding relationship between the target session identifier and the session-related data, where the session-related data includes session content information and a standard reply content for the session content information; calling a connection gateway module to establish a data transmission channel with a session terminal based on the target session identifier, and sending robot session information corresponding to the session content information to the session terminal through the data transmission channel; calling the connection gateway module to receive user voice information and the target session identifier sent by the session terminal through the data transmission channel; calling the session service module to obtain a user reply content obtained based on the user voice information, and obtaining the standard reply content based on the target session identifier, so as to compare the user reply content with the standard reply content to obtain a session evaluation result.

[0022] In one embodiment, when the processor executes the computer program, the following steps are implemented: calling the session control module to obtain the session content information in text form from the session service module, performing voice conversion on the session content information to obtain the robot session information in voice form, and sending the robot session information to the connection gateway module; calling the session control module to obtain the user voice information received by the connection gateway module, performing text conversion on the user voice information to obtain the user reply content, and sending the user reply content to the session service module.

[0023] In one embodiment, when the processor executes the computer program, the following steps are implemented: performing voice conversion on the session content information to obtain the session voice information corresponding to the robot; segmenting the session voice information and arranging the segmented voice segments in voice order to obtain a voice segment sequence, and using the voice segment sequence as the robot session information; sending the voice segment sequence to the session terminal through the connection gateway module, so that the session terminal adds voice playback format information to each voice segment in the voice segment sequence to obtain a voice playback unit corresponding to each voice segment that meets the playback conditions; the session terminal displays voice prompt information corresponding to the session voice information on the session interface, and when the voice playback condition of the voice prompt information is met, plays the voice playback unit corresponding to the voice segment in the order of the voice segment sequence.

[0024] In one embodiment, when the processor executes the computer program, the following steps are implemented: establishing a real-time session voice channel and an additional message transmission channel with the session terminal based on the target session identifier; sending the robot session information corresponding to the session content information to the session terminal through the real-time dialogue voice channel; sending the session evaluation result to the session terminal through the additional message transmission channel.

[0025] In one embodiment, when the processor executes the computer program, the following steps are implemented: obtaining the playback duration of the current voice segment obtained by segmenting the session voice information; determining the segment duration of the next voice segment corresponding to the current voice segment according to the playback duration, and the voice transmission duration corresponding to the segment duration is less than the playback duration; segmenting the next voice segment corresponding to the current voice segment from the session voice information based on the segment duration.

[0026] A computer-readable storage medium has a computer program stored thereon. When the computer program is executed by a processor, the following steps are implemented: receiving a session interaction request, where the session interaction request carries a session topic identifier; obtaining, from a set of candidate interface function modules, one or more target interface function modules corresponding to the session topic identifier; obtaining target function components corresponding to each of the target interface function modules and text description information corresponding to the target function components; using the target function components and the text description information as display content of an interaction interface, generating a target interaction interface, and setting a correspondence between the target interface function modules and the target function components, so that when a trigger operation for the target function components is received through the target interaction interface, the target interface function modules are called to execute corresponding functions.

[0027] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: obtaining a module combination identifier corresponding to the session topic identifier; obtaining, from the set of candidate interface function modules, a pre-combined function module combination corresponding to the module combination identifier as the target interface function module corresponding to the session topic identifier.

[0028] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: receiving a session interaction request, where the session interaction request carries the session topic identifier and is triggered by a trigger operation received for a session start component; calling a session service module to respond to the session interaction request, generating a corresponding target session identifier, obtaining session-related data corresponding to the session topic identifier, and establishing a correspondence between the target session identifier and the session-related data, where the session-related data includes session content information and a standard reply content for the session content information; calling a connection gateway module to establish a data transmission channel with a session terminal based on the target session identifier, and sending robot session information corresponding to the session content information to the session terminal through the data transmission channel; calling the connection gateway module to receive user voice information and the target session identifier sent by the session terminal through the data transmission channel; calling the session service module to obtain a user reply content obtained based on the user voice information, and obtaining the standard reply content based on the target session identifier, so as to compare the user reply content with the standard reply content to obtain a session evaluation result.

[0029] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: call the session control module to obtain the session content information in text form from the session service module, perform speech conversion on the session content information to obtain the robot session information in speech form, and send the robot session information to the connection gateway module; call the session control module to obtain the user speech information received by the connection gateway module, perform text conversion on the user speech information to obtain the user reply content, and send the user reply content to the session service module.

[0030] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: perform speech conversion on the session content information to obtain the session speech information corresponding to the robot; segment the session speech information, and arrange the segmented speech segments in speech order to obtain a speech segment sequence, and use the speech segment sequence as the robot session information; send the speech segment sequence to the session terminal through the connection gateway module, so that the session terminal respectively adds speech playback format information to each speech segment in the speech segment sequence to obtain a speech playback unit corresponding to each speech segment that meets the playback conditions; the session terminal displays the speech prompt information corresponding to the session speech information on the session interface, and when the speech playback conditions of the speech prompt information are met, play the speech playback unit corresponding to the speech segment in the order of the speech segment sequence.

[0031] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: establish a real-time session speech channel and an additional message transmission channel with the session terminal based on the target session identifier; send the robot session information corresponding to the session content information to the session terminal through the real-time dialogue speech channel; send the session evaluation result to the session terminal through the additional message transmission channel.

[0032] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: obtain the playback duration of the currently obtained speech segment segmented from the session speech information; determine the segment duration of the next speech segment corresponding to the current speech segment according to the playback duration, and the speech transmission duration corresponding to the segment duration is less than the playback duration; segment the next speech segment corresponding to the current speech segment from the session speech information based on the segment duration.

[0033] The above-mentioned interactive interface generation method, device, computer device, and storage medium receive a session interaction request that carries a session topic identifier; obtain one or more target interface function modules corresponding to the session topic identifier from a set of candidate interface function modules; obtain the target function components corresponding to each target interface function module and the text description information corresponding to the target function components; use the target function components and the text description information as the display content of the interactive interface, generate a target interactive interface, and set the correspondence between the target interface function modules and the target function components, so that when a trigger operation for the above-mentioned target function components is received through the target interactive interface, the target interface function modules are called to execute corresponding functions. Since the interface function modules can be determined based on the session topic identifier and the function components corresponding to each interface function module can be obtained, the interactive interface corresponding to the session topic identifier can be quickly generated, achieving the purpose of improving the interface generation efficiency. Moreover, when a trigger operation for the above-mentioned target function components is received through the target interactive interface, the target interface function modules are called to execute corresponding functions, so that the generated target interactive interface can implement corresponding interactive functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 FIG. 6 is an application environment diagram of the interactive interface generation method in an embodiment;

[0035] Figure 2 FIG. 10 is a flowchart of the interactive interface generation method in an embodiment;

[0036] Figure 3 FIG. 14 is a flowchart of the process for obtaining the target interface function modules in an embodiment;

[0037] Figure 4 FIG. 18 is a flowchart of the method for obtaining the session evaluation result in an embodiment;

[0038] Figure 5 FIG. 22 is a flowchart of the interactive interface generation method in another embodiment;

[0039] Figure 6 FIG. 26 is a flowchart of the process for sending session content information in an embodiment;

[0040] Figure 7 FIG. 30 is a flowchart of the process for determining voice segments in an embodiment;

[0041] Figure 8 FIG. 34 is a schematic diagram of module calls in an embodiment;

[0042] Figure 9 FIG. 38 is a schematic diagram of module calls in an embodiment;

[0043] Figure 10It is a structural block diagram of an interactive interface generation device in an embodiment;

[0044] Figure 11 It is an internal structure diagram of a computer device in an embodiment. Detailed implementation manners

[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0046] The interactive interface generation method provided by the present application can be applied to an application environment as Figure 1 shown, and is specifically applied to an interactive system. The interactive system includes a terminal 102 and a server 104. Among them, the terminal 102 communicates with the server 104 through a network. The server 104 executes an interactive interface generation method. Specifically, the server 104 receives a session interaction request sent by the terminal 102, and the session interaction request carries a session topic identifier; one or more target interface function modules corresponding to the session topic identifier are obtained from a set of candidate interface function modules; target function components corresponding to each target interface function module and text description information corresponding to the target function components are obtained; the target function components and the text description information are used as display contents of the interactive interface to generate a target interactive interface, and the corresponding relationship between the target interface function module and the target function component is set, so that when a trigger operation for the target function component is received through the target interactive interface, the target interface function module is called to execute the corresponding function. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0047] In an embodiment, as Figure 2 shown, an interactive interface generation method is provided. Taking the method applied to the Figure 1 server as an example for description, the method includes the following steps:

[0048] Step S202: Receive a session interaction request, and the session interaction request carries a session topic identifier.

[0049] Among them, the session interaction request refers to an instruction for requesting session interaction; the session topic identifier refers to an identification mark that can reflect the session topic, and the session topic refers to the main content of the session. For example, if the main content of the session is the examination questions of a certain subject, the session topic is the test paper of that subject.

[0050] Specifically, when the terminal interacts with the server, the terminal sends a session interaction request to the server. Correspondingly, the server receives the session interaction request, and the session interaction request carries a session topic identifier.

[0051] In one embodiment, the server and the corresponding terminal have a unique application programming interface. Through the port monitoring function, the requests sent or received by the interface are monitored. When it is detected that there is a session interaction request sent by the terminal in the above application programming interface, the session interaction request is received.

[0052] Step S204: Obtain one or more target interface function modules corresponding to the session topic identifier from the candidate interface function module set.

[0053] Among them, the interface function module refers to a module that can enable the interface to implement the interface function. For example, there is a button with a recording function set on the interface, and the interface function module corresponding to the button is the recording module. When the button receives a trigger operation, the recording module is called to implement the recording function.

[0054] Specifically, after the server receives the session interaction request carrying the session topic identifier, according to the corresponding relationship between the session topic identifier and the target interface function module, the target interface function module corresponding to the session topic identifier is obtained from the candidate interface function module set.

[0055] In one embodiment, one session topic identifier corresponds to multiple target interface function modules. These multiple target interface function modules can be regarded as a whole. When the session topic identifier is determined, multiple target interface function modules can be called simultaneously. For example, the session topic identifier is training exam question 001, and the target interface function module corresponding to the session topic identifier is the exam module. The exam module is composed of multiple target interface function modules. For example, a data request module, a recording module, or a playback module, etc. When the server receives the session topic identifier of training exam question 001, the overall exam module composed of the data request module, the recording module, or the playback module, etc. is called.

[0056] Step S206: Obtain the target function components corresponding to each target interface function module and the text description information corresponding to the target function components.

[0057] Among them, the function component refers to a component that can perform the interface function; for example, a recording button on the interface that can perform the recording function or a start button that can perform the session start function, etc. The text description information refers to the literal information that describes the function of the above function component; for example, for a function component with a recording function, there is literal information "recording" for function description on the function component.

[0058] Specifically, after the server obtains one or more target interface function modules, according to the corresponding relationship between each target interface function module and the target function component, the server obtains the target function component corresponding to each target interface function module and the text description information corresponding to the target function component.

[0059] Step S208: Use the target function component and the text description information as the display content of the interaction interface, generate a target interaction interface, and set the corresponding relationship between the target interface function module and the target function component, so that when a trigger operation for the target function component is received through the target interaction interface, the target interface function module is called to execute the corresponding function.

[0060] Specifically, after the server obtains the target function component and the text description information corresponding to the target function component, the server uses the target function component and the text description information as the display content of the interaction interface, generates a target interaction interface, and utilizes the corresponding relationship between the identifier of the target interface function module and the identifier of the target function component, so that when a trigger operation for the target function component is received through the target interaction interface, the target interface function module is called to execute the corresponding function. For example, when an operation on the "Record" button is received, the recording module can be called to record.

[0061] In the above interaction interface generation method, by receiving a session interaction request that carries a session topic identifier, one or more target interface function modules corresponding to the session topic identifier are obtained from a candidate interface function module set; the target function component corresponding to each target interface function module and the text description information corresponding to the target function component are obtained; the target function component and the text description information are used as the display content of the interaction interface to generate a target interaction interface, and the corresponding relationship between the target interface function module and the target function component is set, so that when a trigger operation for the above target function component is received through the target interaction interface, the target interface function module is called to execute the corresponding function. Since the interface function module can be determined based on the session topic identifier and the function component corresponding to each interface function module can be obtained, the interaction interface corresponding to the session topic identifier can be quickly generated, achieving the purpose of improving the interface generation efficiency. Moreover, when a trigger operation for the above target function component is received through the target interaction interface, the target interface function module is called to execute the corresponding function, so that the corresponding interaction function can be realized through the generated target interaction interface.

[0062] In one embodiment, as Figure 3 shown, obtaining one or more target interface function modules corresponding to the session topic identifier from the candidate interface function module set includes:

[0063] Step S302: Obtain the module combination identifier corresponding to the session topic identifier.

[0064] Among them, the module combination identifier refers to a mark that can uniquely determine the module combination; for example, the session topic identifier is training exam question 001, and the corresponding module combination identifier is training module 001.

[0065] Specifically, there is a one-to-one correspondence between the session topic identifier and the module combination identifier. After the server obtains the session topic identifier, according to the above correspondence, it obtains the module combination identifier.

[0066] Step S304, from the candidate interface function module set, obtain the pre-combined function module combination corresponding to the module combination identifier as the target interface function module corresponding to the session topic identifier.

[0067] Specifically, after the server obtains the module combination identifier, the module combination identifier corresponds to the corresponding function module combination, and this function module combination is the target interface function module corresponding to the above session topic identifier. For example, the module combination mark is 001, and the function module combination corresponding to this module combination mark is module A, module B, and module C. Then, module A, module B, and module C are the target interface function modules corresponding to the session topic identifier.

[0068] In this embodiment, by obtaining the module combination identifier corresponding to the session topic identifier, and obtaining the pre-combined function module combination corresponding to the module combination identifier from the candidate interface function module set as the target interface function module corresponding to the session topic identifier, the purpose of accurately obtaining the target interface function module corresponding to the session topic identifier can be achieved, and the interaction efficiency can be improved.

[0069] In one embodiment, as Figure 4 shown, the target interface function module includes a connection gateway module and a session service module. The target function component corresponding to the session service module includes a session start component. The above interaction interface generation method further includes:

[0070] Step S402, receive a session interaction request. This session interaction request carries a session topic identifier, and this session interaction request is triggered by a trigger operation received for the session start component.

[0071] Specifically, a session start component is displayed on the terminal interface. When this session start component receives a trigger operation, the server sends a session interaction request. Correspondingly, the server receives this session interaction request, and this session interaction request carries a session topic identifier.

[0072] Step S404: The session service module is called to generate a corresponding target session identifier in response to a session interaction request, obtain session-related data corresponding to the session topic identifier, and establish a correspondence between the target session identifier and the session-related data. The session-related data includes session content information and standard reply content for the session content information.

[0073] Specifically, when the server receives a session interaction request sent by the terminal, the session service module is called to generate a corresponding target session identifier in response to the session interaction request. Through the correspondence between the target session identifier, the session topic identifier, and the session-related data, the session-related data corresponding to the session topic identifier is obtained. The session-related data includes session content information and standard reply content for the session content information.

[0074] In one embodiment, a corresponding target session identifier is generated based on the timestamp of the session request initiation and the local IP (Internet Protocol) address carried in the session request received by the server. Then, based on the session topic identifier carried in the session request, the session-related data corresponding to the session topic identifier is obtained. The session-related data includes session content information and standard reply content for the session content information. For example, the session content information in the robot is a training question, and the standard reply content is a recommended statement, which can be understood as the standard answer for the training question.

[0075] Step S406: The connection gateway module is called to establish a data transmission channel with the session terminal based on the target session identifier, and send the robot session information corresponding to the session content information to the session terminal through the data transmission channel.

[0076] Specifically, after the server generates a target session identifier based on the session interaction request, a data transmission channel can be established with the session terminal through the target session identifier. After the data transmission channel is established between the server and the session terminal, the robot session information corresponding to the session content information can be sent to the session terminal through the data transmission channel.

[0077] In one embodiment, the data transmission channel includes a real-time session voice channel, and the robot session information corresponding to the session content information is sent to the session terminal through the real-time session voice channel.

[0078] Step S408: The connection gateway module is called to receive the user voice information and the target session identifier sent by the session terminal through the data transmission channel.

[0079] Specifically, after the data transmission channel is established between the server and the session terminal, the connection gateway module can be called to receive the user voice information and the target session identifier sent by the session terminal through the data transmission channel.

[0080] Step S410, call the session service module to obtain the user reply content obtained based on the user voice information, and obtain the standard reply content based on the target session identifier, so as to compare the user reply content with the standard reply content to obtain the session evaluation result.

[0081] Specifically, when the server receives the user voice information and the target session identifier sent by the session terminal through the data transmission channel, it calls the session service module through the conversion relationship between the user voice information and the user reply information to obtain the user reply content. According to the corresponding relationship between the target session identifier and the standard reply content, the standard reply content is obtained. The user reply content is compared with the standard reply content to obtain the session evaluation result.

[0082] In one embodiment, semantic analysis is performed on the user reply content and the standard reply content respectively, and the session evaluation result is obtained according to the matching degree between the user reply content after semantic analysis and the standard reply content after semantic analysis. There is a positive correlation between the matching degree and the session evaluation result. For example, the matching degree between the user reply content after semantic analysis and the standard reply content after semantic analysis is 90%, and the corresponding session evaluation result is 90 points, and the matching degree is 80%, and the corresponding session evaluation result is 80 points.

[0083] In one embodiment, the data transmission channel includes an additional message transmission channel, and the session evaluation result is sent to the session terminal through the additional message transmission channel.

[0084] In this embodiment, through the session interaction request sent by the receiving terminal, the session interaction request carries the session topic identifier. In response to the session interaction request, a corresponding target session identifier is generated, the session-related data corresponding to the session topic identifier is obtained, and the corresponding relationship between the target session identifier and the session-related data is established. The session-related data includes session content information and the standard reply content of the session content information. A data transmission channel is established between the target session identifier and the session terminal, and the robot session information corresponding to the session content information is sent to the session terminal through the data transmission channel. The user voice information and the target session identifier sent by the session terminal are received through the data transmission channel, the user reply content obtained based on the user voice information is obtained, the standard reply content is obtained based on the target session identifier, and the user reply content is compared with the standard reply content to obtain the session evaluation result. The purpose of improving the stability of obtaining the session evaluation result can be achieved.

[0085] In one embodiment, as Figure 5 shown, the above-mentioned interactive interface generation method further includes:

[0086] Step S502: Invoke the session control module to obtain the session content information in text form from the session service module, perform speech conversion on the session content information to obtain the robot session information in speech form, and send the robot session information to the connection gateway module.

[0087] Specifically, the session control module can be used to obtain node information and determine relevant implementation methods according to the node information. For example, if the obtained node information is a robot node, the session control module obtains the session content information in text form, performs speech conversion on the session content information to obtain the robot session information in speech form, and sends the robot session information in speech form to the connection gateway module.

[0088] In one embodiment, the session control module obtains node information by receiving the information from the above session service module. The session service module obtains the node identifier, encapsulates the node identifier and the node type according to the correspondence between the node identifier and the node type to obtain the node information, which includes a robot node and a user node. For different nodes, the session control module determines different implementation methods.

[0089] Step S504: Invoke the session control module to obtain the user voice information received by the connection gateway module, perform text conversion on the user voice information to obtain the user reply content, and send the user reply content to the session service module.

[0090] Specifically, when the node information obtained by the server is a user node, text conversion is performed on the user voice information to obtain the user reply content, and the user reply content is sent to the session service module.

[0091] In this embodiment, by invoking the session control module to obtain the session content information in text form from the session service module, performing speech conversion on the session content information to obtain the robot session information in speech form, and sending the robot session information to the connection gateway module, and invoking the session control module to obtain the user voice information received by the connection gateway module, performing text conversion on the user voice information to obtain the user reply content, and sending the user reply content to the session service module, the purpose of invoking different modules to implement different session functions can be achieved.

[0092] In one embodiment, as Figure 6 shown, performing speech conversion on the session content information to obtain the robot session information in speech form and sending the robot session information to the connection gateway module includes:

[0093] Step S602: Perform speech conversion on the session content information to obtain the session voice information corresponding to the robot.

[0094] Specifically, after the server receives the session content information, it converts the session content information into speech to obtain the corresponding session speech information of the robot.

[0095] Step S604: Segment the session speech information and arrange the segmented speech segments in the order of speech to obtain a sequence of speech segments, and use the sequence of speech segments as the robot session information.

[0096] Specifically, after the server obtains the session speech information corresponding to the robot, it segments the session speech information according to a preset speech information size, and arranges the segmented speech segments according to the chronological order of the speech to obtain a sequence of speech segments. The sequence of speech segments is used as the robot session information.

[0097] Step S606: Send the sequence of speech segments to the session terminal through the connection gateway module, so that the session terminal adds speech playback format information to each speech segment in the sequence of speech segments to obtain speech playback units that meet the playback conditions corresponding to each speech segment; the session terminal displays the speech prompt information corresponding to the session speech information on the session interface, and when the speech playback conditions of the speech prompt information are met, plays the speech playback units corresponding to the speech segments in the order of the sequence of speech segments.

[0098] Specifically, after the server obtains the session speech information corresponding to the robot and segments the session speech information to obtain a sequence of speech segments, it calls the connection gateway module to send the sequence of speech segments to the session terminal corresponding to the robot one by one in sequence, so that the terminal adds speech playback format information to each speech segment in the sequence of speech segments to obtain speech playback units that meet the playback conditions corresponding to each speech segment; the session terminal displays the speech prompt information corresponding to the session speech information on the session interface, and when the speech playback conditions of the speech prompt information are met, plays the speech playback units corresponding to the speech segments in the order of the sequence of speech segments. Among them, the speech playback format information refers to the information that enables the speech segment to have a playback function. For example, adding a WAV header after the speech segment, the speech segment after adding the WAV header has a playback function, etc. A sound file carrying WAV is a standard digital audio file. The speech playback unit is a speech unit that can be played independently. The speech prompt information refers to the information that prompts the existence of speech information. For example, the duration of the session speech information, etc.

[0099] In one embodiment, the server splits the session voice information according to a preset voice information size, where the preset voice information size is smaller than the Maximum Transfer Unit (MTU). Suppose the size of the session voice information obtained by the server itself is smaller than the MTU, then it is directly sent to the session terminal without splitting.

[0100] In this embodiment, by performing voice conversion on the session content information, the corresponding session voice information of the robot is obtained, the session voice information is split, and the split voice segments are arranged in voice order to obtain a voice segment sequence. The voice segment sequence is used as the robot session information, and the voice segment sequence is sent to the session terminal through the connection gateway module, so that the session terminal adds voice playback format information to each voice segment in the voice segment sequence respectively to obtain a voice playback unit that meets the playback conditions for each voice segment; the session terminal displays voice prompt information corresponding to the session voice information on the session interface, and when the voice playback conditions of the voice prompt information are met, the voice playback unit corresponding to the voice segment is played in the order in the voice segment sequence, which can achieve splitting the session voice information when sending the session voice information and sending the obtained voice segment sequence to the terminal corresponding to the intelligent robot. Since the split voice segment sequence can be transmitted segment by segment, the session terminal can play the voice according to the received voice segments, reducing the lag phenomenon during the voice session and improving the fluency of the voice session.

[0101] In one embodiment, establishing a data transmission channel with the terminal based on the target session identifier includes: establishing a real-time session voice channel and an additional message transmission channel with the session terminal based on the target session identifier; sending the robot session information corresponding to the session content information to the session terminal through the data transmission channel includes: sending the robot session information corresponding to the session content information to the session terminal through the real-time conversation voice channel; the above connection gateway module is further configured to: send the session evaluation result to the session terminal through the additional message transmission channel.

[0102] Among them, the additional message transmission channel refers to a channel for transmitting messages other than real-time session voice. For example, the additional message transmission channel is used to transmit at least one of signaling or session evaluation results, etc.

[0103] Specifically, the server establishes a data transmission channel with the session terminal based on the target session identifier. This data transmission channel includes two transmission channels, and the transmissions of the two channels are separated from each other and do not affect each other. One of the transmission channels is used to transmit the robot session information corresponding to the session content information, and this transmission channel is a real-time dialogue voice channel; the other transmission channel is used to transmit signaling or session evaluation results, etc., and this transmission channel is an additional message transmission channel. Through this channel, the session evaluation results can be sent to the session terminal.

[0104] In this embodiment, by establishing a real-time session voice channel and an additional message transmission channel, different information types are respectively transmitted using the above two different channels, and voice and text are separated and transmitted through the two channels, which can achieve the purpose of enhancing the robustness of the system.

[0105] In one embodiment, as Figure 7 shown, the session voice information is segmented, and the segmented voice segments are arranged in the order of speech to obtain a voice segment sequence including:

[0106] Step S702, obtain the playing duration of the current voice segment obtained by segmenting the session voice information.

[0107] Specifically, the server can obtain the playing duration of the current voice segment obtained by segmenting the session voice information through an audio listening plugin and store the playing duration locally.

[0108] Step S704, determine the segment duration of the next voice segment corresponding to the current voice segment according to the playing duration, and the voice transmission duration corresponding to this segment duration is less than the playing duration.

[0109] Among them, the voice transmission duration refers to the time length of the voice transmitted in the transmission line. For example, if the time taken for a voice segment to be transmitted from the server to the session terminal is 30 milliseconds, then the transmission duration of this voice segment is 30 milliseconds.

[0110] Specifically, when each voice segment is transmitted in the communication link, there is a voice transmission duration. After obtaining the playing duration of the current voice segment, the segment duration of the next voice segment is determined through this playing duration, and the voice transmission duration corresponding to this segment duration is less than the playing duration.

[0111] Step S706, segment the next voice segment corresponding to the current voice segment from the session voice information based on the segment duration.

[0112] Specifically, after the server obtains the segment duration of the next voice segment, it can segment the next voice segment corresponding to the current voice segment from the session voice information using this segment duration.

[0113] In one embodiment, the size of the voice segment is obtained based on the duration of the voice segment, as well as the sampling rate, sampling bit depth, and number of channels of the conversation voice information. For example, if the size of the voice segment is denoted as A, the segment duration is denoted as T, the sampling rate is denoted as V, the sampling bit depth is denoted as S, and the number of channels is denoted as B, then the size A of the voice segment is expressed by the formula:

[0114] A = T * V * S * B

[0115] In this embodiment, by obtaining the playback duration of the current voice segment obtained by segmenting the conversation voice information, determining the segment duration of the next voice segment corresponding to the current voice segment according to the playback duration, and segmenting the next voice segment corresponding to the current voice segment from the conversation voice information based on the segment duration, the purpose of accurately obtaining the next voice segment corresponding to the current voice segment can be achieved, thereby making the voice conversation smoother.

[0116] In one embodiment, the interaction interface of the robot makes the common functions into an SDK (Software Development Kit). According to the interaction interfaces on the SDK, the server obtains an interface generation request; according to the interface generation request, it calls the interface template required by the corresponding terminal, and obtains the corresponding common function data from the SDK, and then adds the common function data to the interface template to generate an interaction interface. Thus, using the SDK with common functions is beneficial for secondary development. When the server receives an interface generation request sent by the terminal, it calls the interface template required by the corresponding terminal according to the interface generation request. Specifically, the server makes the common functions into an SDK. The implementation of the common functions requires the implementation of a basic module and an advanced module. The advanced module includes multiple basic modules. The basic modules include a data request module, a recording module, a playback module, a long connection module, etc. The above multiple basic modules can be freely combined to flexibly support various functional solutions; after the multiple basic modules are combined according to a preset combination mode, they form an advanced module. For example, the advanced module is an exam module, and the exam module is a general training module formed by combining basic modules according to a preset combination mode. This general training module can be called when applying various training solutions; at the same time, page components such as a general audio playback component and a dialogue display component are provided. The common components can be displayed on the interface in a certain display manner based on their functions. At the same time, different styles of display can be performed according to the display size or display mode of different terminals. According to the interface generation request, the interface generation request is called to generate the page components required by the corresponding terminal, and the corresponding common function data and common modules are obtained from the SDK, and then the common function data is added to the interface to generate an interaction interface. It can be understood that the common module is an advanced module and a basic module that can adapt to different scenarios, and the common function data is the data corresponding to the common module. This data can enable the common module to perform corresponding functions; for example, the recording module is a common module, and the common data related to recording, such as the recording trigger information stored in the server, etc., can enable the recording module to perform corresponding functions.

[0117] In one embodiment, taking the generation of an exam interface as an example, as Figure 8 shown, when the server receives an interface generation request sent by the terminal, it calls the initialization method to complete the initialization of interface generation. After the initialization of interface generation is completed, the initialization of the exam mode is performed. During the initialization of the exam mode, the advanced module can be directly called through Call 1, or the basic module can be directly called through Call 2, where the advanced module is a module composed of one or more basic modules.

[0118] In one embodiment, the software architecture of the above robot, as Figure 9As shown, it includes an interactive display layer, a business logic layer, and a technical platform layer. Specifically, the interactive display layer is used for interface display and user interaction logic processing. The interface can be a PC (Personal Computer) web page, a mobile phone APP (Application), or a tablet computer APP, etc. The business logic layer processes complex business logics to ensure the availability and scalability of the system, etc. The technical platform layer provides lower-level technical supports such as voice and semantics. The interactive display layer includes a training dialogue interface and a training management interface. The training management interface is used for administrators to configure products and release them. For example, configure test questions or configure rules, etc. The training dialogue interface includes an SDK (Software Development Kit) and a UI (User Interface) interface adapted to different terminals. The SDK contains the general logics for processing various data in the display layer. The business logic layer includes a long connection gateway, a training dialogue service, a training management background, etc. Among them, the training management background is used to configure each node, question, task, etc. of the training dialogue process. The configured data is stored in the database. The long connection gateway is used to maintain a long connection between the training dialogue user and the server, uniformly receive the voice information input by the customer service staff during training, and transmit the voice information input by the customer service staff to the language platform in the technical platform layer for recognition, synthesis, encoding and decoding, etc., and can receive the voice information spoken by the robot sent by the voice platform. The long connection gateway records the connection information with the training dialogue interface and the dialogue control platform according to the session ID (Identity document), and checks the validity of the connection through the heartbeat mechanism to ensure that the connection during the session is not easily disconnected. Two data transmission channels are established between the long connection gateway and the SDK of the training dialogue interface, namely the real-time dialogue voice channel and the signaling semantic analysis channel. The real-time dialogue voice channel is used to transmit voice information, and the signaling semantic analysis channel is used to transmit control commands or quality inspection results and other information. Compared with the traditional technology with only one data transmission channel, it can separate the transmission of voice and text data without mutual influence. The training dialogue service is used to receive test requests, generate a session ID through the snowflake algorithm, obtain configuration data, such as configured test questions and dialogue node and other information, and control the dialogue process. The semantic analysis platform therein is used to perform quality inspection on text information.

[0119] In one embodiment, taking the training of trainee exams as an example, the interaction process between various modules in the software architecture of the above intelligent robot is described as follows: The customer service staff uses a tablet computer to take an exam, logs in to the account, and enters the training question exam interface. The training dialogue interface obtains the start operation on the exam interface. According to the start operation of the exam button, the training dialogue interface sends an exam request to the training dialogue service; according to the timestamp of the sent exam request and the IP address of the server, the training dialogue service generates a global session ID through the Snowflake algorithm, caches the session data of this time, and returns the session ID to the training dialogue interface; the training dialogue interface establishes two WS (Websocket) connections with the long connection gateway according to the session ID. The long connection gateway establishes a connection with the dialogue control platform according to the session ID. After the connection is established, the long connection gateway maintains the long connection between the training dialogue interface and the dialogue control platform through the uniqueness of the session ID; when the connection between the dialogue control platform and the long connection gateway is successfully established, the dialogue control platform obtains the configuration information from the training dialogue service according to the session ID, and obtains the node information in the training dialogue. The training dialogue service obtains the cached node information according to the obtained session ID and returns it to the dialogue control platform. When the dialogue control platform obtains the node information, if it is a robot node, it escapes the configured robot text information into voice information and pushes it to the long connection gateway. The long connection gateway transmits it to the training dialogue interface through the real-time dialogue voice channel, and the training dialogue interface plays the robot voice. When the dialogue control platform obtains a trainee node, the dialogue control platform sends a start recording instruction to the long connection gateway, and the long connection gateway notifies the training dialogue interface to record through the signaling channel. The training dialogue interface collects the real-time voice information of the user and transmits the real-time voice information to the long connection gateway through the voice transmission channel; the long connection gateway transmits the voice information entered by the customer service staff to the dialogue control platform through the session ID; the dialogue control platform performs speech recognition on the voice information entered by the user to convert it into text information, and then transmits the text information to the training dialogue service. When the training dialogue service obtains the information transmitted by the dialogue control platform, if it is a robot node, it directly caches the information; if it is a trainee node, it calls the semantic analysis platform to perform session quality inspection on the trainee text information to obtain the quality inspection result. The quality inspection result is generally correct or incorrect. Through the quality inspection result, logical operations such as calculating the node score of the current node information and determining whether the next node needs to jump are performed. And the text information and the quality inspection result are transmitted to the unified gateway together; the session quality inspection is configurable and can be not required; the long connection gateway will transmit the text information and the quality inspection result to the training dialogue interface together through the semantic analysis channel.

[0120] It should be understood that although Figure 2-7The steps in the flowchart are shown in sequence according to the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-7 At least a part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0121] In one embodiment, as Figure 10 shown, an interactive interface generation device 1000 is provided, including: a session interaction request receiving module 1002, a target interface function module obtaining module 1004, a component and information obtaining module 1006, and a target interactive interface generation module 1008, where: the session interaction request receiving module 1002 is configured to receive a session interaction request, and the session interaction request carries a session topic identifier; the target interface function module obtaining module 1004 is configured to obtain one or more target interface function modules corresponding to the session topic identifier from a candidate interface function module set; the component and information obtaining module 1006 is configured to obtain target function components corresponding to each of the target interface function modules and text description information corresponding to the target function components; the target interactive interface generation module 1008 is configured to use the target function components and the text description information as display content of the interactive interface, generate a target interactive interface, and set a correspondence between the target interface function module and the target function component, so as to call the target interface function module to execute a corresponding function when a trigger operation on the target function component is received through the target interactive interface.

[0122] In one embodiment, the target interface function module obtaining module 1004 is configured to obtain a module combination identifier corresponding to the session topic identifier; and obtain a pre-combined function module combination corresponding to the module combination identifier from the candidate interface function module set as the target interface function module corresponding to the session topic identifier.

[0123] In one embodiment, the interactive interface generation device is configured to receive a session interaction request, where the session interaction request carries the session topic identifier and is triggered by a trigger operation received for the session start component; call the session service module to generate a corresponding target session identifier in response to the session interaction request, obtain session-related data corresponding to the session topic identifier, and establish a correspondence between the target session identifier and the session-related data, where the session-related data includes session content information and standard reply content for the session content information; call the connection gateway module to establish a data transmission channel with the session terminal based on the target session identifier, and send the robot session information corresponding to the session content information to the session terminal through the data transmission channel; call the connection gateway module to receive the user voice information and the target session identifier sent by the session terminal through the data transmission channel; call the session service module to obtain the user reply content obtained based on the user voice information, and obtain the standard reply content based on the target session identifier, so as to compare the user reply content with the standard reply content to obtain a session evaluation result.

[0124] In one embodiment, the device is configured to call the session control module to obtain the session content information in text form from the session service module, perform voice conversion on the session content information to obtain the robot session information in voice form, and send the robot session information to the connection gateway module; call the session control module to obtain the user voice information received by the connection gateway module, perform text conversion on the user voice information to obtain the user reply content, and send the user reply content to the session service module.

[0125] In one embodiment, the device is configured to perform voice conversion on the session content information to obtain the session voice information corresponding to the robot; segment the session voice information, and arrange the segmented voice segments in voice order to obtain a voice segment sequence, and use the voice segment sequence as the robot session information; send the voice segment sequence to the session terminal through the connection gateway module, so that the session terminal respectively adds voice playback format information to each voice segment in the voice segment sequence to obtain a voice playback unit that meets the playback conditions corresponding to each voice segment; the session terminal displays voice prompt information corresponding to the session voice information on the session interface, and when the voice playback conditions of the voice prompt information are met, plays the voice playback unit corresponding to the voice segment in the order of the voice segment sequence.

[0126] In one embodiment, the device is configured to establish a real-time session voice channel and an additional message transmission channel with the session terminal based on the target session identifier; send the robot session information corresponding to the session content information to the session terminal through the real-time conversation voice channel; and send the session evaluation result to the session terminal through the additional message transmission channel.

[0127] In one embodiment, the device is configured to obtain the playing duration of the current voice segment obtained by segmenting the session voice information; determine the segment duration of the next voice segment corresponding to the current voice segment according to the playing duration, where the voice transmission duration corresponding to the segment duration is less than the playing duration; and segment the next voice segment corresponding to the current voice segment from the session voice information based on the segment duration.

[0128] For the specific limitations of the interactive interface generation device, reference can be made to the limitations on the interactive interface generation method in the foregoing text, which will not be elaborated here. Each module in the above interactive interface generation device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.

[0129] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 11 shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store interactive data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements an interactive interface generation method.

[0130] In one embodiment, a computer device is provided. The computer device can be a terminal, and its internal structure diagram can be as Figure 11As shown in the figure. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a carrier network, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements an interactive interface generation method. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, a trackball, or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0131] Those skilled in the art can understand that Figure 11 the structure shown in the figure is only a block diagram of some structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0132] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.

[0133] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.

[0134] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the various embodiments provided in the present application can include at least one of non-volatile and volatile memories. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0135] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.

[0136] The above-described embodiments merely represent several implementation manners of the present application. Their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the appended claims.

Claims

1. An interactive interface generation method, characterized in that, the method includes: Receiving a session interaction request, where the session interaction request carries a session topic identifier related to training; Obtaining one or more target interface function modules corresponding to the session topic identifier from a set of candidate interface function modules; the target interface function modules include a connection gateway module and a session service module; Obtaining target function components corresponding to each of the target interface function modules and text description information corresponding to the target function components; Using the target function components and the text description information as the display content of the interactive interface, generating a target interactive interface, and setting the corresponding relationship between the target interface function modules and the target function components; In response to a session interaction request triggered by a trigger operation on a session start component in the target interactive interface, obtaining session content information corresponding to the session topic identifier and a standard reply content for the session content information; Performing voice conversion on the session content information to obtain session voice information, obtaining the playback duration of the currently played voice segment obtained by segmenting the session voice information, determining the segment duration of the next voice segment corresponding to the currently played voice segment according to the playback duration, where the voice transmission duration corresponding to the segment duration is less than the playback duration, segmenting the next voice segment corresponding to the currently played voice segment from the session voice information based on the segment duration, and arranging the segmented voice segments in voice order to obtain a voice segment sequence; Invoking the connection gateway module to establish a real-time session voice channel and an additional message transmission channel with the session terminal, sending the voice segment sequence to the session terminal through the real-time session voice channel, and receiving user voice information sent by the session terminal; Invoking the session service module, obtaining a user reply content obtained by performing text conversion on the user voice information, respectively performing semantic analysis on the user reply content and the standard reply content, and obtaining a session evaluation result according to the matching degree between the semantically analyzed user reply content and the semantically analyzed standard reply content; Sending the session evaluation result to the session terminal through the additional message transmission channel.

2. The method according to claim 1, characterized in that, the obtaining one or more target interface function modules corresponding to the session topic identifier from a set of candidate interface function modules includes: Obtaining a module combination identifier corresponding to the session topic identifier; Obtaining a pre-combined function module combination corresponding to the module combination identifier from the set of candidate interface function modules as the target interface function module corresponding to the session topic identifier.

3. The method according to claim 1, characterized in that, the method further includes: Invoking the session service module to establish a corresponding relationship between a target session identifier generated based on the session interaction request and session-related data corresponding to the session topic identifier; The receiving the user voice information sent by the session terminal includes: Call the connection gateway module to receive the user voice information and the target session identifier sent by the session terminal through the data transmission channel.

4. The method according to claim 3, wherein, the method further includes: Call the session control module to obtain the session content information in text form from the session service module, perform voice conversion on the session content information to obtain robot session information in voice form, and send the robot session information to the connection gateway module; Call the session control module to obtain the user voice information received by the connection gateway module, perform text conversion on the user voice information to obtain the user reply content, and send the user reply content to the session service module.

5. The method according to claim 1, wherein, The session terminal respectively adds voice playback format information to each voice segment in the voice segment sequence to obtain a voice playback unit corresponding to each voice segment that meets the playback conditions; the session terminal displays voice prompt information corresponding to the session voice information on the session interface, and when the voice playback conditions of the voice prompt information are met, plays the voice playback unit corresponding to the voice segment in the order of the voice segment sequence.

6. The method according to claim 1, wherein, the method further includes: Respond to the session interaction request and generate a corresponding target session identifier through the session identifier generation policy.

7. An interactive interface generation device, wherein, the device includes: A session interaction request receiving module, configured to receive a session interaction request, and the session interaction request carries a session topic identifier related to training; A target interface function module obtaining module, configured to obtain one or more target interface function modules corresponding to the session topic identifier from a set of candidate interface function modules; the target interface function modules include a connection gateway module and a session service module; A component and information obtaining module, configured to obtain target function components corresponding to each of the target interface function modules and text description information corresponding to the target function components; A target interactive interface generation module, configured to use the target function components and the text description information as display content of the interactive interface, generate a target interactive interface, and set the corresponding relationship between the target interface function module and the target function component; The device is further configured to: Respond to a session interaction request triggered by a trigger operation on a session start component in the target interactive interface; Obtain the session content information corresponding to the session topic identifier and the standard reply content for the session content information; Perform voice conversion on the session content information to obtain session voice information, obtain the playback duration of the currently segmented voice segment corresponding to the session voice information, determine the segment duration of the next voice segment corresponding to the currently segmented voice segment according to the playback duration, where the voice transmission duration corresponding to the segment duration is less than the playback duration, segment from the session voice information to obtain the next voice segment corresponding to the currently segmented voice segment based on the segment duration, and arrange the segmented voice segments in voice order to obtain a voice segment sequence; Call the connection gateway module to establish a real-time session voice channel and an additional message transmission channel with the session terminal, send the voice segment sequence to the session terminal through the real-time session voice channel, and receive the user voice information sent by the session terminal; Call the session service module, obtain the user reply content obtained by performing text conversion on the user voice information, perform semantic analysis on the user reply content and the standard reply content respectively, and obtain a session evaluation result according to the matching degree between the semantically analyzed user reply content and the semantically analyzed standard reply content; Send the session evaluation result to the session terminal through the additional message transmission channel.

8. The apparatus according to claim 7, wherein, The target interface function module obtaining module is further configured to: Obtain a module combination identifier corresponding to the session topic identifier; Obtain, from the candidate interface function module set, the pre-combined function module combination corresponding to the module combination identifier as the target interface function module corresponding to the session topic identifier.

9. A computer device, including a memory and a processor, the memory stores a computer program, wherein, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium, on which a computer program is stored, wherein, When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Information interaction system, method and device based on speech recognition

    CN107424601A

  • Mandarin evaluating method, mandarin evaluating device, equipment and storage medium

    CN110808038A

  • Voice processing method based on automatic selection of voice decoding playing format

    CN112863526A