Companion-style intelligent conversation method and electronic device

By sharding the response text and performing speech synthesis and lip-sync driving in advance, combined with a dedicated data channel and client-side real-time frame rendering, the problem of high reply delay in the companion intelligent dialogue system is solved, significantly improving the user experience and optimizing Data transfer and processing efficiency.

CN118377882BActive Publication Date: 2024-10-15TAOBAO CHINA SOFTWARE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410806949.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-10-15
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

The response delay in companion intelligent dialogue systems is high, resulting in poor user experience, mainly due to the serial execution and high time consumption of speech-to-text, response text generation, and speech synthesis.

Method used

The response text is processed using a fragmentation strategy, speech synthesis and lip-sync driver processing are performed in advance, and the fragmented response content is transmitted through a dedicated data channel, and the client renders the frame in real time to reduce delays.

Benefits of technology

It reduces the reply delay, improves the user experience, and shortens the production time of fragmented response content by reducing the amount of data transmission and avoiding video encoding and compression processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377882B_ABST
    Figure CN118377882B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a companion intelligent dialogue method and an electronic device, the method comprising: receiving user dialogue information; in the process of or after processing the user dialogue information using a large language model to generate a response text, segmenting the response text according to a preset segmentation strategy to obtain response text segments; performing speech synthesis based on the response text segments and performing lip-driven processing on a base video containing a character image, so as to output the generated segmented response content. Through the embodiment of the present application, the reply delay can be reduced and the user experience can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent dialogue technology, and in particular to a companion intelligent dialogue method and electronic equipment. Background Art

[0002] In recent years, the emergence of large pre-trained language models (LLM, such as GPT-3) has greatly promoted the ability of machines to understand and generate natural language. These models can understand context, answer questions, and even write coherent and persuasive texts. Large language models have brought new application scenarios to many technologies and have produced new product forms, one of which is the companion intelligent dialogue system.

[0003] The companion intelligent dialogue system is an advanced AI-driven interactive system designed to provide companionship and communication by simulating a human conversation partner. The system is able to listen to the user's voice input, understand its meaning and generate natural and fluent responses, and then reply through AI-synthesized voice and video, creating an experience similar to talking to a real person.

[0004] However, in the entire chain of the companion-style intelligent dialogue system, there are many links that need to be executed in series (including voice-to-text conversion of questions after listening to the user's voice input, question text understanding, response text generation, speech synthesis of response text, voice lip-driven, etc.), and many links involve the operation of machine learning models, which are time-consuming. For example, voice-to-text conversion, voice lip-driven and other processes will incur high time consumption. In this case, assuming that you want to produce an audio and video response of about 5 seconds based on the user's input, after actual testing, the delay from the user's speech to the complete output of the entire response and the start of playback is about 40 seconds. Such a high delay is almost unbearable for users and will greatly reduce the user experience. Summary of the invention

[0005] The present application provides a companionship intelligent conversation method and an electronic device, which can reduce response delays and improve user experience.

[0006] This application provides the following solutions:

[0007] A companion intelligent conversation method, comprising:

[0008] Receive user conversation information;

[0009] During or after the process of processing the user dialogue information using the large language model to generate a response text, segmenting the response text according to a preset segmentation strategy to obtain response text segments;

[0010] Speech synthesis is performed based on the response text segment and lip-driven processing is performed on the base video containing the character image, so as to output the generated segmented response content.

[0011] The fragmentation processing of the response text includes:

[0012] In the process of the large language model generating a response text in units of words, after each partial word generated by the large language model is collected, it is determined whether the partial word conforms to a preset segmentation strategy. If so, the partial word is determined as a response text segment.

[0013] Wherein, when the response text is segmented according to the preset segmentation strategy, segmentation is performed at the positions where sentences can be segmented in the response text, so as to determine the tone features during speech synthesis when speech synthesis is performed based on the response text segments.

[0014] Among them, when the response text is segmented according to the preset segmentation strategy, the playback time of the response text segments after being synthesized into speech is estimated, and it is determined whether the playback time is greater than the average time required for the production process of the segmented response content, so that the production of the next segmented response content can be completed before the playback of the previous segmented response content on the client is completed.

[0015] The video frame of the base video includes a foreground character image and a background scene image;

[0016] When performing lip-syncing driving processing on a base video containing a person's image, it includes:

[0017] Performing face recognition on multiple video frames of the base video at the server end, extracting a face region image sequence, and performing lip-driven processing based on the face region image sequence;

[0018] The generated segmented response content includes the speech synthesis result and the facial area image sequence obtained after lip-driven processing, so that the segmented response content can be transmitted to the client, and the client will combine the facial area image sequence with the base video locally stored on the client, and align it with the speech synthesis result to generate the target video and play it.

[0019] The generated segment response content also includes subtitle information, so that the client can add the subtitle information to the target video with the lip-syncing result.

[0020] When the generated fragmented response content is transmitted to the client, it includes:

[0021] A dedicated data channel is established between the server and the client, so that after the image sequence is encapsulated using a custom data transmission protocol, the generated data packet is transmitted to the client.

[0022] When the data packet is transmitted through the dedicated data channel, it is transmitted in a data stream manner, so that the client can render and play after receiving the first frame content in the same slice.

[0023] Among them, the server side includes multiple servers;

[0024] The method further comprises:

[0025] One of the servers is allocated to the client, and a binding relationship is established between the server and the client, so as to establish a point-to-point dedicated data channel between the server and the client.

[0026] The dedicated data channel supports two-way communication, so that during the intelligent dialogue process, the client uploads the voice content input by the user through the dedicated data channel.

[0027] Among them, it also includes:

[0028] If, during the process of outputting the segmented response content through the client, new voice content input by the user is received, and after natural language understanding of the voice content, it is determined that the user's demand is to stop the output of the current response text, the unfinished segment processing process is stopped.

[0029] A companion intelligent dialogue method, the method being applied to a client, comprising:

[0030] Receiving voice input information from a user, and performing voice recognition on the voice input information to generate a dialogue text;

[0031] Submitting the dialogue text to the server, so that during or after the server processes the dialogue text of the user using the large language model to generate a response text, the server performs segmentation processing on the response text according to a preset segmentation strategy to obtain response text segments, performs speech synthesis on the response text segments and performs lip-driven processing on the base video containing the character image, and then transmits the generated segmented response content to the client;

[0032] Output processing is performed according to the fragmented response content received from the server.

[0033] The fragmented response content includes: the speech synthesis result corresponding to the response text segment and the facial region image sequence obtained after lip-driven processing;

[0034] The output processing according to the fragmented response content received from the server includes:

[0035] The face area image sequence is combined with the base video locally stored on the client, and aligned with the speech synthesis result to generate a target video and output it.

[0036] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of any of the methods described above.

[0037] An electronic device, comprising:

[0038] one or more processors; and

[0039] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of any of the methods described above.

[0040] A computer program product comprises a computer program / computer executable instructions, wherein the computer program / computer executable instructions implement the steps of any of the aforementioned methods when executed by a processor in an electronic device.

[0041] According to the specific embodiments provided in this application, this application discloses the following technical effects:

[0042] Through the embodiment of the present application, after receiving the user dialogue information, the response text can be processed according to the preset segmentation strategy during or after the process of processing the user dialogue information using the large language model to generate the response text to obtain the response text fragments. Afterwards, speech synthesis can be performed based on the specific response text fragments and the base video containing the character image can be lip-driven to output the generated segmented response content. In this way, since the response text can be processed in segments, and speech synthesis and lip-driven processing can be performed based on the response text fragments obtained after segmentation, the speech synthesis and lip-driven processing can be advanced without waiting for the complete reply content to be generated. The generated segments can be output on the user device first, and the subsequent segmented response content can continue to be generated while the user device is playing, thereby reducing the reply delay and improving the user experience.

[0043] Among them, regarding the fragmentation strategy, according to the characteristics of the specific application scenarios in the embodiments of the present application, fragmentation processing can be performed at the positions where sentences can be broken in the response text. For example, the response text generated by the large model will also include punctuation marks, and fragmentation can be performed at the positions of such punctuation marks, so that when performing speech synthesis based on the response text fragment, the tone characteristics during speech synthesis can be determined. In addition, the playback time of the response text fragment after being synthesized into speech can be estimated, and it can be determined whether the playback time is greater than the average time required for the production process of the fragmented response content. If so, a fragment can be segmented so that the production of the next fragmented response content is completed before the playback of the previous fragmented response content on the client ends.

[0044] In addition, in an optional implementation, in order to solve the problem of large communication data volume, the result form of the lip-driven step is changed. That is, instead of allowing the server to directly generate a complete response video, it only outputs a small piece of face area image modified by a machine learning algorithm (lip-driven). Then, these driver-generated face area images can also be sent to the user device through a dedicated data channel, and these newly generated face area images are spliced ​​and synthesized with the base video pre-stored on the user device in the terminal application to produce the final response video stream, which is rendered in real time on the screen of the user device. Through this method, the original high-definition video transmission of 4096×2048 or even higher resolution scale can be reduced to low-resolution image transmission of 200×100 scale, thereby greatly reducing the amount of communication data. In addition, this method also avoids the server from performing video encoding compression and other processing after completing the lip-driven, thereby shortening the production time of the fragmented response content.

[0045] Of course, any product implementing the present application does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0047] Figure 1 It is a schematic diagram comparing the serial solution in the prior art and the "slice reply pipeline" solution provided in the embodiment of the present application;

[0048] Figure 2 It is a schematic diagram of a processing flow using a content transmission method in the prior art;

[0049] Figure 3 It is a schematic diagram of a processing flow using the content transmission method provided in an embodiment of the present application;

[0050] Figure 4 It is a schematic diagram of the system architecture provided by the embodiment of the present application;

[0051] Figure 5 is a flow chart of the first method provided in an embodiment of the present application;

[0052] Figure 6 is a flow chart of the second method provided in an embodiment of the present application;

[0053] Figure 7 It is a schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0055] In order to facilitate understanding of the specific implementation scheme provided in the embodiment of the present application, the basic implementation process of the companion intelligent dialogue system is first introduced below:

[0056] 1. Receive user voice input through the microphone of the user terminal device (which can be a mobile phone or VR (Virtual Reality) headset, etc.).

[0057] 2. Use Automatic Speech Recognition (ASR) to recognize the user's speech into text.

[0058] 3. Input the user text into the Large Language Model (LLM), which is a large (large number of parameters) deep learning model used to process natural language. The LLM gives the response text.

[0059] 4. Use text-to-speech (TTS) technology to generate corresponding reply voice audio based on the response text of the large language model.

[0060] 5. Use lip-syncing technology to generate corresponding lip-syncing videos based on the reply voice audio.

[0061] 6. Play the generated video and voice on the user terminal device, and display the response text as subtitles in real time.

[0062] In each of the above steps, multiple links involve the operation of machine learning models. Among them, in the lip-sync driving link in step 5, lip-sync driving can be performed based on a base video (which can be a video shot of a model in advance, or a binocular video), or it can be based on a pre-generated 3D model with a character image. Since the former needs to be processed based on the video, and the video content is actually transmitted and played after the lip-sync driving is completed, its complexity and data volume may be higher than that based on the 3D model (lip-sync driving based on the 3D model usually only requires adjusting some parameters), which may also cause greater delays. However, compared with the lip-driven method based on 3D models, the advantage of this video-based lip-driven method is that it has a higher degree of simulation (if a 3D model is used to achieve a similar degree of simulation as "real person image lip-driven method", the modeling cost and runtime resource overhead of the 3D model are very high, and it is difficult for current terminal applications to bear it), especially in the case of VR or AR (Augmented Reality) involving interaction through VR / AR head-mounted display devices, because it is necessary to play the lip-driven data in the VR / AR scene, and VR may create a scene close to the real scene by taking a real shot of a scene, at this time, if the lip-driven 3D model is added to this real scene, it may appear to be not coordinated enough due to the difference between the authenticity of the scene; it is more obvious in the AR scene, because the background in the AR scene itself is the real scene captured by the camera, so it is more necessary to add more realistic content. It can be seen that in practical applications, although it is more time-consuming to perform lip-driven based on a base video and play the lip-driven video, it can obtain a more realistic effect.

[0063] In the embodiments of the present application, in order to reduce the reply delay and improve the user experience while realizing higher quality intelligent companion products, a corresponding solution is provided. Specifically, the performance card point of the complete reply serial solution is mainly that when the reply content generated by the LLM model is relatively long, each link in the process takes a lot of time, resulting in a huge overall time consumption. However, a thorough observation of the entire workflow shows that it is not necessary to wait for all the contents of the current link to be produced before starting the next link. That is, the operation of the next link does not depend on all the results of the current link, but only on some of the results.

[0064] For example, refer to Figure 1In the example shown in (A) in the figure, assuming that the question entered by the user is "Please introduce XX Company", according to the complete response serial scheme, the language entered by the user needs to be converted into text first, and then the text is input into the LLM model to generate the response text. For example, the response text generated by the LLM model is: "XX Company is a leading e-commerce company in my country. It was established in ×× and provides B2B, B2C, and C2C online sales services. It owns well-known online shopping platforms such as ×× and ×× and is one of the largest Internet retailers in the world." After the LLM model generates the above response text, it is converted into speech and driven by lip shape through speech. After that, the obtained complete video file is transmitted to the client, and the client can play it.

[0065] But in fact, if you want to generate a lip-sync-driven video of "Founded in ××", you only need the text-to-speech result of "Founded in ××", and you don't need to wait until the speech of "is one of the world's largest Internet retailers" is also produced. In other words, after some of the text-to-speech results are generated, you can start generating videos based on lip-sync. Similarly, you can also start the text-to-speech after the LLM model generates some response text. Based on this idea, if Figure 1 As shown in (B), a new "shard reply pipeline" solution is designed in the embodiment of the present application, which splits a complete reply into several fragments and processes them in the form of a pipeline.

[0066] Specifically, considering that the large language model needs complete and correct input to give a more accurate response, the speech recognition link is not added to the sharding pipeline, but the sharding pipeline processing is started in the link of the large language model reply. Among them, in the process of generating the response text by the large language model, it is naturally generated in the form of word units (corresponding to the token concept in natural language processing), that is, the large language model always outputs the reply in sequence in word units. Among them, the word unit represents a discrete element in the text, which can be a word, a character, a word, a subword or a phrase, etc. In other words, when the large language model outputs the response text in the above example, its output process may be: "×× Company", "Yes", "my country", "Leading", "E-commerce Company", ... Therefore, after collecting a certain number of reply word units, it can be used as a shard to start the subsequent pipeline text-to-speech and lip-shaped drive. That is to say, in the embodiment of the present application, the sharding pipeline processing can be performed while the large language model is producing the response text, without waiting until the large language model generates all the response texts. Through this segmented pipeline solution, the response audio and video content of the first segment can be obtained in a very short time and played on the client.

[0067] In the above solution, the sharding process is completed during the process of the LLM large model producing the response text, or, in another way, the sharding process can also be performed after the LLM large model completes the production of all the response content. Of course, in the specific implementation, the former will have a shorter delay.

[0068] It should be noted here that, in theory, there can be many types of fragmentation strategies for response texts, but inappropriate fragmentation strategies may lead to unnatural results. For example, in extreme cases, one word can be used as a fragment, but in the text-to-speech link, because too few words are input at a time, the generated speech will lose the correct tone. Therefore, in an embodiment of the present application, the actual fragmentation strategy adopted can be to segment according to punctuation marks (including commas, periods, etc.) in the sentence, so that the fragments separated are usually of moderate length, and the pauses of the text-to-speech result are natural.

[0069] For example, for the above example, if the "shard reply pipeline" solution provided in the embodiment of the present application is used to implement it, it can be as follows Figure 1 As shown in (B), the response text can be divided into 5 segments, and the text-to-speech and lip-sync driven video production can be performed in segments. After the first segment completes the text-to-speech and lip-sync driven, it can be transmitted to the client for playback. At the same time, the text-to-speech and lip-sync driven processing of the second segment is also performed and transmitted to the client. After playing the previous segment, the client can continue to play the next segment. Because the segmentation is performed at punctuation marks, even if there is a slight pause between different segments, the pause is made at the pause location, and it will sound more natural.

[0070] Of course, if the previous segment has been played and the next segment has not been produced, the pause time between the two segments may be too long, that is, there will be a "segment content gap" during the playback process, which will cause the playback to pause and wait. Therefore, in order to ensure that the playback of the segments can be continuous without pause, in the preferred way, the next segment can be produced as soon as the current segment is finished. In other words, the specific segmentation strategy can also take into account the factors of the segment playback time and production time. Observation Figure 1From the fragmentation scheme diagram shown in (B), it can be found that this actually requires that "the production time of the lip-sync-driven video of the next fragment is less than the video playback time of the current fragment". In this case, the production time of the lip-sync-driven video can be shortened by optimizing and accelerating the algorithms in each link. In addition, the real-time frame rendering technology on the client side (this technology will be introduced later) can be combined to further shorten the production time. Furthermore, the length of the first fragment can be made slightly longer to leave time for the production of subsequent fragments. In other words, in the specific fragmentation process, not only the naturalness of sentence pauses should be considered, but also "fragmentation content interruption" should be avoided. Therefore, if the large model outputs some words with punctuation marks, it is a situation where the sentence can be broken. However, if these words are relatively short, or the number of words contained is very small, so that a sentence is also short, it may be necessary to wait until the large model continues to output some words before fragmentation, and so on.

[0071] Through the above slicing method, the production process of lip-driven video can be advanced, and the production process between different slices can realize pipeline parallel processing, so the response delay can be shortened. It should be noted here that the so-called pipeline parallel processing means that at the same time, only one instance of an algorithm is executed. After the speech synthesis of the previous slice is completed and the lip-driven starts, the speech synthesis of the next slice will be performed. Therefore, there is always only one speech synthesis and one lip-driven task being executed. Of course, in the specific implementation, ordinary parallel processing can also be performed, but there may be a situation where "multiple slices are executing speech synthesis or lip-driven at the same time", which will cause the server resource overhead to become higher (equivalent to multiple lip-driven machine learning tasks being executed at the same time). If the server resources are sufficient, this ordinary parallel method can be used to further improve the efficiency. However, if the server resources are limited, the parallel execution of multiple lip-driven machine learning tasks may slow down the overall processing efficiency. In practical applications, the appropriate processing method can be selected according to the specific situation of the server resources.

[0072] In addition, in addition to the reply delay, in actual applications, if the response content is generated and segmented on the server side, another problem that will be faced is the problem of data transmission volume. For example, in one implementation method, after the server performs lip-driven operation, a series of driven facial area images will be generated, which can be called face lip-driven frames (the frames here refer to the concept of video frames). Subsequently, these generated face lip-driven frames can be synthesized with the base video on the server side to obtain a series of reply video frames. The reply video frames are then encoded to produce reply videos in formats such as mp4. After that, the client downloads the mp4 reply video and plays it. In other words, in the above method, if Figure 2 As shown in the figure, the server needs to use the voice information generated by the response text to drive the face area in the base video, and then paste the face area image back to the base video to generate a lip-driven video. In order to achieve the 3D playback effect, binocular image merging and other processing may also be involved, and then it is encoded into a video format for transmission. In order to meet the needs of high-definition playback, each video frame of the base video may be a high-definition picture with a resolution of 4096×2048 or even higher. Therefore, if the server directly synthesizes the face lip-driven frame with the base video and transmits it to the client in the form of video, the data transmission rate will be very large.

[0073] In order to solve the problem of large data volume in the original solution, a "real-time frame-combining rendering solution on the end side" is designed in the embodiment of the present application. That is to say, the main reason for the large amount of transmitted data is the high resolution of the reply video. Therefore, the amount of transmitted data can be reduced by reducing the image resolution during the transmission process. In this regard, the inventor of the present application found in the process of implementing the present application that in the reply video, only a small face area is actually generated by the server and changes every time the reply is made, while the scene background that occupies most of the video screen area does not actually change. Therefore, the base video (usually including background, character image, etc., where the character image in the video may have posture and expression, but does not need to have lip shape) can be pre-set on the user device (the base video can be generated after the model character shooting is completed, and can be sent to the client with the installation of the APP, or can also be pre-loaded after the App is started, etc.), and only a small piece of lip shape driven face area image generated by network transmission is used, and then frame-combining rendering and playback are performed on the client side.

[0074] That is to say, Figure 3 As shown, in this preferred mode, the server can perform face recognition from multiple video frames of the base video, extract the image sequence of the face area, and then perform lip-driven based on these face area image sequences to obtain the face area image sequence after lip-driven. Afterwards, the server does not need to paste this face area image back into the base video, but can directly transmit it to the client, and then the client completes the frame combination processing of the face area image and the base video, and then plays it. Of course, in this case, the server can also transmit the data of the voice part to the client separately. In addition to the frame combination processing, the client can also synthesize it with the voice data and perform alignment processing such as audio and video synchronization. In addition, if subtitles need to be added, the server can also generate subtitle data, and the client can add subtitle data, and then play the specific video, and so on.

[0075] Through the above-mentioned "end-side real-time frame-combining rendering solution", the resolution of the picture transmitted through the network is reduced from a full high-resolution HD picture such as 4096×2048 to a small face area with a resolution of 200×100, thereby greatly reducing the amount of data transmitted. In addition to reducing the amount of data transmitted, this "end-side real-time frame-combining rendering solution" also greatly reduces the time spent on processing the results of each segment. In the original solution, the server needs to perform video encoding (for example: H264 video encoding) on ​​the high-resolution picture to control the amount of data (unencoded 32-bit color 4K video, whose data volume per second is hundreds of MB, is difficult to transmit over the network). This process also consumes a lot of GPU (Graphics Processing Unit, graphics processor) resources and is very time-consuming. In the "end-side real-time frame-combining rendering solution", through end-side frame-combining rendering, the 4K resolution HD video encoding process is omitted, saving resource overhead and reducing time consumption. Therefore, it is also conducive to meeting the aforementioned condition that the playback time of the previous segment is longer than the production time of the next segment.

[0076] Among them, in the above-mentioned "end-side real-time frame-combining rendering solution", after the server generates the lip-driven face area image sequence, how to transmit it to the client is also a problem that needs to be considered. In one way, this face area image sequence can be encoded into a video format and then transmitted to the client through a video transmission protocol. In this way, although the resolution is relatively low and high-definition video encoding is not required, the encoding process and the client decoding process will still take a certain amount of time.

[0077] To this end, in the embodiment of the present application, a custom data transmission protocol is also provided, and a dedicated data transmission channel can be established between the server and the client through technologies such as WebRTC (Web Real-Time Communications, web real-time communication) (that is, no video transmission channel, etc. is needed). In this way, after generating a lip-driven facial area image sequence, it can be directly transmitted to the client in the format of this image sequence through the dedicated data transmission channel without encoding it into a video format. After receiving these image sequences, the client program can use the hardware and software (including GPU acceleration, etc.) capabilities of the terminal side to combine the lip-driven facial area image sequence with the base video preset in the client, and render the synthesized reply video frame to the screen of the user device. In addition, the response text produced by the language model and the audio data produced by text-to-speech can also be transmitted to the client through this data channel. The audio and video synchronization module in the client program can ensure that the reply video frame is aligned and synchronized with the reply audio in time, so that the user can receive the correct reply feedback provided by the system.

[0078] Among them, when the lip-sync-driven face area image sequence is transmitted through the above-mentioned dedicated data transmission channel, streaming transmission technology can also be used to enable the image sequence to be transmitted to the client in the form of a data stream. In this way, the client can mainly receive the first frame of the face area image to perform frame combination, rendering processing and playback, without having to receive the entire image sequence of a fragment before playing it.

[0079] It should be noted here that in the application scenario of the embodiment of the present application, since the server generates the response text for the user's dialogue information and performs a series of subsequent speech synthesis, lip-driven processing, etc., the content produced is also dedicated to the user, instead of being like the traditional scenario, where one piece of content is accessed / downloaded / streamed by multiple users, etc. Therefore, the computing resource occupation of the server is relatively large, especially when the user scale is relatively large, it is more common for multiple users to ask questions concurrently. At this time, the occupation of server resources will increase exponentially (assuming that 10 users ask questions at the same time, the server needs to produce reply content for the different questions of these 10 users respectively, and transmit them separately). Therefore, in the specific implementation, multiple server devices can also be deployed on the server. During the initialization process, one of the server devices can be allocated to the client, and a binding relationship can be established between the server and the client. After that, a point-to-point dedicated data channel can be established between the server and the client. In this way, the server can provide one-to-one service to the client. Of course, if the server performance is strong enough, the same server device can also provide services to multiple clients at the same time. Of course, as mentioned above, this will require multiple usage of the server's various resources.

[0080] In addition, regarding the above-mentioned dedicated data channel, in the embodiment of the present application, it can also be a channel that supports two-way communication, that is, a duplex channel. In this way, during the intelligent dialogue process, the reply content can be transmitted to the client through the dedicated data channel, and the client can also transmit data to the server through the dedicated data channel, including the user's question content data, etc. For example, during the dialogue process, if the user thinks that the currently played reply content is not what he wants and needs to ask the question again, the user can directly say "stop", at which time the information can be transmitted to the server through the above-mentioned channel, and the server can stop the production of the reply content of the subsequent segment, and after receiving the language content re-entered by the user, it can re-produce the reply content, etc.

[0081] In summary, from the perspective of system architecture, the embodiments of the present application can provide a companion intelligent dialogue system, which can include a server and a client. Figure 4As shown, it provides a complete system architecture under a specific implementation method. First, on the client side, the user can ask questions by voice input, and then voice recognition can be performed directly on the client to convert the voice into text, and then the text data is packaged and sent to the server. Among them, as mentioned above, if a dedicated data transmission channel such as WebRTC is built between the server and the client, the above text data can be packaged through a custom protocol and transmitted to the server through the dedicated data transmission channel. The server can monitor the data through the above transmission channel, and after monitoring the data packet of the client, it can perform data parsing to obtain specific question text data. After that, the question text data can be input into a large language model such as LLM, and the LLM model performs natural language understanding and produces a response text. Among them, the LLM large model can also have multiple working modes, for example, it can be directly deployed locally on the server, or it can be deployed remotely. In addition, the response text can be processed in pieces during the process of LLM producing the response text, or the response text can be processed in pieces after LLM generates a complete whole response text. Among them, in the fragmentation process, the smallest fragmentation unit can be a sentence, or if the length of a sentence is relatively short, it can also be a fragment of multiple sentences, and so on. After that, speech synthesis and lip-driven processing can be performed in units of response text segments. Among them, when driving lip-sync, a facial area image sequence can be segmented from the base video. After lip-driven based on this image sequence, the image sequence is directly encapsulated using a custom protocol and transmitted to the client through the aforementioned dedicated data transmission channel. Then the received data packet is parsed on the client, and the image sequence therein is framed with the base video, and the synthesis with the voice content and the alignment of the audio and video synchronization are performed. If there is subtitle content, the subtitle content can also be added and aligned on the client, and then it can be played through the screen of the terminal device where the client is located. Among them, the terminal device can be a mobile terminal device such as a mobile phone, or it can also be an AR / VR head display device, etc. Of course, in actual applications, there may also be a situation where the response text is generated and fragmented directly on the client, and the output is directly on the client, which is not limited here.

[0082] It can be seen from the above that the embodiment of the present application provides a companionship intelligent dialogue system, and the specific solutions that need to be protected are introduced below.

[0083] Embodiment 1

[0084] First, the first embodiment provides a companion intelligent dialogue method, and the execution subject of each step included in the method can be a server or a client, or part of the execution is performed on the client and part of the execution is performed on the server. Figure 5 , the method may specifically include:

[0085] S501: Receive user conversation information.

[0086] Specifically, the companion intelligent dialogue system provided in the embodiment of the present application can exist in the form of an application program (App) or a functional model in the App, and the specific App can run in terminal devices such as mobile phones or VR / AR head displays. During use, users can use the functions provided by the system through the relevant pages of the App or other forms of entrances. Among them, in a preferred manner, initialization processing can be performed when the user enters the page related to the system. For example, in an optional manner, a server can be allocated to the client, and a binding relationship can be established between the server and the client. In addition, a dedicated data transmission channel can be established between the two, and so on.

[0087] After completing the above preparations, users can ask questions through the client, where they can ask questions by inputting voice or by inputting question text. In the case of voice questions, as mentioned above, the voice-to-text process can be directly performed on the client, and the data can be packaged after being converted into question text and uploaded to the server. Alternatively, in other ways, the voice content can be directly uploaded to the server, which will process the voice-to-text process and even directly produce reply content based on the voice content, etc. In other words, the user dialogue information received by the server can be question text or voice content, etc.

[0088] S502: During or after the process of processing the user dialogue information using the large language model to generate a response text, the response text is segmented according to a preset segmentation strategy to obtain response text segments.

[0089] After receiving the user dialogue information, the user dialogue information can be processed using the large language model to generate a response text. In the process of generating the response text, or after generating the complete response text, the response text can also be segmented to obtain response text fragments. For example, if segmentation is performed during the production of the response text, that is, in the process of the large language model streaming the response text in units of words, after each collection of the newly generated partial word-grams of the large language model, it can be determined whether the partial word-grams comply with the preset segmentation strategy. If they do, the partial word-grams are determined as response text fragments. For example, when the large model generates the response text, it outputs the following word-grams in sequence: "×× Company", "Yes", "Our country", "Leading", "E-commerce company,"... Among them, the first four tokens are not followed by punctuation until the fifth token is output. The token has punctuation (specifically, it can be commas, periods, semicolons, ellipsis, exclamation marks, etc., which contain obvious pause semantics. If it is double quotation marks, although it is also punctuation, it does not pause or the pause is very short, so it is generally not segmented). This proves that the token can form a sentence or a clause in a sentence with the previous four tokens. Therefore, the position of the fifth token can be used as a segmentation position, and the fifth token and the previous four tokens are used as a response text segment, that is, "×× Company is a leading e-commerce company in my country." After that, the large model continues to output new tokens, including "established in", "×× year," etc. For new tokens, it can also continue to judge whether a new segment can be formed according to the above strategy, that is, a new response text segment.

[0090] In addition, when the response text is segmented according to a preset segmentation strategy, the playback time of the same response text segment after being synthesized into speech can also be estimated to determine whether the playback time is greater than the average time required for the production process of the segmented response content, so that the production of the next segmented response content can be completed before the output of the previous segmented response content is completed.

[0091] S503: Perform speech synthesis based on the response text segment and perform lip-driven processing on the base video containing the character image, so as to output the generated segmented response content.

[0092] After segmenting the response text segments, speech synthesis can be performed based on the response text segments and lip-syncing processing can be performed on the base video containing the character image. If the generation and segmentation processing is completed in the service order, the obtained segmented response content can also be transmitted to the client so that the client can output it based on the segmented response content.

[0093] Among them, if the video frame of the base video includes a foreground character image and a background scene image, when the base video containing the character image is subjected to lip-driven processing, face recognition can be performed on multiple video frames of the base video, and a face area image sequence can be extracted, and lip-driven processing can be performed based on the face area image sequence; then, the generated segmented response content can include the speech synthesis result and the face area image sequence obtained after the lip-driven processing, so that the client can synthesize the face area image sequence with the base video locally stored by the client, and play it after aligning the audio and video synchronization with the speech synthesis result. This can reduce the amount of transmitted data, and at the same time, since there is no need to perform video encoding compression and other processing, the production time of the segmented response content can also be further shortened. Of course, the segmented response content generated by the server can also include subtitle information, so that the client can add the subtitle information to the target video with the lip-driven result.

[0094] Specifically, when the generated slice processing result is transmitted to the client, a dedicated data channel can be established between the server and the client so that the image sequence can be encapsulated using a custom data transmission protocol and then transmitted to the client. Specifically, when the data packet is transmitted through the dedicated data channel, it can be transmitted in a data stream manner so that the client can render and play after receiving the first frame content in the same slice. Correspondingly, the client can deploy a streaming video player. Since it is a streaming play, although it is divided into multiple slices for the production of reply content, the reply content of different slices can be streamed to the client through the above-mentioned dedicated data channel, and the player can play it. That is, in the process of playing the slice response content corresponding to different slices by the client, as long as the reply content of the next slice can be produced before the previous slice is played, the "seamless connection" between different slices can be realized in the player, without involving the process of different slices downloading the corresponding video files in the client and loading them into the player, so as to avoid the phenomenon of not being smooth such as freezing.

[0095] In addition, the service side may include multiple servers; in this case, one of the servers may be allocated to the client, and a binding relationship may be established between the server and the client, so as to establish a point-to-point dedicated data channel between the server and the client.

[0096] The dedicated data channel can support two-way communication, so that during the intelligent dialogue process, the client uploads the voice content input by the user through the dedicated data channel. Specifically, if during the process of playing the segment processing result through the client, the voice content newly input by the user is received, and after natural language understanding of the voice content, it is determined that the user's demand is to stop playing the current response text, then the unfinished segment processing process can be stopped.

[0097] In summary, through the embodiments of the present application, after receiving the user dialogue information, the response text can be processed according to the preset segmentation strategy during or after the process of processing the user dialogue information using the large language model to generate the response text to obtain the response text fragments. Afterwards, speech synthesis can be performed based on the specific response text fragments and the base video containing the character image can be lip-driven to output the generated segmented response content. In this way, since the response text can be processed in segments, and speech synthesis and lip-driven processing can be performed based on the response text fragments obtained after segmentation, the speech synthesis and lip-driven processing can be advanced without waiting for the complete reply content to be generated. The generated segments can be output on the user device first, and the subsequent segmented response content can continue to be generated while the user device is playing, thereby reducing the reply delay and improving the user experience.

[0098] Among them, regarding the fragmentation strategy, according to the characteristics of the specific application scenarios in the embodiments of the present application, fragmentation processing can be performed at the positions where sentences can be broken in the response text. For example, the response text generated by the large model will also include punctuation marks, and fragmentation can be performed at the positions of such punctuation marks containing pause semantics, so as to determine the tone characteristics during speech synthesis when performing speech synthesis based on the response text fragment. In addition, the playback time of the response text fragment after being synthesized into speech can be estimated, and it can be determined whether the playback time is greater than the average time required for the production process of the fragmented response content. If so, a fragment can be segmented so that the production of the next fragmented response content can be completed before the playback of the previous fragmented response content on the client ends.

[0099] In addition, in an optional implementation, in order to solve the problem of large communication data volume, the result form of the lip-driven step is changed. That is, instead of allowing the server to directly generate a complete response video, it only outputs a small piece of face area image modified by a machine learning algorithm (lip-driven). Then, these driver-generated face area images can also be sent to the user device through a dedicated data channel, and these newly generated face area images are spliced ​​and synthesized with the base video pre-stored on the user device in the terminal application to produce the final response video stream, which is rendered in real time on the screen of the user device. Through this method, the original high-definition video transmission of 4096×2048 or even higher resolution scale can be reduced to low-resolution image transmission of 200×100 scale, thereby greatly reducing the amount of communication data. In addition, this method also avoids the server from performing video encoding compression and other processing after completing the lip-driven, thereby shortening the production time of the fragmented response content.

[0100] Embodiment 2

[0101] The second embodiment corresponds to the first embodiment and provides a companionship intelligent dialogue method from the perspective of the client. Figure 6 , the method may include:

[0102] S601: receiving voice input information from a user, and performing voice recognition on the voice input information to generate a question text.

[0103] S602: Submit the question text to the server so that during or after the server processes the user dialogue information using the large language model to generate a response text, the server segments the response text according to a preset segmentation strategy to obtain response text segments, performs speech synthesis on the response text segments and performs lip-driven processing on the base video containing the character image, and then transmits the generated segmented response content to the client.

[0104] S603: Perform output processing according to the fragmented response content received from the server.

[0105] In specific implementation, the segmented response content may include: speech synthesis results and a facial area image sequence obtained after lip-driven processing. At this time, the client can combine the facial area image sequence with the base video locally saved by the client, and align it with the speech synthesis result to generate a target video and play it.

[0106] For the parts not described in detail in the aforementioned embodiments 1 and 2, please refer to the records in other parts of this specification, and no further details will be given here.

[0107] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described in this article within the scope permitted by applicable laws and regulations, subject to the requirements of applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).

[0108] Corresponding to the first embodiment, the embodiment of the present application further provides a companion-type intelligent dialogue device, which may include:

[0109] A user conversation information receiving unit, used to receive user conversation information;

[0110] A fragmentation processing unit, used for fragmenting the response text according to a preset fragmentation strategy to obtain response text segments during or after the user dialogue information is processed by the large language model to generate a response text;

[0111] The lip-activated processing unit is used to perform speech synthesis based on the response text segment and perform lip-activated processing on the base video containing the character image, so as to output the generated segmented response content.

[0112] The shard processing unit can be used for:

[0113] In the process of the large language model generating a response text in units of words, after each partial word generated by the large language model is collected, it is determined whether the partial word conforms to a preset segmentation strategy. If so, the partial word is determined as a response text segment.

[0114] When the response text is segmented according to a preset segmentation strategy, segmentation can be performed at positions in the response text where sentences can be segmented, so that when speech synthesis is performed based on the response text segments, the tone features during speech synthesis can be determined.

[0115] Alternatively, when the response text is segmented according to a preset segmentation strategy, the playback time of the response text segments after being synthesized into speech is estimated, and it is determined whether the playback time is greater than the average time required for the production process of the segmented response content, so that the production of the next segmented response content can be completed before the playback of the previous segmented response content on the client is completed.

[0116] The video frame of the base video includes a foreground character image and a background scene image;

[0117] The lip drive unit may be specifically run on the server side and used for:

[0118] Performing face recognition on multiple video frames of the base video, extracting a face region image sequence, and performing lip-driven processing based on the face region image sequence;

[0119] The generated segmented response content includes the speech synthesis result and the facial area image sequence obtained after lip-driven processing, so that the segmented response content can be transmitted to the client, and the client will combine the facial area image sequence with the base video locally stored on the client, and align it with the speech synthesis result to generate the target video and play it.

[0120] The generated segment response content also includes subtitle information, so that the client can add the subtitle information to the target video with the lip-syncing result.

[0121] Specifically, when the generated fragmented response content is transmitted to the client, a dedicated data channel can be established between the server and the client, so that the image sequence is encapsulated using a custom data transmission protocol and the generated data packet is transmitted to the client.

[0122] When the data packet is transmitted through the dedicated data channel, it can be transmitted in a data stream manner, so that the client can render and play after receiving the first frame content in the same slice.

[0123] Specifically, the server side includes multiple servers;

[0124] At this time, the device may further include:

[0125] The binding relationship establishing unit is used to allocate one of the servers to the client and establish a binding relationship between the server and the client, so as to establish a point-to-point dedicated data channel between the server and the client.

[0126] The dedicated data channel supports two-way communication, so that during the intelligent dialogue process, the client uploads the voice content input by the user through the dedicated data channel.

[0127] In addition, the device may also include:

[0128] The voice content processing unit is used to stop the unfinished segment processing process if it receives new voice content input by the user during the process of outputting the segment response content through the client, and after natural language understanding of the voice content, it is determined that the user's demand is to stop the output of the current response text.

[0129] Corresponding to the second embodiment, the embodiment of the present application further provides a companion-type intelligent dialogue device, which is applied to a client and includes:

[0130] A speech recognition unit, used to receive speech input information from a user and perform speech recognition on the speech input information to generate a dialogue text;

[0131] A submitting unit, used for submitting the dialogue text to the server, so that the server can process the response text according to a preset segmentation strategy in the process of or after processing the user's dialogue text using a large language model to generate a response text, obtain response text segments, perform speech synthesis on the response text segments and perform lip-driven processing on the base video containing the character image, and then transmit the generated segmented response content to the client;

[0132] A content output unit is used to perform output processing according to the fragment response content received from the server.

[0133] The fragmented response content includes: the speech synthesis result corresponding to the response text segment and the facial region image sequence obtained after lip-driven processing;

[0134] The content output unit can be specifically used to: combine the face area image sequence with the base video locally stored in the client, align it with the speech synthesis result, and then generate a target video and output it.

[0135] In addition, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of any one of the methods in the aforementioned method embodiments are implemented.

[0136] And an electronic device, comprising:

[0137] one or more processors; and

[0138] A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of the aforementioned method embodiments.

[0139] A computer program product includes a computer program / computer executable instructions, which, when executed by a processor in an electronic device, implement the steps of the method described in the aforementioned method embodiment.

[0140] in, Figure 7The architecture of the electronic device is shown as an example, which may include a processor 710, a video display adapter 711, a disk drive 712, an input / output interface 713, a network interface 714, and a memory 720. The processor 710, the video display adapter 711, the disk drive 712, the input / output interface 713, the network interface 714, and the memory 720 may be communicatively connected via a communication bus 730.

[0141] Among them, the processor 710 can be implemented by a general-purpose CPU (Central Processing Unit, processor), a microprocessor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc., to execute relevant programs to implement the technical solution provided in this application.

[0142] The memory 720 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 720 can store an operating system 721 for controlling the operation of the electronic device 700, and a basic input and output system (BIOS) for controlling the low-level operation of the electronic device 700. In addition, a web browser 723, a data storage management system 724, and an intelligent dialogue processing system 725, etc. can also be stored. The above-mentioned intelligent dialogue processing system 725 can be an application program that specifically implements the operations of the aforementioned steps in the embodiment of the present application. In short, when the technical solution provided by the present application is implemented by software or firmware, the relevant program code is stored in the memory 720 and is called and executed by the processor 710.

[0143] The input / output interface 713 is used to connect the input / output module to realize information input and output. The input / output module can be configured as a component in the device (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0144] The network interface 714 is used to connect to a communication module (not shown) to achieve communication interaction between the device and other devices. The communication module can achieve communication through a wired method (such as USB, network cable, etc.) or a wireless method (such as mobile network, WIFI, Bluetooth, etc.).

[0145] The bus 730 comprises a pathway for transmitting information between the various components of the device (eg, the processor 710 , the video display adapter 711 , the disk drive 712 , the input / output interface 713 , the network interface 714 , and the memory 720 ).

[0146] It should be noted that, although the above device only shows a processor 710, a video display adapter 711, a disk drive 712, an input / output interface 713, a network interface 714, a memory 720, a bus 730, etc., in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include components necessary for implementing the solution of the present application, and does not necessarily include all the components shown in the figure.

[0147] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0148] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0149] The above is a detailed introduction to the companion intelligent conversation method and electronic device provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A companion intelligent dialogue method, characterized in that: include: Receive user dialogue information input by the client; During or after the process of processing the user dialogue information using the large language model to generate a response text, segmenting the response text according to a preset segmentation strategy to obtain response text segments; Performing speech synthesis based on the response text fragment and lip-driven processing on the base video containing the character image at the server end, wherein the video frame of the base video includes a foreground character image and a background scene image, and when lip-driven processing is performed on the base video containing the character image, face recognition is performed on multiple video frames of the base video, a face region image sequence is extracted, and lip-driven processing is performed based on the face region image sequence, so that the generated segmented response content includes the speech synthesis result and the face region image sequence obtained after the lip-driven processing, and the generated segmented response content is transmitted to the client, and the client performs frame-by-frame processing on the face region image sequence and the base video locally stored on the client, and generates a target video after alignment processing with the speech synthesis result and outputs it; Among them, after the server completes the speech synthesis and lip-driven processing of one segment, it transmits it to the client, and during the transmission process, it performs speech synthesis and lip-driven processing of the next segment and transmits it to the client, so that the production of the segment response content of the next segment is completed before the client completes playing the segment response content of the previous segment.

2. The method according to claim 1, characterized in that The fragmentation processing of the response text includes: In the process of the large language model generating a response text in units of words, after each partial word generated by the large language model is collected, it is determined whether the partial word conforms to a preset segmentation strategy. If so, the partial word is determined as a response text segment.

3. The method according to claim 1 or 2, characterized in that: When the response text is segmented according to the preset segmentation strategy, segmentation is performed at the positions where sentences can be segmented in the response text, so that when speech synthesis is performed based on the response text segments, the tone features during speech synthesis are determined.

4. The method according to claim 1 or 2, characterized in that: When the response text is segmented according to a preset segmentation strategy, the playback time of the response text segments after being synthesized into speech is estimated, and it is determined whether the playback time is greater than the average time required for the production process of the segmented response content, so that the production of the next segmented response content can be completed before the playback of the previous segmented response content on the client is completed.

5. The method according to claim 1, characterized in that The generated segment response content also includes subtitle information, so that the client can add the subtitle information to the target video with lip-syncing results.

6. The method according to claim 1, characterized in that When transmitting the generated segmented response content to the client, it includes: A dedicated data channel is established between the server and the client, so that after the image sequence is encapsulated using a custom data transmission protocol, the generated data packet is transmitted to the client.

7. The method according to claim 6, characterized in that When the data packet is transmitted through the dedicated data channel, it is transmitted in a data stream manner, so that the client can render and play after receiving the first frame content in the same slice.

8. The method according to claim 6, characterized in that The server side includes multiple servers; The method further comprises: One of the servers is allocated to the client, and a binding relationship is established between the server and the client, so as to establish a point-to-point dedicated data channel between the server and the client.

9. The method according to claim 6, characterized in that The dedicated data channel supports two-way communication, so that during the intelligent dialogue process, the client uploads the voice content input by the user through the dedicated data channel.

10. The method according to claim 9, characterized in that Also includes: If, during the process of outputting the segmented response content through the client, new voice content input by the user is received, and after natural language understanding of the voice content, it is determined that the user's demand is to stop the output of the current response text, the unfinished segment processing process is stopped.

11. A companion intelligent dialogue method, characterized in that: The method is applied to a client and includes: Receiving voice input information from a user, and performing voice recognition on the voice input information to generate a dialogue text; Submitting the dialogue text to the server, so that during or after the server processes the dialogue text of the user using the large language model to generate a response text, the server performs segmentation processing on the response text according to a preset segmentation strategy to obtain response text segments, performs speech synthesis on the response text segments and performs lip-driven processing on the base video containing the character image, and then transmits the generated segmented response content to the client; The video frame of the base video includes a foreground character image and a background scene image. When the server performs lip-driven processing on the base video containing the character image, face recognition is performed on multiple video frames of the base video to extract a face region image sequence, and lip-driven processing is performed based on the face region image sequence, so that the generated fragment response content includes a speech synthesis result and a face region image sequence obtained after the lip-driven processing; According to the fragmented response content received from the server, the face region image sequence is combined with the base video locally stored on the client, and aligned with the speech synthesis result to generate a target video and output it; Among them, after the server completes the speech synthesis and lip-driven processing of one segment, it transmits it to the client, and during the transmission process, it performs speech synthesis and lip-driven processing of the next segment and transmits it to the client, so that the production of the segment response content of the next segment is completed before the client completes playing the segment response content of the previous segment.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented.

13. An electronic device, characterized in that: include: one or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions, wherein the program instructions, when read and executed by the one or more processors, execute the steps of the method described in any one of claims 1 to 11.

14. A computer program product comprising a computer program / computer executable instructions, characterized in that: When the computer program / computer executable instructions are executed by a processor in an electronic device, the steps of the method according to any one of claims 1 to 11 are implemented.