Message merging method and apparatus, device, storage medium, and product
By merging the same or similar multimedia messages in the chat interface, the problems of interface confusion and inefficient information search are solved, and more efficient message display and space utilization are achieved.
Patent Information
- Application Number
- PCT/CN2024/113614
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-09-05
- Filing Date
- 2024-08-21
- Publication Date
- 2025-03-13
AI Technical Summary
In the chat interface, users send a large number of the same or similar multimedia messages, resulting in confusion in the interface and affecting the efficiency of users in finding useful information.
Provides a message merging method, which is executed by a client or server. A multimedia message that meets the merge display conditions is detected, merged into a merge message, and only the merge message is displayed in the chat interface.
It improves the space utilization of the chat interface, reduces redundant messages on the interface, and improves the efficiency of users to view messages.
Smart Images

Figure CN2024113614_13032025_PF_FP_ABST
Abstract
Description
Message merging method, device, equipment, storage medium and product
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on September 5, 2023, with application number 2023111408992 and application name “Message merging method, device, equipment, storage medium and product”. The entire contents of the application are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of artificial intelligence, and in particular to a message merging method, apparatus, device, storage medium and product. Background Art
[0003] With the explosive development of Internet technology, online social networking has gradually become the main way for the general public to socialize.
[0004] In the related art, users realize online one-to-one communication or one-to-many communication through an application program supporting chat dialogue. For example, users carry out online chat dialogue by sending multimedia messages in a chat interface in an application program supporting chat dialogue.
[0005] However, when communicating in a chat interface, users may send a large number of identical or similar multimedia messages, such as sending multiple identical emoticons to express the same emotion. These large numbers of identical or similar multimedia messages will overlap frequently in the chat interface, making it difficult for users who need to search for other information to quickly locate useful information.
[0006] Summary of the Invention
[0007] This application provides a message merging method, apparatus, device, storage medium, and product. The technical solution is as follows:
[0008] According to one aspect of the present application, a message merging method is provided, the method being executed by a client, the method comprising:
[0009] Display n messages of the first media type in the chat interface, where n is a positive integer;
[0010] Receive the (n+1)th message of the first media type;
[0011] In response to n+1 messages of the first media type meeting a merge display condition, merging the n+1 messages of the first media type into a merged message, and displaying the merged message;
[0012] The n+1 first media type messages include the n first media type messages and the n+1th first media type message.
[0013] According to another aspect of the present application, a message merging method is provided, which is executed by a server, and the method includes:
[0014] Receive n+1 messages of the first media type, where n is a positive integer;
[0015] If the n+1 messages of the first media type meet the merge display condition, merge the n+1 messages of the first media type into one merged message;
[0016] The merge message is sent to the client.
[0017] According to another aspect of the present application, a message merging device is provided, the device comprising:
[0018] A display module, configured to display n messages of the first media type in the chat interface, where n is a positive integer;
[0019] A receiving module, configured to receive the (n+1)th message of the first media type;
[0020] The display module is further configured to, in response to n+1 messages of the first media type satisfying a merge display condition, merge the n+1 messages of the first media type into a merged message, and display the merged message;
[0021] The n+1 first media type messages include the n first media type messages and the n+1th first media type message.
[0022] According to another aspect of the present application, a message merging device is provided, the device comprising:
[0023] A receiving module, configured to receive n+1 messages of the first media type, where n is a positive integer;
[0024] a merging module, configured to merge the n+1 messages of the first media type into one merged message if the n+1 messages of the first media type meet a merge display condition;
[0025] The sending module is used to send the merge message to the client.
[0026] According to another aspect of the present application, a computer device is provided, comprising: a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the message merging method described above.
[0027] According to another aspect of the present application, a computer-readable storage medium is provided, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the message merging method described above.
[0028] According to another aspect of the present application, a computer program product is provided, which includes at least one program segment, and the at least one program segment is stored in a computer-readable storage medium; a processor of a computer device reads the at least one program segment from the computer-readable storage medium, and the processor executes the at least one program segment, so that the computer device executes the message merging method described above.
[0029] The beneficial effects of the technical solution provided by this application include at least:
[0030] In response to n+1 messages of the first media type meeting the merged display conditions, the n+1 messages of the first media type are merged and displayed as one merged message, so that at most n messages of the first media type that meet the merged display conditions are displayed in the chat interface. When the number of messages of the first media type that meet the merged display conditions reaches n+1, only one merged message is displayed in the chat interface. By merging and displaying them as one merged message, the space utilization of the chat interface is improved, and it is beneficial to improve the efficiency of users in viewing messages. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. 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 any creative work.
[0032] FIG1 is a structural block diagram of a computer system provided by an exemplary embodiment of the present application;
[0033] FIG2 is a flow chart of a message merging method provided by an exemplary embodiment of the present application;
[0034] FIG3 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0035] FIG4 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0036] FIG5 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0037] FIG6 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0038] FIG7 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0039] FIG8 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0040] FIG9 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0041] FIG10 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0042] FIG11 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0043] FIG12 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0044] FIG13 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0045] FIG14 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0046] FIG15 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0047] FIG16 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0048] FIG17 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0049] FIG18 is a schematic diagram of a settings page provided by an exemplary embodiment of the present application;
[0050] FIG19 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0051] FIG20 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0052] FIG21 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0053] FIG22 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0054] FIG23 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0055] FIG24 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0056] FIG25 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0057] FIG26 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0058] FIG27 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0059] FIG28 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0060] FIG29 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0061] FIG30 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0062] FIG31 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0063] FIG32 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0064] FIG33 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0065] FIG34 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0066] FIG35 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0067] FIG36 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0068] FIG37 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0069] FIG38 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0070] FIG39 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0071] FIG40 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0072] FIG41 is a schematic diagram of a chat interface provided by an exemplary embodiment of the present application;
[0073] FIG42 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0074] FIG43 is a flowchart of a message merging method provided by an exemplary embodiment of the present application;
[0075] FIG44 is a flow chart of a generation algorithm model provided by an exemplary embodiment of the present application;
[0076] FIG45 is a block diagram of a message merging apparatus provided by an exemplary embodiment of the present application;
[0077] FIG46 is a block diagram of a message merging apparatus provided by an exemplary embodiment of the present application;
[0078] FIG47 is a block diagram of a computer device provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0079] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0080] FIG1 shows a block diagram of a computer system 100 according to an exemplary embodiment of the present application. The computer system 100 includes a terminal 120 and a server 140 .
[0081] Terminal 120 has an application or webpage installed and running that supports chat conversations. The application that supports chat conversations interacts with the user account through a chat page. The user account enables online chat by sending a message of a first media type on the chat page. The message of the first media type includes at least one of a text message, a picture message, a voice message, an emoticon message, a voice emoticon message, and a video message. In some embodiments, the application that supports chat conversations is an application that can provide a chat function. Optionally, the application that supports chat conversations is an application that only provides a chat function. For example, the application that supports chat conversations is an instant messaging application. Optionally, the application that supports chat conversations is a client that provides at least two functions, at least two of which include a chat function. For example, the application that supports chat conversations is a game program.
[0082] The terminal 120 is connected to the server 140 via a wireless network or a wired network.
[0083] Server 140 includes at least one of a single server, multiple servers, a cloud computing platform, and a virtualization center. Exemplarily, server 140 includes memory 142 and a processor 144. Memory 142 further includes a receiving module 1421, a display module 1422, and a sending module 1423. Receiving module 1421 is configured to receive requests from a terminal; display module 1422 is configured to display an application program page; and sending module 1423 is configured to send a response to the terminal. Server 140 provides background services for applications that support chat conversations. Optionally, server 140 performs primary computing tasks, while terminal 120 performs secondary computing tasks; alternatively, server 140 performs secondary computing tasks, while terminal 120 performs primary computing tasks; or alternatively, server 140 and terminal 120 collaboratively perform computing tasks.
[0084] In some embodiments, the server runs an AI model for merging messages. For example, an AI model for merging emoji messages. Upon receiving an emoji message that meets the merge display conditions, the server uses the AI model for merging emoji messages to merge the emoji messages that meet the merge display conditions, resulting in a merged message. The server then sends this merged message to the terminal for display.
[0085] Optionally, the terminal 120 may be a device of at least one of a smartphone, a smartwatch, a vehicle-mounted terminal, a wearable device, a smart TV, a tablet computer, an e-book reader, an MP3 player, an MP4 player, a laptop computer, and a desktop computer. The following embodiments illustrate the case where the terminal includes a smartphone.
[0086] Those skilled in the art will appreciate that the number of the above-mentioned terminals may be more or less. For example, the above-mentioned terminal may be only one, or the above-mentioned terminals may be dozens or hundreds, or a larger number. The embodiments of the present application do not limit the number of terminals and device types.
[0087] The user account enables online one-to-one communication or one-to-many communication through an application supporting chat dialogue. For example, as shown in FIG2 , the terminal 120 is installed with an application supporting chat dialogue, and the user account conducts an online chat dialogue by sending a message of the first media type in a chat interface 11 of the application supporting chat dialogue.
[0088] However, when communicating in the chat interface 11, a user account may send a large number of identical or similar messages of the first media type, such as sending multiple identical emoticons to express the same emotion. The high frequency of these identical or similar messages of the first media type in the chat interface 11 may prevent the user account from quickly searching for useful information in the chat interface 11. Therefore, these identical or similar messages of the first media type may interfere with some user accounts.
[0089] In response to the above problems, an embodiment of the present application provides a message merging method that can effectively solve the problem of a large number of messages of the same or similar first media type being frequently covered in the chat interface, so that user accounts that need to send messages of the same or similar first media type can continue to send them, and at the same time, these messages of the same or similar first media type will not affect other user accounts.
[0090] In some embodiments, the message merging method provided in the embodiments of the present application is performed by a terminal. In some embodiments, the message merging method provided in the embodiments of the present application is performed by a server. In some embodiments, the message merging method provided in the embodiments of the present application is performed collaboratively by a terminal and a server. This method will be described using the example of the terminal 120 shown in Figure 1.
[0091] In some embodiments, the chat interface 11 displays at least one message of the first media type sent by at least one user account. For example, the chat interface 11 displays a message 12 of the first media type sent by user account 1, a message 13 of the first media type sent by user account 2, and more messages of the first media type sent by more user accounts. Optionally, the same user account can repeatedly send multiple messages of the same first media type. Optionally, the same user account can send multiple messages of different first media types. Optionally, different user accounts can send multiple messages of the same first media type. Optionally, different user accounts can send multiple messages of different first media types.
[0092] For example, as shown in FIG2 , chat interface 11 displays four messages of the first media type. These four messages have the same content: message 12 of the first media type sent by user account 1, message 13 of the first media type sent by user account 2, message 14 of the first media type sent by user account 3, and message 15 of the first media type sent by user account 4. If user account 5 sends a message that is identical to messages 12, 13, 14, and 15 of the first media type, a merged message 16 is displayed in chat interface 11. Merged message 16 is a combination of messages 12, 13, 14, 15, and 15 of the first media type.
[0093] FIG3 is a flow chart of a message merging method provided by an exemplary embodiment of the present application. The method is executed by the terminal 120 in the computer system 100 shown in FIG1 and includes:
[0094] Step 220: Display n messages of the first media type in the chat interface, where n is a positive integer.
[0095] N messages of a first media type are displayed in a chat interface of a client. The client is a client capable of providing a chat function. Optionally, the client is a client that only provides a chat function. For example, the client is an instant messaging client. Optionally, the client is a client that provides at least two functions, including a chat function. For example, the client is a game client.
[0096] The message of the first media type includes at least one of a text message, a picture message, a voice message, an emoticon message, a voice emoticon message, and a video message.
[0097] Optionally, each of the n first media type messages corresponds to the same user account. Optionally, each of the n first media type messages corresponds to a different user account. Optionally, some of the n first media type messages correspond to the same user account, while some correspond to different user accounts.
[0098] For example, as shown in Figure 4, four messages of the first media type are displayed in the chat interface 11, namely, a message 12 of the first media type sent by user account 1, a message 13 of the first media type sent by user account 2, a message 14 of the first media type sent by user account 3, and a message 15 of the first media type sent by user account 4.
[0099] Step 240: Receive the (n+1)th message of the first media type.
[0100] In some embodiments, the client may receive the n+1th message of the first media type but may not directly display the n+1th message of the first media type. It should be understood that in embodiments of the present application, the client may only receive but not display the n+1th message of the first media type. Optionally, the user account that sends the n+1th message of the first media type is one of the at least one user account corresponding to the n messages of the first media type. Optionally, the user account that sends the n+1th message of the first media type is not one of the at least one user account corresponding to the n messages of the first media type.
[0101] In some embodiments, the client may receive and display the (n+1)th message of the first media type.
[0102] Step 260: In response to the n+1 messages of the first media type meeting the merge display condition, merge the n+1 messages of the first media type into a merged message, and display the merged message.
[0103] In some embodiments, the merge display condition is a triggering condition for triggering at least one identical merging of n+1 messages of the first media type into one merged message and displaying the merged message.
[0104] Optionally, the merge display condition is preset. For example, the preset merge display condition is: upon receiving five messages of the same first media type, upon receiving the fifth message of the same first media type, the merge of the n+1 messages of the first media type into one merged message is triggered, and the merged message is displayed.
[0105] Optionally, the merged display condition is dynamically adjusted. In some embodiments, the merged display condition is dynamically adjusted based on the display situation of the client. The display situation includes at least one of the display size of the chat interface and the number of online users. In some embodiments, the merged display condition is adjusted based on the display size of the chat interface, and the display size of the chat interface is proportional to the number of messages of the first media type displayed in the chat interface. Exemplarily, the larger the display size of the chat interface, the more messages of the first media type are displayed in the chat interface; the smaller the display size of the chat interface, the fewer messages of the first media type are displayed in the chat interface. Exemplarily, when the display size of the chat interface is display size 1, the merged display condition is merged display condition 1; when the display size of the chat interface is display size 2, the merged display condition is merged display condition 2. In some embodiments, the merged display condition is adjusted based on the number of online users in the chat interface.
[0106] In some embodiments, in response to n+1 messages of the first media type meeting a merge display condition, the display of the n messages of the first media type is canceled, and the n+1 messages of the first media type are merged into one merged message and displayed.
[0107] In some embodiments, the message content of the merged message is obtained by merging n+1 messages of the first media type, wherein the n+1 messages of the first media type include n messages of the first media type and an n+1th message of the first media type.
[0108] In some embodiments, the visual content of the merged message is obtained by merging the visual content of n+1 messages of the first media type. Exemplarily, n+1 messages of the first media type correspond to n+1 visual contents, and the visual content of the merged message is the visual content obtained by merging the n+1 visual contents. Optionally, the visual content includes at least one of textual content, image content, and decorative content. Visual content refers to various types of content that uses images, graphics, or multimedia elements to convey information or evoke emotions.
[0109] In some embodiments, the voice content of the merged message is obtained by merging the voice contents of n+1 messages of the first media type. For example, the n+1 messages of the first media type correspond to n+1 voice contents, and the voice content of the merged message is a single voice content obtained by merging the n+1 voice contents.
[0110] In some embodiments, the message content of the merged message includes a common portion and a group portion.
[0111] The common part is obtained by merging at least one identical content item in n+1 messages of the first media type. In other words, for the same multiple content items, deduplication processing can be performed and only a single content item is retained. For example, assuming that n+1 messages of the first media type include the same text content, the common part is obtained by merging the identical text content in n+1 messages of the first media type. As shown in Figure 2, the first media type message 12 sent by user account 1, the first media type message 13 sent by user account 2, the first media type message 14 sent by user account 3 and the first media type message 15 sent by user account 4 include the same text content "Congratulations on your wealth". Then, the identical text content in the first media type message 12 sent by user account 1, the first media type message 13 sent by user account 2, the first media type message 14 sent by user account 3 and the first media type message 15 sent by user account 4 are merged to obtain the common part "Congratulations on your wealth".
[0112] Optionally, the common portion is obtained by merging some of the same contents in n+1 messages of the first media type. Optionally, the common portion is obtained by merging all of the same contents in n+1 messages of the first media type.
[0113] The group part is obtained by combining different content items in the n+1 messages of the first media type. In other words, the group part is obtained by combining different content items between the messages to obtain the combined content. For example, a plurality of different images are combined and spliced into one image. As shown in FIG2 , the message 12 of the first media type sent by user account 1 includes an individual expression avatar, the message 13 of the first media type sent by user account 2 includes an individual expression avatar, the message 14 of the first media type sent by user account 3 includes an individual expression avatar, and the message 15 of the first media type sent by user account 4 includes an individual expression avatar, then the multiple individual expression avatars are combined to obtain a group part including multiple individual expression avatars.
[0114] In some embodiments, the message content of the merged message also includes a background atmosphere part. The background atmosphere part is a message content added as a background atmosphere in addition to the content of the n+1 messages of the first media type. For example, the message content of the background atmosphere can be, for example, the background atmosphere of a group part. It should be understood that when the content of the n+1 messages of the first media type includes background atmosphere content, the background atmosphere content can be a public part or a group part. Exemplarily, as shown in Figure 5, a red envelope background 19 is dynamically displayed in the chat interface, and the red envelope background 19 is the background atmosphere content in addition to the content of the n+1 messages of the first media type.
[0115] In some embodiments, the added message content serving as the background atmosphere of the n+1 individual contents is randomly generated based on a background atmosphere generation model. The background atmosphere generation model is trained using a sample training set, which includes sample background atmosphere content. Model parameters in the background atmosphere generation model are trained using the sample training set. After multiple training sessions, for example, after 10,000 sample training sessions or until the model converges, a trained background atmosphere generation model capable of generating background atmosphere content is obtained.
[0116] In some embodiments, the display attributes in the merged message include at least one of the following:
[0117] The display area size of the merged message;
[0118] Merge numbers in messages;
[0119] The number of individual contents in the merged message;
[0120] The number of decorations in the merged message;
[0121] Merge the decoration level in the message;
[0122] Merge message presentation methods.
[0123] In some embodiments, the display attribute in the merged message is related to the number of n+1 messages of the first media type.
[0124] Optionally, the display area size of the merged message is related to the number of n+1 messages of the first media type. For example, as shown in FIG6 , the display area size of the merged message is proportional to the number of n+1 messages of the first media type. The greater the number of n+1 messages of the first media type, the larger the display area size of the merged message. For example, if the number of n+1 messages of the first media type is 5, the display area size of the merged message is 17dp, the first display area size; if the number of n+1 messages of the first media type is 7, the display area size of the merged message is 18dp, the second display area size.
[0125] Optionally, the number in the merged message is related to the number of n+1 messages of the first media type. Exemplarily, assuming that the messages of the first media type that meet the merged display conditions include 5 messages of the first media type that include mountain peaks, information related to the "Five Mountains" is displayed in the merged message, and "five" corresponds to "5". In some embodiments, the number in the merged message is used to represent the number of n+1 messages of the first media type, and the number in the merged message is proportional to the number of n+1 messages of the first media type. Optionally, the size of the number in the merged message is related to the number of n+1 messages of the first media type. Optionally, the text in the merged message is related to the number of n+1 messages of the first media type. Optionally, the size of the text in the merged message is related to the number of n+1 messages of the first media type. Exemplarily, the size of the text in the merged message is proportional to the number of n+1 messages of the first media type, and the greater the number of n+1 messages of the first media type, the larger the text size in the merged message.
[0126] Optionally, the number of individual contents in the merged message is related to the number of n+1 messages of the first media type. Exemplarily, the number of individual contents in the merged message is proportional to the number of n+1 messages of the first media type. The more n+1 messages of the first media type, the more individual contents in the merged message. Exemplarily, as shown in FIG6 , in the case where each message of the first media type includes an individual expression avatar, the more the number of messages of the first media type, the greater the number of individual contents in the merged message. For example, in the case where 5 messages of the first media type are included, the merged message includes five individual expression avatars; in the case where 7 messages of the first media type are included, the merged message includes seven individual expression avatars.
[0127] Optionally, the number of decorations in the merged message is related to the number of n+1 messages of the first media type. Exemplarily, the number of decorations in the merged message is proportional to the number of n+1 messages of the first media type. The greater the number of n+1 messages of the first media type, the greater the number of decorations in the merged message. Exemplarily, as shown in FIG5 , the greater the number of messages of the first media type, the greater the number of red envelope decorations in the red envelope background 19.
[0128] Optionally, the decoration level in the merged message is related to the number of n+1 messages of the first media type. Exemplarily, the decoration level in the merged message is proportional to the number of n+1 messages of the first media type; the greater the number of n+1 messages of the first media type, the higher the decoration level in the merged message.
[0129] Optionally, the presentation method of the n+1 individual contents representing the group in the merged message is related to the number of n+1 messages of the first media type. For example, as shown in FIG7 , when the number of n+1 messages of the first media type is 5, the presentation method of the n+1 individual contents representing the group in the merged message is the first presentation method 21; when the number of n+1 messages of the first media type is 11, the presentation method of the n+1 individual contents representing the group in the merged message is the first presentation method 22.
[0130] In some embodiments, the merged message is generated by an AI model. The AI model is pre-trained using a sample training set, which includes sample messages. Model parameters in the AI model are trained using the sample training set. After multiple training sessions, for example, after 10,000 sample training sessions or until the model converges, a trained AI model capable of generating merged messages is obtained.
[0131] In some embodiments, the AI model includes a synthesis force parameter, the synthesis force parameter including a synthesis force parameter value, the synthesis force parameter value being used to indicate the degree of change of the merged message relative to the n+1 messages of the first media type. The larger the synthesis force parameter value, the greater the degree of change of the merged message relative to the n+1 messages of the first media type. For example, the larger the synthesis force parameter value, the more additional elements are added to the merged message.
[0132] In some embodiments, the display attributes in the merged message are related to the synthesis strength parameters of the AI model.
[0133] To summarize, the method provided in the embodiment of the present application merges and displays n+1 messages of the first media type into one merged message in response to n+1 messages of the first media type meeting the merged display conditions, so that a maximum of n messages of the first media type meeting the merged display conditions are displayed in the chat interface. When the number of messages of the first media type meeting the merged display conditions reaches n+1, only one merged message is displayed in the chat interface. By merging and displaying them into one merged message, the space utilization of the chat interface is improved, and it can help improve the efficiency of users viewing messages.
[0134] In some embodiments, the above-mentioned conditions for triggering the merging and displaying of n+1 messages of the first media type into a single merged message include: the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition. As shown in FIG8 , the above-mentioned step 260 can be replaced by the following sub-steps:
[0135] Step 261: In response to the number of n+1 messages of the first media type reaching a number threshold and satisfying a continuous message condition, merge the n+1 messages of the first media type into a merged message.
[0136] In some embodiments, the quantity threshold is a triggering condition for triggering merging n+1 messages of the first media type into one merged message.
[0137] Optionally, the quantity threshold is preset. Exemplarily, the preset quantity threshold is 5 messages of the first media type. Then, when the fifth message of the first media type is received, the process triggers the merging of n+1 messages of the first media type into one merged message.
[0138] Optionally, the quantity threshold is dynamically adjusted. In some embodiments, the quantity threshold is dynamically adjusted based on the display size of the chat interface in the client. For example, when the display size of the chat interface is 30dp*50dp, the quantity threshold is: 4 messages of the first media type; when the display size of the chat interface is 50dp*80dp, the quantity threshold is: 5 messages of the first media type.
[0139] In some embodiments, the continuous message condition means that the time interval between sending two adjacent messages of the first media type is less than a first threshold, and the number of messages of the second media type between the two adjacent messages of the first media type is less than a second threshold. Here, the message of the second media type represents a message of other media types excluding the first media type within the range of media types supported by the client. For example, the media types supported by the client are various multimedia types. The message of the first media type is a message of one or more media types, and the message of the second media type is a message of other media types in the multimedia message excluding the message of the first media type.
[0140] In some embodiments, the first threshold is a time threshold for indicating the time interval between the sending of two adjacent messages of the first media type. For example, assume that the two adjacent messages of the first media type are message 1 of the first media type and message 2 of the first media type, and the sending time of message 1 of the first media type is 10:00, and the sending time of message 2 of the first media type is 10:03. Assuming that the first threshold is 1 minute, since the time interval between the sending time of message 1 of the first media type and the sending time of message 2 of the first media type is 3 minutes, which is greater than the first threshold, message 1 of the first media type and message 2 of the first media type do not meet the continuous message condition. Assuming that the first threshold is 5 minutes, since the time interval between the sending time of message 1 of the first media type and the sending time of message 2 of the first media type is 3 minutes, which is less than the first threshold, message 1 of the first media type and message 2 of the first media type meet the continuous message condition.
[0141] Optionally, the first threshold is preset. Optionally, the first threshold is dynamically adjusted.
[0142] In some embodiments, the second threshold is a threshold for indicating the number of messages of the second media type between two adjacent messages of the first media type. Exemplarily, assume that the two adjacent messages of the first media type are message 1 of the first media type and message 2 of the first media type, and there are 4 other messages (i.e., messages of the second media type) between message 1 of the first media type and message 2 of the first media type. Assuming that the second threshold is 5 other messages, then since the number of other messages between message 1 of the first media type and message 2 of the first media type is less than the second threshold, message 1 of the first media type and message 2 of the first media type meet the continuous message condition. Assuming that the second threshold is 3 other messages, then since the number of other messages between message 1 of the first media type and message 2 of the first media type is greater than the second threshold, message 1 of the first media type and message 2 of the first media type meet the continuous message condition.
[0143] Optionally, the first threshold is preset. Optionally, the first threshold is dynamically adjusted.
[0144] To summarize, the method provided in the embodiment of the present application merges n+1 messages of the first media type into one merged message in response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition, so that a maximum of n messages of the first media type that satisfy the merged display condition are displayed in the chat interface. When the number of messages of the first media type that satisfy the merged display condition reaches n+1, only one merged message is displayed in the chat interface. Displaying one merged message helps to improve the space utilization of the chat interface and is beneficial to improving the efficiency of users in viewing messages.
[0145] In some embodiments, the above-mentioned merge display conditions that trigger the merging of n+1 messages of the first media type into one merged message include: the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition, and the n+1 messages of the first media type are the same message or messages whose similarity reaches a similarity threshold.
[0146] In some embodiments, as shown in FIG9 , the above step 260 may be replaced by the following sub-steps:
[0147] Step 262: In response to the number of n+1 first media type messages reaching a number threshold and satisfying a continuous message condition and the n+1 first media type messages being the same message, merge the n+1 first media type messages into a merged message.
[0148] In some embodiments, in response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition and the n+1 messages of the first media type are messages of the same subtype, the n+1 messages of the first media type are merged and displayed as a merged message. Optionally, the subtypes of the first media type include emoticon type, voice type, voice emoticon type, picture type, and video type. Exemplarily, it is assumed that the n+1 messages of the first media type are all voice emoticon messages, that is, they all belong to a subtype of the voice emoticon type. In response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition and the n+1 messages of the first media type are voice emoticon messages, the n+1 messages of the first media type are merged into a merged message.
[0149] In some embodiments, in response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition, and the n+1 messages of the first media type include at least one identical content item, the n+1 messages of the first media type are merged into a merged message. Optionally, the content item of the message includes at least one of a text content item, a picture content item, and a voice content item. For example, it is assumed that the n+1 messages of the first media type are messages with identical text content. In response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition, and the n+1 messages of the first media type are messages with identical text content, the n+1 messages of the first media type are merged into a merged message.
[0150] Optionally, in response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition and the n+1 messages of the first media type being messages including partially identical content, the n+1 messages of the first media type are merged into a merged message.
[0151] Optionally, in response to the number of n+1 first media type messages reaching a quantity threshold and satisfying a continuous message condition and the n+1 first media type messages including all identical messages, the n+1 first media type messages are merged into a merged message.
[0152] In some embodiments, as shown in FIG10 , the above step 260 may be replaced by the following sub-steps:
[0153] Step 263: In response to the number of n+1 messages of the first media type reaching a number threshold and satisfying a continuous message condition, and the n+1 messages of the first media type being messages whose similarity reaches a similarity threshold, the n+1 messages of the first media type are merged into a merged message. In one embodiment, the similarity of the n+1 messages of the first media type can be represented as the minimum similarity among the similarities of any two messages in the n+1 messages of the first media type. For example, the similarities of the messages in multiple combinations of the n+1 messages of the first media type can be calculated first, and then the multiple similarities can be sorted to obtain the minimum similarity. Each combination includes two messages in the n+1 messages of the first media type.
[0154] In some embodiments, in response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition and the n+1 messages of the first media type being messages having at least one similarity reaching a similarity threshold, the n+1 messages of the first media type are merged into a merged message. The similarity includes at least one of image similarity, text similarity, and voice similarity. Exemplarily, assuming that the n+1 messages of the first media type are voice emoticon messages, the similarities corresponding to the n+1 messages of the first media type include image similarity, text similarity, and voice similarity. The similarity threshold is, for example, 0.9.
[0155] Optionally, in response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition and the n+1 messages of the first media type being messages whose similarity to some messages reaches a similarity threshold, the n+1 messages of the first media type are merged into a merged message.
[0156] Optionally, in response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition and the n+1 messages of the first media type being messages whose similarity to all messages reaches a similarity threshold, the n+1 messages of the first media type are merged into a merged message.
[0157] In some embodiments, the similarity threshold is a threshold for indicating the similarity between at least two messages of the first media type.
[0158] Optionally, the similarity threshold is preset. Exemplarily, the preset similarity threshold is 90%. If the similarity of n+1 messages of the first media type reaches 90%, the n+1 messages of the first media type are merged and displayed as a single merged message. Optionally, the similarity threshold is dynamically adjusted.
[0159] In some embodiments, the similarity is detected using a pre-trained similarity detection model. The similarity detection model is trained using a sample training set. The sample training set includes at least one of sample text content, sample image content, sample video content, and sample voice content. Model parameters in the similarity detection model are trained using the sample training set. After multiple training sessions, for example, after 10,000 sample training sessions or until the model converges, a trained similarity detection model capable of detecting a similarity threshold is obtained.
[0160] To sum up, the method provided in the embodiment of the present application merges n+1 messages of the first media type into a merged message in response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition, and the n+1 messages of the first media type are the same message or messages whose similarity reaches a similarity threshold, and merges the n+1 messages of the first media type that meet the conditions into a merged message, thereby effectively reducing the number of messages of the first media type displayed on the chat interface, avoiding confusion in the message display in the chat interface, and improving the convenience of message display, which is beneficial to improving the efficiency of users viewing messages.
[0161] In some embodiments, the above-mentioned merge display conditions that trigger the merging of n+1 messages of the first media type into one merged message include: the number of n+1 messages of the first media type reaches a quantity threshold and meets the continuous message condition, and the semantic information of the n+1 messages of the first media type belongs to the same semantic type.
[0162] In some embodiments, as shown in FIG11 , the above step 260 may be replaced by the following sub-steps:
[0163] Step 264: In response to the number of n+1 messages of the first media type reaching a number threshold and satisfying a continuous message condition and the semantic information of the n+1 messages of the first media type belonging to the same semantic type, merge the n+1 messages of the first media type into a merged message.
[0164] In some embodiments, the semantic type includes at least one of the following:
[0165] The semantic type that represents the interaction between friends;
[0166] The semantic type that represents the couple's interaction;
[0167] semantic types that represent communication in group recreational activities;
[0168] A semantic type that represents communication in group blessing activities.
[0169] In some embodiments, step 264 may merge the n+1 first media type messages into a merged message in response to the number of n+1 first media type messages reaching a quantity threshold and satisfying a continuous message condition and the n+1 first media type messages being complementary type messages.
[0170] In some embodiments, the complementary type of message includes at least one of the following:
[0171] Message contents are combined into messages for friends to interact with each other;
[0172] Message contents are combined into messages for couples to interact with each other;
[0173] Messages that are combined into group entertainment messages;
[0174] ·Combining the contents of the messages into a group blessing event message.
[0175] Optionally, in response to the number of n+1 first media type messages reaching a quantity threshold and satisfying a continuous message condition, and the n+1 first media type messages are messages whose message contents are combined to form friend interaction messages, the n+1 first media type messages are merged and displayed as a merged message. Exemplarily, assuming that there are two first media type messages, one first media type message is a left-hand high-five action message, and the other first media type message is a right-hand high-five action message, the two first media type messages are merged into a merged high-five message and displayed. Exemplarily, as shown in FIG12 , a left-hand high-five action message 33 and a right-hand high-five action message 34 are displayed in the chat interface, and the two first media type messages are merged into a merged high-five message 35.
[0176] Optionally, in response to the number of n+1 first media type messages reaching a quantity threshold and satisfying a continuous message condition and the n+1 first media type messages are messages whose message contents are combined to form a couple interaction message, the n+1 first media type messages are merged into a merged message. Exemplarily, assuming that there are two first media type messages, one first media type message is a boy's hug action message, and the other first media type message is a girl's hug action message, then the two first media type messages are merged into a merged message indicating a hug. Exemplarily, as shown in FIG13 , a boy's hug action message 36 and a girl's hug action message 37 are displayed in the chat interface, then the two first media type messages are merged into a merged message 38 indicating a hug.
[0177] Optionally, in response to the number of n+1 first media type messages reaching a quantity threshold and satisfying a continuous message condition, and the n+1 first media type messages are messages whose message contents are combined to form a communication message in a group entertainment activity, the n+1 first media type messages are merged and displayed as a merged message. For example, assuming that there are four first media type messages, the first first media type message is a message about the action of playing a first mahjong tile, the second first media type message is a message about the action of playing a second mahjong tile, the third first media type message is a message about the action of playing a third mahjong tile, and the fourth first media type message is a message about the action of playing a fourth mahjong tile, then the four first media type messages are merged into a merged message about playing mahjong on a mahjong table. For example, as shown in FIG14 , a message 61 indicating the action of playing the first mahjong tile, a message 62 indicating the action of playing the second mahjong tile, a message 63 indicating the action of playing the third mahjong tile, and a message 64 indicating the action of playing the fourth mahjong tile are displayed in the chat interface, and the four messages of the first media type are merged into a merged message 65 indicating playing mahjong on the mahjong table.
[0178] In some embodiments, the merged message changes as the number of messages combined into group entertainment activities changes. For example, if three chess and card messages are included, a merged message about Landlords is displayed; if four chess and card messages are included, a merged message about Mahjong is displayed; and if five chess and card messages are included, a merged message about Staring at Each Other is displayed.
[0179] Optionally, in response to the number of n+1 first media type messages reaching a quantity threshold and satisfying a continuous message condition, and the n+1 first media type messages are messages whose message contents are combined to form a group blessing activity, the n+1 first media type messages are merged into a merged message. For example, assuming that there are two first media type messages, one first media type message is a voice message 1 "Congratulations" sent by user account 1, and the other first media type message is a voice message 2 "Get rich" sent by user account 2, then the two first media type messages are merged into a voice merged message expressing "Congratulations and get rich."
[0180] To sum up, the method provided in the embodiment of the present application, in response to the number of n+1 messages of the first media type reaching a quantity threshold and satisfying a continuous message condition, and the n+1 messages of the first media type are complementary type messages, merges and displays n+1 messages of the first media type into a merged message, so that the complementary type messages in the chat interface can be merged and displayed. On the one hand, the number of messages displayed in the chat window is reduced, and interference from a large number of messages that meet the merged display conditions is avoided; on the other hand, the complementary type messages are displayed in a new way through merging, thereby enriching the interest of the messages in the chat interface.
[0181] In some embodiments, when the n+2th message of the first media type is received, the updated merged message is updated and displayed in the chat interface. As shown in Figure 15, the above method further includes:
[0182] Step 270: Receive the (n+2)th message of the first media type;
[0183] In some embodiments, the client only receives the (n+2)th message of the first media type. It should be understood that in the embodiments of the present application, the client only receives but does not display the (n+2)th message of the first media type. Optionally, the user account that sends the (n+2)th message of the first media type is one of the at least one user account corresponding to the (n+1)th message of the first media type. Optionally, the user account that sends the (n+2)th message of the first media type is not one of the at least one user account corresponding to the (n+1)th message of the first media type.
[0184] In some embodiments, the client receives and displays the (n+2)th message of the first media type.
[0185] Step 280: In response to the n+2 messages of the first media type meeting the merge display condition, display the updated merged message.
[0186] In some embodiments, the n+2 first media type messages include the n+1 first media type message and the n+2th first media type message. If the n+2 first media type messages meet a merge display condition, in response to receiving the n+2th first media type message, an updated merged message is displayed. The message content of the updated merged message is obtained by merging the n+2 first media type messages.
[0187] Exemplarily, as shown in FIG16 , a first merged message 23 obtained by merging n+1 messages of the first media type is displayed in the chat interface. In response to receiving the n+2th message of the first media type, and the n+1th message of the first media type and the n+2th message of the first media type meeting the merge display condition, an updated merged message 24 is displayed in the chat interface.
[0188] In summary, the method provided in the embodiment of the present application displays an updated merged message when a new message of the first media type that meets the merge display conditions continues to be received, so that a merged message is always displayed in the chat interface. However, the merged message is continuously updated according to the received messages, so that the merged message can be continuously dynamically adjusted and changed, which not only ensures that the display environment in the chat interface is not affected, but also makes the display method of the messages in the chat interface more diversified. In addition, the method of the embodiment of the present application can improve the efficiency of message display by updating the merged message.
[0189] In some embodiments, as shown in FIG17 , the method further includes:
[0190] Step 320: Display adjustment controls.
[0191] In some embodiments, the adjustment control is used to adjust the synthesis strength parameter of the AI model. The AI model is used to generate the merged message.
[0192] It is worth noting that the display form of the adjustment control is not limited in the embodiments of the present application. Exemplarily, the adjustment control is a knob. Optionally, the adjustment control is an adjustment lever. Optionally, the adjustment control is an input key.
[0193] Optionally, the adjustment control is displayed in the chat interface. Optionally, the adjustment control is displayed in the settings page. In the embodiment of the present application, the adjustment control is displayed in the settings page as an example. It should be understood that the display location of the adjustment control is not limited. For example, as shown in Figure 18, an adjustment control 25 is displayed in the settings page.
[0194] Step 340: In response to the triggering operation on the adjustment control, determine the synthesis force parameter of the AI model.
[0195] The triggering operation includes at least one of single click, double click, left and right swipe, up and down swipe, long press, hover, facial recognition, and voice recognition. It is worth noting that the triggering operation includes but is not limited to the aforementioned ones. Those skilled in the art should be aware that any operation that can achieve the above functions falls within the scope of protection of the embodiments of this application.
[0196] In some embodiments, the adjustment control includes an adjustment sub-control for each synthetic force sub-parameter in the synthetic force parameters of the AI model. For example, when the synthetic force parameters of the AI model include synthetic force sub-parameter 1 for sound and synthetic force sub-parameter 2 for images, the adjustment control includes adjustment sub-control 1 for synthetic force sub-parameter 1 and adjustment sub-control 2 for synthetic force sub-parameter 2.
[0197] To sum up, the method provided in the embodiment of the present application, by displaying adjustment controls, enables the synthesis force parameters used to control the merged message to be adjusted through the adjustment controls, thereby improving the user's sense of participation, and enables the merged message to be generated based on the set synthesis force parameters, so that the merged message is more in line with user needs.
[0198] In some embodiments, as shown in FIG19 , the method further includes:
[0199] Step 410: Display the sender's avatar corresponding to the merged message as a merged avatar.
[0200] In some embodiments, the merged avatar is obtained by merging all or part of the avatars of the sender of n+1 messages of the first media type.
[0201] Optionally, the merged avatar includes all avatars of the sender of n+1 messages of the first media type.
[0202] Optionally, the merged avatar includes part of the avatars of the sender of n+1 messages of the first media type.
[0203] Optionally, the partial avatars are avatars of senders of m messages of the first media type among n+1 messages of the first media type, where the value of m is a positive integer less than or equal to n.
[0204] Optionally, the m messages of the first media type are the m messages of the first media type at a predetermined position in the message sequence, such as combining the avatars of the senders of the four earliest sent messages of the first media type into a merged avatar. It should be understood that, in the case where the m messages of the first media type are the m messages of the first media type at a predetermined position in the message sequence, the merged avatar is fixed or dynamically changing. If the avatars of the senders of the four earliest sent messages of the first media type are combined into a merged avatar, the merged avatar is fixed; if the avatars of the senders of the four last sent messages of the first media type are combined into a merged avatar, the merged avatar is dynamically changing.
[0205] Optionally, the m messages of the first media type are randomly and dynamically selected. Exemplarily, m messages of the first media type are randomly selected from n+1 messages of the first media type and combined.
[0206] Exemplarily, as shown in FIG20 , a merged avatar 26 is displayed on the chat interface.
[0207] In some embodiments, as shown in FIG21 , the method further includes:
[0208] Step 420: Display a special effect floating layer on the chat interface for displaying the merged avatar.
[0209] In some embodiments, the special effect floating layer is used to indicate that a merged message is displayed on the chat interface. For example, as shown in FIG22 , a special effect floating layer 27 for displaying a merged avatar 26 is displayed on the chat interface. It is worth noting that the present embodiment of the present application does not limit the display method of the special effect floating layer. Those skilled in the art should be aware that any display method that can achieve the above-mentioned prompt function falls within the scope of protection of the present embodiment of the present application.
[0210] In some embodiments, the special effect floating layer is displayed when the user account has not read the merged message in the chat interface.
[0211] In some embodiments, as shown in FIG23 , the method further includes:
[0212] Step 430: In response to a trigger operation on the merged avatar, display the n+1 avatars after the split.
[0213] In some embodiments, the n+1 avatars correspond one-to-one to the avatars of the senders of the n+1 messages of the first media type.
[0214] In some embodiments, the trigger operation on the merged avatar is used to instruct the merged avatar to split. In some embodiments, the trigger operation on the merged avatar includes at least one of single-click, double-click, left-right sliding, up-down sliding, long press, hovering, facial recognition, and voice recognition. It is worth noting that the trigger operations on the merged avatar include but are not limited to the ones mentioned above. Those skilled in the art should be able to know that any operation that can achieve the above functions falls within the scope of protection of the embodiments of this application.
[0215] In some embodiments, if at least two of n+1 messages of the first media type are sent by the same user account, the n+1 messages of the first media type contain fewer than n+1 sender avatars. That is, if the n+1 messages of the first media type contain t sender avatars, in response to a triggering operation on a merged avatar, the t split avatars are displayed. t is a positive integer less than or equal to n+1, and n is a positive integer.
[0216] It is worth noting that the display order of the t avatars after splitting is not limited in the embodiment of the present application. Optionally, the display order of the t avatars after splitting is in the order of the sending time of the messages of the first media type corresponding to each of the t avatars. For example, they are displayed in sequence from early to late according to the sending time. Optionally, the display order of the t avatars after splitting is in the order of the number of messages of the first media type corresponding to each of the t avatars. For example, the number of messages of the first media type corresponding to each avatar is obtained. Assume that avatar 1 corresponds to 10 messages of the first media type, and avatar 2 corresponds to 8 messages of the first media type. They are displayed in sequence from most to least in number or from least to most in number.
[0217] In some embodiments, the t split avatars are aggregated and displayed in a split display frame. The split display frame displays the t split avatars. Optionally, the split display frame displays all of the t split avatars. Optionally, the split display frame displays some of the t split avatars.
[0218] In some embodiments, in response to a trigger operation on the merged avatar, a split display frame is displayed. For example, as shown in FIG24 , in response to a single click operation on the merged avatar 26 , a split display frame 28 is displayed, in which all or part of the split avatar is displayed.
[0219] In some embodiments, when a portion of the t split avatars is displayed in the split display frame, the split display frame further includes a viewing control for viewing more avatars. In response to a triggering operation of the viewing control in the split display frame, all of the t split avatars are displayed.
[0220] In some embodiments, the triggering operation of the viewing control includes at least one of a single click, a double click, a left-right swipe, an up-down swipe, a long press, a hover, facial recognition, and voice recognition. It is worth noting that the triggering operations of the viewing control include but are not limited to the aforementioned ones. Those skilled in the art should be aware that any operation that can achieve the above functions falls within the scope of protection of the embodiments of this application.
[0221] It is worth noting that the above steps 410, 420, and 430 are independent execution steps. The above steps 420 and 430 can only be executed after the success of step 410. The above steps 420 and 430 are not sequenced.
[0222] To sum up, the method provided in the embodiment of the present application, by displaying merged avatars, enables user accounts in the chat interface to know which user accounts sent the first media type messages based on which the merged message is merged, which can help user accounts to view and understand each other more to a certain extent.
[0223] In some embodiments, as shown in FIG25 , the method further includes:
[0224] Step 520: In response to a trigger operation on the merged message, display the split n+1 messages of the first media type.
[0225] In some embodiments, the trigger operation on the merged message is used to instruct the merged message to be split. In some embodiments, the trigger operation on the merged message includes at least one of a single click, a double click, a left and right slide, an up and down slide, a long press, a hover, facial recognition, and voice recognition. It is worth noting that the trigger operations on the merged message include but are not limited to the ones mentioned above. Those skilled in the art should be able to know that any operation that can achieve the above functions falls within the scope of protection of the embodiments of this application.
[0226] For example, as shown in Figure 26, in response to a click operation on the merged message 16, the first media type message 12 sent by the split user account 1, the first media type message 13 sent by the user account 2, the first media type message 14 sent by the user account 3, the first media type message 15 sent by the user account 4 and the first media type message 19 sent by the user account 3 are displayed.
[0227] In some embodiments, the n+1 messages of the first media type after being split are displayed according to the sending time of the n+1 messages of the first media type. Alternatively, the n+1 messages of the first media type after being split are displayed in order of sending time from earliest to latest. Alternatively, the n+1 messages of the first media type after being split are displayed in order of sending time from latest to latest.
[0228] It is worth noting that, in the embodiments of the present application, the display order of the n+1 messages of the first media type after the split is not limited. Optionally, the display order of the n+1 messages of the first media type after the split is based on the order of the sending time of the n+1 messages of the first media type. For example, they are displayed in order from earliest to latest sending time.
[0229] To sum up, the method provided in the embodiment of the present application enables the user account in the chat interface to view the merged message or single message according to needs by displaying the split n+1 messages of the first media type, providing the user account with more options.
[0230] FIG27 is a flow chart of a message merging method provided by an exemplary embodiment of the present application. The method is executed by the server 140 in the computer system 100 shown in FIG1 and includes:
[0231] Step 620: Receive n+1 messages of the first media type;
[0232] In some embodiments, the server receives n+1 messages of a first media type, wherein the messages of the first media type include at least one of a text message, a picture message, a voice message, an emoticon message, a voice emoticon message, and a video message.
[0233] Optionally, each of the n+1 first media type messages corresponds to the same user account. Optionally, each of the n+1 first media type messages corresponds to a different user account. Optionally, some of the n+1 first media type messages correspond to the same user account, while some correspond to different user accounts.
[0234] Step 640: If the n+1 messages of the first media type meet the merge display condition, merge the n+1 messages of the first media type into one merged message;
[0235] In some embodiments, the merge display condition is a triggering condition for triggering merging n+1 messages of the first media type into one merged message.
[0236] Optionally, the merge display condition is preset. For example, the preset merge display condition is: receiving five messages of the same first media type. Upon receiving the fifth message of the same first media type, the merge of the n+1 messages of the first media type into one merged message is triggered.
[0237] Optionally, the merged display condition is dynamically adjusted. In some embodiments, the merged display condition is dynamically adjusted based on the display conditions of the client. The display conditions include at least one of the display size of the chat interface and the number of online users. For example, if the display size of the chat interface is display size 1, the merged display condition is merged display condition 1; if the display size of the chat interface is display size 2, the merged display condition is merged display condition 2.
[0238] In some embodiments, the message content of the merged message is obtained by merging n+1 messages of the first media type.
[0239] Step 660: Send a merge message to the client.
[0240] In some embodiments, the merged message is sent to the client for display.
[0241] In some embodiments, the display attributes in the merged message include at least one of the following:
[0242] The display area size of the merged message;
[0243] Merge numbers in messages;
[0244] The number of individual contents in the merged message;
[0245] The number of decorations in the merged message;
[0246] Merge the decoration level in the message;
[0247] The presentation of n+1 individual contents in a combined message representing a group.
[0248] In some embodiments, the display attribute in the merged message is related to the number of n+1 messages of the first media type.
[0249] Optionally, the display area size of the merged message is related to the number of n+1 messages of the first media type. For example, as shown in FIG6 , the display area size of the merged message is proportional to the number of n+1 messages of the first media type. The greater the number of n+1 messages of the first media type, the larger the display area size of the merged message. For example, if the number of n+1 messages of the first media type is 5, the display area size of the merged message is 17, the first display area size; if the number of n+1 messages of the first media type is 7, the display area size of the merged message is 18, the second display area size.
[0250] Optionally, the number in the merged message is related to the number of n+1 messages of the first media type. In some embodiments, the number in the merged message is used to represent the number of n+1 messages of the first media type, and the number in the merged message is proportional to the number of n+1 messages of the first media type. Optionally, the size of the number in the merged message is related to the number of n+1 messages of the first media type. Optionally, the text in the merged message is related to the number of n+1 messages of the first media type. Optionally, the size of the text in the merged message is related to the number of n+1 messages of the first media type. Exemplarily, the size of the text in the merged message is proportional to the number of n+1 messages of the first media type, and the greater the number of n+1 messages of the first media type, the larger the text size in the merged message.
[0251] Optionally, the number of individual contents in the merged message is related to the number of n+1 messages of the first media type. Exemplarily, the number of individual contents in the merged message is proportional to the number of n+1 messages of the first media type; the greater the number of n+1 messages of the first media type, the greater the number of individual contents in the merged message.
[0252] Optionally, the number of decorations in the merged message is related to the number of n+1 messages of the first media type. Exemplarily, the number of decorations in the merged message is proportional to the number of n+1 messages of the first media type; the greater the number of n+1 messages of the first media type, the greater the number of decorations in the merged message.
[0253] Optionally, the decoration level in the merged message is related to the number of n+1 messages of the first media type. Exemplarily, the decoration level in the merged message is proportional to the number of n+1 messages of the first media type; the greater the number of n+1 messages of the first media type, the higher the decoration level in the merged message.
[0254] Optionally, the presentation method of the n+1 individual contents representing the group in the merged message is related to the number of n+1 messages of the first media type. For example, as shown in FIG7 , when the number of n+1 messages of the first media type is 5, the presentation method of the n+1 individual contents representing the group in the merged message is the first presentation method 21; when the number of n+1 messages of the first media type is 11, the presentation method of the n+1 individual contents representing the group in the merged message is the first presentation method 22.
[0255] To sum up, the method provided in the embodiment of the present application merges n+1 messages of the first media type into one merged message when the n+1 messages of the first media type meet the merge display conditions, so that the client displays based on the received merged message, thereby effectively avoiding the problem of high-frequency coverage of a large number of identical or similar first media type messages in the chat interface. On the one hand, user accounts that need to send the same or similar first media type messages can continue to send more identical or similar first media type messages. On the other hand, these identical or similar first media type messages can also be merged into one merged message without affecting other user accounts in the chat interface.
[0256] In some embodiments, the above-mentioned conditions for triggering the merging and displaying of n+1 messages of the first media type into a single merged message include: the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition. As shown in FIG28 , the above-mentioned step 640 can be replaced by the following sub-steps:
[0257] Step 641: When the number of n+1 messages of the first media type reaches a number threshold and satisfies a continuous message condition, merge the n+1 messages of the first media type into one merged message.
[0258] In some embodiments, the quantity threshold is a triggering condition for triggering merging n+1 messages of the first media type into one merged message.
[0259] Optionally, the quantity threshold is preset. Exemplarily, the preset quantity threshold is 5 messages of the first media type. Then, when the fifth message of the first media type is received, the process triggers the merging of n+1 messages of the first media type into one merged message.
[0260] Optionally, the quantity threshold is dynamically adjusted. In some embodiments, the quantity threshold is dynamically adjusted based on the display size of the chat interface in the client. For example, when the display size of the chat interface is 30dp*50dp, the quantity threshold is: 4 messages of the first media type; when the display size of the chat interface is 50dp*80dp, the quantity threshold is: 5 messages of the first media type.
[0261] In some embodiments, the continuous message condition means that the time interval between sending two adjacent messages of the first media type is less than a first threshold, and the number of messages of the second media type between the two adjacent messages of the first media type is less than a second threshold.
[0262] In some embodiments, the first threshold is a time threshold for indicating the time interval between the sending of two adjacent messages of the first media type. For example, assume that the two adjacent messages of the first media type are message 1 of the first media type and message 2 of the first media type, and the sending time of message 1 of the first media type is 10:00, and the sending time of message 2 of the first media type is 10:03. Assuming that the first threshold is 1 minute, since the time interval between the sending time of message 1 of the first media type and the sending time of message 2 of the first media type is 3 minutes, which is greater than the first threshold, message 1 of the first media type and message 2 of the first media type do not meet the continuous message condition. Assuming that the first threshold is 5 minutes, since the time interval between the sending time of message 1 of the first media type and the sending time of message 2 of the first media type is 3 minutes, which is less than the first threshold, message 1 of the first media type and message 2 of the first media type meet the continuous message condition.
[0263] Optionally, the first threshold is preset. Optionally, the first threshold is dynamically adjusted.
[0264] In some embodiments, the second threshold is a threshold for indicating the number of messages of the second media type between two adjacent messages of the first media type. Exemplarily, assume that the two adjacent messages of the first media type are message 1 of the first media type and message 2 of the first media type, and there are 4 other messages between message 1 of the first media type and message 2 of the first media type. Assuming that the second threshold is 5 other messages, then since the number of other messages between message 1 of the first media type and message 2 of the first media type is less than the second threshold, message 1 of the first media type and message 2 of the first media type meet the continuous message condition. Assuming that the second threshold is 3 other messages, then since the number of other messages between message 1 of the first media type and message 2 of the first media type is greater than the second threshold, message 1 of the first media type and message 2 of the first media type meet the continuous message condition.
[0265] Optionally, the first threshold is preset. Optionally, the first threshold is dynamically adjusted.
[0266] To sum up, the method provided in the embodiment of the present application merges n+1 messages of the first media type into one merged message when the number of n+1 messages of the first media type reaches a quantity threshold and meets the continuous message condition, so that the n+1 messages of the first media type that reach the quantity threshold and meet the continuous message condition can be merged into one merged message, thereby effectively reducing the number of messages of the first media type displayed on the chat interface and avoiding confusion in the message display in the chat interface.
[0267] In some embodiments, the above-mentioned merge display conditions that trigger the merging of n+1 messages of the first media type into one merged message include: the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition, and the n+1 messages of the first media type are the same message or messages whose similarity reaches a similarity threshold.
[0268] In some embodiments, as shown in FIG29 , the above step 640 may be replaced by the following sub-steps:
[0269] Step 642: When the number of n+1 first media type messages reaches a quantity threshold and satisfies a continuous message condition and the n+1 first media type messages are the same message, merge the n+1 first media type messages into one merged message.
[0270] In some embodiments, when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition and the n+1 messages of the first media type are messages of the same subtype, the n+1 messages of the first media type are merged into a merged message. Optionally, the subtype is a type further subdivided from the first media type. For example, the subtype includes at least one of an emoticon type, a voice type, a voice emoticon type, a picture type, and a video type. Exemplarily, when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition and the n+1 messages of the first media type are all voice emoticon messages, the n+1 messages of the first media type are merged into a merged message.
[0271] In some embodiments, when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition, and the n+1 messages of the first media type are messages including at least one identical content item, the n+1 messages of the first media type are merged into a merged message. Optionally, the content item of the message includes at least one of a text content item, a picture content item, and a voice content item. Exemplarily, when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition, and the n+1 messages of the first media type are messages with identical text content, the n+1 messages of the first media type are merged into a merged message.
[0272] Optionally, when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition and the n+1 messages of the first media type are messages including partially identical content, the n+1 messages of the first media type are merged into one merged message.
[0273] Optionally, when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition and the n+1 messages of the first media type are messages including all the same content, the n+1 messages of the first media type are merged into one merged message.
[0274] In some embodiments, as shown in FIG30 , the above step 640 may be replaced by the following sub-steps:
[0275] Step 643: When the number of n+1 first media type messages reaches a number threshold and satisfies a continuous message condition and the n+1 first media type messages are messages whose similarity reaches a similarity threshold, merge the n+1 first media type messages into one merged message.
[0276] In some embodiments, when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition, and the n+1 messages of the first media type are messages whose at least one similarity reaches a similarity threshold, the n+1 messages of the first media type are merged into a merged message. The similarity includes at least one of image similarity, text similarity, and voice similarity. For example, assuming that the n+1 messages of the first media type are voice emoticon messages, the similarities corresponding to the n+1 messages of the first media type include image similarity, text similarity, and voice similarity.
[0277] Optionally, when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition and the n+1 messages of the first media type are messages whose partial similarity reaches a similarity threshold, the n+1 messages of the first media type are merged into one merged message.
[0278] Optionally, when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition, and the n+1 messages of the first media type are messages whose similarities all reach a similarity threshold, the n+1 messages of the first media type are merged into one merged message.
[0279] In some embodiments, the similarity threshold is a threshold for indicating the similarity between at least two messages of the first media type.
[0280] Optionally, the similarity threshold is preset. Exemplarily, the preset similarity threshold is 90%. Then, if the similarity of n+1 messages of the first media type reaches 90%, the n+1 messages of the first media type are merged into a merged message. Optionally, the similarity threshold is dynamically adjusted.
[0281] In some embodiments, the similarity is detected using a pre-trained similarity detection model. The similarity detection model is trained using a sample training set. The sample training set includes at least one of sample text content, sample image content, sample video content, and sample voice content. Model parameters in the similarity detection model are trained using the sample training set. After multiple training sessions, for example, after 10,000 sample training sessions or until the model converges, a trained similarity detection model capable of detecting a similarity threshold is obtained.
[0282] To summarize, the method provided in the embodiment of the present application merges n+1 messages of the first media type into one merged message when the number of n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition, and the n+1 messages of the first media type are the same message or messages whose similarity reaches a similarity threshold, thereby effectively reducing the number of messages of the first media type displayed on the chat interface and avoiding confusion in the message display in the chat interface.
[0283] In some embodiments, the above-mentioned merged display conditions that trigger the merging and display of n+1 messages of the first media type into one merged message include: the number of n+1 messages of the first media type reaches a quantity threshold and meets the continuous message condition, and the n+1 messages of the first media type are complementary type messages.
[0284] In some embodiments, as shown in FIG31 , the above step 640 may be replaced by the following sub-steps:
[0285] Step 644: When the number of n+1 first media type messages reaches a quantity threshold and satisfies a continuous message condition and the n+1 first media type messages are complementary type messages, merge the n+1 first media type messages into one merged message.
[0286] In some embodiments, the complementary type of message includes at least one of the following:
[0287] Message contents are combined into a first media type message for friend interaction;
[0288] The message contents are combined to form the first media type of messages for couples to interact with each other;
[0289] · Message contents are combined into a first media type message of group entertainment activities;
[0290] The message contents are combined with each other to form a first media type message of the group blessing activity.
[0291] Optionally, if the number of n+1 first media type messages reaches a threshold, satisfies a continuous message condition, and the n+1 first media type messages are messages containing messages that are combined to form a friend interaction message, the n+1 first media type messages are merged into a single merged message. For example, assuming there are two first media type messages, one of which is a left-hand high-five action message and the other is a right-hand high-five action message, the two first media type messages are merged into a single merged high-five message.
[0292] Optionally, if the number of n+1 first media type messages reaches a threshold, satisfies a continuous message condition, and the n+1 first media type messages are messages that combine content to form a couple's interaction, the n+1 first media type messages are merged into a single merged message. For example, assuming there are two first media type messages, one of which is a male hugging action message and the other is a female hugging action message, the two first media type messages are merged into a single merged message of a hug.
[0293] Optionally, if the number of n+1 first media type messages reaches a quantity threshold and satisfies a continuous message condition, and the n+1 first media type messages are messages whose message contents are combined to form a group entertainment activity, the n+1 first media type messages are merged into a merged message. For example, assuming that there are four first media type messages, the first first media type message is an action message for playing a first mahjong tile, the second first media type message is an action message for playing a second mahjong tile, the third first media type message is an action message for playing a third mahjong tile, and the fourth first media type message is an action message for playing a fourth mahjong tile, then the four first media type messages are merged into a merged message for playing mahjong on a mahjong table.
[0294] Optionally, if the number of n+1 first media type messages reaches a quantity threshold and satisfies a continuous message condition, and the n+1 first media type messages are messages whose contents are combined to form a group blessing activity, the n+1 first media type messages are merged into a merged message. For example, assuming there are two first media type messages, one first media type message is a voice message 1 "Congratulations" sent by user account 1, and the other first media type message is a voice message 2 "Get rich" sent by user account 2, then the two first media type messages are merged into a single voice merged message "Congratulations and get rich."
[0295] To sum up, the method provided in the embodiment of the present application merges n+1 messages of the first media type into one merged message when the number of n+1 messages of the first media type reaches a quantity threshold and meets the continuous message condition, and the n+1 messages of the first media type are complementary type messages, so that the complementary type messages in the chat interface can be merged and displayed. On the one hand, it reduces the number of messages displayed in the chat window and avoids interference from a large number of messages that meet the merged display conditions; on the other hand, it enables the complementary type messages to be displayed in a new way through merging, thereby enriching the interest of the messages in the chat interface.
[0296] In some embodiments, when the n+2th message of the first media type is received, the merged message is updated. As shown in FIG32 , the above method further includes:
[0297] Step 670: Receive the (n+2)th message of the first media type;
[0298] Optionally, the user account that sends the (n+2)th message of the first media type is one of the at least one user account corresponding to the (n+1)th message of the first media type. Optionally, the user account that sends the (n+2)th message of the first media type is not one of the at least one user account corresponding to the (n+1)th message of the first media type.
[0299] Step 680: If the n+2 messages of the first media type meet the merge display condition, merge the n+2 messages of the first media type into an updated merged message;
[0300] In some embodiments, the n+2 first media type messages include n+1 first media type messages and an n+2th first media type message. The message content of the updated merged message is obtained by merging the n+2 first media type messages.
[0301] Step 690: Send the updated merge message to the client.
[0302] In some embodiments, an updated merged message obtained by merging n+2 messages of the first media type is sent to the client for display.
[0303] To sum up, the method provided in the embodiment of the present application updates the merged message when continuing to receive new messages of the first media type that meet the merged display conditions, so that a merged message is always displayed in the chat interface, but the merged message will continue to be updated according to the received messages, so that the merged message can continue to be dynamically adjusted and changed, which not only ensures that the display environment in the chat interface is not affected, but also makes the display method of messages in the chat interface more diversified.
[0304] In some embodiments, the content of the message of the first media type includes visual content. As shown in FIG33 , the above step of merging n+1 messages of the first media type into a merged message can be replaced by the following steps:
[0305] Step 710: Merge the visual contents of n+1 messages of the first media type to obtain the visual content of a merged message.
[0306] In some embodiments, the visual content of the merged message is obtained by merging the visual content of n+1 messages of the first media type. Exemplarily, the n+1 messages of the first media type correspond to n+1 visual contents, and the visual content of the merged message is the visual content obtained by merging the n+1 visual contents. Optionally, the visual content includes at least one of text content, image content, and decorative content.
[0307] In some embodiments, the content of the message of the first media type includes voice content. As shown in FIG34 , the above step of merging n+1 messages of the first media type into a merged message can also be replaced by the following steps:
[0308] Step 720: Merge the voice contents of n+1 messages of the first media type to obtain the voice content of a merged message.
[0309] In some embodiments, the voice content of the merged message is obtained by merging the voice contents of n+1 messages of the first media type. For example, the n+1 messages of the first media type correspond to n+1 voice contents, and the voice content of the merged message is a single voice content obtained by merging the n+1 voice contents.
[0310] In some embodiments, the message content of the merged message includes a common part and a group part. As shown in FIG35 , the above step of merging n+1 messages of the first media type into a merged message can also be replaced by the following steps:
[0311] Step 730: Merge at least one identical content in the n+1 messages of the first media type to obtain a common portion;
[0312] In some embodiments, the common part is obtained by merging at least one identical content in n+1 messages of the first media type. For example, assuming that n+1 messages of the first media type include the same text content, the common part is obtained by merging the identical text content in n+1 messages of the first media type. As shown in Figure 2, the first media type message 12 sent by user account 1, the first media type message 13 sent by user account 2, the first media type message 14 sent by user account 3 and the first media type message 15 sent by user account 4 include the same text content "Congratulations on your wealth". Then, the identical text content in the first media type message 12 sent by user account 1, the first media type message 13 sent by user account 2, the first media type message 14 sent by user account 3 and the first media type message 15 sent by user account 4 are merged to obtain the common part "Congratulations on your wealth".
[0313] Optionally, the common portion is obtained by merging some of the same contents in n+1 messages of the first media type. Optionally, the common portion is obtained by merging all of the same contents in n+1 messages of the first media type.
[0314] Step 740: The individual contents in the n+1 messages of the first media type are combined into n+1 individual contents representing a group to obtain a group part.
[0315] In some embodiments, n+1 messages of the first media type correspond to n+1 individual contents, and the group content is obtained by combining the n+1 individual contents corresponding to the n+1 messages of the first media type.
[0316] In some embodiments, the message content of the merged message also includes a background atmosphere portion. As shown in FIG36 , the above step of merging n+1 messages of the first media type into one merged message can also be replaced by the following steps:
[0317] Step 750: In addition to the content of n+1 messages of the first media type, additional message content serving as background atmosphere of n+1 individual content is added to obtain a background atmosphere part.
[0318] It should be understood that, when the background atmosphere content is included in the contents of the n+1 messages of the first media type, the background atmosphere content can be used as a common part or a group part.
[0319] In some embodiments, the additional message content serving as the background atmosphere of the n+1 individual contents is randomly generated based on a background atmosphere generation model. The background atmosphere generation model is trained using a sample training set, which includes sample background atmosphere content. Model parameters in the background atmosphere generation model are trained using the sample training set. After multiple training sessions, for example, after 10,000 sample training sessions or until the model converges, a trained background atmosphere generation model capable of generating background atmosphere content is obtained.
[0320] In some embodiments, the display attributes in the merged message are related to the synthesis strength parameters of the AI model. As shown in Figure 37, the above step of merging n+1 messages of the first media type into one merged message can also be replaced by the following steps:
[0321] Step 770: Inputting n+1 messages of the first media type and the synthesis intensity parameter into the AI model;
[0322] In some embodiments, the AI model is pre-trained using a sample training set, which includes sample messages. Model parameters in the AI model are trained using the sample training set. After multiple training sessions, such as 10,000 sample training sessions or until the model converges, a trained AI model capable of generating merged messages is obtained.
[0323] In some embodiments, the AI model includes a synthesis force parameter, the synthesis force parameter including a synthesis force parameter value, the synthesis force parameter value being used to indicate the degree of change of the merged message relative to the n+1 messages of the first media type. The larger the synthesis force parameter value, the greater the degree of change of the merged message relative to the n+1 messages of the first media type. For example, the larger the synthesis force parameter value, the more additional elements are added to the merged message.
[0324] Step 780: Generate a merge message based on the AI model.
[0325] In some embodiments, the AI model generates a merged message based on the input n+1 messages of the first media type and the composite dynamic parameter.
[0326] In some embodiments, the composite force parameter includes at least two composite force sub-parameters. The AI model generates a merged message based on the input n+1 messages of the first media type and the at least two composite force sub-parameters. Exemplarily, when the composite force parameter includes a composite force sub-parameter 1 for sound and a composite force sub-parameter 2 for images, the AI model generates a merged message based on the input n+1 messages of the first media type and the composite force sub-parameter 1 for sound and the composite force sub-parameter 2 for images.
[0327] In some embodiments, as shown in FIG38 , before step 770, the method further includes:
[0328] Step 760: Receive the synthesis force parameter.
[0329] In some embodiments, the client sends a synthetic force parameter to the server. The synthetic force parameter is adjusted through the adjustment control in the client. In response to the trigger operation on the adjustment control, the synthetic force parameter value of the AI model is determined. The trigger operation includes at least one of single-click, double-click, left and right sliding, up and down sliding, long press, hovering, facial recognition, and voice recognition. It is worth noting that the trigger operation includes but is not limited to the above-mentioned ones. Those skilled in the art should be able to know that any operation that can achieve the above functions belongs to the protection scope of the embodiments of this application.
[0330] Optionally, the adjustment control is displayed in the chat interface. Optionally, the adjustment control is displayed in the settings page. In the embodiment of the present application, the adjustment control is displayed in the settings page as an example for explanation. It should be understood that the display location of the adjustment control is not limited.
[0331] In summary, the methods provided in the embodiments of the present application may generate different merged messages based on different conditions. When a user account sets a synthesis intensity parameter, generating a merged message based on the synthesis intensity parameter using an AI model can enhance the user account's sense of participation and make the merged message more consistent with the user account's needs. Examples of AI models include CNN and other models.
[0332] In some embodiments, the AI model for merging messages of the first media type is trained based on the following method:
[0333] Obtain a sample training set for training an AI model. The sample training set includes a sample message of the first media type and a sample merged message as a label.
[0334] A sample message of the first media type is input into the AI model, which outputs a predicted merged message. The error loss between the predicted merged message and the sample merged message is calculated based on a loss function. Based on the error loss, the model parameters in the AI model are trained using an error backpropagation algorithm. After multiple training sessions, for example, with 10,000 samples, or until the model converges, an AI model capable of merging messages of the first media type is obtained.
[0335] It is worth noting that the embodiments of the present application do not limit the loss function used to calculate the error loss between the prediction merge message and the sample merge message. Those skilled in the art should be able to know that any loss function that can achieve the above calculation falls within the scope of protection of the embodiments of the present application.
[0336] In some embodiments, the sample first media type message also corresponds to at least two sample synthesis strength parameters. The sample first media type message corresponding to each sample synthesis strength parameter is input into the AI model, which outputs a predicted merged message. An error loss between the predicted merged message and the sample merged message is calculated based on a loss function. Based on the error loss, model parameters in the AI model are trained using an error backpropagation algorithm.
[0337] Exemplarily, it is assumed that message 1 of the sample first media type corresponds to sample synthesis strength parameter 1 and sample synthesis strength parameter 2. The message 1 of the sample first media type corresponding to the sample synthesis strength parameter 1 is input into the AI model, and a predicted merged message 1 is output. The error loss 1 between the predicted merged message 1 and the sample merged message is calculated based on the loss function. Based on the error loss 1, the model parameters in the AI model are trained by the error back propagation algorithm. The message 1 of the sample first media type corresponding to the sample synthesis strength parameter 2 is input into the AI model, and a predicted merged message 2 is output. The error loss 2 between the predicted merged message 2 and the sample merged message is calculated based on the loss function. Based on the error loss 2, the model parameters in the AI model are trained by the error back propagation algorithm.
[0338] FIG39 is a flowchart of a message merging method provided by an exemplary embodiment of the present application. The method is executed by the server 140 in the computer system 100 shown in FIG1 , and the method further includes:
[0339] Step 820: Generate a merged avatar based on the sender avatar corresponding to the merged message;
[0340] In some embodiments, the merged avatar is obtained by combining all or part of the avatars of the sender of n+1 messages of the first media type.
[0341] Optionally, the merged avatar includes all avatars of the sender of n+1 messages of the first media type.
[0342] Optionally, the merged avatar includes part of the avatars of the sender of n+1 messages of the first media type.
[0343] Optionally, the partial avatars are avatars of senders of m messages of the first media type among n+1 messages of the first media type, where the value of m is a positive integer less than or equal to n.
[0344] Optionally, the m messages of the first media type are the m messages of the first media type at a predetermined position, such as merging the sender avatars of the first four messages of the first media type sent into a merged avatar. It should be understood that, in the case where the m messages of the first media type are the m messages of the first media type sent at a predetermined position, the merged avatar is fixed or dynamically changing. If the sender avatars of the first four messages of the first media type sent are combined into a merged avatar, the merged avatar is fixed; if the sender avatars of the last four messages of the first media type sent are combined into a merged avatar, the merged avatar is dynamically changing.
[0345] Optionally, the m messages of the first media type are randomly and dynamically selected. Exemplarily, m messages of the first media type are randomly selected from n+1 messages of the first media type and merged.
[0346] Step 840: Send the merged avatar to the client.
[0347] In some embodiments, the merged avatar is sent to the client.
[0348] To sum up, the method provided in the embodiment of the present application, by generating a merged avatar and sending the merged avatar to the client, enables the user accounts in the chat interface to know which user accounts sent the first media type messages based on which the merged message is merged, which can help user accounts to view and understand each other more to a certain extent.
[0349] FIG40 is a flowchart of a message merging method provided by an exemplary embodiment of the present application. The method is collaboratively executed by the terminal 120 and the server 140 in the computer system 100 shown in FIG1 , and the method further includes:
[0350] Step 1: The terminal displays n messages of the first media type;
[0351] For a specific implementation, please refer to the above step 220.
[0352] Step 2: The terminal receives the (n+1)th message of the first media type;
[0353] For a specific implementation, please refer to the above step 240.
[0354] Step 3: The server receives the (n+1)th message of the first media type;
[0355] For a specific implementation, please refer to the above step 620.
[0356] It is worth noting that there is no order distinction between step 2 and step 3. In some embodiments, step 2 is performed before step 3. In some embodiments, step 3 is performed before step 2. In some embodiments, step 2 and step 3 are performed simultaneously.
[0357] Step 4: If the n+1 messages of the first media type meet the merge display condition, the server merges the n+1 messages of the first media type into a merged message;
[0358] For a specific implementation, please refer to the above step 640.
[0359] Step 5: The server sends a merge message to the terminal;
[0360] For a specific implementation, please refer to the above step 660.
[0361] Step 6: The terminal receives the merged message sent by the server;
[0362] The terminal receives a merged message generated by the server when n+1 messages of the first media type meet a merge display condition.
[0363] Step 7: The terminal displays a merge message;
[0364] For a specific implementation, please refer to the above step 260.
[0365] Step 8: The terminal receives the trigger operation of the user account on the merge message;
[0366] In some embodiments, the trigger operation on the merged message is used to instruct the merged message to be split. In some embodiments, the trigger operation on the merged message includes at least one of a single click, a double click, a left and right slide, an up and down slide, a long press, a hover, facial recognition, and voice recognition. It is worth noting that the trigger operations on the merged message include but are not limited to the ones mentioned above. Those skilled in the art should be able to know that any operation that can achieve the above functions falls within the scope of protection of the embodiments of this application.
[0367] Step 9: The terminal displays the split n+1 messages of the first media type in response to the trigger operation on the merged message;
[0368] For a specific implementation, please refer to the above step 520.
[0369] Step 10: The server generates a merged avatar based on the sender avatar corresponding to the merged message;
[0370] For a specific implementation, please refer to the above step 820.
[0371] Step 11: The server sends the merged avatar to the terminal;
[0372] For a specific implementation, please refer to the above step 840.
[0373] Step 12: The terminal receives the merged avatar;
[0374] The terminal receives a merged avatar obtained by merging all or part of the avatars of the sender of the n+1 messages of the first media type, based on the server.
[0375] Step 13: The terminal displays the merged avatar;
[0376] For a specific implementation, please refer to the above step 410 .
[0377] Step 14: The terminal receives the triggering operation of the user account on the merged avatar;
[0378] In some embodiments, the trigger operation on the merged avatar is used to instruct the merged avatar to split. In some embodiments, the trigger operation on the merged avatar includes at least one of single-click, double-click, left-right sliding, up-down sliding, long press, hovering, facial recognition, and voice recognition. It is worth noting that the trigger operations on the merged avatar include but are not limited to the ones mentioned above. Those skilled in the art should be able to know that any operation that can achieve the above functions falls within the scope of protection of the embodiments of this application.
[0379] Step 15: The terminal responds to the trigger operation on the merged avatar and displays the n+1 avatars after the split;
[0380] For a specific implementation, please refer to the above step 430 .
[0381] It is worth noting that the above steps 10 to 15 can be performed after step 4.
[0382] Step 16: The terminal receives the (n+2)th message of the first media type;
[0383] For a specific implementation, please refer to the above step 270.
[0384] Step 17: The server receives the (n+2)th message of the first media type;
[0385] For a specific implementation, please refer to the above step 670.
[0386] It is worth noting that there is no order distinction between step 16 and step 17. In some embodiments, step 16 is performed before step 17. In some embodiments, step 17 is performed before step 16. In some embodiments, step 16 and step 17 are performed simultaneously.
[0387] Step 18: If the n+2 messages of the first media type meet the merge display condition, the server merges the n+2 messages of the first media type into an updated merged message;
[0388] For a specific implementation, please refer to the above step 680.
[0389] Step 19: The server sends the updated merge message to the terminal;
[0390] For a specific implementation, please refer to the above step 690.
[0391] Step 20: The terminal receives the updated merge message;
[0392] The terminal receives an updated merged message generated by the server when n+2 messages of the first media type meet the merge display condition.
[0393] Step 21: The terminal displays the updated merge message.
[0394] For a specific implementation, please refer to the above step 280.
[0395] It is worth noting that the above steps 16 to 21 can be performed after step 7.
[0396] Optionally, the following description will be given by taking an example where the message of the first media type is an emoticon message.
[0397] In the related art, the emoji messages sent within a social software group are relatively independent, each emoji message is presented in an individual form, and the animation and shape of each emoji message are fixed and cannot be changed. Operations such as quoting and +1ing emoji messages can only be performed outside of emoji messages. Due to the large number of people in social software groups, it is common to see a large number of homogeneous emoji messages flooding the screen. Emoji message flooding will cause a large number of invalid emoji messages to appear in the social software group. These repeated emoji messages are just an emotional expression of the user account that sent the emoji message. For the person receiving the emoji message, the message notifications brought by the high frequency of emoji messages will only cause interference, and the user account will spend a lot of time to find useful information in the social software group.
[0398] In order to solve the above problems, a message merging method is provided in the embodiment of the present application, which designs a more efficient, easy-to-operate and more interesting screen-swiping voice emoticon package function for user accounts. The AI model is controlled to generate new voice emoticon package messages through the synthesis function of the AI model and the random number of screen-swiping people in the social software group. In this way, when sending voice emoticon package messages, the user account's personal emotions can be conveyed, and the voice emoticon package messages can be presented in different shapes after repeated screen swiping. At the same time, the group message interruption caused by screen swiping can be avoided, and important messages in the social software group can be received in the shortest time.
[0399] In some embodiments, the user account of the client opens the function panel, selects the voice emoticon package, and sends the voice emoticon package message to the chat interface. Exemplarily, as shown in Figure 41, the user account opens the function panel 31, clicks the voice emoticon package 32 in the function panel 31, and sends the voice emoticon package 32 to the chat interface for display.
[0400] In some embodiments, a user account may choose to turn the sound of a voice emoticon on or off.
[0401] In some embodiments, when the same voice emoji message starts to be swiped in a social software group, and the number of voice emoji messages is greater than or equal to 5, the AI model will automatically take over the voice emoji message. At this time, the voice emoji message sent by a single user account is no longer presented as a single voice emoji message in the chat interface, but becomes a merged voice emoji message. In the visual experience of the merged voice emoji message, the emoji area becomes larger, and the avatar of the user account sending the message becomes a collection display. Long press the avatar collection to see how many user accounts have sent voice emoji messages.
[0402] In some embodiments, the appearance and sound of the combined voice emoji message will change with the number of swipes. Appearance includes at least one of shape, font, color, animation, and decoration. Sound includes at least one of chorus, voice variation (male, female, cartoon, animal, etc.), and ambient sound (applause, fireworks, insect chirping, bird calls, etc.).
[0403] In some embodiments, a synthesis intensity parameter for voice emoji messages can be set within a social software group. When the number of voice emoji messages within a social software group is 5, the appearance of the merged voice emoji message under different synthesis intensity parameters will also change. When the synthesis intensity parameter is 30%, the sound of the merged voice emoji message is a multi-person harmony synthesized from the original sound. When the synthesis intensity parameter is 90%, in addition to the multi-person harmony synthesized from the original sound, ambient sounds such as applause, celebration, insect chirping, and bird calls will be added.
[0404] In some embodiments, when the number of voice meme messages in a social software group changes, the form presented by the merged voice meme messages under the action of different synthesis strength parameters will change simultaneously with the change in the number and the change in the synthesis strength parameters.
[0405] In some embodiments, the message merging method provided by the embodiments of the present application is executed collaboratively by the terminal and the server.
[0406] In some embodiments, as shown in FIG. 42, the execution steps of the terminal include:
[0407] Step 41: Receive a message of the first media type;
[0408] Step 42: Determine whether the merge display condition is satisfied;
[0409] Step 43: Display the merged message when the merge display condition is satisfied;
[0410] Step 44: Determine whether the user account has read the merged message;
[0411] Step 45: Display a special effect floating layer and display the merged avatar when the user account has not read the merged message;
[0412] Step 46: Display the message of the first media type when the merge display condition is not satisfied.
[0413] In some embodiments, as shown in FIG. 43, the execution steps of the server include:
[0414] Step 51: Filter the messages of the first media type;
[0415] Step 52: Find that the number of consecutive and identical messages of the first media type is greater than the number threshold;
[0416] In some embodiments, assume that the sending time of the first voice meme message is t1, the sending time of the second voice meme message is t2, and there are a different other messages between the first voice meme message and the second voice meme message. Then it can be set that if t2 - t1 <3600000> ms and a < 5, it is a consecutive message; when the voice meme messages accumulate to 5 consecutive messages, the same voice meme messages can be merged and a merged voice meme message can be generated. The value of a is a positive integer.
[0417] It is generally believed that a similarity greater than or equal to 90% indicates that the messages are identical. For example, obtain the first image information P1 corresponding to the first voice emoji message, and obtain the second image information P2 corresponding to the second voice emoji message. Obtain the arrays of the three color channels (red, yellow, and blue) of P1 and P2, respectively; calculate the histogram information for each channel; compare the overlap of the three color channels corresponding to P1 and P2; and take the average of the similarities of the three color channels to determine the similarity between the first and second voice emoji messages.
[0418] Step 53: Trigger message merging and generate a merged message.
[0419] The server continuously filters and calculates whether the received messages of the first media type meet the merge display conditions. If it is calculated that the merge display conditions are met, it accumulates once until 5 messages are accumulated, which can trigger the generation of a merged voice emoticon package message.
[0420] After the server generates the merged voice emoticon package message, it sends it to the terminal for display. After the terminal receives the merged voice emoticon package message and finds that it is a merged message, it first cancels the display of the merged original voice emoticon package message and then displays the merged voice emoticon package message.
[0421] In some embodiments, as shown in FIG44 , the message merging method provided in the embodiments of the present application is implemented based on an overall generation algorithm model. The generation algorithm model inputs a message of the first media type, the number of messages, the synthesis intensity parameter, the original image, and the original sound. After a series of processing, including image processing, decoration processing, and voice processing, a new image and new sound are output.
[0422] FIG45 shows a block diagram of a message merging device provided by an exemplary embodiment of the present application. The device includes:
[0423] Display module 4510 is used to display n messages of the first media type in the chat interface, where n is a positive integer.
[0424] The receiving module 4520 is configured to receive the (n+1)th message of the first media type.
[0425] Display module 4510 is also used to merge n+1 messages of the first media type into a merged message and display the merged message in response to n+1 messages of the first media type meeting the merge display condition, where the message content of the merged message is obtained based on the merger of n+1 messages of the first media type.
[0426] The n+1 first media type messages include n first media type messages and the n+1th first media type message.
[0427] FIG46 shows a block diagram of a message merging device provided by an exemplary embodiment of the present application. The device includes:
[0428] The receiving module 4610 is configured to receive n+1 messages of the first media type, where n is a positive integer.
[0429] The merging module 4620 is used to merge n+1 messages of the first media type into a merged message when n+1 messages of the first media type meet the merge display conditions. The message content of the merged message is obtained by merging the n+1 messages of the first media type.
[0430] The sending module 4630 is used to send the merge message to the client.
[0431] Figure 47 shows a schematic diagram of the structure of a computer device provided by an exemplary embodiment of the present application. Schematically, the computer device 4700 includes a central processing unit (CPU) 4701, a system memory 4704 including a random access memory (RAM) 4702 and a read-only memory (ROM) 4703, and a system bus 4705 connecting the system memory 4704 and the CPU 4701. The computer device 4700 also includes a basic input / output system 4706 that facilitates information transmission between various components within the computer, and a mass storage device 4707 for storing an operating system 4713, application programs 4714, and other program modules 4715.
[0432] The basic input / output system 4706 includes a display 4708 for displaying information and an input device 4709 such as a mouse and keyboard for inputting information into a user account. The display 4708 and the input device 4709 are both connected to the central processing unit 4701 via an input / output controller 4710 connected to the system bus 4705. The basic input / output system 4706 may also include an input / output controller 4710 for receiving and processing input from a variety of other devices such as a keyboard, mouse, or electronic stylus. Similarly, the input / output controller 4710 also provides output to a display screen, printer, or other types of output devices.
[0433] The mass storage device 4707 is connected to the central processing unit 4701 via a mass storage controller (not shown) connected to the system bus 4705. The mass storage device 4707 and its associated computer-readable media provide non-volatile storage for the computer device 4700. In other words, the mass storage device 4707 may include a computer-readable medium (not shown) such as a hard disk or a compact disc read-only memory (CD-ROM) drive.
[0434] The computer-readable medium may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, tape cassettes, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media are not limited to the above-mentioned ones. The above-mentioned system memory 4704 and mass storage device 4707 can be collectively referred to as memory.
[0435] According to various embodiments of the present application, the computer device 4700 may also be connected to a remote computer on a network such as the Internet for operation. That is, the computer device 4700 may be connected to a network 4712 via a network interface unit 4711 connected to the system bus 4705. Alternatively, the network interface unit 4711 may be used to connect to other types of networks or remote computer systems (not shown).
[0436] An exemplary embodiment of the present application further provides a computer-readable storage medium, in which at least one program is stored. The at least one program is loaded and executed by a processor to implement the message merging methods provided by the above-mentioned various method embodiments.
[0437] An exemplary embodiment of the present application also provides a computer program product, which includes at least one program, and the at least one program is stored in a readable storage medium; the processor of the communication device reads signaling from the readable storage medium, and the processor executes the signaling, so that the communication device executes to implement the message merging method provided by the above-mentioned various method embodiments.
[0438] It should be understood that the "plurality" mentioned in this article refers to two or more. Those skilled in the art will readily come to other embodiments of the present application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not disclosed in this application. The description and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0439] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0440] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent switches, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A message merging method, executed by a client, comprising: Display n messages of the first media type in the chat interface, where n is a positive integer; Receive the n+1th message of the first media type; In response to n+1 messages of the first media type satisfying a merge display condition, merging the n+1 messages of the first media type into a merged message, and displaying the merged message; The n+1 first media type messages include the n first media type messages and the n+1th first media type message.
2. The method according to claim 1, wherein: In response to the n+1 messages of the first media type satisfying the merge display condition, merging the n+1 messages of the first media type into a merged message, comprising: In response to the number of the n+1 messages of the first media type reaching a number threshold and satisfying a continuous message condition, merging the n+1 messages of the first media type into one merged message; The continuous message condition means that the sending time interval between two adjacent messages of the first media type is less than a first threshold, and the number of messages of the second media type between the two adjacent messages of the first media type is less than a second threshold.
3. The method according to claim 2, wherein: In response to the number of the n+1 messages of the first media type reaching a number threshold and satisfying a continuous message condition, merging the n+1 messages of the first media type into a merged message, comprises one of the following: In response to the number of the n+1 first media type messages reaching a number threshold and satisfying a continuous message condition, and the n+1 first media type messages are the same message, merging the n+1 first media type messages into a merged message; or In response to the number of the n+1 messages of the first media type reaching a number threshold and satisfying a continuous message condition and the similarity of the n+1 messages of the first media type reaching a similarity threshold, merging the n+1 messages of the first media type into a merged message; or In response to the number of the n+1 first media type messages reaching a quantity threshold and satisfying a continuous message condition and the semantic information of the n+1 first media type messages belonging to the same semantic type, the n+1 first media type messages are merged into one merged message.
4. The method according to any one of claims 1 to 3, wherein: The method further comprises: Receive the n+2th message of the first media type; In response to n+2 messages of the first media type satisfying a merge display condition, displaying an updated merged message, wherein the message content of the updated merged message is obtained by merging the n+2 messages of the first media type; The n+2 first media type messages include the n+1 first media type messages and the n+2th first media type message.
5. The method according to any one of claims 1 to 3, wherein: The visual content of the merged message is obtained by merging the visual contents of the n+1 messages of the first media type; and / or, The voice content of the merged message is obtained by merging the voice contents of the n+1 messages of the first media type.
6. The method according to any one of claims 1 to 3, wherein: The content of the merged message includes: a public part and a group part; The common part is obtained by merging at least one identical content item in the n+1 messages of the first media type; The group part is obtained by combining different content items in the n+1 messages of the first media type.
7. The method according to claim 6, wherein: The message content of the merged message also includes: a background atmosphere part; The background atmosphere part is content added as background atmosphere in addition to the content of the n+1 messages of the first media type.
8. The method according to any one of claims 1 to 3, wherein: The display attribute of the merged message is related to the number of the n+1 messages of the first media type, and the display attribute includes at least one of the following: The display area size of the merged message; A number in the merged message; the number of individual contents in the merged message; the number of decorations in the merged message; the level of decorations in the merged message; The presentation method of the merged message.
9. The method according to any one of claims 1 to 3, wherein: The merged message is generated by an artificial intelligence (AI) model, and the display attribute in the merged message is related to the synthesis strength parameter of the AI model, and the display attribute includes at least one of the following: The display area size of the merged message; A number in the merged message; the number of individual contents in the merged message; the number of decorations in the merged message; the level of decorations in the merged message; The presentation method of the merged message.
10. The method according to claim 9, wherein: The method further comprises: Displaying an adjustment control, wherein the adjustment control is used to adjust the synthesis strength parameter of the AI model; In response to a trigger operation on the adjustment control, the synthetic force parameter of the AI model is determined.
11. The method according to any one of claims 1 to 3, wherein: The method further comprises: The sender avatar corresponding to the merged message is displayed as a merged avatar, where the merged avatar is obtained by combining all or part of the avatars of the senders of the n+1 messages of the first media type.
12. A message merging method, executed by a server, comprising: Receive n+1 messages of the first media type, where n is a positive integer; When the n+1 messages of the first media type meet the merge display condition, merging the n+1 messages of the first media type into one merged message; The merge message is sent to the client.
13. The method according to claim 12, wherein: When the n+1 messages of the first media type meet the merge display condition, merging the n+1 messages of the first media type into one merged message includes: When the number of the n+1 first media type messages reaches a quantity threshold and satisfies a continuous message condition, the n+1 first media type messages are merged into one merged message; wherein the continuous message condition means that the sending time interval between two adjacent first media type messages is less than a first threshold, and the number of second media type messages between the two adjacent first media type messages is less than a second threshold.
14. The method according to claim 13, wherein: The merging the n+1 messages of the first media type into one merged message when the number of the n+1 messages of the first media type reaches a number threshold and satisfies a continuous message condition includes one of the following: When the number of the n+1 messages of the first media type reaches a number threshold and satisfies a continuous message condition, and the n+1 messages of the first media type are the same message, merging the n+1 messages of the first media type into one merged message; or When the number of the n+1 messages of the first media type reaches a number threshold and satisfies a continuous message condition, and the similarity of the n+1 messages of the first media type reaches a similarity threshold, merging the n+1 messages of the first media type into one merged message; or When the number of the n+1 messages of the first media type reaches a quantity threshold and satisfies a continuous message condition and the semantic information of the n+1 messages of the first media type belongs to the same semantic type, the n+1 messages of the first media type are merged into one merged message.
15. The method according to any one of claims 12 to 14, further comprising: Receive the n+2th message of the first media type; In a case where n+2 messages of the first media type meet a merge display condition, merging the n+2 messages of the first media type into an updated merged message, wherein the message content of the updated merged message is obtained by merging the n+2 messages of the first media type; Sending the updated merged message to the client; The n+2 first media type messages include the n+1 first media type messages and the n+2th first media type message.
16. The method according to any one of claims 12 to 14, wherein: The display attributes in the merged message are related to the synthesis strength parameters of the AI model; The step of merging the n+1 messages of the first media type into one merged message includes: Inputting the n+1 messages of the first media type and the synthesis intensity parameter into the AI model; The merged message is generated based on the AI model.
17. The method according to any one of claims 12 to 14, wherein: The method further comprises: Generate a combined avatar based on the sender avatar corresponding to the combined message, where the combined avatar is obtained by combining all or part of the avatars of the senders of the n+1 messages of the first media type; The combined avatar is sent to the client.
18. A message merging device, the device comprising: A display module, used to display n messages of the first media type in the chat interface, where n is a positive integer; A receiving module, configured to receive the (n+1)th message of the first media type; The display module is further configured to, in response to n+1 messages of the first media type satisfying a merge display condition, merge the n+1 messages of the first media type into one merged message, and display the merged message; The n+1 first media type messages include the n first media type messages and the n+1th first media type message.
19. A message merging device, the device comprising: A receiving module, used to receive n+1 messages of the first media type, where n is a positive integer; a merging module, configured to merge the n+1 messages of the first media type into one merged message if the n+1 messages of the first media type meet a merge display condition; A sending module is used to send the merge message to the client.
20. A computer device, comprising: A processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the message merging method according to any one of claims 1 to 11 or the message merging method according to any one of claims 12 to 17.
21. A computer-readable storage medium storing a computer program, wherein the computer program is loaded and executed by a processor to implement the message merging method according to any one of claims 1 to 11 or the message merging method according to any one of claims 12 to 17.
22. A computer program product, comprising computer instructions, wherein the computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes to implement the message merging method as described in any one of claims 1 to 11 or the message merging method as described in any one of claims 12 to 17.
Citation Information
Patent Citations
Dialogue information display method and device
CN111934975A
Message display method and device thereof
CN112769679A
Message processing method and device, electronic equipment and storage medium
CN115098210A
Method and device for displaying session information
US20140351404A1